/* ==========================================================================
   e-narkolog.ru — дизайн-система (см. docs/DESIGN_SYSTEM.md)
   Mobile First, от 320 px. Без внешних зависимостей.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  /* Цвет: бирюзовый бренда (#1AD2BE) затемнён до AA-контраста для интерактивных элементов */
  --c-brand: #1ad2be;          /* только декоративные акценты */
  --c-primary: #0b7d72;        /* кнопки, ссылки — 5.01:1 на белом */
  --c-primary-hover: #086359;
  --c-primary-50: #e8f7f5;
  --c-primary-100: #cdeeea;
  --c-navy: #0d2338;           /* заголовки — 15.97:1 */
  --c-text: #1f3346;           /* основной текст — 12.96:1 */
  --c-muted: #4f6274;          /* вторичный текст — 6.3:1 */
  --c-blue-50: #eef4fa;
  --c-sage: #4d7a67;
  --c-sage-50: #eef5f1;
  --c-surface: #f6f9fb;
  --c-border: #d6e0e8;
  --c-white: #fff;
  --c-danger: #b42318;
  --c-success: #11734f;
  --c-focus: #1a5fd0;

  /* Типографика: модульная шкала ~1.2, адаптивные размеры */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --fs-h1: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);
  --lh-tight: 1.2;
  --lh-base: 1.6;

  /* Отступы (шаг 4 px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --section-y: clamp(2.5rem, 1.8rem + 3vw, 5rem);

  /* Сетка */
  --container: 72rem;
  --container-narrow: 48rem;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);

  /* Формы */
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(13, 35, 56, .06), 0 1px 3px rgba(13, 35, 56, .08);
  --shadow: 0 8px 24px rgba(13, 35, 56, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 4rem;
  --bar-h: 4rem;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-base);
  color: var(--c-text); background: var(--c-white); text-rendering: optimizeLegibility;
  padding-bottom: var(--bar-h);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--c-navy); line-height: var(--lh-tight); margin: 0 0 var(--s-4); font-weight: 750; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); }
