/* INTERPOLSTOP — направление I «Реестр»
   Один файл стилей на все страницы. Шрифты: Source Serif 4 (чтение), IBM Plex Sans (интерфейс), IBM Plex Mono (нормы, номера, даты).
   В продакшене шрифты хостятся на своём домене (GDPR), здесь — Google Fonts с display=swap. */

:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4D535E;
  --rule: #DADBD5;
  --rule-strong: #B9BBB3;
  --accent: #43369A;
  --accent-ink: #2E2470;
  --accent-tint: #ECEAF6;
  --signal: #B42318;
  --signal-tint: #FBEAE8;
  --frame: #1E1B3A;
  --frame-ink: #F3F2F8;
  --frame-ink-2: #C9C7D6;
  --frame-accent: #B9B0F0;

  /* данные: сине-оранжевая шкала (безопасна при дальтонизме) + штриховка/точки */
  --st-extradites: #B9470F;
  --st-deports: #8F3608;
  --st-case: #EFA56B;
  --st-basis: #F6DDB4;
  --st-rarely: #A3C1E0;
  --st-suspended: #3D6AA3;
  --st-nobasis: #1F3F6B;
  --st-unknown: #E4E4DE;
  --st-na: #2A2D33;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --m: 12rem;          /* поля для норм */
  --t: 41rem;          /* колонка текста ≈ 656 px */
  --gap: 2.5rem;
  --wrap: 84rem;
  --pad: 1rem;
  --bar-h: 0px;
}
@media (min-width: 48em) { :root { --pad: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;          /* 17 / 27 на мобильном */
  line-height: 1.59;
  font-optical-sizing: auto;
  font-size-adjust: from-font;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 64em) { body { font-size: 1.125rem; line-height: 1.6; } }  /* 18 / 29 */
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.frame :focus-visible, .svc :focus-visible, .ft :focus-visible { outline-color: var(--frame-accent); }
::selection { background: var(--accent-tint); color: var(--accent-ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.012em; font-weight: 560; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); line-height: 1.15; letter-spacing: -.006em; }
h3 { font-size: 1.3125rem; line-height: 1.3; }
h4 { font-family: var(--sans); font-size: 1rem; line-height: 1.4; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
li::marker { color: var(--ink-2); }
strong, b { font-weight: 650; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }

/* ---------- skip link ---------- */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); color: var(--accent-ink); font: 600 1rem var(--sans); padding: .75rem 1rem; border: 2px solid var(--accent); }
.skip:focus { top: 1rem; }

/* ---------- обёртки и реестровая сетка ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.reg { display: grid; grid-template-columns: minmax(0, 1fr); }
.reg > * { min-width: 0; }
@media (min-width: 64em) {
  .reg { grid-template-columns: [m] 10rem [t] minmax(0, var(--t)) [a] 0; column-gap: 2rem; }
  .reg > * { grid-column: t; }
  .reg > .mn { grid-column: m; }
  .reg > .wide { grid-column: t / -1; }
  .reg > .full { grid-column: 1 / -1; }
  .reg > .side { grid-column: a; }
}

/* заметка на полях: норма + источник */
.mn { font-family: var(--sans); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); margin: 0 0 .5rem; }
.mn b { font-family: var(--mono); font-weight: 500; color: var(--accent-ink); display: block; margin-bottom: .1rem; }
.mn a { color: var(--ink-2); }
.mn a:hover { color: var(--accent); }
@media (max-width: 63.99em) {
  .mn { border-left: 2px solid var(--accent); padding: .1rem 0 .1rem .6rem; }
  .mn b { display: inline; }
  .mn b::after { content: " "; }
}
@media (min-width: 64em) {
  .mn { text-align: right; padding-top: .3rem; margin: 0; position: relative; }
  .mn::after { content: ""; position: absolute; right: calc(var(--gap) / -2); top: .55rem; width: .5rem; border-top: 1px solid var(--accent); }
  .mn.sec::after { display: none; }
}
.ref { font-family: var(--mono); font-size: .72em; vertical-align: .38em; line-height: 0; text-decoration: none; padding-inline: .08em; }
.ref::before { content: "["; } .ref::after { content: "]"; }

