/* Шрифт Inter (SIL Open Font License 1.1), подмножество: латиница, кириллица, цифры. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/i400.woff) format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/i500.woff) format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/i600.woff) format("woff")}
@font-face{font-family:"Srok Serif";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/s400.woff2) format("woff2")}
@font-face{font-family:"Srok Serif";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/s700.woff2) format("woff2")}
:root {
  /* Редакционное оформление (25.10.2026): чистый белый фон, почти черный текст, один акцент — для главных действий. Контраст текста не ниже 4,5:1. */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #16171a;
  --muted: #565961;
  --line: #e2e4e8;
  --soft: #f3f4f6;
  --accent: #8c2132;
  --accent-ink: #ffffff;
  --ok: #1f7a54;
  --warn: #8f5f00;
  --panel: #17181c;
  --panel-line: #2f3036;
  --panel-ink: #f3f3f5;
  --panel-muted: #a9abb3;
  --p-accent: #f08a9b;
  --p-ok: #66d3a6;
  --p-warn: #ebc069;
  --p-no: #7c7e86;
  --dot-a: #f3f3f5;
  --dot-b: rgba(243, 243, 245, .52);
  --dot-c: rgba(243, 243, 245, .13);
  /* Заголовки — Srok Serif (PT Serif от ParaType, подмножество с сайта), текст — Inter. Запасной Georgia подогнан по метрикам: страница не прыгает при загрузке. */
  --display: "Srok Serif", "Srok Serif Fallback", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --hdr: 64px;
  --radius: 10px;
  /* Плашки-предупреждения (светлый фон, текст основного цвета) и длина строки текста: не больше ~68 знаков. */
  --notice-bg: #faefd2;
  --notice-line: #a87700;
  --notice-ink: #16171a;
  --measure: 34em;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  --bg: #111214; --surface: #18191c; --ink: #ececee; --muted: #a6a7ae; --line: #2c2d31; --soft: #1d1e21;
  --notice-bg: #2c2512; --notice-line: #ebc069; --notice-ink: #f3ead2;
  --accent: #f08a9b; --accent-ink: #17181c; --ok: #66d3a6; --warn: #ebc069;
  --panel: #1a1b1f; --panel-line: #33343a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --surface: #18191c; --ink: #ececee; --muted: #a6a7ae; --line: #2c2d31; --soft: #1d1e21;
    --notice-bg: #2c2512; --notice-line: #ebc069; --notice-ink: #f3ead2;
    --accent: #f08a9b; --accent-ink: #17181c; --ok: #66d3a6; --warn: #ebc069;
    --panel: #1a1b1f; --panel-line: #33343a;
  }
}
@font-face { font-family: "Srok Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 100%; ascent-override: 101.7%; descent-override: 27.6%; line-gap-override: 0%; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 61.999rem) { html { scroll-padding-top: calc(var(--hdr) + 16px); } }
body { margin: 0; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
/* Текст 17 px на телефоне, 18 px на компьютере, 19 px на большом экране (27" и больше). */
@media (min-width: 62rem) { body { font-size: 1.125rem; } }
@media (min-width: 110rem) { body { font-size: 1.1875rem; } }
.wrap { max-width: 76rem; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
main p a, main li a, main dd a, main td a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
main p a:hover, main li a:hover, main dd a:hover, main td a:hover { color: var(--accent); text-decoration-color: currentColor; }
p { margin: 0 0 .9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ref { color: var(--muted); font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: .5em .9em; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Шапка: знак, телефон и «Меню»; на телефоне и планшете прилипает к верху экрана (на компьютере у верха прилипает карточка расчета). Все остальное — в полноэкранном меню. */
.top { position: relative; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr); }
.mark { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; font: 700 1.375rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.mark-d { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; }
.mark-d i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.mark-d i:last-child { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.top-r { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.top-r > a[href^="tel"] { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; }
.top-r > a[href^="tel"]:hover { color: var(--accent); }
@media (max-width: 61.999rem) { .top { position: sticky; } }
@media (max-width: 47.99rem) { :root { --hdr: 56px; } .mark { font-size: 1.25rem; } .top-r > a[href^="tel"] { font-size: .9375rem; } }
@media (max-width: 22.5rem) { .top-r { gap: 10px; } .top-r > a[href^="tel"] { font-size: .875rem; } }
/* Логотип адвоката: прозрачный PNG с темными буквами; в темной теме буквы становятся светлыми. */
.attorney-logo { display: block; width: 17rem; max-width: 100%; }
.attorney-logo img { display: block; width: 100%; height: auto; }
.attorney-logo--contact { margin: 0 0 1.6rem; }
:root[data-theme="dark"] .attorney-logo img { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .attorney-logo img { filter: invert(1); }
}
@media print { .attorney-logo img { filter: none !important; } .top { position: static; } }
/* Переключатель темы (в меню; в просмотре из файла — в шапке) */
.theme { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1em; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 500 .9375rem/1 var(--text); cursor: pointer; }
.theme::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme:hover { border-color: currentColor; }
.top-r > .theme { width: 44px; padding: 0; justify-content: center; }
.top-r > .theme span { display: none; }

/* Кнопка «Меню» и полноэкранное меню: все разделы по группам. Меню темное, пункты — крупным серифом.
   Появляется за 200 мс (прозрачность и сдвиг, пункты — один за другим); без анимации при prefers-reduced-motion. */
.menu-btn { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 1.15em 0 1em; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.menu-btn:hover { opacity: .88; }
.menu-btn:active { transform: scale(.97); }
.menu-ic { display: grid; gap: 4px; width: 16px; }
.menu-ic::before, .menu-ic::after { content: ""; display: block; height: 2px; border-radius: 1px; background: currentColor; }
.menu-ic i { display: none; }
.menu-ic::after { width: 11px; }
@media (max-width: 22.5rem) { .menu-btn { width: 44px; padding: 0; justify-content: center; } .menu-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
html.menu-lock, html.menu-lock body { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  --bg: #17181c; --surface: #202126; --ink: #f3f3f5; --muted: #abadb5; --line: #34353b; --soft: #26272c; --accent: #e8a3ae; --accent-ink: #17181c;
  background: var(--bg); color: var(--ink); opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease);
  padding-bottom: env(safe-area-inset-bottom); }
:root[data-theme="dark"] .menu { --bg: #0b0c0e; --surface: #18191c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu { --bg: #0b0c0e; --surface: #18191c; } }
.menu.is-on { opacity: 1; transform: none; }
.menu-in { padding-bottom: clamp(40px, 7vw, 96px); }
.menu-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hdr); padding-top: env(safe-area-inset-top); margin-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); background: var(--bg); }
.menu-h { margin: 0; font: 400 1.25rem/1.2 var(--display); }
.menu-top-r { display: flex; align-items: center; gap: 8px; }
.menu-x { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1.1em 0 .9em; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .9375rem/1 var(--text); cursor: pointer; }
.menu-x:hover { border-color: var(--ink); }
.menu-x svg { width: 18px; height: 18px; }
@media (max-width: 26.99rem) { .menu-top .theme span { display: none; } .menu-top .theme { width: 44px; padding: 0; justify-content: center; } }
.menu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 clamp(32px, 4vw, 52px); }
.menu-tools .ss { order: 0; flex: 1 1 22rem; max-width: 40rem; margin: 0; }
.menu-tools .ss-q { height: 52px; font-size: 1.0625rem; border-color: var(--line); background: var(--surface); }
.menu-tools .lawsw a:not([aria-current]) { color: var(--muted); }
.menu-tools .top-don { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 1.1em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.menu-tools .top-don:hover { border-color: var(--accent); color: var(--accent); }
.nav { display: grid; gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 48px); }
@media (min-width: 40rem) { .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.menu-gh { margin: 0 0 .6em; padding-bottom: .7em; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 .875rem/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .32em 0; color: var(--ink); font: 400 clamp(1.3125rem, 1rem + .9vw, 1.75rem)/1.25 var(--display); text-decoration: none; transition: color .15s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav a[aria-current]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .5em; border-radius: 50%; background: currentColor; vertical-align: .25em; }
.menu-more { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(36px, 5vw, 60px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.menu-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.menu-more a:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .menu .menu-gh, .menu .nav li, .menu .menu-more li { opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); transition-delay: calc(var(--i, 0) * 12ms + 40ms); }
  .menu.is-on .menu-gh, .menu.is-on .nav li, .menu.is-on .menu-more li { opacity: 1; transform: none; }
  .rise { opacity: 0; transform: translateY(14px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .rise.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .menu, .nav a, .menu-btn { transition: none; } .menu { transform: none; } }
@media print { .menu-btn, .menu { display: none !important; } .rise { opacity: 1 !important; transform: none !important; } }
/* Страница razdely/ (все разделы списком) */
.sitemap-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .sitemap-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sitemap-l a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: .5em 0; border-bottom: 1px solid var(--line); font: 400 1.1875rem/1.3 var(--display); text-decoration: none; }
.sitemap-l a::after { content: "→"; font-family: var(--text); color: var(--accent); }
.sitemap-l a:hover { color: var(--accent); }

/* Конструктор документов — на виду: пункт меню, кнопка в шапке, блок на главной, плашка под расчетом */
.nav a.nav-hot { color: var(--accent); }
.nav a.nav-hot::before { content: ""; display: inline-block; width: .62em; height: .78em; margin-right: .42em; vertical-align: -.04em; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 50% 38% / 55% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% 66% / 55% 1.5px no-repeat; }
.top-doc { display: inline-flex; align-items: center; padding: .5em 1em; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; }
.top-doc:hover { text-decoration: none !important; filter: brightness(1.08); }
@media (max-width: 47.99rem) { .top-doc { display: none; } }
.promo { padding-top: clamp(4px, 1vw, 12px); }
.promo-in { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
@media (min-width: 62rem) { .promo-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.promo-kick { font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin: 0 0 .9em; }
.promo h2 { color: inherit; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .35em; }
.promo-txt > p { max-width: 34em; opacity: .9; }
.promo-acts { margin: 1.4em 0 0; }
.promo .btn-accent { font-size: 1.0625rem; padding: .85em 1.5em; }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo-list a { display: grid; gap: 2px; padding: .85em 1.05em; border-radius: 16px; background: rgba(255,255,255,.07); color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,.08); transition: background .15s; }
.promo-list a:hover { background: rgba(255,255,255,.13); }
.promo-list b { font-weight: 600; }
.promo-list span { font-size: .875rem; opacity: .72; line-height: 1.35; }
:root[data-theme="dark"] .promo-list a, :root[data-theme="dark"] .promo-list a:hover { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .promo-list a { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); } }
.promo-sub { margin-block: 0 clamp(32px, 5vw, 64px); }
.promo-sub > p:first-child { margin: 0 0 .6em; font-size: 1.0625rem; }
.promo-sub { border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); background: var(--surface); }
.promo-sub-l { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.promo-sub-l a { padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9375rem; }
.promo-sub-l a:hover { border-color: var(--ink); }
.promo-sub-l a:last-child { color: var(--accent); border-color: transparent; font-weight: 600; }
@media print { .promo, .promo-sub, .top-doc { display: none !important; } }

/* Сетка калькулятора. Две колонки (выбор и вопросы слева, карточка результата справа) — только внутри .calc-main:
   карточка прилипает к верху экрана в пределах этой сетки и уходит вместе с ней, не наезжая на подробности (.more) ниже. */
.calc, .calc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px); min-width: 0; }
.calc { padding-block: clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px); }
h1 { font: 500 clamp(2.4rem, 5.6vw, 4.25rem)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 .32em; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--muted); max-width: 34em; margin-bottom: 1.8em; }
h2 { font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.12 var(--display); letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
.h-note { color: var(--muted); margin: -.2em 0 1.6em; max-width: 34em; }

/* Выбор статьи */
.q { display: block; width: 100%; font: 400 1.125rem/1.3 var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1em 1.15em; }
.q::placeholder { color: var(--muted); }
.q:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); border-radius: 16px; }
.q-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .5em; }
.arts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.art { display: inline-block; text-decoration: none; font: 400 .9375rem/1.2 var(--text); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 10px; padding: .55em .8em; cursor: pointer; text-align: left; }
.art b { font-weight: 600; margin-right: .35em; }
.art:hover { border-color: var(--ink); }
.art.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.arts-note { color: var(--muted); font-size: .875rem; margin: 10px 0 0; }

.parts { margin-top: 28px; display: grid; gap: 8px; }
.parts-t { font-weight: 600; font-size: .875rem; margin: 0 0 2px; }
.part { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; align-items: baseline; padding: .85em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.part input, .chip input, .rowopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.part b { font-weight: 600; white-space: nowrap; }
.part span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.part em { font-style: normal; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.part:hover { border-color: var(--ink); }
.part:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.part:has(input:checked) span { color: var(--ink); }
.part:has(input:focus-visible), .chip:has(input:focus-visible), .rowopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Панель результата */
.res { background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 28px; padding: clamp(22px, 3vw, 34px); align-self: start; min-width: 0; }
.res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .875rem; color: var(--panel-muted); margin: 0 0 clamp(18px, 2.4vw, 24px); }
.res-top span:first-child { margin-right: auto; font-weight: 500; color: var(--panel-ink); }
.tag { border: 1px solid var(--panel-line); border-radius: 999px; padding: .22em .75em; white-space: nowrap; }
.res-label { font-size: .9375rem; color: var(--panel-muted); margin: 0; }
.res-num { font: 500 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; margin: .12em 0 .16em; text-wrap: balance; }
.res-num.is-text { font-size: clamp(2.1rem, 4vw, 2.75rem); }
.res-sub { color: var(--panel-muted); margin: 0; }
.res-sub b { color: var(--panel-ink); font-weight: 500; }
.res-ex { color: var(--panel-muted); font-size: .875rem; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--panel-line); }

.mx-wrap { margin: clamp(22px, 3vw, 30px) 0 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 26px; }
.mx { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; width: calc(var(--n) * 15px - 4px); max-width: 100%; flex: 0 1 auto; }
.tag.is-rec { color: var(--p-warn); border-color: currentColor; }
.res-sub .is-life { color: var(--p-accent); }
.mx-col { display: grid; gap: 4px; position: relative; }
.mx-col i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--dot-c); transition: background-color .4s ease, transform .4s ease; }
.mx-col i.a { background: var(--dot-a); }
.mx-col i.b { background: var(--dot-b); }
.mx-col i.p { background: var(--dot-b); transform: scale(.5); }
.mx-col em { font: 500 .875rem/1 var(--text); color: var(--panel-muted); text-align: center; height: .7rem; margin-top: 3px; }
.mx-col.is-8::after { content: ""; position: absolute; right: -2.5px; top: -5px; bottom: .7rem; border-right: 1px dashed var(--p-accent); }
.mx-legend { display: flex; flex-direction: column; gap: 5px; margin: 0 0 calc(.7rem + 3px); flex: 1 1 9rem; padding: 0; list-style: none; font-size: .875rem; color: var(--panel-muted); }
.mx-legend li { display: flex; align-items: flex-start; gap: .55em; line-height: 1.3; }
.mx-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-c); flex: none; margin-top: .3em; }
.mx-wrap.is-wide .mx-legend { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 0; flex-basis: 100%; }
.mx-wrap.is-wide .cap { margin-top: 0; }
.mx-legend .cap { margin-top: 4px; opacity: .8; }
.mx-legend .a i { background: var(--dot-a); }
.mx-legend .b i { background: var(--dot-b); }
.mx-legend .l i { width: 4px; margin-right: 4px; height: 12px; margin-top: .15em; border-radius: 0; background: none; border-right: 1px dashed var(--p-accent); }

