/* ДОКВІЛЬ — тёплый сервисный справочник.
   Композиция: узкая колонка чтения, закладки-навигация свисают с верхнего края,
   каталог — списки с линейками, без рекламных плиток. */
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/notosans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/notosans-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --bg: #F5F0E9;          /* background */
  --surface: #FFFFFF;     /* surface */
  --text: #243B3A;        /* text */
  --primary: #277B78;     /* primary: кнопки, ссылки на белом */
  --accent: #D48853;      /* accent: точка знака, закладки, линейки */
  --primary-ink: #1F6866; /* тот же тон, затемнён для мелкого текста на фоне --bg (контраст 5.7:1) */
  --muted: #56686A;       /* вторичный текст, 5.2:1 на --bg */
  --rule: #E2D8CB;        /* линейки списков */
  --rule-strong: #CDBFAE;
  --accent-tint: #F6E3D3; /* подложка закладки при наведении */
  --primary-tint: #E4F0EE;
  --warn-bg: #FBEBD9;
  --warn-ink: #7A4512;
  --focus: #A85A24;       /* тёмный вариант акцента для рамки фокуса: 3:1+ на фоне и белом */

  --f-head: "Alegreya", "Georgia", "Times New Roman", serif;
  --f-body: "Noto Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.3125rem; --s-xl: 1.75rem; --s-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --measure: 68ch;
  --wrap: 1160px;
  --radius: 6px;
  --dur: 160ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--s-md); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.site-foot :focus-visible { outline-color: #F0B48A; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
h2 { font-size: var(--s-xl); }
h3 { font-size: var(--s-lg); font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: .6rem 1rem; z-index: 20; }
.skip:focus { top: 12px; }

/* ── Шапка с закладками ───────────────────────── */
.site-head { border-top: 6px solid var(--text); }
.site-head .wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand tabs lang"; align-items: start; gap: 8px 20px; padding-block: 0 .9rem; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: .6rem; padding-top: .9rem; text-decoration: none; color: var(--text); min-height: 44px; }
.brand svg { width: 40px; height: 34px; flex: none; }
.brand b { font-family: var(--f-head); font-size: 1.45rem; font-weight: 700; letter-spacing: .06em; }
.brand:hover { color: var(--text); }
.tabs { grid-area: tabs; justify-self: end; display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.tabs a, .lang a, .lang span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem .5rem;
  font-size: var(--s-sm); font-weight: 600; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, padding var(--dur) ease;
}
.tabs a:hover, .lang a:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--text); padding-bottom: .7rem; }
.tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; padding-bottom: .8rem; }
.lang { grid-area: lang; display: flex; gap: 4px; }
.lang span { background: transparent; border-color: transparent; color: var(--muted); }
.lang a { letter-spacing: .04em; }
@media (max-width: 720px) {
  .site-head .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "tabs tabs"; gap: 0 8px; padding-block: 0 .4rem; }
  .brand { padding-top: .5rem; }
  .tabs { justify-self: stretch; margin-top: .5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .tabs a { justify-content: center; border-top: 1px solid var(--rule); border-radius: var(--radius); padding-inline: .4rem; }
  .tabs a[aria-current="page"] { padding-bottom: .5rem; }
  .tabs a:hover { padding-bottom: .5rem; }
  .lang a, .lang span { padding-inline: .7rem; }
}

/* ── Общие блоки ───────────────────────────────── */
main { display: block; }
.section { padding-block: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.eyebrow { font-size: var(--s-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--s-lg); line-height: 1.5; max-width: 40ch; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: .8em; }
.sec-head { display: grid; gap: .5rem; margin-bottom: 1.6rem; max-width: var(--measure); }
.sec-head p { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem;
  border-radius: var(--radius); border: 2px solid var(--primary); background: var(--primary); color: #fff;
  font: 600 var(--s-md)/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-ink); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--small { min-height: 44px; padding: .5rem .85rem; font-size: var(--s-sm); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.note { font-size: var(--s-sm); color: var(--muted); }
.checked { display: block; font-size: var(--s-sm); color: var(--muted); }
.checked time { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Главная: оффер и каталожная карточка ───────── */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 1.2rem + 4vw, 4.2rem) clamp(2rem, 1.4rem + 2vw, 3rem); }
.hero h1 { font-size: var(--s-2xl); font-weight: 700; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--primary-ink); }
.hero .lead { margin-top: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero .note { margin-top: .9rem; max-width: 52ch; }
.catcard {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 1.2rem 1.3rem 2.6rem; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -22px rgba(36, 59, 58, .45);
  font-size: var(--s-sm); max-width: 440px; justify-self: end; width: 100%;
}
.catcard::after { /* отверстие каталожной карточки */
  content: ""; position: absolute; left: 50%; bottom: .8rem; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(36, 59, 58, .35);
}
.catcard .cc-top { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: .5rem; margin-bottom: .4rem; }
.catcard .cc-top b { font-family: var(--f-head); font-size: 1.15rem; }
.catcard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.catcard dt, .catcard dd { margin: 0; padding: .45rem 0; line-height: 1.4rem; border-bottom: 1px dotted var(--rule-strong); }
.catcard dt { color: var(--muted); padding-right: 1rem; }
.catcard dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .catcard { justify-self: start; } }