/* ---------- служебная строка (тёмная рамка) ---------- */
.svc { background: var(--frame); color: var(--frame-ink-2); font: 400 .8125rem/1.35 var(--sans); }
.svc__in { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 2.25rem; padding-block: .4rem; }
.svc p { margin: 0; }
.svc a { color: var(--frame-ink); text-decoration: none; }
.svc a:hover { text-decoration: underline; }
.svc__urgent { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; white-space: nowrap; }
.svc__urgent::before { content: ""; width: .5rem; height: .5rem; background: var(--signal); box-shadow: 0 0 0 2px var(--frame), 0 0 0 3px #E5574B; }
.svc__urgent .tel { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 47.99em) { .svc__urgent { display: none; } }

/* ---------- шапка ---------- */
.hd { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.2) blur(6px); }
.hd__in { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 11.5rem; height: auto; }
.brand__who { font: 400 .8125rem/1.3 var(--sans); color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: .9rem; }
.brand__who b { display: block; color: var(--ink); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav li { margin: 0; }
.nav a { display: block; font: 400 .9375rem/1.2 var(--sans); color: var(--ink); text-decoration: none; padding: .55rem .6rem; border-radius: 3px; }
.nav a:hover { background: var(--accent-tint); color: var(--accent-ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.hd__cta { flex: none; }
.menu-btn, .hd__sos { display: none; }
@media (max-width: 99.99em) { .brand__who { display: none; } }
.nav a { white-space: nowrap; }
@media (max-width: 79.99em) { .nav a { padding-inline: .45rem; font-size: .875rem; } .hd__cta { padding-inline: .9rem; } }
@media (max-width: 63.99em) {
  .hd__in { gap: .5rem; min-height: 3.5rem; }
  .brand img { width: 9.5rem; }
  .hd .nav, .hd .hd__cta { display: none; }
  .hd__sos { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font: 500 .875rem/1 var(--sans); color: var(--signal); text-decoration: none; padding: .6rem .5rem; }
  .hd__sos::before { content: ""; width: .45rem; height: .45rem; background: var(--signal); }
  .menu-btn { display: inline-flex; align-items: center; gap: .45rem; font: 500 .9375rem/1 var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule-strong); border-radius: 3px; padding: .6rem .75rem; cursor: pointer; }
  .menu-btn svg { width: 1rem; height: 1rem; }
  .hd .nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--pad) 1rem; box-shadow: 0 12px 24px -16px rgba(21,23,28,.35); }
  .nav.is-open ul { flex-direction: column; }
  .nav.is-open a { font-size: 1.0625rem; padding: .8rem .25rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav.is-open a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .75rem; }
}

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 500 1rem/1.2 var(--sans); text-decoration: none; padding: .8rem 1.2rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer; min-height: 2.875rem; text-align: center; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn--urgent { background: var(--signal); color: #fff; }
.btn--urgent:hover { background: #8F1C13; color: #fff; text-decoration: none; }
.btn--light { background: var(--frame-ink); color: var(--frame); }
.btn--light:hover { background: #fff; color: var(--frame); }
.btn--sm { font-size: .875rem; padding: .5rem .8rem; min-height: 2.5rem; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- общие блоки ---------- */
.sect { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.sect + .sect { border-top: 1px solid var(--rule); }
.sect--tint { background: #F3F3EE; }
.sect--surface { background: var(--surface); }
.sect__head { margin-bottom: 2rem; }
.sect__head p { color: var(--ink-2); max-width: 38rem; margin-top: .75rem; }
.lede { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); line-height: 1.5; color: var(--ink); }
.meta { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
.meta b { color: var(--ink); font-weight: 500; }
.kicker { font: 500 .9375rem/1.3 var(--sans); color: var(--accent-ink); margin-bottom: .75rem; display: block; text-decoration: none; }
a.kicker:hover { text-decoration: underline; }
.crumbs { font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { margin-inline: .35rem; color: var(--rule-strong); }
.placeholder { font-family: var(--mono); font-size: .85em; background: repeating-linear-gradient(135deg, #FFF6D6 0 6px, #FFEFB8 6px 12px); color: #5C4400; padding: .05em .35em; border: 1px dashed #C9A227; border-radius: 2px; white-space: nowrap; }

/* карточка-запись реестра */
.rec { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.25rem 1.25rem 1rem; font-family: var(--sans); }
.rec__title { font: 600 1rem/1.3 var(--sans); margin: 0 0 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.rec__title .mono { font-size: .8125rem; font-weight: 400; color: var(--ink-2); }
.rec dl { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; margin: 0; }
.rec dt, .rec dd { padding: .55rem 0; border-top: 1px solid var(--rule); margin: 0; font-size: .9375rem; line-height: 1.4; }
.rec dt { color: var(--ink-2); padding-right: 1rem; }
.rec dd { color: var(--ink); }
.rec dd .mono { font-size: .875rem; }
@media (max-width: 23em) { .rec dl { grid-template-columns: 1fr; } .rec dd { border-top: 0; padding-top: 0; } }

/* таблица реестра */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.45 var(--sans); }
.tbl caption { text-align: left; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); padding-bottom: .75rem; caption-side: bottom; padding-top: .75rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink); padding: .6rem 1rem .6rem 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.tbl td { padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td .mono, .tbl .norm { font-family: var(--mono); font-size: .8125rem; color: var(--accent-ink); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody th { font-weight: 500; border-bottom: 1px solid var(--rule); padding-top: .8rem; vertical-align: top; }

/* выноска-«коротко» */
.brief { background: var(--accent-tint); color: var(--accent-ink); padding: 1.25rem 1.5rem 1rem; border-left: 4px solid var(--accent); }
.brief h2, .brief h3 { font: 600 1rem/1.3 var(--sans); color: var(--accent-ink); margin-bottom: .6rem; }
.brief ul { margin: 0; padding-left: 1.1em; }
.brief li { margin-bottom: .45em; }
.brief li::marker { color: var(--accent); }

.note { font: 400 .9375rem/1.55 var(--sans); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 1rem; }

/* «чего мы не обещаем» */
.limits { list-style: none; padding: 0; margin: 0; }
.limits li { padding: .85rem 0 .85rem 2rem; border-top: 1px solid var(--rule); position: relative; margin: 0; }
.limits li::before { content: ""; position: absolute; left: .1rem; top: 1.45rem; width: 1rem; border-top: 2px solid var(--ink); }
.limits b { font-family: var(--sans); font-weight: 600; }

/* комментарий адвоката */
.voice { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: start; padding: 1.25rem 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--rule); margin: 1.5rem 0 2rem; }
.voice img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.voice blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.5; font-style: italic; }
.voice figcaption { font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); margin-top: .5rem; }
.voice figcaption b { color: var(--ink); font-weight: 500; }

/* аккордеоны */
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative; font: 600 1.0625rem/1.4 var(--sans); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .35rem; top: 1.35rem; width: .6rem; height: .6rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.qa details > div { padding: 0 0 1rem; }
.qa details > div p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }

/* источники */
.sources { font: 400 .875rem/1.5 var(--sans); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.sources li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem; padding: .55rem 0; border-top: 1px solid var(--rule); margin: 0; }
.sources li > span:first-child { font-family: var(--mono); color: var(--ink-2); font-size: .8125rem; padding-top: .1rem; }
.sources a { word-break: break-word; }
.sources .host { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); margin-left: .35rem; }

/* схема */
.fig { margin: 2rem 0; }
.fig figcaption { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); margin-top: .75rem; }
.fig svg { display: block; width: 100%; height: auto; }
.fig--scroll { overflow-x: auto; }
.fig--scroll svg { min-width: 40rem; }

/* контакты-реестр */
.channels { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.channels li { margin: 0; border-top: 1px solid var(--rule); }
.channels a { display: grid; grid-template-columns: 1.5rem 7.5rem 1fr; gap: .75rem; align-items: baseline; padding: .9rem 0; text-decoration: none; color: var(--ink); }
.channels a:hover .ch-val { color: var(--accent); text-decoration: underline; }
.channels svg { width: 1.25rem; height: 1.25rem; align-self: center; color: var(--accent); }
.channels .ch-name { color: var(--ink-2); font-size: .9375rem; }
.channels .ch-val { font-size: 1.125rem; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .channels a { grid-template-columns: 1.5rem 5.5rem 1fr; gap: .6rem; } .channels .ch-val { font-size: 1rem; } }
.channels .ch-val.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }

/* ---------- футер (тёмная рамка) ---------- */
.ft { background: var(--frame); color: var(--frame-ink-2); font: 400 .9375rem/1.55 var(--sans); padding-block: 3.5rem 2rem; }
.ft a { color: var(--frame-ink); }
.ft h2 { font: 600 .9375rem/1.3 var(--sans); color: var(--frame-ink); margin-bottom: .9rem; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin-bottom: .45rem; }
.ft__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.ft__brand img { width: 12rem; margin-bottom: 1rem; }
.ft__tel { font: 600 1.375rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--frame-ink); text-decoration: none; display: inline-block; margin-bottom: .35rem; }
.ft__reg { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3A3660; display: grid; gap: .5rem; font-size: .875rem; }
.ft__reg p { margin: 0; }
.ft .placeholder { color: #5C4400; }
@media (max-width: 63.99em) { .ft { padding-bottom: 6.5rem; } }

/* ---------- нижняя мобильная панель ---------- */
.mbar { display: none; }
@media (max-width: 63.99em) {
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--frame); padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); gap: .35rem; }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 3.25rem; color: var(--frame-ink); text-decoration: none; font: 500 .8125rem/1.1 var(--sans); border-radius: 3px; }
  .mbar a:first-child { background: var(--accent); }
  .mbar svg { width: 1.25rem; height: 1.25rem; }
  body { padding-bottom: 4.25rem; }
}

/* ---------- иконки ---------- */
.ic { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* ==========================================================
   ГЛАВНАЯ
   ========================================================== */
.hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.5rem; max-width: 36rem; }
.hero .btns { margin-top: 2rem; }
.hero__aside { margin-top: 2.5rem; }
@media (min-width: 64em) {
  .hero .reg { row-gap: 0; }
  .hero__aside { grid-column: a; grid-row: 1 / span 4; margin-top: .5rem; }
}
.hero__mn { color: var(--ink-2); }

.who { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.who img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 2px; }
.who p { margin: 0; font: 400 .9375rem/1.45 var(--sans); color: var(--ink-2); }
.who p b { display: block; font: 600 1.0625rem/1.3 var(--sans); color: var(--ink); margin-bottom: .2rem; }

/* развилка «что случилось» */
.route { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.route li { margin: 0; border-bottom: 1px solid var(--rule); }
.route a { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); position: relative; }
.route .r-sit { font: 600 1.25rem/1.25 var(--serif); }
.route .r-do { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-2); }
.route .r-go { font: 500 .9375rem/1.3 var(--sans); color: var(--accent); }
.route a:hover .r-go { text-decoration: underline; }
.route a:hover { background: linear-gradient(90deg, var(--accent-tint), transparent 70%); }
.route .r-urgent .r-sit::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--signal); margin-right: .6rem; vertical-align: .18em; }
.route .r-urgent .r-go { color: var(--signal); }
@media (min-width: 48em) {
  .route a { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 12rem); gap: 1.5rem; align-items: baseline; padding: 1.15rem .75rem 1.15rem 0; }
  .route .r-go { text-align: right; }
}

