/* ВІЗЕРО — «Бирюзовый горизонтальный ритм».
   Раскладка: полосы на всю ширину, внутри — строки с тонкими разделителями;
   слева метка-рубрика, справа содержание. Адрес и телефон — самые крупные элементы строки. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyr-lat.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-cyr-lat.woff") format("woff"); font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #EFF5F4;          /* background */
  --surface: #FFFFFF;     /* surface */
  --ink: #203C40;         /* text */
  --primary: #177D86;     /* primary: кнопки, крупные элементы */
  --primary-ink: #136A72; /* тот же тон, затемнён для мелкого текста на фоне (5.3:1) */
  --accent: #E0BA58;      /* accent */
  --accent-soft: #F6E9C4; /* подсветка скопированной строки */
  --plane: #E3EEEC;       /* едва заметная цветовая плоскость */
  --muted: #4E666A;
  --rule: #C6DAD7;
  --f-head: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; --step-3: 2rem;
  --step-4: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  --addr: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --wrap: 76rem;
  --fast: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol, dl { margin: 0; }
a { color: var(--primary-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; color: #fff; }

/* Полосы и обёртка */
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band > .wrap { max-width: var(--wrap); margin-inline: auto; padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.band--plane { background: var(--plane); }
.band--surface { background: var(--surface); }
.band--tight > .wrap { padding-block: 1.5rem; }

/* Секция: метка слева, содержание справа */
.sect { display: grid; gap: 1.25rem 3rem; }
@media (min-width: 60rem) { .sect { grid-template-columns: 15rem minmax(0, 1fr); } }
@media (min-width: 60rem) { .sect--stack { grid-template-columns: minmax(0, 1fr); } }
.page-head > .wrap { padding-block: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.page-head__body { display: grid; gap: 0.9rem; max-width: 52rem; }
.sect__head { display: grid; gap: 0.75rem; align-content: start; }
.sect__body { min-width: 0; display: grid; gap: 1.5rem; }
.eyebrow { font-family: var(--f-body); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.lead { font-size: var(--step-1); max-width: 40em; }
.prose { max-width: 40em; display: grid; gap: 0.9rem; }

/* Шапка */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-head .wrap { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 0.75rem 1.5rem; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 40px; height: 24px; }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.06em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 3px solid transparent; transition: border-color var(--fast), color var(--fast); }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary-ink); }
.lang { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; font-weight: 700; font-size: var(--step--1); letter-spacing: 0.06em; text-decoration: none; border-radius: 999px; }
.lang span { background: var(--ink); color: #fff; }
.lang a { color: var(--ink); }
.lang a:hover { background: var(--plane); }
@media (max-width: 40rem) {
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav ul { justify-content: space-between; }
  .nav a { padding: 0 0.4rem; font-size: 0.95rem; }
  .lang { margin-left: auto; }
}

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.25rem; font-family: var(--f-head); font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 6px; border: 2px solid var(--primary); cursor: pointer; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-ink); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* Оффер */
.hero .wrap { display: grid; gap: 1.75rem; }
.hero h1 { max-width: 14ch; }
.hero__text { display: grid; gap: 0.9rem; max-width: 44rem; }
.hero__lead { font-size: var(--step-1); }
.hero__cta { display: grid; gap: 0.4rem; }
.hero__hint { font-size: var(--step--1); color: var(--muted); }
.figures { display: flex; flex-wrap: wrap; gap: 0; border-top: 2px solid var(--ink); margin-top: 0.5rem; }
.figures div { flex: 1 1 10rem; padding: 0.9rem 1rem 0 0; display: grid; }
.figures div + div { border-left: 1px solid var(--rule); padding-left: 1rem; }
.figures b { font-family: var(--f-head); font-size: var(--step-3); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.figures span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 30rem) { .figures div + div { border-left: 0; padding-left: 0; } .figures div { border-top: 1px solid var(--rule); } .figures div:first-child { border-top: 0; } }

/* Ряды направлений — широкие горизонтальные строки */
.rows { display: grid; border-top: 2px solid var(--ink); }
.row { display: grid; gap: 0.75rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 52rem) { .row--dir { grid-template-columns: 9rem minmax(0, 1fr) 13rem; } }
.row__fig img { width: 9rem; height: auto; display: block; }
.row__main { display: grid; gap: 0.4rem; min-width: 0; }
.row__main p { max-width: 42em; }
.row__side { display: grid; gap: 0.35rem; justify-items: start; }
.row__side a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.count { font-family: var(--f-head); font-weight: 800; font-size: var(--step-2); font-variant-numeric: tabular-nums; }

/* Шаги — реальная последовательность, поэтому нумерация */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.25rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-head); font-weight: 800; font-size: var(--step-1); color: var(--primary-ink); font-variant-numeric: tabular-nums; grid-row: span 2; }
.steps b { font-family: var(--f-head); font-weight: 700; }
@media (min-width: 60rem) { .steps--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; gap: 1rem; } .steps--wide li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); align-content: start; } .steps--wide li::before { grid-row: auto; } }