.pun { list-style: none; margin: 18px 0 0; padding: 0; }
.pun li { padding: .55em 0; border-top: 1px solid var(--panel-line); }

.facts { list-style: none; margin: clamp(20px, 3vw, 28px) 0 0; padding: 0; border-top: 1px solid var(--panel-line); }
.facts li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: .6em 0; border-bottom: 1px solid var(--panel-line); font-size: .9375rem; }
.facts b { font-weight: 400; color: var(--panel-muted); display: inline-flex; align-items: baseline; gap: .6em; white-space: nowrap; }
.facts b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-no); flex: none; transform: translateY(-1px); }
.facts .ok b::before { background: var(--p-ok); }
.facts .warn b::before { background: var(--p-warn); }
.facts .plain b::before { background: none; box-shadow: inset 0 0 0 1px var(--p-no); }
.facts span { text-align: right; font-weight: 500; margin-left: auto; }
.facts.is-wrap b { white-space: normal; }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: clamp(20px, 3vw, 28px); }
.btn { display: inline-flex; justify-content: center; align-items: center; text-align: center; padding: .95em 1em; border-radius: 14px; border: 1px solid transparent; font: 500 .9375rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
.btn-light { background: var(--panel-ink); color: #15161a; }
.btn-light:hover { background: #fff; }
.btn-line { background: none; color: var(--panel-ink); border-color: var(--panel-line); }
.btn-line:hover { border-color: var(--panel-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-out { background: none; color: var(--ink); border-color: var(--line); }
.btn-out:hover { border-color: var(--ink); }
.toast { font-size: .875rem; color: var(--panel-muted); margin: 10px 0 0; }
.toast:empty { display: none; }

/* Обстоятельства */
.g { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.g legend { padding: 0; font-weight: 600; font-size: .875rem; margin-bottom: .6em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: .6em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; font-size: .9375rem; line-height: 1.25; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:has(input:disabled) { color: var(--muted); background: none; border-style: dashed; cursor: not-allowed; }
.chip:has(input:disabled):hover { border-color: var(--line); }
.rows { display: grid; gap: 6px; margin-top: 10px; }
.rowopt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: .7em .9em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.rowopt::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); margin-top: 1px; }
.rowopt.is-check::before { border-radius: 5px; }
.rowopt:hover { border-color: var(--ink); }
.rowopt:has(input:checked) { border-color: var(--ink); }
.rowopt:has(input:checked)::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.rowopt small { display: block; color: var(--muted); font-size: .875rem; margin-top: 1px; }
.g-note { color: var(--muted); font-size: .875rem; margin: 10px 0 0; max-width: 40em; }
.why { margin-top: 10px; font-size: .875rem; color: var(--muted); max-width: 40em; }
.why summary { cursor: pointer; display: inline-block; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .25em; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why p { margin: .5em 0 0; }

/* Поля ввода срока и даты */
.fields { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: grid; gap: .35em; font-size: .875rem; color: var(--muted); }
.field input { font: 400 1.125rem/1.3 var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7em .9em; width: 7.5rem; max-width: 100%; font-variant-numeric: tabular-nums; }
.field.is-date input { width: 13rem; }
.field input:hover { border-color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); border-radius: 12px; }
:root[data-theme="dark"] .field input { color-scheme: dark; }
:root[data-theme="light"] .field input { color-scheme: light; }

/* Карточки преступлений в расчете совокупности */
.g.is-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 18px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.g.is-card legend { padding: 0 .5em; margin-left: -.5em; margin-bottom: 0; }
.g-sub { font-size: .875rem; color: var(--muted); margin: 14px 0 6px; }
.g-act { margin: 14px 0 0; }
.g > .g-act:last-child { margin-bottom: 0; }
.field.is-sel { display: grid; }
.field select { font: 400 1rem/1.3 var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75em .9em; width: 100%; max-width: 26rem; }
.field select:hover { border-color: var(--ink); }
.field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
:root[data-theme="dark"] .field select { color-scheme: dark; }
:root[data-theme="light"] .field select { color-scheme: light; }
.lnk { font: inherit; font-size: .875rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .25em; }
.lnk:hover { color: var(--ink); }

/* Справочная таблица */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.tbl { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .9375rem; line-height: 1.4; }
.tbl th, .tbl td { text-align: left; vertical-align: baseline; padding: .8em 1em .8em 0; border-bottom: 1px solid var(--line); }
.tbl thead th { font-weight: 600; font-size: .875rem; color: var(--muted); }
.tbl tbody th { font-weight: 400; }
.tbl td { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl dd a { white-space: nowrap; }
.tbl.is-text td { white-space: normal; font-weight: 400; }
.tbl.is-text td:last-child { white-space: nowrap; color: var(--muted); font-size: .875rem; }
.tbl.is-terms { min-width: 52rem; }
.tbl.is-terms td:first-child { color: var(--muted); font-size: .875rem; padding-right: .6em; }
.tbl.is-terms td:last-child { white-space: normal; min-width: 9em; }

/* Подробности */
.more { display: grid; gap: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); padding-top: clamp(32px, 5vw, 56px); min-width: 0; }
.cols { display: grid; gap: clamp(28px, 4vw, 56px); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.7em minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: .8em 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.steps li::before { content: counter(s); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.hints { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hints li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: .8em 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.hints b { font-weight: 600; white-space: nowrap; text-align: right; }
.hints small { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }
.fine-note { color: var(--muted); font-size: .875rem; margin: 12px 0 0; max-width: 38em; }
.dl { margin: 0; border-top: 1px solid var(--line); }
.dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: .9em 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 600; font-size: .875rem; }
.dl dd { margin: 0; max-width: 40em; }
.dl ul { margin: .3em 0 0; padding-left: 1.1em; }
.notes { margin-top: 1.4em; }
.notes p { max-width: 42em; color: var(--muted); }
.more h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: .8em; }
.limits { background: var(--soft); border-radius: 18px; padding: clamp(18px, 2.5vw, 26px); max-width: 46em; }
.limits p:last-child { margin: 0; }
.limits b { font-weight: 600; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-t { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 4px; font-size: .9375rem; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.doc .tools { align-items: center; margin-bottom: 12px; }
.doc-ok { font-size: .875rem; color: var(--muted); }

/* Консультация */
.consult { border-top: 1px solid var(--line); }
.consult-in { padding-block: clamp(48px, 8vw, 112px); display: grid; gap: clamp(24px, 4vw, 64px); }
.consult h2 { font: 500 clamp(2rem, 4.4vw, 3.25rem)/1.05 var(--display); letter-spacing: -.032em; margin: 0 0 .4em; }
.consult p { max-width: 32em; color: var(--muted); font-size: 1.125rem; }
.tel { display: inline-block; font: 500 clamp(2rem, 5vw, 3.4rem)/1 var(--display); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; margin: 0 0 .45em; }
.tel:hover { color: var(--accent); }
.c-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.c-acts .btn { padding-inline: 1.5em; }
.who { margin-top: 1.8em; font-size: .9375rem; color: var(--muted); max-width: 30em; }
.who b { color: var(--ink); font-weight: 600; display: block; }

.foot { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.foot p { max-width: 62em; margin: 0 0 .6em; }
.foot-nav a { color: inherit; }
.foot-donate a { color: inherit; }
.donate-act { margin: 1.2em 0; }

/* Нижняя панель на телефоне */
.bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: .8em 1.1em; border-radius: 16px; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); text-decoration: none; font-size: .9375rem; line-height: 1.25; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.bar small { display: block; color: var(--panel-muted); font-size: .875rem; }
.bar b { font-weight: 500; }
.bar span:last-child { white-space: nowrap; border: 1px solid var(--panel-line); border-radius: 10px; padding: .45em .75em; font-size: .875rem; }
/* Отступ внизу больше плашки с подписью в две строки на ширине 320: конец страницы не уходит под плашку. */
body.has-bar { padding-bottom: 7em; }

@media (min-width: 62rem) {
  .calc-main { grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem); grid-template-areas: "pick res" "ctrl res"; }
  .pick { grid-area: pick; }
  .res { grid-area: res; }
  .ctrl { grid-area: ctrl; }
  .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .dl > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 24px; }
  .consult-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  /* На широком экране карточка результата видна рядом с вопросами: плавающая плашка не нужна и закрывала бы текст. */
  .bar { display: none !important; }
  body.has-bar { padding-bottom: 0; }
}
@media (min-width: 62rem) { .res.is-sticky { position: sticky; top: 24px; } }
@media (max-width: 30rem) {
  .top-who { display: none; }
  .part { grid-template-columns: auto minmax(0, 1fr); }
  .part em { grid-column: 2; font-size: .9375rem; white-space: normal; }
  .steps li { grid-template-columns: 1.5em minmax(0, 1fr); }
  .steps b { grid-column: 2; text-align: left; white-space: normal; }
  .hints li { grid-template-columns: minmax(0, 1fr); }
  .hints b { text-align: left; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .mx-col i { transition: none; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .chip, .art, .part, .rowopt, .btn { transition: border-color .15s, background-color .15s, color .15s; } }
/* Навигация по страницам статей */
.crumbs { margin: 0 0 clamp(14px, 2vw, 22px); font-size: .875rem; color: var(--muted); }
.crumbs:empty { display: none; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1em .55em; }
.crumbs li + li::before { content: "/"; margin-right: .55em; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.pick.is-sub h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1; letter-spacing: -.04em; }

/* Справочный блок страницы */
.about { border-top: 1px solid var(--line); }
.about-in { display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(40px, 6vw, 80px); }
.about-in > * { min-width: 0; }
.about h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: .8em; }
.txt { max-width: 44em; }
.rel { color: var(--muted); font-size: .9375rem; margin: 0; }
.alist, .plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.alist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: .8em 0; border-bottom: 1px solid var(--line); }
.alist li > a { font-weight: 500; text-decoration: none; }
.alist li > a:hover { text-decoration: underline; }
.alist span { color: var(--muted); font-size: .9375rem; }
.plist li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: .85em 0; border-bottom: 1px solid var(--line); }
.plist a { font-weight: 600; white-space: nowrap; }
.plist span { font-size: .9375rem; line-height: 1.45; }
.plist b { font-weight: 500; white-space: nowrap; }
.plist small { grid-column: 2 / -1; color: var(--muted); font-size: .875rem; line-height: 1.45; }
/* Части из импорта: название повторяет диспозицию закона и бывает длинным. В списках оно обрезается, полностью стоит в справке о части. */
.part.is-law span, .plist li.is-law > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.part.is-law:has(input:checked) span { -webkit-line-clamp: 8; }
/* Короткая подпись части («погиб 1 человек») крупно, текст закона под ней мельче: на телефоне видно, чем части отличаются. */
.part span.has-lbl, .plist li > span.has-lbl { display: grid; gap: 2px; min-width: 0; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
.part-lbl, .part-law { min-width: 0; overflow-wrap: anywhere; }
/* Длинный срок («от 8 до 20 лет или пожизненно») переносится, а не сужает подпись части. */
.part em { white-space: normal; max-width: 8.5em; text-align: right; }
@media (max-width: 30rem) { .part em { max-width: none; text-align: left; } }
.part-lbl { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1.35; }
.part-law { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.part:has(input:checked) .part-law { -webkit-line-clamp: 8; }
.parts-ask { display: block; font-weight: 400; color: var(--accent); margin-top: 2px; }
.res-empty .res-num { font-size: clamp(1.75rem, 3.6vw, 2.25rem); }
/* Предупреждение: на странице — светлая плашка с текстом основного цвета; в темной карточке расчета — своя, на цвете карточки.
   Раньше текст плашки везде был цвета карточки (#f3f1eb) и на светлой странице почти не читался (1,07:1). */
.res-warn { margin: 12px 0 0; padding: .75em .95em; border-radius: 12px; border-left: 3px solid var(--notice-line); background: var(--notice-bg); color: var(--notice-ink); font-size: .9375rem; line-height: 1.5; }
.res-warn a { color: inherit; font-weight: 600; }
.res .res-warn { border-left-color: var(--p-warn); background: color-mix(in srgb, var(--p-warn) 16%, transparent); color: var(--panel-ink); }
.sister { margin: 0; padding: .85em 1.1em; border: 1px dashed var(--line); border-radius: 14px; font-size: .9375rem; color: var(--muted); max-width: 46em; }
.sister b { color: var(--ink); font-weight: 600; }
.calc.is-empty .ctrl, .calc.is-empty .more:empty { display: none; }
/* Статьи по главам на главной странице */
.chap { border-bottom: 1px solid var(--line); }
.chap:first-of-type { border-top: 1px solid var(--line); }
.chap summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .85em 0; cursor: pointer; font-weight: 500; list-style: none; }
.chap summary::-webkit-details-marker { display: none; }
.chap summary:hover { text-decoration: underline; }
.chap summary span { color: var(--muted); font-weight: 400; font-size: .875rem; font-variant-numeric: tabular-nums; }
.chap[open] summary { font-weight: 600; }
.clist { list-style: none; margin: 0 0 1.2em; padding: 0; columns: 2; column-gap: 40px; }
.clist li { break-inside: avoid; }
.clist a { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 0 10px; padding: .4em 0; text-decoration: none; font-size: .9375rem; line-height: 1.4; }
.clist a:hover { text-decoration: underline; }
.clist b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .clist { columns: 1; } }

/* Судебная статистика: одна серия, один цвет; строки вне пределов расчета приглушены */
.stats { min-width: 0; }
.stats h3, .outs h3, .verd h3 { font: 600 .875rem/1.3 var(--text); margin: 0 0 .7em; }
.bars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(3em, auto); gap: 7px 14px; align-items: baseline; padding: .7em 0 .85em; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.35; }
.bars .n { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .trk { grid-column: 1 / -1; display: block; height: 6px; background: var(--soft); border-radius: 0 3px 3px 0; overflow: hidden; }
.bars .trk i { display: block; height: 100%; background: var(--ink); border-radius: 0 3px 3px 0; }
.bars small { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }
.bars .is-out { color: var(--muted); }
.bars .is-out .trk i { background: var(--muted); opacity: .55; }
.outs { margin-top: clamp(24px, 3vw, 36px); max-width: 40em; }

/* Подборка приговоров */
.verd { min-width: 0; }
.verd h3 { margin-top: 1.6em; }
.vlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; align-items: baseline; padding: .85em 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.vlist b { font-weight: 600; }
.vlist a { font-size: .875rem; white-space: nowrap; }
.vlist span, .vlist small { grid-column: 1; color: var(--muted); font-size: .875rem; }
.vlist .nw { white-space: nowrap; }
.verd .v-note { color: var(--muted); font-size: .875rem; margin: -.3em 0 .8em; max-width: 38em; }
.vmore { margin-top: .9em; }
.vmore summary { cursor: pointer; display: inline-block; font-size: .875rem; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .25em; list-style: none; }
.vmore summary::-webkit-details-marker { display: none; }
.vmore[open] summary { margin-bottom: .9em; }
.dl dd .snote { margin: .5em 0 0; color: var(--muted); font-size: .875rem; }

/* Позиция суда под правилом расчета */
.case { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: .35em; font-weight: 400; }
.steps .case { grid-column: 2 / -1; }

@media (max-width: 30rem) {
  .alist li { grid-template-columns: minmax(0, 1fr); }
  .vlist li { grid-template-columns: minmax(0, 1fr); }
  .vlist a { grid-row: 4; justify-self: start; }
  .plist li { grid-template-columns: minmax(0, 1fr); }
  .plist b { white-space: normal; }
  .plist small { grid-column: 1; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; --panel: #fff; --panel-ink: #000; --panel-muted: #444; --panel-line: #bbb; --dot-a: #000; --dot-b: #777; --dot-c: #ddd; --p-accent: #000; }
  .top-r, .nav, .pick .q, .q-label, .arts, .arts-note, .ctrl, .acts, .toast, .tools, .bar, .c-acts, .theme, .crumbs, .about { display: none !important; }
  .res { border: 1px solid #000; }
  .calc, .calc-main { display: block; }
  .calc > *, .calc-main > * { margin-bottom: 24px; }
}

/* Справочник: словарь и статьи */
.guide { padding-block: clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px); }
.guide h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.032em; }
.g-sec { margin-top: clamp(28px, 4vw, 48px); max-width: 52em; }
.g-sec h2 { margin-bottom: .6em; }
.g-abc { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 1.2em; }
.g-abc a { min-width: 2.2em; text-align: center; padding: .3em .5em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.g-abc a:hover { border-color: var(--ink); }
.gl > div { scroll-margin-top: 16px; }
.gl > div:target { background: var(--soft); border-radius: 12px; padding-inline: .8em; }
.gl dt { font-size: 1.0625rem; }
.gl dd a { white-space: normal; }
.g-arts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-arts a { display: grid; gap: 4px; padding: 1em 1.15em; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.g-arts a:hover { border-color: var(--ink); }
.g-arts b { font-weight: 600; font-size: 1.0625rem; }
.g-arts span { color: var(--muted); }
.g-toc { margin: 0 0 clamp(24px, 3vw, 36px); max-width: 46em; }
.g-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: .3em; }
.g-body { max-width: 46em; }
.g-body section { margin-bottom: clamp(24px, 3vw, 36px); scroll-margin-top: 16px; }
.g-body h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: .6em; }
.g-body ul, .g-body ol { padding-left: 1.2em; }
.g-body li { margin-bottom: .35em; }
.g-body .note { background: var(--soft); border-radius: 14px; padding: .9em 1.1em; }
/* «Что делать»: шаги «Коротко» и переход к соседнему этапу */
.g-body .cd-steps li { margin-bottom: .5em; }
.cd-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: clamp(20px, 3vw, 32px) 0; }
.cd-pager a { overflow-wrap: anywhere; }

/* Практика Верховного Суда */
.vs-form { display: grid; gap: 10px 16px; margin-bottom: 14px; max-width: 64rem; }
@media (min-width: 48rem) { .vs-form { grid-template-columns: 2fr 1fr 1fr; align-items: end; } .vs-form .dk-check { grid-column: 1 / -1; } }
.vs-form input[type="search"], .vs-form select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6em .8em; width: 100%; }
.vs-form .field { display: grid; gap: 4px; } .vs-form .field span { font-size: .875rem; font-weight: 600; }
.vs-count, .vs-found { color: var(--muted); }
.vs-list { display: grid; gap: 12px; max-width: 64rem; }
.vs-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1em 1.2em; }
.vs-item p { margin: 0 0 .5em; } .vs-item p:last-child { margin-bottom: 0; }
.vs-meta { font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.vs-meta small { width: 100%; font-weight: 400; color: var(--muted); font-size: .875rem; }
.vs-res { font-weight: 600; }
.vs-out { display: inline-block; font-size: .875rem; font-weight: 700; border-radius: 999px; padding: .2em .65em; background: var(--soft); color: var(--ink); white-space: nowrap; }
.vs-out.vs-cancel, .vs-out.vs-stop { background: var(--accent); color: var(--accent-ink); }
.vs-out.vs-change { background: var(--notice-bg); color: var(--notice-ink); }
.vs-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; }
.vs-tags a, .vs-tags span { border: 1px solid var(--line); border-radius: 999px; padding: .15em .6em; color: var(--muted); text-decoration: none; }
.vs-tags a { color: var(--ink); }
.vs-src { font-size: .875rem; }
.vs-arts { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-arts a { border: 1px solid var(--line); border-radius: 999px; padding: .3em .8em; text-decoration: none; }
.vs-arts small { color: var(--muted); }
.vs-mini { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; gap: 10px; }
.vs-mini small { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
/* Обзоры практики ВС */
@media (min-width: 48rem) { .ob-form { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ob-form .ob-q { grid-column: 1 / -1; } }
.ob-rule { margin: .2em 0 .7em; padding: .1em 0 .1em .9em; border-left: 3px solid var(--accent); font-style: italic; }
.ob-rule p { margin: 0; }
.ob-k4 { display: inline-block; font-size: .875rem; font-weight: 700; border-radius: 999px; padding: .2em .65em; background: var(--soft); color: var(--ink); border: 1px solid var(--accent); }
.ob-item { scroll-margin-top: 16px; overflow-wrap: anywhere; }
.ob-item:target { border-color: var(--accent); }
.ob-head { background: var(--soft); border-radius: 18px; padding: 1em 1.2em; max-width: 64rem; margin-bottom: 14px; }
.ob-head p { margin: 0 0 .5em; } .ob-head p:last-child { margin-bottom: 0; }
.ob-toc { max-width: 64rem; padding-left: 2.2em; display: grid; gap: 4px; }
.ob-note { max-width: 64rem; }
.ob-law { margin: .3em 0 .7em; padding: .55em .8em; border-radius: 12px; background: var(--notice-bg); color: var(--notice-ink); border-left: 3px solid #c89400; font-size: .9375rem; }
.vs-mini small.ob-law { display: block; margin: 4px 0 2px; padding: .35em .6em; font-size: .875rem; color: #4a3600; }
:root[data-theme="dark"] .ob-law, :root[data-theme="dark"] .vs-mini small.ob-law { background: #3a2f0d; color: #f3dc9a; border-left-color: #ebc069; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-law, :root:not([data-theme="light"]) .vs-mini small.ob-law { background: #3a2f0d; color: #f3dc9a; border-left-color: #ebc069; } }
.ob-rnote { font-weight: 600; }
.ob-revs { max-width: 64rem; }

/* Конструктор документов */
.tp-how { list-style: none; counter-reset: how; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; display: grid; gap: 12px; max-width: 64rem; }
@media (min-width: 48rem) { .tp-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-how li { align-content: start; counter-increment: how; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1em 1.2em 1.2em; display: grid; gap: 4px; }
.tp-how li::before { content: counter(how); display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 6px; }
.tp-how span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.tp-badge { font-style: normal; font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: .15em .6em; vertical-align: .15em; margin-left: .3em; white-space: nowrap; }
.tp-info { max-width: 52em; margin-bottom: clamp(24px, 3vw, 40px); }
.tp-plain { white-space: pre-wrap; }
.ds { display: grid; gap: 10px; justify-items: start; max-width: 52em; margin: 0 0 clamp(28px, 4vw, 48px); padding: 1.1em 1.2em 1.25em; border: 2px solid var(--accent); border-radius: 18px; background: var(--surface); }
.ds h2 { margin: 0; }
.ds-lead { margin: 0; line-height: 1.45; }
.ds-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ds > .dk-hint, .ds-st { margin: 0; }
.ds-st:empty { display: none; }
.ds-mini { border-width: 1px; margin-bottom: clamp(20px, 3vw, 32px); }
.ds-mini summary { cursor: pointer; font-weight: 600; line-height: 1.35; }
.ds-mini[open] summary { margin-bottom: 4px; }
.ds-res { justify-self: stretch; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9375rem; line-height: 1.45; min-width: 0; }
.ds-res:focus { outline: none; }
.ds-res p, .ds-res h3 { margin: 0; }
.ds-h { font-size: 1.0625rem; margin-top: 6px !important; }
.ds-type b { font-size: 1.0625rem; }
.ds-conf { display: inline-block; font-size: .875rem; font-weight: 600; border-radius: 999px; padding: .1em .6em; margin-left: .3em; background: var(--soft); color: var(--ink); }
.ds-conf-high { background: var(--accent); color: var(--accent-ink); }
.ds-conf-low { background: var(--notice-bg); color: var(--notice-ink); }
.ds-res .field select, .ds-res .field input { font-size: 1rem; width: 100%; max-width: 26rem; }
.ds-dl { display: grid; gap: 4px; margin: 0; }
.ds-dl div { display: grid; grid-template-columns: minmax(7em, 12em) minmax(0, 1fr); gap: 10px; }
.ds-dl dt { color: var(--muted); }
.ds-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .ds-dl div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.ds-acts { margin: 0; padding-left: 1.3em; display: grid; gap: 14px; }
.ds-acts li { display: grid; gap: 4px; }
.ds-what { font-size: 1rem; }
.ds-k { color: var(--muted); }
.ds-due { padding: .5em .8em; border-radius: 10px; background: var(--soft); }
.ds-due.is-warn { background: var(--notice-bg); color: var(--notice-ink); }
.ds-prac { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.ds-prac ul { padding-left: 1.1em; margin: 4px 0 0; color: var(--muted); }
.ds-prac small { color: var(--muted); }
.dk-fc { margin: 0; }
.dk-fa { border: 1px solid var(--line); border-radius: 12px; padding: .6em .9em .8em; margin: 0; display: grid; gap: 8px; min-width: 0; }
.dk-fa legend { font-weight: 600; padding: 0 .3em; }
.dk-fa .dk-check { margin: 0; }
.dk { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 66rem) { .dk { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); } .dk-doc { position: sticky; top: 12px; } }
.dk-wiz h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: 12px; }
.dk-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.dk-steps button { font: inherit; font-size: .875rem; display: inline-flex; align-items: center; gap: 6px; padding: .35em .7em .35em .4em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.dk-steps b { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: .875rem; }
.dk-steps button[aria-current] { color: var(--ink); border-color: var(--ink); }
.dk-steps button[aria-current] b { background: var(--ink); color: var(--surface); }
.dk-title { font-size: 1.15rem; margin: 0 0 6px; }
.dk-form { min-height: 8rem; }
.dk-form .g { margin: 0 0 18px; border: 0; padding: 0; }
.dk-form legend, .dk-in > label { font-size: .9375rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.dk-in { display: grid; gap: 4px; margin-bottom: 14px; }
.dk-hint { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.35; margin: 2px 0 4px; }
.dk-req { color: var(--accent); font-weight: 700; }
.dk-form input[type="text"], .dk-form input[type="date"], .dk-form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .65em .8em; width: 100%; }
.dk-form textarea { resize: vertical; line-height: 1.4; }
.dk-form input:focus-visible, .dk-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.dk-group { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.dk-arg { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 6px; }
.dk-arg.is-on { border-color: var(--ink); }
.dk-arg > label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: .7em .9em; cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.dk-arg > label small, .rowopt small { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.dk-arg input[type="checkbox"], .dk-check input { width: 1.1em; height: 1.1em; margin-top: .15em; accent-color: var(--accent); }
.dk-note { display: grid; gap: 4px; padding: 0 .9em .8em; }
.dk-note span { font-size: .875rem; color: var(--muted); }
/* Практика ВС под доводом (src/doc-app.js, pracHtml) */
.dk-prac { margin: 0 .9em .8em; font-size: .875rem; line-height: 1.4; }
.dk-prac > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 2px 0; }
.dk-plist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dk-pi { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; min-width: 0; }
.dk-pi.is-contra { border-left-color: var(--warn); }
.dk-ph { margin: 0; overflow-wrap: anywhere; }
.dk-ph small { display: block; color: var(--muted); font-size: .875rem; }
.dk-pb { display: inline-block; font-size: .875rem; font-weight: 600; padding: 0 .5em; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.dk-pb.is-direct { border-color: var(--accent); color: var(--accent); }
.dk-pq { margin: 4px 0; padding: 0; font-style: italic; overflow-wrap: anywhere; }
.dk-pq .dk-link { font-style: normal; font-size: .875rem; }
.dk-pl { margin: 0; font-size: .875rem; }
.dk-pins { margin: 4px 0 0; font-size: .875rem; }
.dk-contra { margin-top: 10px; }
.dk-contra > p { margin: 0; }
.dk-list { display: grid; gap: 6px; }
.dk-li { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.dk-x { font: inherit; width: 2.6em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; }
.dk-add { margin-top: 8px; }
.dk-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 4px 0 14px; cursor: pointer; font-size: .9375rem; }
.dk-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dk-nav .btn[disabled] { opacity: .4; cursor: default; }
.dk-deadline { margin: 0 0 16px; padding: .8em 1em; border-radius: 12px; background: var(--soft); font-size: .9375rem; line-height: 1.45; }
.dk-deadline.is-warn { background: var(--notice-bg); color: var(--notice-ink); }
.dk-miss { background: var(--soft); border-radius: 12px; padding: .8em 1em; margin-bottom: 12px; }
.dk-miss ul { margin: 4px 0 0; padding-left: 1.1em; }
.dk-ok { color: var(--ok, #1d7a52); font-weight: 600; }
.dk-link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.dk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dk-edited { font-size: .875rem; color: var(--warn); margin: 0 0 8px; }
.dk-paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06); padding: 7% 6% 7% 11%; font: 400 15px/1.45 "Times New Roman", "Liberation Serif", Georgia, serif; max-width: 48rem; min-height: 32rem; overflow-wrap: anywhere; }
.dk-paper[contenteditable="true"] { outline: 2px dashed var(--accent); outline-offset: 4px; }
.dk-paper p { margin: 0; }
.d-to { margin-left: 50% !important; }
.d-gap { height: .9em; }
.d-title { text-align: center; font-weight: 700; margin-top: 1.2em !important; letter-spacing: .02em; }
.d-sub { text-align: center; }
.d-p, .d-num { text-align: justify; text-indent: 2.2em; }
.d-lead { margin-top: .8em !important; }
.d-ask { text-align: center; font-weight: 700; margin: .9em 0 .4em !important; }
.d-sign { display: flex; justify-content: space-between; gap: 1em; margin-top: 2.2em !important; }
.d-break { border: 0; border-top: 1px dashed #bbb; margin: 2em 0; }
.d-v { background: #e9f4ea; border-radius: 2px; }
.d-e { background: #ffe9a6; border-radius: 2px; }
.d-h { background: #fbf3d6; color: #5f5021; font-style: italic; border-radius: 2px; }
.dk-draft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: start; margin-top: 12px; font-size: .875rem; }
.dk-draft .dk-check { margin: 0; font-size: .875rem; }
.dk-jump { display: none; }
/* Заполнить из документа: кнопка, панель найденного */
.dk-fill { display: grid; gap: 6px; justify-items: start; margin: 0 0 16px; }
.dk-fill .dk-hint { margin: 0; }
.dk-fill > p.dk-hint:empty { display: none; }
.dk-found { justify-self: stretch; display: grid; gap: 10px; border: 1px solid var(--ink); border-radius: 12px; background: var(--surface); padding: .9em 1em; font-size: .9375rem; line-height: 1.4; }
.dk-found p { margin: 0; }
.dk-fr { display: grid; gap: 4px; }
.dk-fr .dk-check, .dk-fr-att { margin: 0; }
.dk-found input[type="text"], .dk-found input[type="date"] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55em .8em; width: 100%; min-width: 0; }
.dk-vbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-ocr-bar { width: 100%; height: 8px; accent-color: var(--ink); }
.dk-ocr-warn { padding: .55em .8em; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 600; }
.dk-vbtns .btn { padding: .65em 1.1em; }
/* Подобрать доводы по моей ситуации (src/doc-app.js, sigHtml; перечень признаков — и в «Начать с документа») */
.dk-sig { border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); padding: .7em .9em .9em; margin: 0 0 18px; min-width: 0; }
.dk-sig > summary { cursor: pointer; font-weight: 600; color: var(--accent); line-height: 1.35; }
.dk-sig[open] > summary { margin-bottom: 8px; }
.dk-sig > p { margin: 0 0 10px; }
.dk-sig .dk-vbtns { margin: 4px 0 4px; }
.dk-sig-res { display: grid; gap: 8px; margin-top: 10px; min-width: 0; }
.dk-sig-res:focus { outline: none; }
.dk-sig-res p { margin: 0; }
.dk-sig-k, .dk-sig-h { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 6px 0 0 !important; }
.dk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dk-chips li { font-size: .875rem; line-height: 1.3; padding: .15em .6em; border-radius: 999px; background: var(--soft); color: var(--ink); }
.dk-sig-i { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; padding: .55em .8em; display: grid; gap: 4px; min-width: 0; }
.dk-sig-i.is-strong { border-left-color: var(--accent); }
.dk-sig-i.is-on { border-color: var(--ink); }
.dk-sig-i .dk-check { margin: 0; font-weight: 600; }
.dk-sig-why, .dk-sig-p { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.dk-sig-p { color: var(--muted); }
.dk-sig-p b { color: var(--ink); font-weight: 600; }
.dk-sig-none { padding: .5em .8em; border-radius: 10px; background: var(--soft); }
.ds-res .dk-chips { margin-top: -4px; }
/* Голосовой ввод: кнопка микрофона в поле, подсказки и предупреждение */
.dk-mw { position: relative; }
.dk-form .dk-mw > input, .dk-form .dk-mw > textarea { padding-right: 3em; }
.dk-mic { position: absolute; right: 3px; top: 3px; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.dk-mw > input + .dk-mic { top: 50%; transform: translateY(-50%); }
.dk-mic:hover { color: var(--ink); background: var(--soft); }
.dk-mic:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dk-mic.is-on { color: var(--accent-ink); background: var(--accent); animation: dk-pulse 1.4s ease-in-out infinite; }
@keyframes dk-pulse { 50% { box-shadow: 0 0 0 5px rgba(127,127,127,.25); } }
@media (prefers-reduced-motion: reduce) { .dk-mic.is-on { animation: none; } }
.dk-vs { margin: 4px 0 0; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.dk-vnote { display: grid; gap: 8px; margin-top: 6px; padding: .7em .9em; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: .875rem; line-height: 1.4; }
.dk-vnote p { margin: 0; }
/* Файлы приложений */
.dk-adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dk-adds .dk-add { margin-top: 0; }
.dk-files { list-style: none; display: grid; gap: 6px; margin: 8px 0 4px; padding: 0; }
.dk-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: .3em .3em .3em .8em; border: 1px dashed var(--line); border-radius: 12px; font-size: .875rem; overflow-wrap: anywhere; }
.dk-files small { color: var(--muted); white-space: nowrap; }
.dk-files .dk-x { height: 2.3em; }
@media (max-width: 65.99rem) { .dk-jump.is-on { display: inline-flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; padding: .7em 1.1em; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); } }
@media (max-width: 40rem) { .dk-paper { padding: 22px 16px; font-size: 14px; } .d-to { margin-left: 30% !important; } }
/* «Как подать и что делать дальше» под документом (src/filing.js) и памятка для печати */
.fg { margin-top: clamp(28px, 4vw, 48px); max-width: 52em; min-width: 0; }
.fg h2 { margin-bottom: .6em; }
.fg-steps { list-style: none; counter-reset: fg; margin: 0; padding: 0; display: grid; gap: 10px; }
.fg-steps > li { counter-increment: fg; position: relative; padding: .9em 1em .9em 3.1em; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
.fg-steps > li::before { content: counter(fg); position: absolute; left: .9em; top: .85em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .875rem; font-weight: 600; }
.fg-steps h3 { margin: 0 0 .35em; font-size: 1rem; line-height: 1.35; }
.fg-steps ul { margin: 0; padding-left: 1.1em; display: grid; gap: .35em; font-size: .9375rem; line-height: 1.45; }
.fg-date { color: var(--muted); font-size: .875rem; margin: 12px 0 0; }
@media (max-width: 40rem) { .fg-steps > li { padding: .8em .8em .8em 2.7em; } .fg-steps > li::before { left: .6em; } }
.fg-print { display: none; }
/* Длинная ссылка на расчет в справке шаблона («Расчет сроков проверки и следствия») переносится: на ширине 320 она выходила за экран. */
.tp-info dd > a { white-space: normal; }

@media print {
  @page { size: A4; margin: 20mm 15mm 20mm 30mm; }
  .ds, .dk-wiz, .dk-acts, .dk-draft, .dk-edited, .dk-jump, .tp-info, .toast, .guide > .crumbs, .guide > h1, .guide > .lead, .guide > .fine-note, .consult, .foot, .top, .nav { display: none !important; }
  .dk { display: block; } .dk-paper { border: 0; box-shadow: none; padding: 0; max-width: none; min-height: 0; font-size: 14pt; line-height: 1.3; }
  .d-v, .d-e, .d-h { background: none; font-style: normal; color: #000; }
  .d-break { border: 0; page-break-after: always; break-after: page; margin: 0; }
  .fg { display: none !important; }
  .fg-print { display: block; break-before: page; page-break-before: always; color: #000; font: 12pt/1.3 "Times New Roman", "Liberation Serif", serif; }
  .fg-print a { color: inherit; text-decoration: none; }
  .fg-print-t { text-align: center; font-weight: 700; margin: 0; }
  .fg-print-n { text-align: center; font-style: italic; margin: 0 0 8pt; }
  .fg-print-h { font-weight: 700; margin: 8pt 0 2pt; break-after: avoid; }
  .fg-print ul { margin: 0; padding-left: 1.2em; }
}

/* Справочник размеров наркотиков */
.g-body.is-wide { max-width: 64em; }
.dr-search { display: grid; gap: 10px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); max-width: 40em; }
.dr-search .field { display: grid; gap: 4px; }
.dr-search .field span { font-size: .875rem; font-weight: 600; }
.dr-search input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7em .85em; width: 100%; }
.dr-search input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.dr-pop { margin-top: 12px; }
.dr-chip { font: inherit; font-size: .875rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .35em .8em; cursor: pointer; }
.dr-chip:hover { border-color: var(--ink); }
.dr-verdict:not(:empty) { background: var(--soft); border-radius: 14px; padding: .9em 1.1em; margin: 0 0 1em; max-width: 46em; }
.dr-verdict p { margin: 0 0 .4em; } .dr-verdict p:last-child { margin: 0; }
.dr-tbl tbody tr { cursor: pointer; }
.dr-tbl tbody tr:hover th, .dr-tbl tbody tr:hover td { background: var(--soft); }
.dr-tbl tr.is-on th, .dr-tbl tr.is-on td { background: var(--soft); }
.dr-tbl th small { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; }
.dr-tbl td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .dr-search { grid-template-columns: minmax(0, 1fr); } }
.g-share { display: flex; align-items: center; gap: 12px; margin: -.6em 0 1.6em; }
.g-share .toast { color: var(--muted); font-size: .875rem; }
@media print { .g-share { display: none !important; } }

/* Текст закона */
.law { margin: 0; padding: .9em 1.1em; border-left: 3px solid var(--line); background: var(--soft); border-radius: 0 12px 12px 0; max-width: 46em; }
.law p { margin: 0 0 .5em; } .law p:last-child { margin: 0; }

/* Пленумы ВС */
.pl-tools { max-width: 52em; margin-bottom: 12px; }
.pl-tools .field { display: grid; gap: 4px; max-width: 30em; }
.pl-tools .field span { font-size: .875rem; font-weight: 600; }
.pl-tools input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7em .85em; width: 100%; }
.dr-chip.is-on { background: var(--ink); color: var(--bg, #fff); border-color: var(--ink); }
.pl-list { max-width: 52em; }
.pl-points li { margin-bottom: .6em; }
.pl-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 46em; }
.pl-mini small { display: block; color: var(--muted); font-size: .875rem; }

/* УПК РФ: оглавление, поиск, статья */
.upk-find { max-width: 40em; }
.upk-find .field { display: grid; gap: 4px; }
.upk-find .field span { font-size: .875rem; font-weight: 600; }
.upk-find input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7em .85em; width: 100%; }
.upk-find input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.upk-res { margin: 12px 0 0; }
.upk-part { margin-top: clamp(28px, 4vw, 48px); max-width: 64em; }
.upk-part h2 { margin-bottom: .3em; }
.upk-sec { font-size: 1.0625rem; font-weight: 600; margin: 1.4em 0 .5em; color: var(--muted); }
.upk .clist a, .upk .clist li > span { grid-template-columns: 3.9em minmax(0, 1fr); }
.upk .clist li > span { display: grid; gap: 0 10px; padding: .4em 0; font-size: .9375rem; line-height: 1.4; }
.upk .is-lost, .upk-text .is-lost { color: var(--muted); opacity: .7; }
.chap.is-lost summary { font-weight: 400; color: var(--muted); }
.upk-path { color: var(--muted); font-size: .875rem; margin: -.4em 0 1.4em; max-width: 52em; overflow-wrap: anywhere; }
.upk-text p { margin: 0 0 .7em; overflow-wrap: break-word; }
.upk-text .upk-i { padding-left: 1.2em; }
.upk-text .upk-l { padding-left: 2.4em; }
.upk-text .upk-p { scroll-margin-top: 16px; }
.upk-text .upk-p:target { background: var(--soft); border-radius: 8px; }
.upk-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 46em; margin-top: clamp(20px, 3vw, 32px); }
.upk-pn a { display: grid; gap: 2px; padding: .8em 1em; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-size: .9375rem; overflow-wrap: anywhere; }
.upk-pn a:hover { border-color: var(--ink); }
.upk-pn a[rel="next"] { text-align: right; }
.upk-pn small { color: var(--muted); }
.upk-text + .fine-note, .upk ~ .fine-note { max-width: 46em; }
.tp-law { color: var(--muted); max-width: 46em; }
@media (max-width: 40rem) { .upk-pn { grid-template-columns: minmax(0, 1fr); } .upk-pn a[rel="next"] { text-align: left; } .upk-text .upk-l { padding-left: 1.8em; } }
@media print { .upk-find, .upk-pn, .upk-res { display: none !important; } }

/* Приложение (PWA): кнопка «Установить приложение» (подвал, главная конструктора), подсказка для iOS, плашка обновления */
.pwa-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; cursor: pointer; }
.pwa-btn:hover { color: var(--ink); }
.pwa-hint { display: block; margin-top: .4em; color: var(--ink); }
.pwa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; margin: 28px 0 0; padding: 1em 1.2em; border: 1px solid var(--line); border-radius: 16px; font-size: .9375rem; max-width: 46em; }
.pwa-cta .btn { padding: .6em 1.1em; }
.pwa-cta .pwa-hint { flex-basis: 100%; margin: 0; }
.pwa-upd { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: .7em .8em .7em 1.1em; border-radius: 14px; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-size: .9375rem; }
.pwa-upd button { border: 0; border-radius: 10px; padding: .45em .9em; font: 500 .875rem/1.2 var(--text); cursor: pointer; }
.pwa-upd-go { background: var(--panel-ink); color: #15161a; }
.pwa-upd-x { background: none; color: var(--panel-muted); }
.offline-list { padding-left: 1.2em; }
@media print { .pwa-foot, .pwa-cta, .pwa-upd { display: none !important; } }

/* Поиск по сайту (src/search-ui.js): поле в шапке, панель ответа, страница poisk/.
   Широкий экран: поле в первой строке шапки между «Срок» и логотипом адвоката, занимает свободное место.
   Узкий экран и главная страница (.ss-big): отдельная строка во всю ширину под меню, видна без нажатий. */
.ss { position: relative; display: flex; align-items: center; flex: 1 1 14rem; min-width: 0; max-width: 34rem; }
.ss-l, .ss-st, .ss-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.ss-q { width: 100%; min-width: 0; height: 44px; padding: 0 3em 0 1.1em; border: 1px solid var(--muted); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 .9375rem/1.2 var(--text); text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); -webkit-appearance: none; appearance: none; }
.ss-q::placeholder { color: var(--muted); opacity: 1; }
.ss-q:hover { border-color: var(--ink); }
.ss-q:focus { outline: none; border-color: var(--ink); }
.ss-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ss-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.ss-go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); cursor: pointer; padding: 0; font: 600 .9375rem/1 var(--text); }
.ss-go:hover { filter: brightness(1.15); }
.ss-go svg, .ss-x svg { width: 16px; height: 16px; flex: none; }
.ss-x { display: none; width: 40px; height: 40px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; padding: 0; }
/* Главная: крупная строка поиска в первом экране */
.ss-big { order: 4; flex: 1 0 100%; max-width: none; margin-top: clamp(4px, 1vw, 12px); }
.ss-big .ss-q { height: clamp(52px, 6vw, 60px); padding: 0 7.5em 0 1.3em; border-radius: 18px; border-width: 1.5px; border-color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.1875rem); box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.ss-big .ss-go { right: 6px; height: calc(100% - 12px); padding: 0 1.15em; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.ss-panel { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: min(40rem, calc(100vw - 32px)); max-height: min(78vh, 46rem); overflow: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .16); font: 400 .9375rem/1.45 var(--text); text-align: left; }
.ss-big .ss-panel { width: 100%; }
.ss-panel a, .ss-page a { white-space: normal; font-weight: inherit; }
.ss-panel a:hover { text-decoration: underline; }
.ss-card, .ss-faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; background: var(--bg); }
.ss-kick { margin: 0 0 4px; color: var(--accent); font: 600 .875rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.ss-ct { font: 500 1.25rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 .45em; }
.ss-lead { margin: 0 0 .6em; font-weight: 500; }
.ss-def, .ss-text { margin: 0 0 .6em; color: var(--ink); }
.ss-text { padding-left: .8em; border-left: 2px solid var(--line); color: var(--muted); }
.ss-rows { margin: 0 0 .6em; display: grid; gap: 6px; }
.ss-rows div { display: grid; grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr); gap: 10px; }
.ss-rows dt { color: var(--muted); }
.ss-rows dd { margin: 0; }
.ss-rows .is-hl { margin: 0 -8px; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ss-rows .is-hl dt { color: var(--ink); font-weight: 600; }
.ss-tw { overflow-x: auto; margin: 0 0 .6em; }
.ss-tab { border-collapse: collapse; width: 100%; font-size: .875rem; }
.ss-tab th, .ss-tab td { text-align: left; vertical-align: top; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ss-tab thead th { color: var(--muted); }
.ss-warn { margin: 0 0 .6em; padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--soft); border-radius: 0 8px 8px 0; font-size: .875rem; }
.ss-beta { display: inline-block; margin-left: .4em; padding: 1px 6px; border: 1px solid currentColor; border-radius: 999px; font-size: .875rem; letter-spacing: .04em; vertical-align: 1px; }
.ss-sub { color: var(--muted); font-size: .875rem; margin: 0 0 .4em; }
.ss-note, .ss-src, .ss-disc, .ss-more { color: var(--muted); font-size: .875rem; margin: 0 0 .5em; }
.ss-src a { color: inherit; }
.ss-disc { margin: 0; }
.ss-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: .3em 0 .7em; }
.ss-acts .btn { padding: .65em 1em; border-radius: 12px; font-weight: 600; }
.ss-panel .ss-acts .btn-accent { color: var(--accent-ink); }
.ss-g { margin-bottom: 12px; }
.ss-g h3 { margin: 0 0 4px; color: var(--muted); font: 600 .875rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.ss-g ul { list-style: none; margin: 0; padding: 0; }
.ss-g a { display: block; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; text-decoration: none; }
.ss-g a:hover, .ss-g a:focus-visible { background: var(--soft); text-decoration: none !important; }
.ss-g b { display: block; font-weight: 500; }
.ss-g span { display: block; color: var(--muted); font-size: .875rem; }
.ss-none { color: var(--muted); margin: 0; }
.ss-all { margin: 4px 0 0; font-size: .875rem; }
.ss-all a { font-weight: 600; }
.ss-pf { display: flex; gap: 8px; margin: 0 0 12px; max-width: 46rem; }
.ss-pf input { flex: 1; min-width: 0; height: 48px; padding: 0 1em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.2 var(--text); }
.ss-tips { color: var(--muted); font-size: .875rem; max-width: 46rem; }
.ss-tips a { margin-right: .7em; }
.ss-page .ss-res, .ss-page .ss-card, .ss-page .ss-faq { max-width: 46rem; }
html.ss-lock, html.ss-lock body { overflow: hidden; }
@media (max-width: 61.999rem) {
  /* Строка поиска во всю ширину под меню; 16 px — чтобы телефон не увеличивал страницу при вводе. */
  .ss { order: 4; flex: 1 0 100%; max-width: none; }
  .ss-q { height: 48px; border-radius: 14px; font-size: 1rem; }
  .ss-go { right: 6px; }
  /* Пока поиск открыт поверх страницы, строка в шапке держит свое место: страница под панелью не прыгает. */
  .top:has(> .ss.is-open)::after { content: ""; order: 4; flex: 1 0 100%; height: 48px; }
  .top:has(> .ss-big.is-open)::after { height: clamp(52px, 6vw, 60px); margin-top: clamp(4px, 1vw, 12px); }
  .ss.is-open { position: fixed; z-index: 60; inset: 0 0 auto 0; margin: 0; gap: 8px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .ss.is-open .ss-q { position: static; flex: 1; min-width: 0; width: auto; height: 40px; padding: 0 .95em; border: 1px solid var(--ink); border-radius: 999px; font-size: 1rem; box-shadow: none; }
  .ss.is-open .ss-go { display: none; }
  .ss.is-open .ss-x { display: grid; }
  .ss.is-open .ss-panel { position: fixed; top: 61px; left: 0; right: 0; bottom: 0; width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: 16px; background: var(--bg); }
  .ss.is-open .ss-card, .ss.is-open .ss-faq { background: var(--surface); }
  .ss-rows div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.ss-rows a, .ss-src a { text-decoration: underline; }
/* На телефоне у крупной строки на главной кнопка — только значок: больше места для вопроса. */
@media (max-width: 30rem) {
  .ss-big .ss-q { padding-right: 3.6em; }
  .ss-big .ss-go { width: 40px; padding: 0; }
  .ss-big .ss-go span { display: none; }
}
@media print { .ss, .ss-panel { display: none !important; } }

/* Путеводители по статьям (src/putevoditel.js) и ссылка на них со страниц статей и частей */
.pv-link { margin: 0; }
.pv-link a { display: grid; gap: 4px; max-width: 40em; padding: 1em 1.15em; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.pv-link a:hover { border-color: var(--ink); }
.pv-link b { font-weight: 600; font-size: 1.0625rem; }
.pv-link span { color: var(--muted); }
.g-body .pv-list { list-style: none; padding-left: 0; display: grid; gap: .8em; }
.pv .plist, .pv .vs-mini, .pv .pl-mini { padding-left: 0; }
.g-body .pv-list li { margin: 0; }
.pv-src { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: 3px; }
.pv h3 { margin: 1.3em 0 .5em; }
.pv .vs-mini b { font-weight: 600; }

/* «Поддержать проект» (src/donate.js): кнопка в шапке, блок под документом и калькулятором, страница podderzhat/ с QR-кодом */
.don-ic { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.don-sup { margin-block: clamp(20px, 4vw, 40px); }
.don-sup-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 20px; }
.don-sup p { margin: 0; max-width: 42em; }
.don-sup p span { color: var(--muted); font-size: .9375rem; }
.btn-don { gap: .5em; padding: .7em 1.25em; border: 1.5px solid var(--accent); border-radius: 999px; background: none; color: var(--accent); font-weight: 600; }
.btn-don:hover { background: var(--accent); color: var(--accent-ink); }
/* «Нужна помощь по вашему делу?» (src/consult.js): спокойный блок с контактами, выше «Поддержать проект». Кнопки — контурные, цвета акцента. */
.cta-help { margin-block: clamp(20px, 4vw, 40px) 0; }
.cta-help + .don-sup { margin-top: 12px; }
.cta-help-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 20px; }
.cta-help-t { flex: 1 1 22em; min-width: 0; max-width: 42em; }
.cta-help .cta-help-h { margin: 0 0 .35em; font-size: 1.125rem; line-height: 1.3; }
.cta-help-t p { margin: 0; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.cta-help-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cta-help-acts .btn { flex: 1 1 auto; white-space: normal; }
@media (max-width: 26.99rem) { .cta-help-in { padding: 14px 14px 16px; } .cta-help-acts { flex-direction: column; align-items: stretch; width: 100%; } }
@media print { .cta-help { display: none !important; } }
.don-txt p { max-width: 40em; }
.don-no { font-size: 1.0625rem; }
.don-pay { display: grid; justify-items: center; gap: 14px; max-width: 30rem; margin: clamp(24px, 4vw, 40px) 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.don-qr { margin: 0; display: grid; gap: 14px; justify-items: center; }
.don-qr-svg { display: block; width: min(280px, 100%); height: auto; border-radius: 10px; }
.don-qr figcaption { max-width: 22em; font-size: 1.0625rem; }
.don-go { display: none; margin: 0; }
.btn-big { gap: .55em; padding: 1em 1.5em; font-size: 1.1875rem; font-weight: 600; border-radius: 16px; }
.don-alt, .don-methods { margin: 0; font-size: .9375rem; color: var(--muted); }
.don-alt a { color: inherit; }
.don-gift { font-weight: 500; max-width: 40em; }
@media (max-width: 47.99rem) {
  /* Свой экран телефоном не отсканировать: вместо кода — большая кнопка «Перевести». */
  .don-qr, .don-alt { display: none; }
  .don-pay { justify-items: stretch; max-width: none; }
  .don-go { display: block; }
  .don-go .btn { width: 100%; }
}
@media print { .top-don, .don-sup { display: none !important; } }

/* Переключатель «Уголовные дела | Гражданские дела» (сайт-пара isk-orlikov.ru): в меню, рядом с поиском. */
.lawsw { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; line-height: 1; }
.lawsw a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); padding: 0 1em; border-radius: 999px; white-space: nowrap; transition: color .15s var(--ease), background-color .15s var(--ease); }
.lawsw a:hover { color: var(--ink); }
.lawsw a[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.lawsw-x { margin-left: .28em; }
@media print { .lawsw { display: none !important; } }

/* «Поделиться» (src/share.js): спокойная строка ссылок под расчетом, в конце ответа, инструкции и документа. */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: clamp(18px, 3vw, 28px) 0 0; min-width: 0; }
.calc > .share { margin: 0; }
.share-h { margin: 0; color: var(--muted); font-size: .9375rem; }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; min-width: 0; }
.share .share-b { padding: .6em 1.05em; border-radius: 999px; font-size: .875rem; }
.share .share-b[hidden] { display: none; }
.share-st { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--muted); }
.share-st:empty { display: none; }
@media (max-width: 26.99rem) { .share-acts { width: 100%; } .share .share-b { flex: 1 1 auto; } }
/* Строка об авторе и проверке (src/author.js): перед блоком «Нужна помощь по вашему делу?». */
.byline { margin: clamp(16px, 3vw, 24px) 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; max-width: 46em; overflow-wrap: anywhere; }
.byline a { color: inherit; text-underline-offset: .15em; }
@media print { .share { display: none !important; } }
/* Восстановленный черновик конструктора: строка над шагами с кнопкой «Очистить черновик». */
.dk-restored { margin: 0 0 12px; padding: .6em .85em; border-radius: 12px; background: var(--soft); font-size: .9375rem; }
.dk-restored[hidden] { display: none; }
/* «Подобрать доводы по вашей ситуации» в начале страницы шаблона и строка «Документа под рукой нет?» в «Начать с документа». */
.dk-pick { margin: 0 0 clamp(16px, 3vw, 24px); padding: clamp(14px, 2.4vw, 20px); border: 1.5px solid var(--accent); border-radius: 18px; background: var(--surface); display: grid; gap: 10px; max-width: 46rem; }
.dk-pick h2 { margin: 0; font-size: 1.1875rem; }
.dk-pick .field { margin: 0; }
.dk-pick .field { display: grid; gap: 6px; }
.dk-pick label { font-weight: 600; font-size: .9375rem; }
.dk-pick textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .65em .8em; width: 100%; resize: vertical; line-height: 1.4; box-sizing: border-box; }
.dk-pick textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.dk-pick .dk-vbtns { margin: 0; }
.ds-nodoc { margin: 12px 0 0; font-size: .9375rem; }

/* Ведомственные акты, экспертизы, ДТП (src/vedpages.js): плашка редакции, дословные пункты, предупреждения, ссылки на источник */
.va-badge { margin: 0 0 .6em; padding: .55em .85em; border-radius: 12px; background: var(--soft); font-size: .875rem; line-height: 1.45; max-width: 52em; overflow-wrap: anywhere; }
.va-warn { max-width: 52em; margin: 0 0 1em; }
.va-quotes { display: grid; gap: 12px; }
.va-q { margin: 0; padding: .7em 1em; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; max-width: 46em; overflow-wrap: anywhere; }
.va-q p { margin: 0; }
.va-q q { quotes: none; }
.va-cut { color: var(--muted); }
.va-q footer { margin-top: .4em; color: var(--muted); font-size: .875rem; }
.tp-acts dd a { white-space: normal; }
.va .g-arts { padding-left: 0; }
.va-src, .va-more { margin: .3em 0 .8em; padding-left: 1.1em; overflow-wrap: anywhere; }
.va-src li, .va-more li { margin-bottom: .35em; }
/* Редакционное оформление (25.10.2026): заголовки серифом, больше воздуха, меньше рамок — списки с тонкими линейками и стрелками,
   ровные кнопки, короткие (до 200 мс) отклики на наведение и нажатие, строка текста не длиннее ~68 знаков, текст не мельче 14 px. */
h1 { font: 400 clamp(2.375rem, 1.6rem + 3vw, 4.25rem)/1.06 var(--display); letter-spacing: -.015em; margin: 0 0 .35em; }
h2 { font: 400 clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem)/1.18 var(--display); letter-spacing: -.01em; }
h3 { font-weight: 600; }
.guide h1 { font-size: clamp(2.375rem, 1.6rem + 2.6vw, 4rem); line-height: 1.06; letter-spacing: -.015em; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.55; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); max-width: 34em; }
.res-num, .tel, .consult h2, .promo h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
.mx-col em { font-size: .875rem; white-space: nowrap; height: 1rem; overflow: visible; }
.calc { padding-block: clamp(32px, 6vw, 96px) clamp(56px, 8vw, 120px); }
.guide { padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.g-sec { margin-top: clamp(48px, 6vw, 88px); }
.g-sec h2, .more h2, .about h2 { margin-bottom: .55em; }
.crumbs { margin-bottom: clamp(18px, 2.4vw, 28px); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
/* Текст — не шире ~68 знаков */
.g-body, .g-body p, .g-body li, .about p, .more p, .about :is(ul, ol):not([class]) > li, .more :is(ul, ol):not([class]) > li, .g-sec > p, .consult p, .va-badge, .va-warn, .dk-hint, .fg-steps li, .vs-mini li, .dk-pick p, .h-note { max-width: var(--measure); }
.fine-note { max-width: 40em; }
.vs-list { max-width: 48rem; }
/* Кнопки и поля */
.btn { min-height: 44px; border-radius: var(--radius); font-weight: 600; }
.btn-out { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.q, .art, .part, .chip, .rowopt, .res, .promo-in, .promo-list a, .dk-form input[type="text"], .dk-form input[type="date"], .dk-form textarea { border-radius: var(--radius); }
.ss-q, .vs-form input[type="search"], .vs-form select, .ss-pf input { font-size: max(1rem, 1em); }
.res { border-radius: 22px; }
/* Списки ссылок: линейки и стрелка вместо карточек */
.g-arts { gap: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.g-arts a { position: relative; gap: 3px; padding: 1.05em 2.6em 1.05em 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.g-arts a::after { content: "→"; position: absolute; right: .2em; top: 1em; color: var(--accent); font-size: 1.125rem; transition: transform .15s var(--ease); }
.g-arts a:hover { border-color: var(--line); color: var(--accent); }
.g-arts a:hover::after { transform: translateX(4px); }
.g-arts b { font: 700 1.1875rem/1.3 var(--display); }
.g-arts span { color: var(--muted); line-height: 1.5; }
.g-arts a:hover span { color: var(--muted); }
.vs-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 1.1em 0; }
.vs-list .vs-item:last-child { border-bottom: 1px solid var(--line); }
.promo-sub, .cta-help-in, .don-sup-in { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding-inline: 0; }
.sister { border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: .2em 0 .2em 1em; }
.res-warn { border-radius: 0; border-left-width: 2px; padding: 1em 1.2em; }
.res-warn.va-warn { font-size: 1rem; }
/* Главная: крупная строка поиска под вводным текстом */
main .ss-big { order: 0; flex: none; max-width: 40rem; margin: 0 0 clamp(28px, 4vw, 44px); }
main .ss-big .ss-q { height: 60px; border-radius: var(--radius); border-width: 1.5px; border-color: var(--ink); box-shadow: none; font-size: 1.125rem; }
main .ss-big .ss-go { border-radius: 2px; }
/* Карточка расчета на компьютере компактнее: прилипает к верху экрана рядом с вопросами и помещается в экран 1024×800. */
@media (min-width: 62rem) { .res { padding: 26px 28px; } .res .facts li { padding-block: .45em; } .res .res-top { margin-bottom: 14px; } .res .facts, .res .acts, .res .mx-wrap { margin-top: 18px; } }
/* Нижняя плашка расчета на телефоне — над «домашней» полосой iPhone */
.bar { bottom: calc(10px + env(safe-area-inset-bottom)); }
/* Текст не мельче 14 px */
small { font-size: max(.875rem, 80%); }
.bar small, .bar span:last-child, .vs-out, .ob-k4, .tp-badge, .ds-conf, .dk-steps button, .dk-pb, .dr-tbl th small, .ss-kick, .ss-g h3, .ss-beta, .dk-steps b { font-size: .875rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .promo-list a, .art, .part, .chip, .rowopt, .theme, .lawsw a, .ss-q { transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
  .g-arts a { transition: color .15s var(--ease); }
  .btn:active, .menu-x:active, .theme:active { transform: scale(.98); }
}
/* 25.10.2026: переключатель «Уголовные / Гражданские дела» снова на виду: в шапке на компьютере, на телефоне и планшете — строкой под шапкой (не прилипает). */
.top-in > .lawsw { margin-right: auto; margin-left: clamp(16px, 3vw, 40px); }
.top-in > .lawsw a { min-height: 36px; }
.lawsw-m { display: none; }
@media (max-width: 61.999rem) {
  .top-in > .lawsw { display: none; }
  .lawsw-m { display: block; padding-top: 12px; }
  .lawsw-m .lawsw { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .lawsw-m .lawsw a { justify-content: center; min-height: 40px; }
}
/* Поиск на главной — во всю ширину содержимого, по краям шапки и карточки расчета. */
.calc > .ss-big { order: 0; flex: none; width: 100%; max-width: none; margin: 0; }
.lawsw-m .lawsw { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 24rem) { .lawsw-m .lawsw a { padding-inline: .5em; } .lawsw-m .lawsw-x { display: none; } }