p, ul, ol, dl, table { margin: 0 0 var(--s-4); }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-primary-hover); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 700; color: var(--c-navy); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-8) 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -10rem; z-index: 100; background: var(--c-navy); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--s-2); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--c-surface); }
.section--brand { background: linear-gradient(135deg, var(--c-primary-50), var(--c-blue-50)); }
.section__head { max-width: 44rem; margin-bottom: var(--s-8); }
.section__lead { font-size: var(--fs-lg); color: var(--c-muted); }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--s-2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.75rem 1.375rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary-50); color: var(--c-primary-hover); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--lg { min-height: 3.5rem; padding: 0.9rem 1.75rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--c-border); backdrop-filter: saturate(1.4) blur(8px); }
.header__bar { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-navy); flex: none; }
.logo__mark { width: 2.25rem; height: 2.25rem; }
.logo__text { display: flex; flex-direction: column; font-weight: 800; font-size: .8125rem; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.logo__text span:first-child { color: #5d7a89; }
.logo__text span:last-child { color: var(--c-primary); }
.header__contacts { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
.header__phone { display: none; flex-direction: column; text-decoration: none; text-align: right; }
.header__phone-num { font-weight: 800; font-size: 1.125rem; color: var(--c-navy); white-space: nowrap; }
.header__phone-note { font-size: var(--fs-xs); color: var(--c-muted); }
.header__phone:hover .header__phone-num { color: var(--c-primary); }
.header__cta { display: none; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; color: var(--c-navy); }
.burger svg { width: 1.5rem; height: 1.5rem; }
.header__call { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-primary); color: #fff; }
.header__call svg { width: 1.25rem; height: 1.25rem; }

/* Навигация: на мобильных — выезжающая панель */
.nav { display: none; border-top: 1px solid var(--c-border); }
.nav.is-open { display: block; max-height: calc(100vh - var(--header-h) - var(--bar-h)); overflow-y: auto; }
.nav__list { list-style: none; margin: 0; padding: var(--s-2) 0 var(--s-4); }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-border); }
.nav__link { flex: 1; display: block; padding: var(--s-3) 0; color: var(--c-navy); font-weight: 650; text-decoration: none; }
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--c-primary); }
.nav__toggle { width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--c-navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub { display: none; width: 100%; padding: 0 0 var(--s-3) var(--s-3); }
.nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__group-title { margin: var(--s-3) 0 var(--s-1); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.nav__group ul { list-style: none; margin: 0; padding: 0; }
.nav__group a { display: block; padding: .4rem 0; color: var(--c-text); text-decoration: none; }
.nav__group a:hover, .nav__group a[aria-current] { color: var(--c-primary); }

@media (min-width: 48em) {
  .header__phone { display: flex; }
  .header__call { display: none; }
}
@media (min-width: 64em) {
  :root { --header-h: 4.5rem; --bar-h: 0rem; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .logo__mark { width: 2.5rem; height: 2.5rem; }
  .logo__text { font-size: .875rem; }
  .nav { display: block; border-top: 1px solid var(--c-border); }
  .nav__list { display: flex; gap: var(--s-6); padding: 0; }
  .nav__item { border: 0; flex-wrap: nowrap; }
  .nav__link { padding: var(--s-3) 0; font-size: var(--fs-sm); }
  .nav__toggle { width: 1.75rem; }
  .nav__sub { position: absolute; top: 100%; left: -1rem; width: min(52rem, 90vw); padding: 0; z-index: 60; }
  .nav__sub-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding: var(--s-6); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
}
/* Подменю: открывается кнопкой (aria-expanded) и наведением мыши; закрывается Escape и кликом вне (site.js) */
@media (min-width: 64em) and (hover: hover) {
  .nav__item--has-sub:hover .nav__sub { display: block; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: var(--fs-sm); padding: var(--s-4) 0 0; }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); color: var(--c-muted); }
.crumbs__list li:not(:last-child)::after { content: "›"; margin-left: var(--s-2); color: var(--c-muted); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: clamp(2rem, 1.2rem + 4vw, 4.5rem) 0; background: linear-gradient(160deg, var(--c-primary-50) 0%, var(--c-blue-50) 55%, #fff 100%); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
.hero__title { margin-bottom: var(--s-4); }
.hero__lead { font-size: var(--fs-lg); color: var(--c-text); max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.hero__facts li { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--c-navy); }
.hero__facts svg { width: 1.375rem; height: 1.375rem; color: var(--c-primary); flex: none; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--c-primary-100); aspect-ratio: 1700 / 545; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 39.99em) { .hero__media { display: none; } } /* на телефоне фото-полоса не несёт смысла и отодвигает выбор услуги */
@media (min-width: 40em) { .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-6); } }
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
  .hero__media { aspect-ratio: 4 / 3.2; }
}