/* реестр стран — плитки */
.groups { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; border: 0; }
.groups legend { font: 500 .9375rem/1.3 var(--sans); margin-bottom: .6rem; padding: 0; width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { font: 500 .9375rem/1.2 var(--sans); padding: .6rem .9rem; border: 1px solid var(--rule-strong); border-radius: 3px; cursor: pointer; background: var(--surface); color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.tiles { display: grid; gap: .9rem; margin: 0; }
.tiles__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
@media (min-width: 48em) { .tiles__row { grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: start; } }
.tiles__name { font: 400 .875rem/1.3 var(--sans); color: var(--ink-2); padding-top: .2rem; }
.tiles__name b { color: var(--ink); font-weight: 500; display: block; }
.tiles__set { display: flex; flex-wrap: wrap; gap: 3px; list-style: none; margin: 0; padding: 0; }
.tiles__set li { margin: 0; }
.tile { display: grid; place-items: center; align-content: center; width: 2.75rem; height: 2.75rem; text-decoration: none; font: 500 .8125rem/1 var(--mono); position: relative; color: #fff; background: var(--st-unknown); border-radius: 1px; }
.tile i { font-style: normal; font-family: var(--sans); font-size: .75rem; line-height: 1; margin-top: .2rem; opacity: .95; }
.tile:hover, .tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; text-decoration: none; color: inherit; }
.tile[data-s="extradites"] { background: var(--st-extradites); color: #fff; }
.tile[data-s="deports"] { background: repeating-linear-gradient(135deg, var(--st-extradites) 0 4px, var(--st-deports) 4px 8px); color: #fff; }
.tile[data-s="case_by_case"] { background: var(--st-case); color: var(--ink); }
.tile[data-s="basis_only"] { background: var(--st-basis); color: var(--ink); }
.tile[data-s="rarely"] { background: var(--st-rarely); color: var(--ink); }
.tile[data-s="suspended"] { background: var(--st-suspended); color: #fff; }
.tile[data-s="no_basis"] { background: var(--st-nobasis); color: #fff; }
.tile[data-s="unknown"] { background: radial-gradient(circle at 2px 2px, #A9A9A1 .8px, transparent 1.2px) 0 0 / 5px 5px, var(--st-unknown); color: var(--ink); }
.tile[data-s="na"] { background: repeating-linear-gradient(-45deg, var(--st-na) 0 3px, #4A4E56 3px 5px); color: #fff; }
.tile[data-dim="1"] { opacity: .18; }

.legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .35rem .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); font: 400 .875rem/1.35 var(--sans); }
.legend li { display: flex; align-items: center; gap: .55rem; margin: 0; }
.legend .sw { width: 1.4rem; height: 1.4rem; flex: none; display: grid; place-items: center; font: 500 .75rem/1 var(--sans); border-radius: 1px; }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; padding-left: .5rem; }
button.legend-btn { all: unset; display: flex; align-items: center; gap: .55rem; width: 100%; cursor: pointer; padding: .3rem .4rem; border-radius: 3px; box-sizing: border-box; }
button.legend-btn:hover { background: #EFEFEA; }
button.legend-btn:focus-visible { outline: 3px solid var(--accent); }
button.legend-btn[aria-pressed="true"] { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }

.sw[data-s="extradites"] { background: var(--st-extradites); color: #fff; }
.sw[data-s="deports"] { background: repeating-linear-gradient(135deg, var(--st-extradites) 0 3px, var(--st-deports) 3px 6px); color: #fff; }
.sw[data-s="case_by_case"] { background: var(--st-case); }
.sw[data-s="basis_only"] { background: var(--st-basis); }
.sw[data-s="rarely"] { background: var(--st-rarely); }
.sw[data-s="suspended"] { background: var(--st-suspended); color: #fff; }
.sw[data-s="no_basis"] { background: var(--st-nobasis); color: #fff; }
.sw[data-s="unknown"] { background: radial-gradient(circle at 2px 2px, #A9A9A1 .8px, transparent 1.2px) 0 0 / 5px 5px, var(--st-unknown); }
.sw[data-s="na"] { background: repeating-linear-gradient(-45deg, var(--st-na) 0 3px, #4A4E56 3px 5px); color: #fff; }

.datafoot { font: 400 .875rem/1.55 var(--sans); color: var(--ink-2); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: grid; gap: .35rem; }
.datafoot p { margin: 0; }

/* реестр решений CCF */
.dec { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.dec li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
@media (min-width: 48em) { .dec li { grid-template-columns: 8.5rem minmax(0, 1fr) 10rem; } }
.dec .d-no { font: 500 .875rem/1.4 var(--mono); color: var(--ink); }
.dec .d-no span { display: block; font-family: var(--sans); font-weight: 400; color: var(--ink-2); }
.dec .d-txt { font-size: 1rem; line-height: 1.55; margin: 0; }
.dec .d-iss { font: 400 .8125rem/1.4 var(--sans); color: var(--ink-2); margin-top: .35rem; }
.dec .d-out { font: 500 .875rem/1.3 var(--sans); }
.dec .d-out a { display: block; font-weight: 400; margin-top: .35rem; }
.out { display: inline-flex; align-items: center; gap: .45rem; }
.out::before { content: ""; width: .7rem; height: .7rem; flex: none; }
.out--del::before { background: var(--accent); }
.out--keep::before { background: transparent; border: 1.5px solid var(--ink); width: .6rem; height: .6rem; }
.out--cond::before { background: linear-gradient(135deg, var(--accent) 50%, transparent 50%); border: 1.5px solid var(--accent); width: .6rem; height: .6rem; }
.out--rev::before { background: var(--ink-2); border-radius: 50%; }

.split { display: flex; height: 1.75rem; margin: 1rem 0 .5rem; border: 1px solid var(--ink); }
.split span { display: block; height: 100%; }
.split__lab { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); }
.split__lab b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }

/* услуги и цены */
.price { font: 500 1rem/1.3 var(--sans); white-space: nowrap; }
.svc-tbl td:first-child a { font: 600 1.0625rem/1.35 var(--serif); }

/* две колонки */
.cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* Андрей */
.andrey { display: grid; gap: 2rem; }
@media (min-width: 64em) { .andrey { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.andrey figure { margin: 0; }
.andrey figure img { width: 100%; height: auto; }
.andrey figcaption { font: 400 .8125rem/1.4 var(--sans); color: var(--ink-2); margin-top: .5rem; }
.andrey .first { font-size: 1.25rem; line-height: 1.55; }

/* контактная форма */
.form { display: grid; gap: 1rem; font-family: var(--sans); }
.form label { font: 500 .9375rem/1.3 var(--sans); display: block; margin-bottom: .35rem; }
.form .hint { font: 400 .8125rem/1.4 var(--sans); color: var(--ink-2); display: block; margin-top: .3rem; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .cf-turnstile { min-height: 65px; }
.form-status { margin: 0; padding: .75rem 1rem; border-left: 3px solid var(--rule); font: 500 .9375rem/1.4 var(--sans); }
.form-status.is-ok { border-color: #1DAA61; background: color-mix(in srgb, #1DAA61 8%, transparent); }
.form-status.is-err { border-color: var(--signal); background: color-mix(in srgb, #b3261e 7%, transparent); }
.form input, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); padding: .7rem .8rem; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--surface); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form textarea { min-height: 7rem; resize: vertical; }

/* ==========================================================
   ЭКСТРЕННАЯ
   ========================================================== */
.sos { background: var(--frame); color: var(--frame-ink); padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.sos .crumbs, .sos .crumbs a { color: var(--frame-ink-2); }
.sos h1 { color: var(--frame-ink); max-width: 20ch; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.sos__tel { display: inline-block; font: 600 clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem)/1.05 var(--sans); letter-spacing: -.01em; color: #fff; text-decoration: none; margin: 1.25rem 0 .5rem; font-variant-numeric: tabular-nums; }
.sos__tel:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.sos__hours { font: 400 1rem/1.5 var(--sans); color: var(--frame-ink-2); max-width: 40rem; }
.sos__hours b { color: var(--frame-ink); font-weight: 500; }
.sos .btns { margin-top: 1.5rem; }
.sos .btn--ghost { color: var(--frame-ink); border-color: #5A5680; }
.sos .btn--ghost:hover { border-color: var(--frame-ink); color: #fff; }
.sos__grid { display: grid; gap: 2rem; }
@media (min-width: 64em) { .sos__grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; align-items: end; } }
.fork { display: grid; gap: .5rem; }
.fork a { display: block; padding: 1rem 1.1rem; background: #2A2650; color: var(--frame-ink); text-decoration: none; border-left: 3px solid var(--frame-accent); font: 400 .9375rem/1.4 var(--sans); }
.fork a b { display: block; font: 600 1.125rem/1.3 var(--serif); color: #fff; margin-bottom: .15rem; }
.fork a:hover { background: #332E60; }

.rules { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); margin: 0; }
.rules li::before { content: counter(r); font: 500 1.5rem/1.1 var(--mono); color: var(--accent); }
.rules h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.rules p { margin: 0; }

.phr { border: 1px solid var(--rule); background: var(--surface); }
.phr__tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.phr__tabs button { font: 500 .9375rem/1 var(--sans); padding: .85rem 1rem; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--ink-2); margin-bottom: -1px; }
.phr__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.phr__panel { padding: 1.25rem 1.25rem 1rem; }
.phr__panel p { font: 500 1.25rem/1.45 var(--sans); margin: 0 0 .6rem; }
.phr__panel p:last-of-type { color: var(--ink-2); font-weight: 400; font-size: 1.0625rem; }
.phr__foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-top: 1px solid var(--rule); font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); }
dialog.show { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: clamp(1.5rem, 4vw, 4rem); background: #fff; color: #000; }
dialog.show::backdrop { background: #000; }
dialog.show p { font: 600 clamp(1.75rem, 1rem + 3.5vw, 3.5rem)/1.25 var(--sans); margin: 0 0 1.25em; }
dialog.show .lang { font: 400 1rem/1.4 var(--sans); color: #444; margin-bottom: 2rem; display: block; }

.checks { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: 2.5rem; }
.checks li { break-inside: avoid; padding: .55rem 0 .55rem 1.9rem; position: relative; border-top: 1px solid var(--rule); margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: .9rem; height: .9rem; border: 1.5px solid var(--ink); }
.checks li.first3::before { background: var(--accent); border-color: var(--accent); }

.say { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.say h3 { font: 600 1rem/1.3 var(--sans); padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: .25rem; }
.say ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 1rem; }
.say li { padding: .55rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.say--no h3 { border-bottom-color: var(--signal); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3rem; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center; font: 500 .9375rem/1 var(--mono); border: 1.5px solid var(--accent); color: var(--accent); background: var(--paper); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 1rem; top: 2rem; bottom: 0; border-left: 1.5px solid var(--rule-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; font-family: var(--sans); margin-bottom: .25rem; padding-top: .2rem; }
.steps p { margin: 0; }

/* ==========================================================
   УСЛУГА
   ========================================================== */
.pagehead { padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.pagehead h1 { max-width: 18ch; }
.pagehead .lede { margin-top: 1.25rem; }
.pagehead .btns { margin-top: 1.75rem; }
@media (min-width: 64em) { .pagehead .rec { grid-column: a; grid-row: 1 / span 5; align-self: start; } }
.pagehead .rec { margin-top: 2rem; }
@media (min-width: 64em) { .pagehead .rec { margin-top: .25rem; } }

.key { font-size: 1.1875rem; line-height: 1.55; border-left: 4px solid var(--ink); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 2rem; }
.grounds td:first-child { font-weight: 500; }
.track { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1rem 0 2rem; }
.track > div { background: var(--surface); padding: 1.1rem 1.1rem 1rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
.track h3 { font: 600 1.0625rem/1.3 var(--serif); margin-bottom: .4rem; }
.track .when { display: block; font: 400 .8125rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: .5rem; }

/* ==========================================================
   ГИД ПО СТРАНЕ
   ========================================================== */
.keys { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); counter-reset: k; margin: 1.5rem 0 2rem; }
@media (min-width: 56em) { .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.keys > div { padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--rule); background: var(--surface); position: relative; font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 56em) { .keys > div + div { border-left: 0; } .keys > div:not(:last-child)::after { content: ""; position: absolute; right: -.55rem; top: 1.6rem; width: 1rem; height: 1rem; background: var(--paper); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); z-index: 1; } }
@media (max-width: 55.99em) { .keys > div + div { border-top: 0; } }
.keys .k-who { font: 600 1.1875rem/1.25 var(--serif); margin: .25rem 0 .2rem; }
.keys .k-n { font: 500 .8125rem/1 var(--mono); color: var(--accent); }
.keys .k-law { font: 400 .8125rem/1.3 var(--mono); color: var(--ink-2); margin-bottom: .75rem; display: block; }
.keys ul { margin: 0; padding-left: 1.1em; }
.keys li { margin-bottom: .4em; }

.clock { list-style: none; padding: 0; margin: 1rem 0 2rem; border-top: 2px solid var(--ink); }
.clock li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.clock .t { font: 500 1rem/1.4 var(--mono); color: var(--accent-ink); }
.clock h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: .2rem; }
.clock p { margin: 0; font-size: 1rem; line-height: 1.55; }
.clock .art { font: 400 .8125rem/1.4 var(--mono); color: var(--ink-2); display: block; margin-top: .25rem; }

.tri { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1rem 0 2rem; }
.tri > div { border-top: 3px solid var(--ink); padding-top: .9rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
.tri > div.opt { border-top-color: var(--accent); }
.tri > div.gov { border-top-color: var(--rule-strong); border-top-style: dashed; }
.tri h3 { font: 600 1.0625rem/1.3 var(--sans); margin-bottom: .15rem; }
.tri .art { font: 400 .8125rem/1.3 var(--mono); color: var(--ink-2); display: block; margin-bottom: .6rem; }
.tri ul { padding-left: 1.1em; }

.chrono { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.chrono li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); margin: 0; }
.chrono .y { font: 500 1rem/1.4 var(--mono); }
.chrono .y span { display: block; font: 400 .75rem/1.3 var(--sans); color: var(--ink-2); margin-top: .2rem; }
.chrono h3 { font-size: 1.125rem; margin-bottom: .3rem; }
.chrono p { margin: 0 0 .4rem; }
.caveat { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); border-left: 2px solid var(--rule-strong); padding-left: .75rem; }

.status4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: .25rem; }
.status4 a, .status4 div { background: var(--surface); padding: .55rem .65rem; text-decoration: none; color: var(--ink); font: 400 .8125rem/1.35 var(--sans); display: flex; gap: .5rem; align-items: center; }
.status4 .sw { width: 1rem; height: 1rem; }
.status4 small { display: block; color: var(--ink-2); font-size: .75rem; }

/* ==========================================================
   КАРТА ВЫДАЧИ
   ========================================================== */
.tool { padding-block: 2rem 3rem; }
.tool__bar { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 64em) { .tool__bar { grid-template-columns: minmax(0, 1fr) 18rem; align-items: end; } }
.search label { font: 500 .9375rem/1.3 var(--sans); display: block; margin-bottom: .5rem; }
.search input { width: 100%; font: 400 1rem/1.3 var(--sans); padding: .7rem .8rem; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--surface); }
.views { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin: 1.25rem 0 1rem; }
.tabs { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 3px; overflow: hidden; }
.tabs button { font: 500 .9375rem/1 var(--sans); padding: .7rem 1rem; background: var(--surface); border: 0; cursor: pointer; color: var(--ink); }
.tabs button + button { border-left: 1px solid var(--rule-strong); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mapbox { display: grid; gap: 1.5rem; }
@media (min-width: 64em) { .mapbox { grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; } }
.map { background: var(--paper); border: 1px solid var(--rule); position: relative; }
.map svg { display: block; width: 100%; height: auto; }
.map .land path { stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; }
.map .land path.o { fill: #ECECE6; }
.map .land path.c { fill: #DCDCD5; cursor: pointer; }
.map .land path.c:hover, .map .marks circle:hover { stroke: var(--ink); stroke-width: 1.5; }
.map .land path.sel, .map .marks circle.sel { stroke: var(--ink); stroke-width: 2.2; }
.map .marks circle { stroke: #fff; stroke-width: 1.2; cursor: pointer; }
.map .dim { opacity: .2; }
.map__tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font: 500 .8125rem/1.3 var(--sans); padding: .35rem .55rem; border-radius: 2px; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; z-index: 3; }
.map__cap { font: 400 .8125rem/1.5 var(--sans); color: var(--ink-2); padding: .65rem .9rem; border-top: 1px solid var(--rule); background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.25rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 64em) { .card { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow: auto; } }
.card h2 { font: 600 1.5rem/1.2 var(--serif); margin-bottom: .25rem; }
.card .c-iso { font: 400 .8125rem/1 var(--mono); color: var(--ink-2); }
.card .c-status { display: flex; align-items: center; gap: .6rem; font: 600 1.0625rem/1.3 var(--sans); margin: 1rem 0 .5rem; }
.card .c-status .sw { width: 1.5rem; height: 1.5rem; }
.card h3 { font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); margin: 1.1rem 0 .3rem; }
.card p { margin: 0 0 .5rem; }
.card .flag { display: block; font-size: .8125rem; background: var(--accent-tint); color: var(--accent-ink); padding: .4rem .6rem; margin: .5rem 0; }
.card .flag--dep { background: #FBE9DD; color: #6E2A07; }
.card ol { padding-left: 1.4em; margin: 0; font-size: .8125rem; }
.card ol li { margin-bottom: .3rem; }
.card .facts { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: .8125rem; }
.card .facts dt, .card .facts dd { margin: 0; padding: .35rem 0; border-top: 1px solid var(--rule); }
.card .facts dd { text-align: right; font-weight: 500; }
.card__empty { color: var(--ink-2); }
.card__close { display: none; }

.list { margin-top: 2.5rem; }
.ctable { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.4 var(--sans); }
.ctable caption { text-align: left; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); padding-bottom: .75rem; }
.ctable th { text-align: left; font-weight: 600; padding: .55rem .75rem .55rem 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.ctable td, .ctable tbody th { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 400; }
.ctable tbody th button { all: unset; cursor: pointer; font-weight: 500; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.ctable tbody th button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctable tr.sel { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.ctable tr.sel th { padding-left: .6rem; }
.ctable .st { display: inline-flex; align-items: center; gap: .45rem; }
.ctable .st .sw { width: 1rem; height: 1rem; }
.ctable .col-on { background: rgba(67, 54, 154, .04); }
.ctable .r-h td { font: 600 .8125rem/1.3 var(--sans); color: var(--ink-2); padding-top: 1.25rem; border-bottom: 1px solid var(--ink); }
.ctable .g-link { font-family: var(--mono); font-size: .75rem; margin-left: .35rem; }
@media (max-width: 47.99em) {
  .ctable .opt { display: none; }
}
.hidden-row { display: none; }
.empty { font: 400 1rem/1.5 var(--sans); padding: 1rem 0; color: var(--ink-2); }

@media (max-width: 63.99em) {
  .card.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 78vh; overflow: auto; border-radius: 6px 6px 0 0; box-shadow: 0 -12px 32px rgba(21,23,28,.25); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .card.is-sheet .card__close { display: inline-flex; float: right; }
  .card:not(.is-sheet) { display: none; }
}

.rules6 { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rules6 li { counter-increment: r; padding: 1rem 0 1rem 2.25rem; border-top: 1px solid var(--rule); position: relative; margin: 0; }
.rules6 li::before { content: counter(r); position: absolute; left: 0; top: 1.05rem; font: 500 1rem/1.4 var(--mono); color: var(--accent); }
.rules6 h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: .3rem; }
.rules6 p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* ==========================================================
   ЛОНГРИД
   ========================================================== */
.art-head { padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) 2rem; }
.art-head h1 { max-width: 20ch; font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); }
.art-head .lede { margin-top: 1.25rem; }
.byline { display: flex; gap: .9rem; align-items: center; margin-top: 1.75rem; font: 400 .875rem/1.45 var(--sans); color: var(--ink-2); flex-wrap: wrap; }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); font-weight: 500; }
.byline dl { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin: 0; }
.byline dl div { display: flex; gap: .35rem; }
.byline dt { color: var(--ink-2); }
.byline dd { margin: 0; color: var(--ink); font-family: var(--mono); font-size: .8125rem; padding-top: .05rem; }

.toc { font-family: var(--sans); font-size: .875rem; line-height: 1.4; }
.toc h2 { font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); scroll-target-group: auto; }
.toc li { margin: 0; }
.toc a { display: block; padding: .38rem 0 .38rem .9rem; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a:is(:target-current, .is-current) { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
@media (min-width: 64em) {
  .art .side.toc { grid-row: 1 / span 200; align-self: start; position: sticky; top: 5.5rem; }
}
@media (max-width: 63.99em) {
  .toc { border: 1px solid var(--rule); background: var(--surface); margin: 0 0 2rem; }
  .toc details summary { padding: .85rem 1rem; font: 600 .9375rem/1.3 var(--sans); cursor: pointer; }
  .toc ol { border-left: 0; padding: 0 1rem 1rem; }
  .toc a { border-left: 0; padding-left: 0; }
}
.art h2 { margin: 3rem 0 1rem; scroll-margin-top: 5.5rem; }
.art h3 { margin: 1.75rem 0 .6rem; }
.art .mn.sec { font-size: 1rem; color: var(--accent); padding-top: 3.4rem; }
@media (max-width: 63.99em) { .art .mn.sec { display: none; } }
.art .mn + h2 { margin-top: 3rem; }
.mid-cta { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; margin: 2rem 0; display: grid; gap: 1rem; font-family: var(--sans); }
@media (min-width: 40em) { .mid-cta { grid-template-columns: 1fr auto; align-items: center; } }
.mid-cta p { margin: 0; font-size: 1rem; line-height: 1.5; }
.mid-cta b { display: block; font-size: 1.0625rem; margin-bottom: .2rem; }
.stat3 { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 1.5rem 0; }
.stat3 > div { background: var(--surface); padding: 1rem; font: 400 .875rem/1.45 var(--sans); color: var(--ink-2); }
.stat3 b { display: block; font: 500 1.75rem/1.1 var(--mono); color: var(--ink); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.dos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 1rem 0 2rem; }
.dos h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.dos .no h3 { border-bottom-color: var(--rule-strong); }
.dos ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
.dos li { padding: .55rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.author { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 3rem 0 2rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.55; }
.author img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 50%; }
.author b { font: 600 1.125rem/1.3 var(--serif); display: block; margin-bottom: .25rem; }

/* ---------- вывод для печати ---------- */
@media print {
  .svc, .hd, .mbar, .ft, .btns, .mid-cta { display: none !important; }
  body { background: #fff; }
}

/* правила первых часов и права — отдельные строки реестра, чтобы норма стояла на полях */
.rule { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.rule .rn { font: 500 1.5rem/1.1 var(--mono); color: var(--accent); }
.rule h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.rule p { margin: 0; }
.right { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.right h3 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: .3rem; }
.right p { margin: 0; }
@media (min-width: 64em) { .reg > .mn + .rule, .reg > .mn + .right { border-top-color: var(--accent); } .reg > .mn { border-top: 1px solid transparent; } }
@media (min-width: 64em) {
  .reg > .mn:has(+ .rule), .reg > .mn:has(+ .right), .reg > .mn:has(+ .steprow) { padding-top: 1.45rem; }
  .reg > .mn:has(+ .rule)::after, .reg > .mn:has(+ .right)::after, .reg > .mn:has(+ .steprow)::after { top: 1.7rem; }
}
.steprow { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.steprow .rn { width: 2rem; height: 2rem; display: grid; place-items: center; font: 500 .9375rem/1 var(--mono); border: 1.5px solid var(--accent); color: var(--accent); }
.steprow h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.steprow p { margin: 0 0 .5rem; }
.steprow .out-list { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); margin-top: .5rem; }

@media (max-width: 39.99em) { .sos .btns .btn, .hero .btns .btn, .pagehead .btns .btn { flex: 1 1 100%; } }
[hidden] { display: none !important; }
.toc summary { list-style: none; font: 600 .875rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: .6rem; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
@media (max-width: 63.99em) { .toc summary { margin: 0; color: var(--ink); } .toc summary::after { content: " ▾"; } }
.tabs .ic { width: 1.1rem; height: 1.1rem; vertical-align: -.2em; margin-right: .25rem; }
@media (min-width: 64em) { .pagehead .side { grid-column: a; grid-row: 1 / span 6; align-self: start; } }
.brief li { font: 400 .9375rem/1.5 var(--sans); }
.map__cap { margin: 0; }
.ctable .sw { font-size: .625rem; }
.art .brief h2 { margin: 0 0 .6rem; }

/* три колонки (поля, текст, сторона) — только с 80em; между 64 и 80em сторона уходит под текст */
@media (min-width: 80em) {
  .reg { grid-template-columns: [m] var(--m) [t] minmax(0, var(--t)) [a] minmax(0, 1fr); column-gap: var(--gap); }
}
@media (min-width: 64em) and (max-width: 79.99em) {
  .reg > .side, .reg > .wide, .hero .hero__aside, .pagehead .rec, .pagehead .side { grid-column: t / span 1; }
  .hero .hero__aside, .pagehead .rec, .pagehead .side { grid-row: auto; margin-top: 2rem; }
  .art .side.toc { grid-row: auto; position: static; margin-bottom: 2rem; }
  .hd .hd__cta { display: none; }
  .mn::after { right: -1rem; }
}
@media (max-width: 24.99em) {
  .brand img { width: 8.25rem; }
  .menu-btn { padding: .55rem .55rem; }
  .hd__sos { padding-inline: .3rem; font-size: .8125rem; }
}
.cols > *, .andrey > *, .say > *, .dd > * { min-width: 0; }
h1 { hyphens: manual; overflow-wrap: normal; }
@media (max-width: 29.99em) { h1 { font-size: 1.875rem; } .sos h1 { font-size: 1.75rem; } }
.groups legend { margin-top: .75rem; }
@media (max-width: 47.99em) {
  .svc-tbl thead { display: none; }
  .svc-tbl, .svc-tbl tbody, .svc-tbl tr, .svc-tbl td { display: block; }
  .svc-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .svc-tbl td { border: 0; padding: 0; }
  .svc-tbl td:nth-child(2), .svc-tbl td:nth-child(3) { grid-column: 1 / -1; }
  .svc-tbl td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .svc-tbl caption { display: block; }
}
#card-h:focus { outline: none; }
.hero h1 { max-width: 18ch; }
.deccard { font: 400 .875rem/1.5 var(--sans); border-top: 2px solid var(--accent); padding: .9rem 0 1rem; margin: 1rem 0; color: var(--ink); }
.deccard p { margin: 0 0 .5rem; }
.deccard .dc-k { color: var(--accent-ink); font-weight: 500; }
.deccard .dc-no { color: var(--ink-2); }
.deccard .dc-no .mono { color: var(--ink); font-weight: 500; margin-right: .35rem; }
@media (min-width: 80em) { .reg > .deccard { grid-row: span 3; align-self: start; margin-top: 1.1rem; } }
.deccard .st { display:inline-flex; gap:.45rem; align-items:center; } .deccard .sw { width:1.1rem; height:1.1rem; font-size:.625rem; display:inline-grid; place-items:center; }
.strip { display: grid; gap: .5rem; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-family: var(--sans); max-width: 41rem; }
.strip__lab { font: 500 .9375rem/1.3 var(--sans); }
.strip:hover .strip__lab { color: var(--accent); text-decoration: underline; }
.strip__bar { display: flex; flex-wrap: wrap; gap: 2px; }
.strip__bar i { width: calc((100% - 68 * 2px) / 69); min-width: 4px; aspect-ratio: 1 / 2.4; background: var(--st-unknown); }
.strip__bar i[data-s="extradites"] { background: var(--st-extradites); }
.strip__bar i[data-s="deports"] { background: repeating-linear-gradient(135deg, var(--st-extradites) 0 2px, #F4CFB2 2px 4px); }
.strip__bar i[data-s="case_by_case"] { background: var(--st-case); }
.strip__bar i[data-s="basis_only"] { background: var(--st-basis); }
.strip__bar i[data-s="rarely"] { background: var(--st-rarely); }
.strip__bar i[data-s="suspended"] { background: var(--st-suspended); }
.strip__bar i[data-s="no_basis"] { background: var(--st-nobasis); }
.strip__bar i[data-s="unknown"] { background: #D5D5CE; }
.strip__bar i[data-s="na"] { background: var(--st-na); }
.strip__sum { font: 400 .8125rem/1.45 var(--sans); color: var(--ink-2); }
@media (max-width: 47.99em) { .strip__bar { gap: 1px; } .strip__bar i { width: calc((100% - 22 * 1px) / 23); aspect-ratio: 1 / 1.2; } }
.note { max-width: 46rem; } .datafoot { max-width: 52rem; }
.reg > h2 { margin-bottom: 1.25rem; }

/* =====================================================================
   ФУНДАМЕНТ САЙТА (поверх системы «Реестр»): шапка с подменю, полоса справочника,
   библиотека компонентов для страниц. Каталог: /_build/COMPONENTS.html
   ===================================================================== */

/* --- хлебные крошки (nav > ol) --- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); margin-right: .4rem; }
.crumbs [aria-current] { color: var(--ink); }
.sos .crumbs [aria-current] { color: var(--frame-ink); }

/* --- шапка: подменю услуг, язык --- */
.nav > ul > li { position: relative; display: flex; align-items: center; }
.sub-btn { background: none; border: 0; padding: .45rem .2rem; margin-left: -.35rem; cursor: pointer; color: var(--ink-2); border-radius: 3px; }
.sub-btn .ic { width: 1rem; height: 1rem; transition: transform .15s; }
.sub-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sub-btn:hover { color: var(--accent); }
.subnav { position: absolute; top: calc(100% + .5rem); left: 0; z-index: 40; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: 0 16px 32px -20px rgba(21,23,28,.4); padding: .75rem; width: 34rem; }
.nav .subnav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
.subnav a { font-size: .9375rem; }
.nav .subnav__all { border-top: 1px solid var(--rule); margin-top: .5rem; padding-top: .7rem; color: var(--accent); font-weight: 500; }
.lang { font: 500 .875rem/1 var(--sans); color: var(--ink); text-decoration: none; border: 1px solid var(--rule-strong); border-radius: 3px; padding: .5rem .55rem; flex: none; }
.lang:hover { border-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sub-btn .ic { transition: none; } }
@media (max-width: 63.99em) {
  .hd .lang { margin-left: auto; }
  .hd .hd__sos { margin-left: 0; }
  .hd .nav.is-open .subnav { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .hd .nav.is-open .subnav ul { grid-template-columns: 1fr; }
  .hd .nav.is-open > ul > li { flex-wrap: wrap; }
  .hd .nav.is-open > ul > li > a { flex: 1; }
  .hd .nav.is-open .sub-btn { padding: .8rem .6rem; margin: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .hd .nav.is-open .subnav { flex-basis: 100%; }
}

/* --- полоса справочника --- */
.refbar { background: var(--surface); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.refbar__in { display: flex; align-items: center; gap: 1rem; min-height: 3rem; }
.refbar nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.refbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.refbar li { margin: 0; }
.refbar nav a { display: block; white-space: nowrap; font-size: .875rem; color: var(--ink-2); text-decoration: none; padding: .55rem .55rem; }
.refbar nav a:hover { color: var(--accent-ink); }
.refbar__search { display: flex; flex: none; width: 17rem; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper); }
.refbar__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 .875rem/1.2 var(--sans); padding: .5rem .6rem; color: var(--ink); }
.refbar__search input:focus { outline: none; }
.refbar__search:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.refbar__search button { border: 0; background: none; padding: 0 .55rem; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.refbar__search .ic { width: 1.1rem; height: 1.1rem; }
@media (max-width: 47.99em) {
  .refbar__in { flex-direction: column; align-items: stretch; gap: .25rem; padding-block: .4rem; }
  .refbar__search { width: 100%; }
  .refbar nav { order: 2; }
}

/* --- шапки страниц по типу --- */
.pagehead--legal h1, .pagehead--hub h1 { max-width: 24ch; }
.pagehead--legal { padding-bottom: 2rem; }
.pagehead--article h1 { max-width: 20ch; }
.kindline { font: 500 .9375rem/1.3 var(--sans); color: var(--accent-ink); margin: 0 0 .6rem; }
.kindline a { color: inherit; }
.byline-line { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); margin: 1rem 0 0; }
.byline-line time { color: var(--ink); }
.checked { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
.checked b { color: var(--ink); font-weight: 500; }

/* --- выноски --- */
.callout { font: 400 1rem/1.55 var(--sans); padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 4px solid var(--ink-2); background: var(--surface); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.callout > :last-child { margin-bottom: 0; }
.callout__t { font-weight: 600; display: block; margin-bottom: .3rem; }
.callout--note { border-left-color: var(--accent); background: var(--accent-tint); border-color: transparent; border-left-color: var(--accent); color: var(--accent-ink); }
.callout--warn { border-left-color: #8A6100; background: #FFF8E1; border-color: transparent; border-left-color: #8A6100; color: #3D2B00; }
.callout--urgent { border-left-color: var(--signal); background: var(--signal-tint); border-color: transparent; border-left-color: var(--signal); color: #5C110B; }
.callout--urgent a { color: #7F1810; font-weight: 600; }

/* --- цитата нормы --- */
.normq { margin: 1.5rem 0; padding: 1rem 0 1rem 1.25rem; border-left: 2px solid var(--accent); }
.normq blockquote { margin: 0; font-style: italic; font-size: 1.0625rem; line-height: 1.6; }
.normq blockquote p:last-child { margin-bottom: 0; }
.normq figcaption { font: 400 .8125rem/1.4 var(--sans); color: var(--ink-2); margin-top: .5rem; }
.normq figcaption b { font-family: var(--mono); font-weight: 500; color: var(--accent-ink); }

/* --- сноски --- */
.fnref { font: 500 .72em/0 var(--mono); vertical-align: .38em; text-decoration: none; }
.footnotes { font: 400 .875rem/1.55 var(--sans); color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; }
.footnotes ol { padding-left: 1.4em; margin: 0; }
.footnotes li:target { background: var(--accent-tint); }

/* --- связанные материалы --- */
.related { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); font-family: var(--sans); }
.related li { margin: 0; border-bottom: 1px solid var(--rule); }
.related a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .85rem 0; text-decoration: none; color: var(--ink); }
.related b { font: 600 1.0625rem/1.35 var(--serif); }
.related a:hover b { color: var(--accent); text-decoration: underline; }
.related span { font-size: .8125rem; color: var(--ink-2); }
.related p { grid-column: 1 / -1; margin: 0; font-size: .9375rem; color: var(--ink-2); }

/* --- карточка услуги (липкая сбоку на широких экранах) --- */
.svc-card { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 1.1rem 1.2rem; font: 400 .9375rem/1.5 var(--sans); margin: 1.5rem 0; }
.svc-card__k { font-size: .8125rem; color: var(--accent-ink); font-weight: 500; margin: 0 0 .35rem; }
.svc-card h2, .svc-card h3 { font: 600 1.1875rem/1.3 var(--serif); margin: 0 0 .5rem; }
.svc-card p { margin: 0 0 .75rem; }
.svc-card .price { display: block; margin-bottom: .9rem; }
.svc-card .btn { width: 100%; }
@media (min-width: 80em) { .reg:not(.art) > .svc-card { grid-row: 1 / span 60; align-self: start; position: sticky; top: 6rem; margin-top: 0; } }

/* --- карточка страны --- */
.country-card dl { grid-template-columns: minmax(8rem, auto) 1fr; }
.country-card .status4 { margin-top: .75rem; }

/* --- глоссарий --- */
.gloss { margin: 0; border-top: 2px solid var(--ink); }
.gloss > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem 2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 48em) { .gloss > div { grid-template-columns: 14rem minmax(0, 1fr); } }
.gloss dt { font: 600 1rem/1.4 var(--sans); }
.gloss dt small { display: block; font-weight: 400; color: var(--ink-2); }
.gloss dd { margin: 0; font-size: 1rem; line-height: 1.55; }
.gloss dd p:last-child { margin-bottom: 0; }

/* --- таблица сравнения --- */
.tbl.compare th[scope="col"]:not(:empty) { width: 40%; }
.tbl.compare thead th:empty, .tbl.compare thead td:empty { width: 20%; }
.tbl.compare tbody th { width: 20%; color: var(--ink-2); font-weight: 500; }

/* --- таблица цен --- */
.price-tbl td:first-child b { display: block; font: 600 1.0625rem/1.35 var(--serif); }
.price-tbl td:first-child span { font-size: .875rem; color: var(--ink-2); }

/* --- контакт-блок --- */
.contact { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.contact .form .form__ok { display: none; }

/* --- оглавление справочника: записи с отточиями и датами --- */
.toc-home { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.tocsec { display: grid; gap: 1rem 2.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 7rem; }
@media (min-width: 64em) { .tocsec { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } }
.tocsec__head h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.tocsec__head p { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-2); margin: 0 0 .4rem; }
.tocsec__n { font-size: .8125rem !important; }
.entries { list-style: none; padding: 0; margin: 0; font-family: var(--sans); }
.entry { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; margin: 0; font-size: 1rem; line-height: 1.4; }
.entry > a, .entry > span:first-child { flex: 0 1 auto; min-width: 0; }
.entry > a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.entry > a:hover { color: var(--accent); text-decoration-color: currentColor; }
.entry__kind { flex: none; font-size: .8125rem; color: var(--ink-2); }
.entry__lead { flex: 1 1 1rem; min-width: 1rem; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-.25em); }
.entry time, .entry__pend { flex: none; font: 400 .8125rem/1 var(--mono); color: var(--ink-2); }
.entry.is-pending > span:first-child { color: var(--ink-2); }
.entry--svc > a { color: var(--accent-ink); font-weight: 500; }
@media (max-width: 39.99em) { .entry { flex-wrap: wrap; } .entry__lead { display: none; } .entry time, .entry__pend { margin-left: auto; } }
.entries__more summary { cursor: pointer; font: 500 .9375rem/1.4 var(--sans); color: var(--accent); padding: .5rem 0; }

/* --- журнал изменений --- */
.changes { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); font-family: var(--sans); }
.changes li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.changes time { font: 500 .875rem/1.5 var(--mono); }
.changes a { font-weight: 600; color: var(--ink); }
.changes p { margin: .2rem 0 0; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }

/* --- поиск по справочнику --- */
.qsearch { margin-top: 2rem; max-width: 41rem; }
.qsearch label { font: 500 .9375rem/1.3 var(--sans); display: block; margin-bottom: .5rem; }
.qsearch__box { display: flex; border: 2px solid var(--ink); border-radius: 3px; background: var(--surface); }
.qsearch__box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.qsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.125rem/1.3 var(--sans); padding: .85rem 1rem; color: var(--ink); }
.qsearch input:focus { outline: none; }
.qsearch__box .ic { width: 1.4rem; height: 1.4rem; align-self: center; margin-left: .9rem; color: var(--ink-2); }
.qsearch__hint { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); margin: .6rem 0 0; }
.qsearch__hint button { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.qsearch__hint button:focus-visible { outline: 3px solid var(--accent); }
.qres { list-style: none; padding: 0; margin: 1rem 0 0; font-family: var(--sans); }
.qres li { margin: 0; border-top: 1px solid var(--rule); }
.qres a { display: block; padding: .85rem .5rem; text-decoration: none; color: var(--ink); }
.qres a:hover, .qres a:focus-visible { background: var(--accent-tint); }
.qres b { display: block; font: 600 1.0625rem/1.35 var(--serif); color: var(--accent-ink); }
.qres span { display: block; font-size: .9375rem; line-height: 1.5; color: var(--ink); margin-top: .15rem; }
.qres .where { font-size: .8125rem; color: var(--ink-2); }
.qstatus { font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); margin: .75rem 0 0; min-height: 1.4em; }

/* --- «Если это происходит сейчас» --- */
.now { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--signal); padding: 1.1rem 1.25rem; font-family: var(--sans); }
.now h2 { font: 600 1.0625rem/1.3 var(--sans); margin-bottom: .6rem; display: flex; align-items: center; gap: .55rem; }
.now h2::before { content: ""; width: .55rem; height: .55rem; background: var(--signal); flex: none; }
.now ul { list-style: none; padding: 0; margin: 0; }
.now li { margin: 0; border-top: 1px solid var(--rule); }
.now a { display: block; padding: .65rem 0; text-decoration: none; color: var(--ink); font-size: .9375rem; line-height: 1.4; }
.now a b { display: block; font-weight: 600; }
.now a:hover b { color: var(--accent); text-decoration: underline; }
.now li:first-child a b { color: var(--signal); }
.now .tel { font-weight: 600; font-variant-numeric: tabular-nums; }

/* --- инструменты справочника --- */
.tools { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.tool-card { background: var(--surface); padding: 1.4rem 1.4rem 1.25rem; display: grid; gap: .75rem; align-content: start; font-family: var(--sans); }
.tool-card h3 { font: 600 1.3125rem/1.25 var(--serif); margin: 0; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.tool-card p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.tool-card .strip { margin-top: 0; border-top: 0; padding-top: 0; }
.tool-card .split { margin: .25rem 0 0; }

/* --- «Как устроен справочник» --- */
.how4 { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); font-family: var(--sans); }
.how4 h3 { font: 600 1rem/1.3 var(--sans); padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: .5rem; }
.how4 p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }

/* --- «Нашли ошибку?» --- */
.found-error { border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 2.5rem; font: 400 .9375rem/1.55 var(--sans); color: var(--ink-2); max-width: 46rem; }
.found-error h2 { font: 600 1rem/1.3 var(--sans); color: var(--ink); margin: 0 0 .35rem; }
.found-error p { margin: 0; }

/* --- предупреждение о мошенниках --- */
.fraud { font: 400 .9375rem/1.55 var(--sans); border: 1px solid var(--rule-strong); padding: .9rem 1.1rem; background: var(--surface); }
.fraud b { font-weight: 600; }

/* --- каталог компонентов --- */
.demo { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.demo__t { font-size: 1.5rem; margin-bottom: .5rem; }
.demo__rule { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-2); max-width: 46rem; margin-bottom: 1.25rem; }
.demo__live { border: 1px dashed var(--rule-strong); padding: clamp(1rem, 3vw, 2rem); background: var(--paper); }
.demo__code { margin-top: .75rem; }
.demo__code summary { cursor: pointer; font: 500 .875rem/1.4 var(--sans); color: var(--accent); }
.demo__code pre { overflow-x: auto; background: #F1F1EC; border: 1px solid var(--rule); padding: 1rem; font: 400 .8125rem/1.5 var(--mono); white-space: pre; tab-size: 2; }
.demo__live > .reg { max-width: none; }
.cat-nav { columns: 3 14rem; font: 400 .9375rem/1.6 var(--sans); margin: 0; padding-left: 1.2em; }

/* --- 404 --- */
.notfound { padding-block: 5rem; }
.pagehead--hub h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); max-width: 22ch; }
.pagehead--hub .lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.pagehead--hub .qsearch { margin-top: 1.5rem; }
.nav__lang { display: none !important; }
@media (max-width: 63.99em) {
  .hd .lang { display: none; }
  .hd .hd__sos { margin-left: auto; }
  .hd .nav.is-open .nav__lang { display: flex !important; }
}

/* Выравнивание по ширине для текстов (решение владельца 19.10.2026). :where() — нулевая специфичность, явные правила выравнивания (.mn, .num, кнопки) сильнее. */
:where(main, .ft__reg) :where(p, li, dd, blockquote, figcaption, .qa details > div) { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
:where(.rec, .tbl, .ctable, .sources, .entries, nav, .crumbs, .btns) :where(p, li, dd) { text-align: start; hyphens: manual; }
:where(main, .ft__reg) :where(h1, h2, h3, h4, h5, h6, summary) { text-align: start; -webkit-hyphens: manual; hyphens: manual; }
/* Телефоны и узкие планшеты: по левому краю и без переносов — ровные пробелы, слова целиком. */
@media (max-width: 47.99em) { :where(main, .ft__reg) :where(p, li, dd, blockquote, figcaption, .qa details > div) { text-align: start; -webkit-hyphens: manual; hyphens: manual; } }

/* Мессенджеры в футере и на панели телефона (октябрь 2026): ссылки в цветах сайта, фирменный цвет — только у значка; звонок последним */
.ft-mlist { margin-bottom: .75rem; }
.ft-mlist .ft-m { display: inline-flex; align-items: center; gap: .5rem; min-height: 24px; }
.ft-m .ic { width: 1.05rem; height: 1.05rem; }
.ft-m--tg .ic { color: #6CB4EE; } .ft-m--wa .ic { color: #4FD18B; } .ft-m--sig .ic { color: #8EB0F7; } .ft-m--thr .ic { color: #3CC46A; }
.mbar .mbar--tg .ic { color: #9FD0F5; } .mbar .mbar--wa .ic { color: #4FD18B; }
.ft__grid li a { display: inline-block; min-height: 24px; padding-block: 2px; }
.sub-btn { min-width: 24px; min-height: 24px; }
.ft__ch { display: inline-flex; align-items: center; gap: .5rem; min-height: 24px; font-weight: 600; }
.ft__ch .ic { width: 1.05rem; height: 1.05rem; color: #6CB4EE; }