/* Две колонки «здесь / в лаборатории» */
.split { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { background: var(--surface); padding: 1.25rem 1.5rem; border-top: 4px solid var(--primary); display: grid; gap: 0.75rem; align-content: start; }
.split > div:last-child { border-top-color: var(--accent); }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.7rem; height: 2px; background: var(--primary); }

/* Переходы */
.links { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .links { grid-template-columns: 1fr 1fr; } }
.link-row { display: grid; gap: 0.3rem; padding: 1.25rem 0; border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.link-row b { font-family: var(--f-head); font-size: var(--step-2); font-weight: 750; color: var(--primary-ink); }
.link-row b::after { content: " →"; }
.link-row:hover b { text-decoration: underline; text-underline-offset: 0.2em; }

/* Страница «Як це працює» */
.toc ol { padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.toc a { font-weight: 600; }
.doc-block { display: grid; gap: 1rem; padding-block: 1.25rem; border-top: 2px solid var(--ink); }
.doc-lists { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 48rem) { .doc-lists { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.doc-lists h4 { font-family: var(--f-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.5rem; }
.note { background: var(--accent-soft); padding: 0.75rem 1rem; border-left: 4px solid var(--accent); max-width: 44em; }
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-family: var(--f-head); font-weight: 700; font-size: var(--step-1); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1 1 auto; min-width: 0; }
.faq summary::after { content: "+"; flex: 0 0 1.25rem; text-align: center; font-size: 1.5rem; line-height: 1; color: var(--primary-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 1.1rem; max-width: 44em; }
.sources { display: grid; gap: 0.5rem; padding-left: 1.25rem; }

/* Каталог */
.filters { display: grid; gap: 1rem; background: var(--surface); padding: 1.25rem; border-top: 4px solid var(--primary); }
.filters__grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .filters__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0.5rem 0.75rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #9DB9B6; border-radius: 6px; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid #9DB9B6; border-radius: 999px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.filters__foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; }
.result-count { font-family: var(--f-head); font-weight: 700; font-variant-numeric: tabular-nums; }

.labs { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.lab { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.75rem 2rem; transition: background-color 500ms ease-out; }
@media (min-width: 56rem) { .lab { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; } }
.lab.is-copied { background: var(--accent-soft); }
.lab__main { min-width: 0; display: grid; gap: 0.5rem; }
.lab__title { display: grid; gap: 0.15rem; font-weight: 700; }
.lab__kind { font-family: var(--f-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.lab__city { font-family: var(--f-head); font-size: var(--step-1); font-weight: 800; }
.lab__addr { font-family: var(--f-head); font-size: var(--addr); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -0.01em; }
.lab__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; font-size: var(--step--1); color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 0.1rem 0.55rem; border-radius: 4px; background: var(--plane); color: var(--ink); font-weight: 600; }
.tag--gbo { background: var(--accent-soft); }
.status { font-weight: 700; color: var(--ink); background: var(--accent-soft); padding: 0.15rem 0.55rem; border-left: 3px solid var(--accent); }
.lab__act { display: grid; gap: 0.5rem; justify-items: stretch; }
.call { display: grid; gap: 0; padding: 0.55rem 1rem; min-height: 56px; align-content: center; border-radius: 6px; background: var(--primary); color: #fff; text-decoration: none; transition: background-color var(--fast); }
.call:hover { background: var(--primary-ink); color: #fff; }
.call small { font-size: var(--step--1); font-weight: 600; opacity: 0.9; }
.call b { font-family: var(--f-head); font-size: var(--step-1); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nophone { padding: 0.75rem 1rem; border: 1px dashed #9DB9B6; border-radius: 6px; color: var(--muted); font-weight: 600; }
.copy { min-height: 44px; padding: 0.4rem 0.9rem; font: inherit; font-weight: 600; color: var(--primary-ink); background: transparent; border: 1px solid #9DB9B6; border-radius: 6px; cursor: pointer; transition: background-color var(--fast); }
.copy:hover { background: var(--surface); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.copy-status { font-size: var(--step--1); color: var(--primary-ink); font-weight: 600; }
.copy-status:empty { display: none; }
.lab details { grid-column: 1 / -1; }
.lab summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--primary-ink); }
.lab dl { display: grid; gap: 0.5rem 1.5rem; padding: 0.75rem 0 0.25rem; }
@media (min-width: 40rem) { .lab dl { grid-template-columns: 8rem minmax(0, 1fr); } }
.lab dt { color: var(--muted); font-weight: 600; }
.lab dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lab dd ul { list-style: none; padding: 0; display: grid; gap: 0.2rem; }
.empty { padding: 1.5rem; background: var(--surface); border-left: 4px solid var(--accent); display: grid; gap: 0.75rem; justify-items: start; }

/* Подвал */
.site-foot { background: var(--ink); color: #E7F0EF; }
.site-foot a { color: #FFFFFF; }
.site-foot .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.site-foot .brand { color: #fff; }
.site-foot p { max-width: 40em; font-size: var(--step--1); }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
.site-foot ul a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-grid { display: grid; gap: 0.75rem; align-content: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