/* ── Зміст напрямів (список с отточием) ─────────── */
.toc-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.toc-list > li { border-top: 1px solid var(--rule); padding-block: 1.1rem; }
.toc-list > li:last-child { border-bottom: 1px solid var(--rule); }
.toc-row { display: flex; align-items: baseline; gap: .6rem; }
.toc-row h3 { font-size: var(--s-lg); }
.toc-row .dots { flex: 1; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-.3em); min-width: 1.5rem; }
.toc-row .count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.toc-list p { margin-top: .45rem; max-width: var(--measure); }
.toc-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .55rem; font-size: var(--s-sm); font-weight: 600; }
.toc-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Как пользоваться / шаги ───────────────────── */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.4rem 2.2rem; list-style: none; margin: 0; padding: 0; }
.how li { border-left: 3px solid var(--accent); padding-left: 1rem; }
.how b { display: block; font-family: var(--f-head); font-size: var(--s-lg); font-weight: 500; margin-bottom: .25rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.4rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.3rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary-ink); font-weight: 700; margin-bottom: .6rem; }
.steps b { display: block; font-family: var(--f-head); font-size: var(--s-lg); font-weight: 500; margin-bottom: .3rem; }

/* ── FAQ / раскрытия ───────────────────────────── */
.faq { max-width: 860px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 52px; padding-block: .8rem; font-family: var(--f-head); font-size: var(--s-lg); font-weight: 500; }
.faq summary::-webkit-details-marker, .why summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-size: 1.4rem; color: var(--primary-ink); line-height: 1; transition: transform var(--dur) ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 1.1rem; max-width: var(--measure); }
.faq .ans p + p { margin-top: .6em; }
.reveal { overflow: hidden; }

/* ── Документи: инструкция ─────────────────────── */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.doc-toc { position: sticky; top: 1rem; font-size: var(--s-sm); }
.doc-toc ol { list-style: none; margin: .5rem 0 0; padding: 0; border-left: 2px solid var(--rule-strong); }
.doc-toc a { display: flex; min-height: 44px; align-items: center; padding: .3rem .8rem; text-decoration: none; color: var(--text); border-left: 3px solid transparent; margin-left: -2px; transition: background-color var(--dur) ease, border-color var(--dur) ease; }
.doc-toc a:hover { background: var(--accent-tint); border-left-color: var(--accent); }
.doc-sec { padding-block: 0 2.6rem; }
.doc-sec + .doc-sec { border-top: 1px solid var(--rule); padding-top: 2.4rem; }
.doc-sec > p { max-width: var(--measure); margin-top: .7rem; }
.doc-sec h3 { margin-top: 1.8rem; font-weight: 700; font-size: 1.2rem; }
.doc-list { list-style: none; margin: .9rem 0 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.doc-list > li { padding: .9rem 1.1rem; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .2rem .6rem; }
.doc-list > li + li { border-top: 1px solid var(--rule); }
.doc-list .mark { width: 1.1rem; height: 1.1rem; margin-top: .25rem; border: 2px solid var(--primary); border-radius: 3px; }
.doc-list .name { font-weight: 600; }
.doc-list .who { font-size: var(--s-sm); color: var(--muted); }
.why { grid-column: 2; }
.why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: var(--s-sm); font-weight: 600; color: var(--primary-ink); }
.why summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) ease; margin-right: .15rem; }
.why[open] summary::before { transform: rotate(45deg); }
.why summary:hover { color: var(--text); }
.why .ans { font-size: var(--s-sm); max-width: 62ch; padding: .1rem 0 .4rem; border-left: 2px solid var(--accent); padding-left: .8rem; }
.callout { background: var(--primary-tint); border-radius: var(--radius); padding: 1rem 1.15rem; max-width: var(--measure); margin-top: 1.2rem; font-size: var(--s-sm); }
.callout b { display: block; margin-bottom: .2rem; font-size: var(--s-md); }
.checklist { margin: .8rem 0 0; padding-left: 1.2rem; max-width: var(--measure); }
.checklist li + li { margin-top: .4rem; }
.doc-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.sources { font-size: var(--s-sm); color: var(--muted); max-width: var(--measure); }
.sources li + li { margin-top: .3rem; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { position: static; } }

