/* ==========================================================================
   Маршрут — досудебная.рф
   Язык дорожных указателей: синий знак, жёлтая метка «Вы здесь», асфальт.
   ========================================================================== */

:root {
	--sign: #1c5aa6;
	--sign-deep: #164a8c;
	--sign-tint: #e7eef8;
	--yellow: #f6c000;
	--yellow-tint: #fff7da;
	--asphalt: #2f3338;
	--red: #c8202a;
	--ink: #1e2227;
	--text: #2c3137;
	--muted: #5d646e;
	--line: #e2e5e9;
	--ground: #f1f2f4;
	--paper: #fff;
	--cond: "Fira Sans Condensed", "Arial Narrow", sans-serif;
	--body: "Fira Sans", system-ui, sans-serif;
	--doc: "Tinos", "Times New Roman", serif;
	--wrap: 1280px;
	--pad: 56px;
	--r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--sign); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--cond); line-height: 1.1; color: var(--ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Шапка ---------- */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; flex: none; background: var(--sign); border-radius: 8px; padding: 3px; text-decoration: none; transition: background .15s; }
.logo:hover { background: var(--sign-deep); }
.logo > span { display: flex; align-items: center; gap: 10px; border: 2px solid #fff; border-radius: 6px; padding: 6px 12px 7px; color: #fff; }
.logo b { font: 800 22px/1 var(--cond); letter-spacing: -.005em; }
.logo i { font-style: normal; font-weight: 600; opacity: .85; }
.logo svg { width: 18px; height: 18px; color: var(--yellow); }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a { font: 600 18px/1 var(--cond); color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav__list a:hover, .nav__list .current-menu-item a, .nav__list .current-menu-parent a { border-bottom-color: var(--yellow); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 8px; padding: 0 14px; width: 300px; color: #8a9099; transition: border-color .15s; }
.search:focus-within { border-color: var(--sign); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input { border: 0; outline: 0; font: 400 15px var(--body); padding: 10px 0; width: 100%; background: transparent; color: var(--ink); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger i { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; margin: 4px 0; }

/* ---------- Табличка-знак (пиктограмма) ---------- */
.plate { display: inline-block; width: 68px; height: 68px; background: var(--sign); border-radius: 10px; padding: 4px; flex: none; }
.plate > span { display: grid; place-items: center; height: 100%; border: 2.5px solid #fff; border-radius: 7px; }
.plate svg { width: 62%; height: 62%; }
.plate--lg { width: 92px; height: 92px; border-radius: 12px; padding: 5px; }
.plate--lg > span { border-width: 3px; border-radius: 8px; }
.plate--sm { width: 40px; height: 40px; border-radius: 7px; padding: 3px; }
.plate--sm > span { border-width: 2px; border-radius: 5px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; min-height: 640px; background: #c9d0d6; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(240,242,246,.94) 0%, rgba(240,242,246,.78) 34%, rgba(240,242,246,0) 58%); }
.hero__in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 540px; gap: 40px; min-height: 640px; }
.hero__text { padding-top: 92px; }
.hero h1 { font-weight: 800; font-size: 76px; line-height: .96; letter-spacing: -.015em; margin: 0; max-width: 9.5em; }
.hero__text > p { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: #343a42; max-width: 34ch; }
.hero__legend { display: flex; gap: 10px; align-items: center; font-size: 15px !important; margin-top: 30px !important; }
.hero__legend b { font: 700 16px/1 var(--cond); background: var(--sign); color: #fff; border-radius: 5px; padding: 4px 8px; }
.hero__sign { position: relative; padding-top: 70px; }
.post { position: absolute; top: 400px; right: 94px; width: 14px; height: 400px; background: linear-gradient(90deg, #8e959d, #c9ced3 40%, #7d848c); border-radius: 2px; }
.post--l { right: auto; left: 94px; }

/* ---------- Указатель ---------- */
.route { position: relative; filter: drop-shadow(0 22px 30px rgba(10,25,45,.35)); }
.route__dirs { display: flex; gap: 4px; margin-bottom: 8px; }
.route__dirs button { flex: 1; font: 700 16px/1 var(--cond); padding: 10px 4px; border: 0; border-radius: 6px; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; transition: background .15s; }
.route__dirs button:hover { background: #fff; }
.route__dirs button[aria-pressed="true"] { background: var(--yellow); }
.sign { background: var(--sign); border-radius: 14px; padding: 7px; }
.sign__in { border: 3px solid #fff; border-radius: 9px; padding: 6px 24px; color: #fff; font-family: var(--cond); }
.leg { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 2px solid rgba(255,255,255,.9); }
.leg:last-child { border-bottom: 0; }
.leg svg { width: 40px; height: 40px; }
.leg__here { display: block; width: max-content; background: var(--yellow); color: var(--ink); border-radius: 5px; padding: 2px 9px; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.leg b { font-size: 29px; font-weight: 700; line-height: 1.05; display: block; }
.leg small { display: block; font: 400 14.5px/1.35 var(--body); opacity: .9; margin-top: 4px; }
.leg__d { text-align: right; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.leg__d span { display: block; font-size: 14px; font-weight: 500; opacity: .9; margin-top: 3px; }
.route__note { margin: 10px 0 0; font-size: 13.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); text-align: right; }
.sign__in.is-swap .leg { animation: leg-in .32s ease; }
@keyframes leg-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Секции ---------- */
.sec { padding: 64px 0; }
.sec__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec__h h2, .sec__title { font-weight: 800; font-size: 40px; letter-spacing: -.01em; margin: 0; }
.sec__h a { font: 600 17px var(--cond); text-decoration: none; }
.sec__sub { color: var(--muted); font-size: 16px; margin: -12px 0 30px; max-width: 62ch; line-height: 1.5; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { display: block; padding: 18px 18px 20px; border: 2px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.tile:hover { border-color: var(--sign); }
.tile .plate { margin-bottom: 14px; }
.tile b { display: block; font: 700 22px/1.1 var(--cond); margin-bottom: 6px; }
.tile__d { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* асфальт */
.sec--asphalt { background: var(--asphalt); color: #fff; position: relative; }
.sec--asphalt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, transparent 0 56px, #fff 56px 120px, transparent 120px 168px); }
.sec--asphalt h2, .sec--asphalt .sec__title { color: #fff; }
.sec--asphalt .sec__h a { color: var(--yellow); }
.sec--asphalt .sec__sub { color: #b9bfc6; }
.sec--top { padding-top: 56px; }
.sec--top .sec__title { margin-bottom: 26px; }

.sheets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sheet { background: #fff; color: var(--ink); border-radius: 3px; padding: 22px 22px 18px; display: flex; flex-direction: column; min-height: 260px; text-decoration: none; transition: transform .15s; }
.sheet:hover { transform: translateY(-3px) rotate(-.4deg); }
.sheet__doc { font: 12px/1.45 var(--doc); color: #555; flex: 1; max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.sheet__doc p { margin: 0 0 4px; }
.sheet__doc .has-text-align-right { margin-left: 45%; text-align: left; }
.sheet__doc .has-text-align-center { text-align: center; letter-spacing: .2em; font-weight: 700; color: var(--ink); }
.sheet__h { font-weight: 700; font-size: 20px; line-height: 1.15; margin: 16px 0 0; }
.sheet__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }
.sheet__meta b { color: var(--sign); font-weight: 600; }

.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.two--single { grid-template-columns: 1fr; max-width: 820px; }

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 22px/1.2 var(--cond); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--sign); font-size: 28px; line-height: .8; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 40px 22px 0; font-size: 16.5px; line-height: 1.6; color: #3a4048; max-width: 66ch; }
.faq__a p { margin: 0 0 10px; }
.faq__more { font: 600 16px var(--cond); text-decoration: none; }

/* новости */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news time, .news .kind { font-size: 14px; color: var(--muted); }
.news a { display: block; font: 600 21px/1.2 var(--cond); margin-top: 4px; color: var(--ink); text-decoration: none; }
.news a:hover { color: var(--sign); }
.news p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.news--big a { font-size: 25px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--sign-deep); color: #fff; }
.ftr__in { max-width: var(--wrap); margin: 0 auto; padding: 52px var(--pad) 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.ftr__h { font: 600 15px var(--cond); color: rgba(255,255,255,.7); margin: 0 0 12px; }
.ftr p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { font-size: 15.5px; line-height: 1.9; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__phone { display: block; font: 800 30px/1.1 var(--cond); margin-top: 10px; }
.ftr__mail { display: block; margin-top: 6px; opacity: .85; }
.ftr__note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; font-size: 13.5px !important; opacity: .75; max-width: 90ch; }

/* ---------- Внутренние страницы ---------- */
.page-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.page-in--narrow { max-width: calc(860px + 2 * var(--pad)); padding-bottom: 72px; }
.crumbs ol { list-style: none; margin: 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; }
.crumbs li + li::before { content: "›"; color: #9aa0a8; margin-right: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sign); }
.page-title { font-weight: 800; font-size: 52px; letter-spacing: -.01em; margin: 22px 0 16px; }
.page-lead { font-size: 19px; line-height: 1.55; color: var(--text); margin: 0 0 30px; max-width: 64ch; }

/* статья */
.art { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad) 80px; display: grid; grid-template-columns: 230px minmax(0, 700px) 280px; gap: 56px; }
.art--no-toc { grid-template-columns: minmax(0, 800px) 300px; justify-content: space-between; }
.art h1 { font-weight: 800; font-size: 48px; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.art__info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.art__info span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b5bac1; margin-right: 18px; vertical-align: middle; }
.art__lead { font-size: 20px; line-height: 1.55; margin: 26px 0 0; color: var(--text); }
.art__img { margin: 28px 0 0; }
.art__faq { margin-top: 56px; }
.art__faq > h2 { font-weight: 700; font-size: 32px; margin: 0 0 6px; }

/* оглавление-дорога */
.toc { position: sticky; top: 24px; align-self: start; padding-top: 6px; max-height: calc(100vh - 48px); overflow: auto; }
.toc__h { font: 600 15px var(--cond); color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; position: relative; margin: 0; padding: 0 0 0 26px; }
.toc ol::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(#c6cbd1 0 8px, transparent 8px 14px); }
.toc li { position: relative; padding: 6px 0; font-size: 15px; line-height: 1.35; }
.toc li::before { content: ""; position: absolute; left: -25px; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #c6cbd1; transition: border-color .15s, background .15s; }
.toc a { color: #4a5059; text-decoration: none; }
.toc a:hover { color: var(--sign); }
.toc li.is-on::before { border-color: var(--sign); background: var(--yellow); }
.toc li.is-on a { color: var(--ink); font-weight: 600; }

/* мини-указатель */
.mini-route { margin: 34px 0 8px; background: var(--sign); border-radius: var(--r); padding: 6px; }
.mini-route > div { border: 2.5px solid #fff; border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); color: #fff; font-family: var(--cond); }
.mini-route__s { padding: 14px 18px; position: relative; }
.mini-route__s + .mini-route__s { border-left: 2px solid rgba(255,255,255,.85); }
.mini-route__s b { display: block; font-size: 19px; font-weight: 700; line-height: 1.1; }
.mini-route__s em { font-style: normal; font-size: 26px; font-weight: 800; display: block; margin-top: 6px; }
.mini-route__s em small { font-size: 14px; font-weight: 500; opacity: .88; margin-left: 4px; }
.mini-route__s em.is-text { font: 400 14px/1.35 var(--body); opacity: .9; }
.mini-route__s.is-here { background: rgba(255,255,255,.12); }
.mini-route__s.is-here::before { content: "Вы здесь"; position: absolute; top: -14px; left: 14px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 4px; }

/* ---------- Текст статьи ---------- */
.prose { margin-top: 30px; font-size: 17.5px; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 18px; }
.prose h2 { font-weight: 700; font-size: 32px; margin: 48px 0 16px; }
.prose h3 { font-weight: 700; font-size: 24px; margin: 34px 0 12px; }
.prose h4 { font-weight: 700; font-size: 20px; margin: 26px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--sign); font-weight: 600; }
.prose a { text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose img { border-radius: 6px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose .alignright { float: right; margin: 6px 0 16px 28px; max-width: 46%; }
.prose .alignleft { float: left; margin: 6px 28px 16px 0; max-width: 46%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .wp-block-image figure.alignright, .prose .wp-block-image figure.alignleft { display: table; }
.prose h2, .prose h3 { clear: both; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font: 600 16px var(--cond); background: var(--ground); }
.prose blockquote, .prose .ugb-blockquote { margin: 28px 0; padding: 20px 24px; background: var(--sign-tint); border-left: 5px solid var(--sign); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose blockquote p, .prose .ugb-blockquote p { margin: 0; }
.prose .ugb-blockquote .ugb-blockquote__quote, .prose .ugb-blockquote svg { display: none; }
.prose .wp-block-file { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 10px; }
.prose .wp-block-file__button { margin-left: auto; background: var(--sign); color: #fff; border-radius: 7px; padding: 8px 14px; font: 700 15px var(--cond); text-decoration: none; }
.prose h3[data-old-toc], .prose ul[data-old-toc] { display: none; }

/* Стиль блока «Шаги» */
.prose ol.is-style-steps, .prose ul.is-style-steps, .send ol.is-style-steps { list-style: none; padding: 0; counter-reset: s; }
.is-style-steps > li { counter-increment: s; position: relative; padding: 16px 0 16px 66px; border-bottom: 1px solid var(--line); margin: 0; min-height: 76px; }
.is-style-steps > li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--sign); color: #fff; font: 800 22px/44px var(--cond); text-align: center; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; }
.is-style-steps > li strong:first-child { display: block; font: 700 21px/1.25 var(--cond); margin-bottom: 2px; }

/* Стиль блока «Предупреждение» */
.is-style-warning { position: relative; background: var(--yellow-tint); border-radius: 10px; padding: 22px 24px 22px 100px !important; min-height: 98px; color: #3a3320; }
.is-style-warning::before { content: ""; position: absolute; left: 24px; top: 22px; width: 56px; height: 50px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 54'%3E%3Cpath d='M30 3 L57 51 H3 Z' fill='%23fff' stroke='%23c8202a' stroke-width='6' stroke-linejoin='round'/%3E%3Crect x='27' y='18' width='6' height='18' rx='1' fill='%231e2227'/%3E%3Crect x='27' y='40' width='6' height='6' rx='1' fill='%231e2227'/%3E%3C/svg%3E") no-repeat center / contain; }
.is-style-warning strong:first-child { display: block; font: 700 21px/1.25 var(--cond); color: var(--ink); margin-bottom: 2px; }
.is-style-warning > *:last-child { margin-bottom: 0; }
.is-style-lead { font-size: 20px; line-height: 1.55; }

/* ---------- Образец ---------- */
.prose-note { color: var(--muted); font-size: 16px; margin: 26px 0 0; }
.tpl { border: 2px solid var(--ink); border-radius: var(--r); margin: 20px 0 8px; overflow: hidden; }
.tpl__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; background: var(--ground); border-bottom: 2px solid var(--ink); }
.tpl__title { font: 700 20px/1.2 var(--cond); flex-basis: 100%; margin: 0 0 4px; }
.tpl__deadline { margin-left: auto; font: 600 16px var(--cond); color: var(--muted); }
.tpl__doc { padding: 40px 56px 44px; font: 16.5px/1.6 var(--doc); color: #111; background: #fff; }
.tpl__doc p { margin: 0 0 8px; text-indent: 2.2em; }
.tpl__doc .has-text-align-right { margin-left: 50%; text-align: left; text-indent: 0; margin-bottom: 0; }
.tpl__doc .has-text-align-right + p:not(.has-text-align-right) { margin-top: 26px; }
.tpl__doc .has-text-align-center { text-align: center; text-indent: 0; letter-spacing: .25em; font-weight: 700; margin: 0 0 14px; }
.f { background: var(--sign-tint); border-bottom: 1.5px solid var(--sign); color: var(--sign); font-style: italic; padding: 0 3px; border-radius: 2px 2px 0 0; }
.btn { display: inline-block; font: 700 16px/1.2 var(--cond); border-radius: 7px; padding: 9px 15px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ground); }
.btn--blue { background: var(--sign); border-color: var(--sign); color: #fff; }
.btn--blue:hover { background: var(--sign-deep); border-color: var(--sign-deep); }
.btn.is-done { background: var(--yellow); border-color: var(--yellow); }
.send { margin-top: 48px; }
.send h2 { font-weight: 700; font-size: 32px; margin: 0 0 8px; }
.send li { font-size: 17px; line-height: 1.6; color: var(--text); }

/* ---------- Боковая колонка ---------- */
.side { align-self: start; position: sticky; top: 24px; display: grid; gap: 22px; }
.side-box { border: 2px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-box--lawyer { border-color: var(--sign); }
.side-box__h { font: 700 20px/1.15 var(--cond); margin: 0; }
.side-box p { font-size: 15px; line-height: 1.55; color: #4a5059; margin: 8px 0 0; }
.side-box__phone { font: 800 25px/1.1 var(--cond); margin-top: 12px; color: var(--ink); display: block; text-decoration: none; }
.side-box ul { list-style: none; margin: 10px 0 0; padding: 0; }
.side-box li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.side-box li:first-child { border-top: 0; }
.side-box li a { text-decoration: none; }
.side-box li a:hover { text-decoration: underline; }

/* ---------- Рубрика и оглавление сайта ---------- */
.cat-head { display: flex; gap: 26px; align-items: center; margin: 26px 0 0; }
.cat-head h1 { font-weight: 800; font-size: 52px; margin: 0; letter-spacing: -.01em; }
.cat-head__d { color: var(--text); font-size: 18px; max-width: 70ch; margin-top: 8px; }
.cat-head__d p { margin: 0; }
.cat-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 20px 0 80px; }
.list-h { font-weight: 700; font-size: 28px; margin: 40px 0 10px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows a { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 21px; line-height: 1.3; }
.rows__t { flex: 0 1 auto; }
.rows__lead { flex: 1 1 30px; border-bottom: 2px dotted #c3c7cd; transform: translateY(-5px); min-width: 30px; }
.rows__go { color: var(--sign); font-weight: 600; }
.rows a:hover .rows__t { color: var(--sign); }
.rows a:hover .rows__lead { border-color: var(--sign); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; gap: 8px; align-items: baseline; border: 2px solid var(--line); border-radius: 8px; padding: 8px 14px; font: 600 18px var(--cond); color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--sign); }
.chips small { color: var(--muted); font-weight: 500; }
.contents__ch { margin-top: 44px; }
.contents__ch h2 { font-weight: 700; font-size: 28px; margin: 0 0 6px; }
.contents__ch h2 a { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.contents__ch h2 a:hover { color: var(--sign); }
.callout { margin-top: 48px; padding: 24px 26px; border: 2px solid var(--sign); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.callout p { margin: 0; max-width: 52ch; font-size: 16px; }
.callout__phone { font: 800 26px var(--cond); color: var(--ink); text-decoration: none; }
.search--big { width: 100%; max-width: 640px; margin: 0 0 30px; padding: 4px 4px 4px 16px; }
.search--big input { font-size: 17px; }
.nf { text-align: left; padding-top: 40px; }
.nf__sign svg { width: 110px; height: 110px; }
.nav-links { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border: 2px solid var(--line); border-radius: 7px; text-decoration: none; font: 600 16px var(--cond); color: var(--ink); }
.nav-links .current { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Мессенджеры юриста ---------- */
.msgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.msg { font: 600 14px/1 var(--cond); padding: 7px 10px; border-radius: 7px; border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.msg:hover { border-color: var(--sign); color: var(--sign); }
.ftr .msg { color: #fff; border-color: rgba(255,255,255,.35); }
.ftr .msg:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.callout .msgs { margin-top: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
	:root { --pad: 32px; }
	.tiles { grid-template-columns: repeat(3, 1fr); }
	.sheets { grid-template-columns: repeat(2, 1fr); }
	.art { grid-template-columns: minmax(0, 1fr) 280px; }
	.art .toc { display: none; }
	.prose h3[data-old-toc], .prose ul[data-old-toc] { display: block; }
	.hero__in { grid-template-columns: 1fr 480px; }
	.hero h1 { font-size: 62px; }
	.leg b { font-size: 25px; }
}
@media (max-width: 900px) {
	:root { --pad: 16px; }
	body { font-size: 16px; }
	.hdr__in { gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
	.logo b { font-size: 19px; } .logo > span { padding: 5px 10px 6px; gap: 8px; }
	.burger { display: block; }
	.nav { display: none; flex-basis: 100%; order: 3; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.search { order: 4; width: 100%; display: none; }
	.nav.is-open + .search { display: flex; margin-bottom: 6px; }
	.hero, .hero__in { min-height: 0; }
	.hero::before { background: linear-gradient(180deg, rgba(240,242,246,.94), rgba(240,242,246,.6) 55%, rgba(240,242,246,.15)); }
	.hero__in { grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
	.hero__text { padding-top: 36px; }
	.hero h1 { font-size: 44px; }
	.hero__text > p { font-size: 17px; }
	.hero__sign { padding-top: 28px; }
	.post { display: none; }
	.route__dirs { overflow-x: auto; scrollbar-width: none; }
	.route__dirs button { flex: none; padding: 10px 14px; }
	.sign__in { padding: 4px 16px; }
	.leg { grid-template-columns: 30px 1fr auto; gap: 12px; padding: 14px 0; }
	.leg svg { width: 28px; height: 28px; }
	.leg b { font-size: 21px; }
	.leg__d { font-size: 26px; }
	.sec { padding: 44px 0; }
	.sec__h h2, .sec__title { font-size: 32px; }
	.tiles, .sheets { grid-template-columns: 1fr; }
	.tile { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; padding: 14px; }
	.tile .plate { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
	.two, .ftr__in, .cat-body { grid-template-columns: 1fr; gap: 32px; }
	.art, .art--no-toc { grid-template-columns: 1fr; gap: 36px; padding-top: 18px; }
	.side { position: static; }
	.art h1, .page-title, .cat-head h1 { font-size: 34px; }
	.cat-head { gap: 16px; }
	.plate--lg { width: 64px; height: 64px; }
	.prose { font-size: 16.5px; }
	.prose h2 { font-size: 26px; }
	.prose .alignright, .prose .alignleft { float: none; margin: 16px 0; max-width: 100%; }
	.mini-route > div { grid-template-columns: 1fr; }
	.mini-route__s + .mini-route__s { border-left: 0; border-top: 2px solid rgba(255,255,255,.85); }
	.tpl__doc { padding: 24px 18px; font-size: 15.5px; }
	.tpl__doc .has-text-align-right { margin-left: 30%; }
	.tpl__deadline { margin-left: 0; flex-basis: 100%; }
	.is-style-warning { padding: 84px 18px 18px !important; }
	.is-style-warning::before { left: 18px; top: 18px; }
	.rows a { font-size: 18px; }
	.ftr__phone { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