/* Заголовок внутренней страницы */
.page-head { padding: var(--s-6) 0 var(--s-8); background: linear-gradient(160deg, var(--c-primary-50), var(--c-blue-50)); }
.page-head h1 { margin: var(--s-4) 0 var(--s-3); }
.page-head__lead { font-size: var(--fs-lg); max-width: 46rem; margin-bottom: var(--s-6); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.page-head__price { font-weight: 800; color: var(--c-navy); font-size: 1.25rem; margin-right: var(--s-2); }

/* ---------- Быстрый выбор ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); color: var(--c-navy); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }
.quick { padding: var(--s-6) 0; border-bottom: 1px solid var(--c-border); }
.quick__title { font-size: var(--fs-sm); font-weight: 700; color: var(--c-muted); margin-bottom: var(--s-3); }

/* ---------- Карточки ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; padding: var(--s-6); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--c-primary-100); box-shadow: var(--shadow); }
.card__icon { width: 2.5rem; height: 2.5rem; padding: .45rem; color: var(--c-primary); background: var(--c-primary-50); border-radius: var(--radius-sm); margin-bottom: var(--s-4); box-sizing: content-box; }
.card__title { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.card__link { color: var(--c-navy); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:hover { color: var(--c-primary); }
.card__text { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.card__price { margin-top: auto; margin-bottom: 0; font-weight: 800; color: var(--c-navy); }
.card__meta { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.card__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--s-4); }
.card-group + .card-group { margin-top: var(--s-10); }
.card-group__title { font-size: var(--fs-h3); margin-bottom: var(--s-4); }

/* Преимущества */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.feature__icon { width: 2rem; height: 2rem; color: var(--c-primary); margin-bottom: var(--s-3); }
.feature__title { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.feature__text { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* Этапы */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.step { counter-increment: step; position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border); }
.step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; margin-bottom: var(--s-3); }
.step__title { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.step__text { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Текстовый контент ---------- */
.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: var(--s-10); }
.prose h3 { margin-top: var(--s-8); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--c-primary); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose thead th { background: var(--c-surface); color: var(--c-navy); }
.layout { display: grid; gap: var(--s-10); }
.layout > * { min-width: 0; } /* иначе широкая таблица растягивает колонку и даёт горизонтальный скролл */
@media (min-width: 64em) { .layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

.note { padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: var(--c-blue-50); border-left: 4px solid var(--c-primary); margin: var(--s-6) 0; }
.note--warn { background: #fff6e8; border-left-color: #b26b00; }
.note > :last-child { margin-bottom: 0; }
.bullets { padding-left: 1.25rem; }
.med-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--fs-sm); color: var(--c-muted); margin: var(--s-6) 0 0; }
.sources { font-size: var(--fs-sm); color: var(--c-muted); padding-left: 1.25rem; }
.sources a { word-break: break-word; }

/* Боковая панель обращения */
.aside-card { padding: var(--s-6); border-radius: var(--radius-lg); background: var(--c-navy); color: #e7eef5; }
.aside-card h2, .aside-card strong { color: #fff; }
.aside-card h2 { font-size: var(--fs-h3); }
.aside-card a:not(.btn) { color: #fff; }
.aside-card .btn { width: 100%; margin-top: var(--s-3); }
.aside-card .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.aside-card .btn--secondary:hover { background: rgba(255, 255, 255, .1); }
.aside-card__phone { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; margin: var(--s-2) 0; }
.aside-card__muted { font-size: var(--fs-sm); color: #b8c7d6; margin: 0; }

/* ---------- Таблица цен ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-6); border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 0; }
.price-table caption { text-align: left; padding: var(--s-4) var(--s-5) 0; font-weight: 700; color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.price-table th, .price-table td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th { color: var(--c-muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody th { font-weight: 600; color: var(--c-navy); }
.price-table__price { text-align: right !important; white-space: nowrap; font-weight: 800; color: var(--c-navy); }
.price-table__note { display: block; font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); margin-top: .2rem; }
.price-group + .price-group { margin-top: var(--s-10); }
.price-group__service { font-size: var(--fs-h4); margin: var(--s-6) 0 var(--s-3); }
.price-group__service a { color: var(--c-navy); }
/* Таблица цен на узких экранах: цена под названием, без горизонтальной прокрутки */
@media (max-width: 35.99em) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 0; border: 0 !important; }
  .price-table caption { padding: var(--s-3) var(--s-4) 0; }
  .price-table__price { text-align: left !important; white-space: normal; }
}
.price-disclaimer { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: var(--s-3); }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.faq__q { list-style: none; cursor: pointer; padding: var(--s-4) var(--s-12) var(--s-4) var(--s-5); font-weight: 700; color: var(--c-navy); position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; right: var(--s-5); top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 var(--s-5) var(--s-4); color: var(--c-text); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- Форма ---------- */
.lead { background: var(--c-navy); color: #dbe6f0; }
.lead h2 { color: #fff; }
.lead__grid { display: grid; gap: var(--s-8); }
.lead__phone { display: inline-block; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; color: #fff; text-decoration: none; margin: var(--s-2) 0; }
.lead__phone:hover { color: var(--c-brand); }
.lead__muted { color: #b8c7d6; font-size: var(--fs-sm); }
@media (min-width: 56em) { .lead__grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.form { background: #fff; color: var(--c-text); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 36em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-1); }
.field__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-navy); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__input {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; font-size: 1rem; color: var(--c-text);
  background: #fff; border: 1.5px solid #9fb1c1; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea.field__input { min-height: 6rem; resize: vertical; }
.field__input:hover { border-color: var(--c-muted); }
.field__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11, 125, 114, .25); }
.field__input[aria-invalid="true"] { border-color: var(--c-danger); }
.field__error { font-size: var(--fs-xs); color: var(--c-danger); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-sm); }
.check input { width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; accent-color: var(--c-primary); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-sm); }
.form__status:empty { display: none; }
.form__status--ok { background: #e7f5ee; color: var(--c-success); }
.form__status--error { background: #fdecea; color: var(--c-danger); }
.form__privacy { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }

/* ---------- Контакты и карта ---------- */
.contacts { display: grid; gap: var(--s-8); }
@media (min-width: 56em) { .contacts { grid-template-columns: 1fr 1.3fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); align-items: start; }
.contact-list svg { width: 1.5rem; height: 1.5rem; color: var(--c-primary); margin: .5rem; }
.contact-list__label { display: block; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-list__value { font-weight: 700; color: var(--c-navy); text-decoration: none; }
.map { position: relative; min-height: 20rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface) url("../img/map-placeholder.svg") center / cover no-repeat; border: 1px solid var(--c-border); display: grid; place-items: center; }
.map__btn { position: relative; z-index: 1; }
.map.is-loaded { background: none; }
.map iframe, .map > ymaps { width: 100% !important; height: 100% !important; min-height: 24rem; border: 0; }

/* ---------- Документы ---------- */
.legal { display: grid; gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin: 0 0 var(--s-6); }
.legal__row { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--c-border); }
.legal__row:last-child { border-bottom: 0; }
.legal dt { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.legal dd { margin: 0; font-weight: 600; color: var(--c-navy); }
@media (min-width: 40em) { .legal__row { grid-template-columns: 14rem 1fr; } }

/* Блок «Конфиденциальность» */
.privacy-band { display: grid; gap: var(--s-6); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--c-sage-50); }
.privacy-band svg { width: 3rem; height: 3rem; color: var(--c-sage); }
@media (min-width: 48em) { .privacy-band { grid-template-columns: auto 1fr; } }

/* Медиа + текст */
.split { display: grid; gap: var(--s-8); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; } }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: var(--s-2); }

/* ---------- Подвал ---------- */
.footer { background: #0a1b2c; color: #b8c7d6; padding: var(--s-12) 0 var(--s-8); font-size: var(--fs-sm); }
.footer a { color: #dbe6f0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-8); }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 64em) { .footer__grid { grid-template-columns: 1.3fr 1.4fr .8fr 1.1fr; } }
.footer__title { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-4); }
.footer .logo__text span:first-child { color: #a9bccb; }
.footer .logo__text span:last-child { color: var(--c-brand); }
.footer-nav__list, .footer .link-list { list-style: none; padding: 0; margin: 0; }
.footer-nav__list li, .footer .link-list li { margin-bottom: var(--s-2); }
.footer__phone { font-size: 1.25rem; font-weight: 800; color: #fff !important; }
.footer__bottom { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: var(--s-3); }
.footer__warning { font-size: clamp(1rem, .9rem + .6vw, 1.375rem); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .02em; margin: var(--s-8) 0 0; }
.footer__legal { color: #93a7b9; }

/* ---------- Мобильная панель связи ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-border); box-shadow: 0 -6px 20px rgba(13, 35, 56, .08); }
.mbar .btn { min-height: 3rem; }
@media (min-width: 64em) { .mbar { display: none; } }

/* Плавное появление (уважает prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .mbar, .lead, .footer, .crumbs, .map { display: none !important; }
  body { padding: 0; color: #000; }
}

/* Добавлено по итогам аудита */
.card-group__more { margin: var(--s-4) 0 0; }
.contacts__text { margin-top: var(--s-8); }
.footer__about { margin-top: var(--s-4); }
.footer__docs { margin-top: var(--s-2); }
.lead .lead__muted a { color: #fff; }
.messengers { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }
.lead .messengers .btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
.lead .messengers .btn:hover { background: rgba(255, 255, 255, .1); }
.privacy-band__link { margin: 0; }
.lead__off-title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