/* ── Лабораторії: фильтры ──────────────────────── */
.page-title { padding-block: clamp(1.8rem, 1.2rem + 2vw, 2.8rem) 1.2rem; }
.page-title h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.page-title .lead { margin-top: .7rem; max-width: 60ch; font-size: var(--s-md); }
.filters { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1rem; align-items: end; }
.filters label { display: grid; gap: .3rem; font-size: var(--s-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters select, .filters input {
  width: 100%; min-height: 48px; padding: .55rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: 400 var(--s-md)/1.3 var(--f-body); letter-spacing: 0; text-transform: none;
}
.filters select:focus-visible, .filters input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.filter-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; align-items: center; border-top: 1px solid var(--rule); padding-top: .8rem; }
.result-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: .5rem .2rem; min-height: 44px; font: 600 var(--s-sm) var(--f-body); color: var(--primary-ink); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration-color: var(--accent); }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* ── Покажчик областей ─────────────────────────── */
.region-index { columns: 3 150px; column-gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: var(--s-sm); }
.region-index li { break-inside: avoid; display: flex; align-items: baseline; gap: .4rem; }
.region-index a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--text); }
.region-index a:hover { color: var(--primary-ink); text-decoration: underline; }
.region-index .dots { flex: 1; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-.35em); }
.region-index .n { font-variant-numeric: tabular-nums; font-weight: 600; }
.region-index li.is-empty { opacity: .45; }

/* ── Список лабораторий ─────────────────────────── */
.region-group { margin-top: 2.4rem; }
.region-group > h2 { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; font-size: 1.55rem; padding-bottom: .5rem; border-bottom: 2px solid var(--text); }
.region-group > h2 small { font: 600 var(--s-sm) var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.labs { list-style: none; margin: 0; padding: 0; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: .8rem 2rem; padding-block: 1.2rem .9rem; border-bottom: 1px solid var(--rule); }
.lab h3 { font-size: 1.2rem; font-weight: 500; overflow-wrap: anywhere; }
.lab h3 .city { font-weight: 700; }
.lab .addr { margin-top: .45rem; font-size: var(--s-lg); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lab .meta { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: var(--s-sm); color: var(--muted); }
.lab .hours { font-variant-numeric: tabular-nums; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.tags li { font-size: var(--s-xs); font-weight: 600; padding: .25rem .55rem; border-radius: 3px; background: var(--primary-tint); color: var(--primary-ink); }
.tags li.t-gbo { background: var(--accent-tint); color: var(--warn-ink); }
.tags li.t-general { background: transparent; border: 1px dashed var(--rule-strong); color: var(--muted); }
.status { display: inline-block; margin-top: .6rem; font-size: var(--s-sm); font-weight: 600; background: var(--warn-bg); color: var(--warn-ink); padding: .3rem .6rem; border-radius: 3px; }
.contact { display: grid; gap: .5rem; align-content: start; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.phone a.num { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.phone a.num:hover { color: var(--primary-ink); text-decoration: underline; }
.copy { background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius); min-height: 36px; min-width: 44px; padding: .25rem .55rem; font: 600 var(--s-xs) var(--f-body); color: var(--primary-ink); cursor: pointer; }
.copy:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.copy[data-done] { border-color: var(--primary); background: var(--primary-tint); }
.nophone { font-size: var(--s-sm); color: var(--muted); }
.more { margin-top: .35rem; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: var(--s-sm); font-weight: 600; color: var(--primary-ink); }
.more summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) ease; margin-right: .15rem; }
.more[open] summary::before { transform: rotate(45deg); }
.more .ans { font-size: var(--s-sm); max-width: var(--measure); display: grid; gap: .35rem; padding-bottom: .3rem; }
.empty { background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.6rem; }
.empty b { display: block; font-family: var(--f-head); font-size: var(--s-lg); margin-bottom: .3rem; }
.extra { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.extra li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.extra a { font-weight: 600; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .lab { grid-template-columns: 1fr; } }

/* ── Підвал ────────────────────────────────────── */
.site-foot { margin-top: 3rem; background: var(--text); color: #E9EFEE; font-size: var(--s-sm); }
.site-foot .wrap { padding-block: 2.2rem 2.6rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 2.5rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #fff; text-decoration-color: var(--accent); }
.site-foot .brand { color: #fff; padding-top: 0; }
.site-foot p + p { margin-top: .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; min-height: 44px; align-items: center; }
.site-foot .fine { color: #B9C7C5; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ── Движение ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ── Печать памятки ────────────────────────────── */
@media print {
  .site-head .tabs, .lang, .doc-toc, .doc-tools, .site-foot, .skip, .why summary { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .why .ans { display: block !important; border: 0; padding-left: 0; }
  .doc-list { border: 0; }
  a { color: inherit; text-decoration: none; }
}

/* узкие экраны: число направлений под заголовком */
@media (max-width: 560px) {
  .toc-row { flex-wrap: wrap; gap: .2rem .6rem; }
  .toc-row h3 { flex: 1 1 100%; }
  .toc-row .dots { display: none; }
  .toc-row .count { color: var(--primary-ink); font-size: var(--s-sm); }
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.extra li a { display: inline-flex; align-items: center; min-height: 44px; }
.more .ans a { display: inline-flex; align-items: center; min-height: 44px; }
