/* ==========================================================================
   АСПЕКТ — редизайн. Концепция «Маршрут × Точка опоры»
   Mobile-first. Брейкпоинты: 640 / 1024 / 1440
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* Фирменные */
  --brand: #0082bb;          /* основной / акцент */
  --brand-ink: #006a99;      /* затемнённый — мелкий текст и ссылки на белом (AA) */
  --brand-deep: #0a4d6e;     /* очень тёмный вариант */
  --aqua: #00d5f4;           /* дополнительный — только на тёмном, линии, свечение */
  --aqua-soft: rgba(0, 213, 244, .16);

  /* Нейтральные */
  --ink: #14212b;            /* графит — основной текст и тёмные секции */
  --ink-2: #1e2f3b;
  --text: #2a3a46;
  --muted: #5d6d79;
  --line: #dfe7ec;
  --bg: #ffffff;
  --bg-soft: #f3f6f8;
  --bg-blue: #eef7fb;

  /* Типографика */
  --f-display: "Geologica", "Segoe UI", system-ui, sans-serif;
  --f-accent: "Literata", Georgia, "Times New Roman", serif;
  --f-text: "Onest", "Segoe UI", system-ui, sans-serif;

  /* Ритм */
  --container: 1320px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  --shadow-1: 0 1px 2px rgba(20, 33, 43, .06), 0 8px 24px rgba(20, 33, 43, .06);
  --shadow-2: 0 2px 6px rgba(20, 33, 43, .08), 0 24px 48px -12px rgba(20, 33, 43, .22);
}

@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1250px) { :root { --gutter: 48px; --header-h: 112px; } }

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1250px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
}

/* Курсивный акцент Literata — голос «Точки опоры» */
em {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--aqua); color: var(--ink); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Надзаголовок с линией */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-text);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua);
}
.eyebrow__line { width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--brand-ink); }

/* ---------- 3. Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-text); font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
/* Заливка «светом» снизу при наведении */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--brand) 0%, #0096d2 55%, var(--aqua) 140%);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 10px 28px -8px rgba(0, 130, 187, .65); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* Второстепенная кнопка-контур */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-ink);
  box-shadow: inset 0 0 0 1.5px rgba(0, 130, 187, .35);
}
.btn--ghost::before { background: var(--brand); }
.btn--ghost:hover { --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 28px -10px rgba(0, 130, 187, .55); }

/* Кнопка на фирменном синем фоне — белая */
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--brand-deep);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .45);
}
.btn--light::before { background: linear-gradient(100deg, #eafaff 0%, var(--aqua) 130%); }
.btn--light:hover { --btn-fg: var(--ink); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5); }

/* Сердце «бьётся» при наведении */
.btn__heart { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.btn:hover .btn__heart { animation: beat 1.1s var(--ease) infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

/* ==========================================================================
   БЛОК 0. ШАПКА — белая
   Поведение: при прокрутке вниз уезжает вверх, при прокрутке вверх возвращается
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease);
  will-change: transform;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(20, 33, 43, .28); }
.header.is-hidden { transform: translateY(-100%); }

/* Служебная строка */
.header__top { display: none; }
@media (min-width: 1250px) {
  .header__top {
    display: block;
    height: 40px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 13px; color: var(--muted);
  }
  .header__top-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
  .header__meta { display: flex; gap: 28px; }
  .header__meta li { display: flex; align-items: center; gap: 8px; }
  .header__meta img { width: 15px; height: 15px; }
  .header__meta a { color: inherit; transition: color .2s; }
  .header__meta a:hover { color: var(--brand-ink); }
  .header__dot { width: 7px; height: 7px; border-radius: 50%; background: #1fb57a; box-shadow: 0 0 0 4px rgba(31, 181, 122, .16); }
  .header__social { display: flex; gap: 6px; }
  .header__social a {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
    background: var(--brand);
    transition: background .2s, transform .3s var(--ease-out);
  }
  .header__social a:hover { background: var(--brand-ink); transform: translateY(-1px); }
  .header__social img { width: 16px; height: 16px; }
  .header__social a[aria-label="Мы в 2ГИС"] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
}

/* Основная строка */
.header__main { height: 64px; }
@media (min-width: 1250px) { .header__main { height: 72px; } }

.header__main-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.header__logo { flex: none; display: block; }
.header__logo img { width: 124px; height: auto; }
@media (min-width: 1250px) { .header__logo img { width: 146px; } }

/* ==========================================================================
   МЕНЮ ШАПКИ
   Разметка приходит из WordPress и не меняется, поэтому стили цепляются
   только за её классы и id:

     <nav>
       <div class="menu-osnovnoe-menyu-container">
         <ul id="menu-osnovnoe-menyu" class="menu">
           <li id="menu-item-1059" class="menu-item menu-item-type-taxonomy
               menu-item-object-category menu-item-has-children [current-menu-item]
               menu-item-1059">
             <a href="...">Наши услуги</a>
             <ul class="sub-menu"> ... </ul>
           </li>

   Обёртка .header__menu — наша, темы: на телефоне это полноэкранная панель,
   на десктопе — часть строки шапки.
   ========================================================================== */

/* ---------- мобильная панель ---------- */
.header__menu {
  position: fixed; inset: 64px 0 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .45s;
  height: calc(100vh - 64px);
}
.header.is-open .header__menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}

/* ---------- список пунктов ---------- */
#menu-osnovnoe-menyu,
#menu-osnovnoe-menyu ul { list-style: none; margin: 0; padding: 0; }

#menu-osnovnoe-menyu > li { border-bottom: 1px solid var(--line); }
#menu-osnovnoe-menyu > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0;
  font-family: var(--f-display); font-size: 22px; font-weight: 400; color: var(--ink);
}

/* Стрелка у пунктов с подменю. В разметке WordPress её нет — рисуем стилями. */
#menu-osnovnoe-menyu > li.menu-item-has-children > a::after {
  content: ""; flex: none;
  width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
#menu-osnovnoe-menyu > li.menu-item-has-children.is-expanded > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Текущий раздел. Классы ставит сам WordPress: current-menu-item — у самого
   пункта, current-menu-ancestor / current-menu-parent — у родителя раздела. */
#menu-osnovnoe-menyu > li.current-menu-item > a,
#menu-osnovnoe-menyu > li.current-menu-ancestor > a,
#menu-osnovnoe-menyu > li.current-menu-parent > a { color: var(--brand-ink); }

/* ---------- подменю в мобильной панели ---------- */
.sub-menu { display: none; padding-bottom: 12px; }
li.is-expanded > .sub-menu { display: block; }
.sub-menu a {
  display: block; padding: 8px 0 8px 14px;
  color: var(--muted); font-size: 15px;
  border-left: 1px solid var(--line);
}
.sub-menu a:hover { color: var(--brand-ink); border-color: var(--brand); }
.sub-menu .sub-menu a { padding-left: 28px; }

/* Контакты в мобильной панели — добавка темы, в WordPress её нет. */
.nav__mobile-extra { display: grid; gap: 14px; color: var(--muted); font-size: 15px; }
.nav__phone { font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--ink); }

/* ---------- десктоп ---------- */
@media (min-width: 1250px) {
  .header__menu {
    position: static; z-index: auto;
    flex: 1; flex-direction: row; justify-content: center;
    padding: 0; background: none; border: 0; overflow: visible;
    opacity: 1; visibility: visible; transform: none;
    height: auto;
  }
  .header__menu > nav { flex: 1; min-width: 0; }
  .menu-osnovnoe-menyu-container { height: 100%; }

  #menu-osnovnoe-menyu {
    display: flex; align-items: center; justify-content: center;
    height: 100%; gap: 2px;
  }
  #menu-osnovnoe-menyu > li { position: relative; border: 0; }
  #menu-osnovnoe-menyu > li > a {
    position: relative;
    padding: 10px 14px;
    font-family: var(--f-text); font-size: 15px; font-weight: 500;
    color: var(--ink);
    transition: color .2s;
  }
  /* стрелку на десктопе убираем — вместо неё подчёркивание */
  #menu-osnovnoe-menyu > li.menu-item-has-children > a::after { display: none; }

  /* Тонкая линия вырастает из центра */
  #menu-osnovnoe-menyu > li > a::before {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
    background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transition: transform .4s var(--ease-out);
  }
  #menu-osnovnoe-menyu > li > a:hover { color: var(--brand-ink); }
  #menu-osnovnoe-menyu > li > a:hover::before { transform: scaleX(1); }
  #menu-osnovnoe-menyu > li.current-menu-item > a::before,
  #menu-osnovnoe-menyu > li.current-menu-ancestor > a::before,
  #menu-osnovnoe-menyu > li.current-menu-parent > a::before { transform: scaleX(1); }

  .nav__mobile-extra { display: none; }

  /* ---------- подменю: карточка под пунктом ---------- */
  #menu-osnovnoe-menyu .sub-menu {
    position: absolute; left: -12px; top: 100%;
    display: block; width: 340px; padding: 10px;
    border-radius: var(--radius-sm);
    background: #fff; box-shadow: var(--shadow-2);
    border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .25s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
  }
  /* второй уровень — вбок от пункта */
  #menu-osnovnoe-menyu .sub-menu .sub-menu {
    left: 100%; top: -10px; margin-left: 4px; width: 320px;
  }
  #menu-osnovnoe-menyu li.menu-item-has-children:hover > .sub-menu,
  #menu-osnovnoe-menyu li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  #menu-osnovnoe-menyu .sub-menu li { position: relative; }
  #menu-osnovnoe-menyu .sub-menu a {
    display: block; padding: 10px 14px;
    border: 0; border-radius: 8px;
    color: var(--ink); font-size: 14.5px;
    transition: background .2s, color .2s, padding .3s var(--ease-out);
  }
  #menu-osnovnoe-menyu .sub-menu a:hover {
    background: var(--bg-blue); color: var(--brand-ink); padding-left: 20px;
  }
  /* текущий пункт внутри выпадашки — тоже класс WordPress */
  #menu-osnovnoe-menyu .sub-menu li.current-menu-item > a,
  #menu-osnovnoe-menyu .sub-menu a[aria-current="page"] {
    background: var(--bg-blue); color: var(--brand-ink);
  }
}

/* Действия справа */
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 1250px) { .header__actions { margin-left: 0; gap: 20px; } }

.header__phone { display: none; }
@media (min-width: 640px) {
  .header__phone { display: grid; text-align: right; line-height: 1.2; color: var(--ink); }
  .header__phone-num { font-family: var(--f-display); font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
  .header__phone-note { font-size: 11.5px; color: var(--muted); }
  .header__phone:hover .header__phone-num { color: var(--brand-ink); }
}

.header__call-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand);
}
.header__call-icon img { width: 18px; height: 18px; }
@media (min-width: 640px) { .header__call-icon { display: none; } }

.header__cta { display: none; }
@media (min-width: 1250px) { .header__cta { display: inline-flex; } }

.burger {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--bg-soft);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.header.is-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.header.is-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
@media (min-width: 1250px) { .burger { display: none; } }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   БЛОК 1. ПЕРВЫЙ ЭКРАН
   Баннер: слева 55% свободное небо, справа дерево + рассвет, снизу 30% поляна
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__parallax { position: absolute; inset: -6% 0; will-change: transform; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Мобильный: держим дерево и рассвет в кадре */
  object-position: 74% 50%;
  transform: scale(1.08);
  animation: heroZoom 2.4s var(--ease-out) both;
}
@keyframes heroZoom { from { transform: scale(1.16); filter: brightness(.7); } to { transform: scale(1.08); filter: none; } }

/* Затемнение: снизу-вверх на мобиле, слева-направо на десктопе.
   Голубое небо + графит-синяя шторка → белый текст гарантированно читается */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 40, .72) 0%, rgba(10, 28, 40, .45) 42%, rgba(10, 28, 40, .2) 62%, rgba(10, 28, 40, .78) 100%);
}
/* Мягкий отсвет рассвета цветом --aqua (не градиентная заливка, а свет) */
.hero__shade::after {
  content: ""; position: absolute;
  right: -10%; bottom: 12%;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 213, 244, .22), rgba(0, 213, 244, 0) 70%);
  mix-blend-mode: screen;
  animation: glow 3s var(--ease) .6s both;
}
@keyframes glow { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

@media (min-width: 1250px) {
  .hero__img { object-position: 70% 55%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(10, 28, 40, .82) 0%, rgba(10, 28, 40, .62) 30%, rgba(10, 28, 40, .2) 55%, rgba(10, 28, 40, 0) 70%),
      linear-gradient(180deg, rgba(10, 28, 40, .5) 0%, rgba(10, 28, 40, 0) 22%, rgba(10, 28, 40, 0) 70%, rgba(10, 28, 40, .7) 100%);
  }
  .hero__shade::after { right: 6%; bottom: 18%; width: 44vmax; height: 44vmax; }
}

.hero__inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding-top: calc(64px + 40px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom)); /* место под мобильную панель */
}
@media (min-width: 1250px) {
  .hero__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-content: center;
    column-gap: 24px; row-gap: 56px;
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 72px;
  }
}

.hero__content { max-width: 680px; }
@media (min-width: 1250px) { .hero__content { grid-column: 1 / span 7; max-width: none; } }

.hero__eyebrow { margin-bottom: 20px; }

.hero__title {
  color: #fff;
  font-size: clamp(32px, 10.2vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title em {
  display: inline;
  color: var(--aqua);
  font-weight: 400;
  letter-spacing: -.02em;
}

.hero__lead {
  margin-top: 22px; max-width: 34em;
  font-size: 16.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
@media (min-width: 1250px) { .hero__lead { margin-top: 28px; font-size: 19px; } }

.hero__actions {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}
.hero__actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .hero__actions .btn { flex: none; } }

.hero__phone { display: grid; line-height: 1.25; color: #fff; }
.hero__phone-num {
  font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
  justify-self: start;
}
.hero__phone:hover .hero__phone-num { background-size: 100% 1px; color: var(--aqua); }
.hero__phone-note { font-size: 13px; color: rgba(255, 255, 255, .65); }

/* --- Мини-маршрут --- */
.route {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-top: 28px; /* точка станции (top:-32px, Ø9px) центрирована на линии */
}
.route__track {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(255, 255, 255, .22);
}
.route__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--aqua), #fff);
  box-shadow: 0 0 12px var(--aqua);
  transform-origin: left; transform: scaleX(0);
}
.route__stop { position: relative; display: grid; gap: 6px; align-content: start; }
.route__stop::before {
  content: ""; position: absolute; left: 0; top: -32px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid rgba(255, 255, 255, .5);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.route__stop.is-lit::before { background: var(--aqua); border-color: var(--aqua); box-shadow: 0 0 0 5px var(--aqua-soft); }
.route__num {
  font-family: var(--f-display); font-weight: 300;
  font-size: 32px; line-height: 1; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .95);
}
.route__name { font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .78); }

@media (min-width: 640px) {
  .route { gap: 24px; }
  .route__name { font-size: 14px; }
}
@media (min-width: 1250px) {
  .route {
    grid-column: 1 / span 8;
    align-self: end;
    padding: 28px 0 0;
  }
  .route__name { font-size: 14.5px; max-width: 15em; }
}
@media (min-width: 1440px) {
  .route { grid-column: 1 / span 7; }
}

/* Индикатор скролла */
.hero__scroll { display: none; }
@media (min-width: 1250px) {
  .hero__scroll {
    display: block; position: absolute; right: var(--gutter); bottom: 72px;
    width: 1px; height: 72px; background: rgba(255, 255, 255, .25); overflow: hidden;
  }
  .hero__scroll-line {
    position: absolute; left: 0; top: 0; width: 1px; height: 40%;
    background: var(--aqua);
    animation: scrollHint 2.2s var(--ease) infinite;
  }
  @keyframes scrollHint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
}

/* --- Анимация появления первого экрана --- */
.js .hero__title .w {
  display: inline-block;
  opacity: 0; transform: translateY(.45em);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 250ms);
}
.js .hero.is-ready .hero__title .w { opacity: 1; transform: none; filter: none; }

.js [data-hero-step] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.js .hero.is-ready [data-hero-step="1"] { transition-delay: .1s; }
.js .hero.is-ready [data-hero-step="3"] { transition-delay: .85s; }
.js .hero.is-ready [data-hero-step="4"] { transition-delay: 1.05s; }
.js .hero.is-ready [data-hero-step="5"] { transition-delay: 1.3s; }
.js .hero.is-ready [data-hero-step] { opacity: 1; transform: none; }
.js .hero.is-ready .route__fill { transform: scaleX(1); transition: transform 1.8s var(--ease-out) 1.6s; }

/* ==========================================================================
   Общие: появление при скролле
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Общий заголовок секции */
.section-title {
  font-size: clamp(30px, 6.4vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-title em { color: var(--brand); }

/* ==========================================================================
   БЛОК 2. ПОЛОСА ДОВЕРИЯ
   Асимметрия: заголовок слева, огромные цифры справа «лесенкой»,
   ниже — три гарантии на линии маршрута
   ========================================================================== */
.trust {
  position: relative;
  padding: 72px 0 80px;
  background: #fff;
  overflow: hidden;
}
@media (min-width: 1250px) { .trust { padding: 128px 0 120px; } }

/* «Нить маршрута» — продолжение линии из первого экрана */
.trust::before {
  content: ""; position: absolute; top: 0; left: calc(var(--gutter) / 2);
  width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--aqua), rgba(0, 213, 244, 0) 70%);
  opacity: .7;
}
@media (min-width: 1440px) {
  .trust::before { left: calc((100vw - var(--container)) / 2 - 40px); }
}

.trust__inner { display: grid; gap: 48px; }
@media (min-width: 1250px) {
  .trust__inner {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px; row-gap: 96px;
  }
}

/* Заголовок */
.trust__head { display: grid; gap: 18px; align-content: start; }
.trust__title {
  font-size: clamp(30px, 6.4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.trust__title em { color: var(--brand); }
@media (min-width: 1250px) {
  .trust__head { grid-column: 1 / span 5; padding-top: 24px; }
}

/* Цифры */
.trust__stats { display: grid; gap: 28px; }
@media (min-width: 640px) { .trust__stats { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1250px) {
  .trust__stats { grid-column: 6 / span 7; column-gap: 40px; }
}

.stat { position: relative; }
@media (min-width: 640px) {
  .stat--shift { margin-top: 72px; }   /* лесенка */
}

.stat__value {
  display: flex; align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(112px, 30vw, 220px);
  line-height: .82;
  letter-spacing: -.065em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-left: -.04em;
}
@media (min-width: 640px) { .stat__value { font-size: clamp(104px, 15vw, 220px); } }

.stat__num {
  /* фирменный градиент по яркости: основной → затемнённый */
  background: linear-gradient(180deg, var(--brand) 20%, var(--brand-deep) 120%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat__plus {
  font-family: var(--f-accent); font-style: italic; font-weight: 400;
  font-size: .42em; line-height: 1;
  margin: .06em 0 0 .06em;
  color: var(--aqua);
  letter-spacing: 0;
}

.stat__label {
  position: relative;
  margin-top: 20px; padding-top: 16px;
  max-width: 19em;
  font-size: 15.5px; line-height: 1.5; color: var(--muted);
}
.stat__label b { color: var(--ink); font-weight: 600; }
/* линия над подписью прорисовывается при появлении */
.stat__label::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: var(--line);
}
.stat__label::after {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 1px;
  background: var(--brand);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) .5s;
}
.stat.is-in .stat__label::after { transform: scaleX(1); }

/* Гарантии */
.trust__guarantees {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .trust__guarantees { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1250px) {
  .trust__guarantees { grid-column: 1 / -1; }
}

.guarantee {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.guarantee:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .guarantee {
    grid-template-columns: 1fr;
    padding: 36px 28px 8px 0;
    border-bottom: 0;
  }
  .guarantee + .guarantee { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (min-width: 1250px) {
  .guarantee { padding: 44px 48px 0 0; }
  .guarantee + .guarantee { padding-left: 48px; }
}

/* Отрезок линии сверху загорается при наведении */
.guarantee::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--brand);
  transform-origin: left; transform: scaleX(0);
  transition: transform .7s var(--ease-out);
}
.guarantee:hover::before { transform: scaleX(1); }

.guarantee__idx {
  grid-row: span 2;
  font-family: var(--f-accent); font-style: italic;
  font-size: 22px; line-height: 1.1; color: var(--brand);
}
@media (min-width: 640px) {
  .guarantee__idx { grid-row: auto; font-size: 24px; margin-bottom: 14px; text-transform: uppercase;}
  
}

.guarantee__title {
  font-size: 22px; font-weight: 500; letter-spacing: -.02em;
  transition: color .3s;
}
@media (min-width: 1250px) { .guarantee__title { font-size: 26px; } }
.guarantee:hover .guarantee__title { color: var(--brand-ink); }

.guarantee__text { font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 26em; }

/* ==========================================================================
   БЛОК 3. С ЧЕМ К НАМ ПРИХОДЯТ — выбор ситуации
   Асимметрия: слева вкладки-ситуации, справа панель с фото и текстом
   ========================================================================== */
.scenarios {
  padding: 64px 0 88px;
  background: var(--bg-soft);
}
@media (min-width: 1024px) { .scenarios { padding: 112px 0 128px; } }

.scenarios__head { max-width: 760px; }
.scenarios__head .eyebrow { margin-bottom: 18px; }
.scenarios__intro { margin-top: 20px; max-width: 44em; font-size: 17px; color: var(--muted); }

.scenarios__body { margin-top: 44px; }
@media (min-width: 1024px) { .scenarios__body { margin-top: 64px; } }

/* --- Вкладки --- */
.tabs { display: grid; gap: 6px; }
.tab {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; text-align: left;
  padding: 16px 18px;
  border: 0; border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-text); font-size: 16.5px; font-weight: 500; line-height: 1.3;
  transition: background .3s var(--ease), color .3s, transform .4s var(--ease-out);
}
.tab__idx {
  font-family: var(--f-display); font-weight: 300;
  font-size: 20px; letter-spacing: -.02em; line-height: 1;
  color: var(--muted);
  transition: color .3s;
}
.tab:hover { background: #fff; transform: translateX(4px); }
.tab.is-active {
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--brand-ink);
}
.tab.is-active .tab__idx { color: var(--brand); }

/* Цветная полоска слева у активной вкладки */
.tab::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform-origin: top; transform: scaleY(0);
  transition: transform .5s var(--ease-out);
}
.tab.is-active::before { transform: scaleY(1); }

/* --- Панели --- */
.panels { margin-top: 20px; display: grid; }
.panel { grid-area: 1 / 1; }   /* все панели в одной ячейке — перекрываются, ничего не сдвигается */
@media (min-width: 1024px) {
  .scenarios__body {
    display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start;
  }
  .tabs { position: sticky; top: 120px; }
  .panels { margin-top: 0; }
}

.panel {
  display: grid; gap: 20px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s .5s;
}
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.panel__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
/* тонкая цветная рамка-свечение снизу */
.panel__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--aqua));
  transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease-out) .2s;
}
.panel.is-active .panel__media::after { transform: scaleX(1); }

@media (min-width: 1024px) {
  .panel { grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
  .panel__media { aspect-ratio: auto; height: 100%; min-height: 380px; }
}

.panel__content { display: grid; gap: 14px; align-content: start; }
.panel__title { font-size: clamp(24px, 4vw, 34px); font-weight: 500; letter-spacing: -.02em; }
.panel__desc { font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.panel__list { display: grid; gap: 10px; margin: 4px 0 8px; }
.panel__list li {
  position: relative; padding-left: 22px;
  font-size: 15.5px; color: var(--ink);
}
.panel__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--brand);
}

/* ==========================================================================
   БЛОК 4. МАРШРУТ ВОССТАНОВЛЕНИЯ — три отличия
   Вертикальная линия пути, заполняется при прокрутке
   ========================================================================== */
.route-map {
  position: relative;
  padding: 72px 0 88px;
  background: #fff;
  overflow: hidden;
}
@media (min-width: 1024px) { .route-map { padding: 112px 0 128px; } }

.route-map__head { max-width: 760px; }
.route-map__head .eyebrow { margin-bottom: 18px; }

/* --- Ступени маршрута --- */
.stages {
  position: relative;
  margin-top: 52px;
  display: grid; gap: 40px;
}
@media (min-width: 1024px) { .stages { margin-top: 72px; gap: 0; } }

/* Линия пути и заполнение */
.stages::before,
.stages::after {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  border-radius: 2px;
}
.stages::before { background: var(--line); }
.stages::after {
  background: linear-gradient(180deg, var(--brand), var(--aqua));
  transform-origin: top; transform: scaleY(0);
  transition: transform 1.6s var(--ease-out);
}
.stages.is-fill::after { transform: scaleY(1); }
@media (min-width: 1024px) {
  .stages::before, .stages::after { left: 8px; }
}

/* --- Ступень --- */
.stage {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: start;
}
@media (min-width: 1024px) {
  .stage {
    grid-template-columns: 20px 1fr;
    column-gap: 64px;
    padding: 32px 0;
  }
}

/* Маркер-точка на линии */
.stage__marker { position: relative; align-self: center; }
.stage__dot {
  position: relative; z-index: 1;
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 0 0 6px #fff;
  transition: background .4s, box-shadow .4s;
}
.stage.is-lit .stage__dot {
  background: var(--brand);
  box-shadow: 0 0 0 6px #fff, 0 0 0 12px rgba(0, 130, 187, .14);
}

/* Текст ступени */
.stage__body { display: grid; gap: 14px; }
.stage__head { display: flex; align-items: center; gap: 16px; }
.stage__num {
  font-family: var(--f-display); font-weight: 300;
  font-size: 40px; line-height: 1; letter-spacing: -.04em;
  color: var(--line);
  transition: color .4s;
}
@media (min-width: 1024px) { .stage__num { font-size: 72px; } }
.stage.is-lit .stage__num { color: var(--brand); }

.stage__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-blue);
  transition: transform .5s var(--ease-out), background .4s;
}
.stage__icon img { width: 34px; height: 34px; }
@media (min-width: 1024px) { .stage__icon { width: 64px; height: 64px; } .stage__icon img { width: 40px; height: 40px; } }
.stage:hover .stage__icon { transform: translateY(-3px); background: #e2f3fb; }

.stage__title {
  font-size: clamp(22px, 3.6vw, 32px); font-weight: 500; letter-spacing: -.02em;
  max-width: 22em;
}
@media (min-width: 1024px) {
  .stage__body { grid-template-columns: 1fr; }
  .stage__head { order: 1; }
  .stage__title { order: 2; }
  .stage__text { order: 3; }
}

.stage__text { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 46em; }

/* ==========================================================================
   БЛОК 5. НАПРАВЛЕНИЯ РАБОТЫ — асимметричная мозаика
   ========================================================================== */
.services {
  padding: 72px 0 88px;
  background: var(--bg-soft);
}
@media (min-width: 1024px) { .services { padding: 112px 0 128px; } }

.services__head { max-width: 760px; }
.services__head .eyebrow { margin-bottom: 18px; }

/* --- Мозаика --- */
.mosaic {
  margin-top: 44px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 1024px) {
  .mosaic {
    margin-top: 64px;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 190px;
    gap: 20px;
  }
}

.card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 33, 43, .06), 0 8px 24px rgba(20, 33, 43, .06);
  text-decoration: none;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.card__media { position: absolute; inset: 0; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
  filter: saturate(.92);
}
.card:hover .card__media img { transform: scale(1.06); filter: none; }

/* Затемнение снизу под текст */
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 33, 43, 0) 34%, rgba(20, 33, 43, .72) 100%);
  transition: opacity .5s;
}
.card:hover .card__media::after { opacity: .92; }

.card__body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.card__title {
  font-family: var(--f-display); font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__desc {
  margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.card__more i { font-style: normal; transition: transform .5s var(--ease-out); }
.card:hover .card__more { opacity: 1; transform: none; }
.card:hover .card__more i { transform: translateX(5px); }

/* Крупные карточки — явная асимметричная раскладка */
@media (min-width: 1024px) {
  .card { grid-column: auto; grid-row: auto; }
  .mosaic .card:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; } /* Работа с зависимостью — большое слева */
  .mosaic .card:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 2; } /* Семейная */
  .mosaic .card:nth-child(3) { grid-column: 5 / 7; grid-row: 2 / 3; } /* Индивидуальная */
  .mosaic .card:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; } /* Соц. сопровождение */
  .mosaic .card:nth-child(5) { grid-column: 3 / 5; grid-row: 3 / 4; } /* Амбулаторная */
  .mosaic .card:nth-child(6) { grid-column: 5 / 7; grid-row: 3 / 4; } /* Бизнес (малое фото) */
  .mosaic .card:nth-child(7) { grid-column: 1 / 3; grid-row: 4 / 5; } /* Личностный рост */
  .mosaic .card:nth-child(8) { grid-column: 3 / 7; grid-row: 4 / 6; } /* Трудные подростки — большое справа */
  .mosaic .card:nth-child(9) { grid-column: 1 / 3; grid-row: 5 / 6; } /* СВО */
}

/* Телефон: крупные во всю ширину, остальные по две */
@media (max-width: 1023px) {
  .card { min-height: 220px; }
  .card--feature { grid-column: 1 / -1; min-height: 260px; }
  .card__title { font-size: 20px; }
}

/* Маленькое фото (310×206) — дуотон, чтобы не было «мыла» */
@media (min-width: 1024px) {
  .card--duo .card__media img { filter: grayscale(1) contrast(1.05) brightness(.92); }
  .card--duo:hover .card__media img { filter: grayscale(0) contrast(1.05); }
}

/* ==========================================================================
   БЛОК 6. КАК НАЧИНАЕТСЯ РАБОТА — прозрачный процесс
   Горизонтальная шкала шагов на светлом фоне
   ========================================================================== */
.process {
  position: relative;
  padding: 72px 0 80px;
  background: var(--bg-blue);
}
@media (min-width: 1024px) { .process { padding: 112px 0 120px; } }

.process__head { max-width: 760px; }
.process__head .eyebrow { margin-bottom: 18px; }
.process__intro { margin-top: 20px; max-width: 46em; font-size: 17px; color: var(--muted); }

/* --- Шаги --- */
.steps {
  position: relative;
  margin-top: 44px;
  display: grid; gap: 32px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
@media (min-width: 1024px) {
  .steps {
    margin-top: 64px;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    padding-top: 34px;
  }
  /* Линия процесса */
  .steps::before,
  .steps::after {
    content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px;
  }
  .steps::before { background: rgba(0, 130, 187, .18); }
  .steps::after {
    background: linear-gradient(90deg, var(--brand), var(--aqua));
    transform-origin: left; transform: scaleX(0);
    transition: transform 1.8s var(--ease-out);
  }
  .steps.is-fill::after { transform: scaleX(1); }
}

.step { position: relative; }

/* Точка на линии */
.step__node { display: none; }
@media (min-width: 1024px) {
  .step__node {
    display: block;
    position: absolute; left: 0; top: -34px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand);
    box-shadow: 0 0 0 5px var(--bg-blue);
    transition: background .4s var(--ease), box-shadow .4s;
  }
  .step.is-lit .step__node {
    background: var(--brand);
    box-shadow: 0 0 0 5px var(--bg-blue), 0 0 0 11px rgba(0, 130, 187, .14);
  }
}

.step__num {
  display: block;
  font-family: var(--f-display); font-weight: 300;
  font-size: 34px; line-height: 1; letter-spacing: -.04em;
  color: var(--brand);
  opacity: .32;
  transition: opacity .4s;
}
@media (min-width: 1024px) { .step__num { font-size: 40px; } }
.step.is-lit .step__num { opacity: 1; }

.step__title {
  margin-top: 12px;
  font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25;
}
@media (min-width: 1024px) { .step__title { font-size: 17.5px; } }

.step__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Нижняя сноска */
.process__note {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(0, 130, 187, .18);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
  font-size: 15px; color: var(--muted);
}
@media (min-width: 1024px) { .process__note { margin-top: 64px; } }
.process__note span { color: var(--ink); }
.process__note a {
  font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em;
  color: var(--brand-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.process__note a:hover { background-size: 100% 1.5px; color: var(--brand); }

/* ==========================================================================
   БЛОК 7. КОНСУЛЬТАЦИЯ ПО УСЛУГАМ — тёмная карточка-призыв
   Врач справа указывает влево, на форму
   ========================================================================== */
.consult { padding: 0 0 72px; background: var(--bg-blue); }
@media (min-width: 1024px) { .consult { padding: 0 0 112px; } }

.consult__card {
  position: relative;
  display: grid;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 88% 12%, rgba(0, 213, 244, .16), rgba(0, 213, 244, 0) 62%),
    var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 40px 24px 0;
}
@media (min-width: 640px) { .consult__card { padding: 52px 40px 0; } }
@media (min-width: 1024px) {
  .consult__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 48px;
    padding: 64px 64px 0;
    border-radius: 28px;
  }
}
@media (min-width: 1440px) {
  .consult__card { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); padding: 72px 80px 0; }
}

.consult__content { position: relative; z-index: 1; padding-bottom: 40px; }
@media (min-width: 1024px) { .consult__content { padding-bottom: 64px; } }

.consult__title {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(28px, 5.4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.consult__title em { color: var(--aqua); }

.consult__text {
  margin-top: 18px; max-width: 44em;
  font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72);
}

/* Форма */
/* .consult перед классом — чтобы перебить базовый .form, который объявлен ниже по файлу */
.consult .consult__form {
  margin-top: 28px;
  display: grid; gap: 12px;
}
@media (min-width: 640px) {
  .consult .consult__form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;            /* поле и кнопка выровнены по низу */
    column-gap: 12px;
  }
  .consult .consult__form .check { grid-column: 1 / -1; }
  /* одинаковая высота с полем ввода (54px), иначе низ не совпадёт */
  .consult .consult__form .btn { min-height: 54px; }
}

/* Тёмная тема полей */
.field--dark .field__label { color: rgba(255, 255, 255, .6); }
.field--dark .field__input {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.field--dark .field__input::placeholder { color: rgba(255, 255, 255, .4); }
.field--dark .field__input:hover { border-color: rgba(255, 255, 255, .32); }
.field--dark .field__input:focus {
  background: rgba(255, 255, 255, .12);
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(0, 213, 244, .18);
}
/* .consult впереди — базовая .field.is-invalid объявлена ниже и иначе перебьёт цвет */
.consult .field--dark.is-invalid .field__input { border-color: #ff8a7a; }
.field--dark .field__error { color: #ff9b8d; }

/* Ошибку показываем рядом с подписью: высота поля не меняется,
   поэтому кнопка не съезжает с выравнивания по низу */
.consult__form .field { position: relative; }
.consult__form .field__error {
  display: block;
  position: absolute; top: 0; right: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility 0s .2s;
}
.consult__form .field.is-invalid .field__error {
  opacity: 1; visibility: visible; transition-delay: 0s;
}

.check--dark { color: rgba(255, 255, 255, .6); }
.check--dark a { color: rgba(255, 255, 255, .85); }
.check--dark input { accent-color: var(--aqua); }

.consult__alt { margin-top: 20px; font-size: 14.5px; color: rgba(255, 255, 255, .6); }
.consult__alt a {
  font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em;
  color: #fff; margin-left: 4px;
  background: linear-gradient(var(--aqua), var(--aqua)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.consult__alt a:hover { background-size: 100% 1.5px; }

/* Фото врача */
.consult__media { position: relative; align-self: end; }
.consult__media img {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px; height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45));
}
@media (min-width: 1024px) {
  .consult__media img { max-width: 100%; margin: 0 0 -1px; }
}

/* Свечение за врачом */
.consult__glow {
  position: absolute; left: 50%; bottom: 0;
  width: 130%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 213, 244, .3), rgba(0, 213, 244, 0) 72%);
  pointer-events: none;
}
@media (min-width: 1024px) { .consult__glow { width: 110%; } }

/* Успех на тёмном фоне */
.form__success--dark p { color: rgba(255, 255, 255, .72); }
.form__success--dark h3 { color: #fff; }

/* ==========================================================================
   БЛОК 8. О ЦЕНТРЕ — «Хорошая наркологическая клиника в Уфе»
   Журнальная вёрстка: фото наложено на текстовую колонку
   ========================================================================== */
.about {
  padding: 72px 0 88px;
  background: #fff;
}
@media (min-width: 1024px) { .about { padding: 112px 0 128px; } }

.about__inner { display: grid; gap: 40px; }

@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    row-gap: 64px;
  }
  .about__facts { grid-column: 1 / -1; }
}

.about__head { display: grid; gap: 18px; }
.about__title {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.about__text { margin-top: 24px; display: grid; gap: 16px; }
.about__text p { font-size: 16.5px; line-height: 1.62; color: var(--muted); }

@media (min-width: 1024px) {
  /* место справа, чтобы фото не закрывало текст */
  .about__left { padding-right: 56px; }
}

/* --- Фото --- */
.about__figure {
  position: relative;
  margin: 0;
  z-index: 1;
  /* не растягиваемся по высоте соседней колонки: иначе подложка уезжает
     далеко вниз, ниже подписи */
  align-self: start;
}
.about__figure img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
}
/* Смещённая подложка — «наложение» и глубина */
.about__figure::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(0, 130, 187, .14), rgba(0, 213, 244, .16));
  z-index: 0;
}
@media (min-width: 1024px) {
  /* фото заходит на текстовую колонку */
  .about__figure { margin-left: -40px; }
}

.about__figure figcaption {
  position: relative; z-index: 2;
  margin-top: 18px;
  font-size: 13.5px; color: var(--muted);
  text-align: center;
}

/* --- Факты --- */
.about__facts {
  display: grid; gap: 36px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .about__facts { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1024px) { .about__facts { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.about__sub {
  font-family: var(--f-text);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
}

.about__list { margin-top: 18px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--brand);
}
.about__list a {
  color: var(--ink);
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}
.about__list a:hover { color: var(--brand-ink); background-size: 100% 1px; }

.about__contacts { margin-top: 18px; display: grid; gap: 18px; }
.about__contacts li { display: grid; gap: 3px; }
.about__contacts a {
  font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink);
  transition: color .3s;
}
.about__contacts a:hover { color: var(--brand-ink); }
.about__contacts span { font-size: 13.5px; color: var(--muted); }

.about__address { margin-top: 18px; font-size: 15.5px; color: var(--ink); }
.about__facts .btn { margin-top: 18px; }

/* ==========================================================================
   БЛОК 9. СПЕЦИАЛИСТЫ
   Крупная карточка руководителя + сетка остальных
   ========================================================================== */
.team {
  padding: 72px 0 88px;
  background: var(--bg-soft);
}
@media (min-width: 1024px) { .team { padding: 112px 0 128px; } }

.team__head { max-width: 760px; }
.team__head .eyebrow { margin-bottom: 18px; }
.team__intro { margin-top: 18px; max-width: 48em; font-size: 17px; color: var(--muted); }

/* --- Карточка руководителя --- */
.lead-card {
  margin-top: 44px;
  display: grid; gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease);
}
.lead-card:hover { transform: translateY(-4px); }
@media (min-width: 640px) {
  .lead-card { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: stretch; }
}
@media (min-width: 1024px) {
  .lead-card { margin-top: 56px; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}

.lead-card__media { position: relative; overflow: hidden; display: block; aspect-ratio: 1 / 1; }
@media (min-width: 640px) { .lead-card__media { aspect-ratio: auto; height: 100%; min-height: 240px; } }
.lead-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
}
.lead-card:hover .lead-card__media img { transform: scale(1.05); }

.lead-card__body {
  display: grid; align-content: center; gap: 10px;
  padding: 26px 22px 30px;
}
@media (min-width: 640px) { .lead-card__body { padding: 32px 36px; } }
@media (min-width: 1024px) { .lead-card__body { padding: 44px 56px; } }

.lead-card__role {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua);
}
.lead-card__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(23px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.02em;
  color: #fff;
}
.lead-card__more {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8);
  transition: color .3s;
}
.lead-card__more i { font-style: normal; transition: transform .5s var(--ease-out); }
.lead-card:hover .lead-card__more { color: var(--aqua); }
.lead-card:hover .lead-card__more i { transform: translateX(5px); }

/* --- Сетка специалистов --- */
.team__grid { margin-top: 20px; display: grid; gap: 20px; }
@media (min-width: 640px) { .team__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .team__grid { margin-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.person__link { display: grid; gap: 4px; height: 100%; align-content: start; }

.person__media {
  display: block; overflow: hidden;
  border-radius: var(--radius);
  background: #e6edf1;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}
.person__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: grayscale(1) contrast(1.03);
  transition: filter .6s var(--ease), transform 1.1s var(--ease-out);
}
.person__link:hover .person__media img { filter: none; transform: scale(1.04); }

.person__name {
  font-family: var(--f-display); font-size: 18px; font-weight: 500; line-height: 1.25;
  letter-spacing: -.015em; color: var(--ink);
  transition: color .3s;
}
.person__link:hover .person__name { color: var(--brand-ink); }
.person__role { font-size: 14px; line-height: 1.45; color: var(--muted); }

.person__more {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-ink);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.person__more i { font-style: normal; transition: transform .45s var(--ease-out); }
.person__link:hover .person__more { opacity: 1; transform: none; }
.person__link:hover .person__more i { transform: translateX(4px); }

/* Очень маленькое исходное фото (200×200): не даём растянуться сильнее
   собственного размера, чтобы не было видно пикселей */
.person__media--sm img { image-rendering: auto; }

/* ==========================================================================
   БЛОК 10. ГАРАНТИИ ПОДРОБНО
   Три колонки, внутри — пары «что / как» списком определений
   ========================================================================== */
.guarantees {
  padding: 72px 0 88px;
  background: #fff;
}
@media (min-width: 1024px) { .guarantees { padding: 112px 0 128px; } }

.guarantees__head { max-width: 760px; }
.guarantees__head .eyebrow { margin-bottom: 18px; }
.guarantees__intro { margin-top: 18px; max-width: 48em; font-size: 17px; color: var(--muted); }

.guarantees__grid {
  margin-top: 44px;
  display: grid; gap: 20px;
}
@media (min-width: 640px) { .guarantees__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) {
  .guarantees__grid { margin-top: 64px; grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* --- Колонка --- */
.g-col {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: background .4s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
@media (min-width: 1024px) { .g-col { padding: 34px 30px 28px; } }
.g-col:hover {
  background: var(--bg-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

/* Верхняя акцентная полоса */
.g-col::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--brand), var(--aqua));
  transform-origin: left; transform: scaleX(.28);
  transition: transform .7s var(--ease-out);
}
@media (min-width: 1024px) { .g-col::before { left: 30px; right: 30px; } }
.g-col:hover::before { transform: scaleX(1); }

.g-col__num {
  display: block;
  font-family: var(--f-display); font-weight: 300;
  font-size: 15px; letter-spacing: .08em; line-height: 1;
  color: var(--brand);
  opacity: .55;
}

.g-col__title {
  margin-top: 12px;
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
}

.g-col__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* --- Пары «что / как» --- */
.g-rows { margin: 22px 0 0; padding: 0; }
.g-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 33, 43, .09);
}
.g-row:last-child { border-bottom: 1px solid rgba(20, 33, 43, .09); }

.g-row dt {
  flex: none;
  font-size: 13.5px; line-height: 1.4; color: var(--muted);
}
.g-row dd {
  margin: 0; text-align: right;
  font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
}

/* ==========================================================================
   БЛОК 11. ОТЗЫВЫ
   Крупная цитата + лента отзывов в несколько колонок
   ========================================================================== */
.reviews {
  padding: 72px 0 88px;
  background: var(--bg-blue);
}
@media (min-width: 1024px) { .reviews { padding: 112px 0 128px; } }

.reviews__head { max-width: 760px; }
.reviews__head .eyebrow { margin-bottom: 18px; }
.reviews__intro { margin-top: 18px; max-width: 48em; font-size: 17px; color: var(--muted); }

/* --- Крупная цитата --- */
.review-featured {
  position: relative;
  margin: 20px 0 0;
  padding: 34px 26px 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
@media (min-width: 1024px) { .review-featured { margin-top: 20px; padding: 56px 64px 48px; } }

/* Декоративная кавычка — графический элемент */
.review-featured::before {
  content: "\201C";
  position: absolute; top: -20px; left: 10px;
  font-family: var(--f-accent); font-size: 180px; line-height: 1;
  color: var(--brand); opacity: .1;
  pointer-events: none;
}
@media (min-width: 1024px) { .review-featured::before { font-size: 260px; top: -20px; left: 26px; } }

.review-featured__quote {
  position: relative; z-index: 1;
  margin: 0;
  max-width: 30em;
  font-family: var(--f-accent);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 30px);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.review-featured__author {
  position: relative; z-index: 1;
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px;
}
.review-featured__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--f-display); font-size: 19px; font-weight: 500;
}
.review-featured__author b {
  display: block;
  font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--ink);
}
.review-featured__author small { font-size: 13px; color: var(--muted); }

/* --- Лента отзывов --- */
.reviews__grid {
  margin-top: 20px;
  columns: 1;
  column-gap: 20px;
}
@media (min-width: 640px) { .reviews__grid { columns: 2; column-gap: 20px; } }
@media (min-width: 1024px) { .reviews__grid { margin-top: 24px; columns: 3; column-gap: 24px; } }

.review {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 33, 43, .05);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
@media (min-width: 1024px) { .review { margin-bottom: 24px; } }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }

.review blockquote {
  margin: 0;
  font-size: 14.5px; line-height: 1.6; color: var(--text);
}
.review figcaption {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--f-display); font-size: 14.5px; font-weight: 500; color: var(--ink);
}

/* --- Площадки отзывов (стоят над крупной цитатой) --- */
.reviews__platforms {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
@media (min-width: 1024px) { .reviews__platforms { margin-top: 40px; } }

.platform {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: box-shadow .3s var(--ease), transform .4s var(--ease-out), background .3s;
}
.platform img { width: 22px; height: 22px; }
.platform:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--brand), 0 10px 24px -14px rgba(0, 130, 187, .6);
}

/* ==========================================================================
   БЛОК 12. ЧАСТЫЕ ВОПРОСЫ
   Заголовок слева (липкий), аккордеон справа на нативном <details>
   ========================================================================== */
.faq {
  padding: 72px 0 88px;
  background: #fff;
}
@media (min-width: 1024px) { .faq { padding: 112px 0 128px; } }

.faq__inner { display: grid; gap: 36px; }
@media (min-width: 1024px) {
  .faq__inner {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    column-gap: 88px;
    align-items: start;
  }
  .faq__head { position: sticky; top: 120px; }
}

.faq__head .eyebrow { margin-bottom: 18px; }
.faq__intro { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.faq__ask {
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid; gap: 4px;
}
.faq__ask a {
  justify-self: start;
  font-family: var(--f-display); font-size: 24px; font-weight: 500; letter-spacing: -.02em;
  color: var(--ink);
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.faq__ask a:hover { color: var(--brand-ink); background-size: 100% 1.5px; }
.faq__ask span { font-size: 13.5px; color: var(--muted); }

/* --- Аккордеон --- */
.faq__list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item__q {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display); font-size: 17.5px; font-weight: 500; line-height: 1.35;
  letter-spacing: -.015em; color: var(--ink);
  transition: color .3s;
}
@media (min-width: 1024px) { .faq-item__q { font-size: 19px; padding: 26px 52px 26px 0; } }
@media (hover: hover) { .faq-item__q:hover { color: var(--brand-ink); } }

/* убираем системный треугольник */
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }

/* Плюс, который становится минусом.
   Обе полоски центрируем в одной точке (right + translate(50%,-50%)),
   иначе вертикальная встаёт на конец горизонтальной — получается «Т» */
.faq-item__q::before,
.faq-item__q::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  border-radius: 2px; background: var(--brand);
  transform: translate(50%, -50%);
  transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.faq-item__q::before { width: 16px; height: 1.6px; }
.faq-item__q::after  { width: 1.6px; height: 16px; }
.faq-item[open] .faq-item__q::after { transform: translate(50%, -50%) scaleY(0); opacity: 0; }
.faq-item[open] .faq-item__q { color: var(--brand-ink); }

.faq-item__a { padding: 0 44px 24px 0; }
@media (min-width: 1024px) { .faq-item__a { padding: 0 52px 28px 0; } }
.faq-item__a p { font-size: 15.5px; line-height: 1.62; color: var(--muted); }
.faq-item[open] .faq-item__a { animation: faqIn .45s var(--ease-out) both; }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ==========================================================================
   БЛОК 13. ФИНАЛЬНАЯ ЗАЯВКА
   Сплошная фирменная синяя секция, врач справа указывает на форму
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(90% 120% at 92% 8%, rgba(0, 213, 244, .3), rgba(0, 213, 244, 0) 58%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}
@media (min-width: 1024px) { .cta { padding: 96px 0 0; } }

.cta__inner { display: grid; gap: 0; }
@media (min-width: 1024px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    column-gap: 40px;
    align-items: end;
  }
}
@media (min-width: 1440px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 64px; }
}

.cta__content { position: relative; z-index: 1; padding-bottom: 44px; }
@media (min-width: 1024px) { .cta__content { padding-bottom: 88px; } }

/* Светлый надзаголовок */
.eyebrow--light { color: #d7fbff; }

.cta__title {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(28px, 5.6vw, 50px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.cta__title em { color: #bff4ff; }

.cta__text {
  margin-top: 18px; max-width: 46em;
  font-size: 16px; line-height: 1.62; color: rgba(255, 255, 255, .84);
}

/* --- Форма --- */
.cta .cta__form {
  margin-top: 30px;
  display: grid; gap: 12px;
}
@media (min-width: 640px) {
  .cta .cta__form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
  }
  .cta .cta__form .check { grid-column: 1 / -1; }
  .cta .cta__form .btn { min-height: 54px; }
}

/* Поля на синем — светлее, чем на графите */
.cta .field--dark .field__label { color: rgba(255, 255, 255, .72); }
.cta .field--dark .field__input {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.cta .field--dark .field__input::placeholder { color: rgba(255, 255, 255, .62); }
.cta .field--dark .field__input:hover { border-color: rgba(255, 255, 255, .55); }
.cta .field--dark .field__input:focus {
  background: rgba(255, 255, 255, .22);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.cta .field--dark .field__error { color: #fff0ee; }
.cta .check--dark { color: rgba(255, 255, 255, .72); }
.cta .check--dark a { color: #fff; }
.cta .check--dark input { accent-color: #fff; }

/* Ошибка рядом с подписью — выравнивание кнопки не сбивается */
.cta .field { position: relative; }
.cta .field__error {
  display: block;
  position: absolute; top: 0; right: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility 0s .2s;
}
.cta .field.is-invalid .field__error { opacity: 1; visibility: visible; transition-delay: 0s; }

.cta__alt { margin-top: 20px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.cta__alt a {
  font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em;
  color: #fff; margin-left: 4px;
  background: linear-gradient(#fff, #fff) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.cta__alt a:hover { background-size: 100% 1.5px; }

/* --- Фото врача --- */
.cta__media { position: relative; align-self: end; }
.cta__media img {
  position: relative; z-index: 1;
  display: block;
  width: 100%; max-width: 400px; height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, .32));
}
@media (min-width: 1024px) {
  .cta__media img { max-width: 100%; margin: 0 0 -1px; }
}

.cta__glow {
  position: absolute; left: 50%; bottom: 0;
  width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* ==========================================================================
   БЛОК 14. КОНТАКТЫ И КАРТА
   Карточка контактов лежит поверх Яндекс.Карты
   ========================================================================== */
.contacts {
  padding: 72px 0 0;
  background: #fff;
}
@media (min-width: 1024px) { .contacts { padding: 112px 0 0; } }

.contacts__head { max-width: 760px; }
.contacts__head .eyebrow { margin-bottom: 18px; }

.contacts__wrap { position: relative; margin-top: 36px; }
@media (min-width: 1024px) { .contacts__wrap { margin-top: 52px; } }

/* --- Карточка --- */
.contacts__card {
  position: relative; z-index: 2;
  margin: 0 var(--gutter) 20px;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-2);
}
@media (min-width: 640px) { .contacts__card { padding: 32px 30px; max-width: 520px; } }

@media (min-width: 1024px) {
  /* padding не даёт вертикальным отступам карточки схлопнуться с рамкой —
     иначе карточка прижимается к верхнему и нижнему краю карты */
  .contacts__wrap { min-height: 660px; padding: 48px 0; }
  .contacts__card {
    width: 440px; max-width: none;
    margin: 0 0 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  }
}
@media (min-width: 1440px) {
  .contacts__card {
    margin-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  }
}

.contacts__subtitle {
  font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25;
}
@media (min-width: 1024px) { .contacts__subtitle { font-size: 23px; } }

.contacts__list { margin-top: 20px; display: grid; gap: 16px; }

.contacts__row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contacts__row:first-child { padding-top: 0; border-top: 0; }

.contacts__row dt {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.contacts__row dt img { width: 16px; height: 16px; opacity: .85; }

.contacts__row dd {
  margin: 0;
  display: grid; gap: 2px;
  font-size: 15.5px; line-height: 1.45; color: var(--ink);
}
.contacts__row dd a { color: var(--ink); transition: color .25s; }
.contacts__row dd a:hover { color: var(--brand-ink); }
.contacts__row dd small { font-size: 12.5px; color: var(--muted); }

.contacts__actions {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}

/* --- Карта --- */
.map {
  position: relative;
  height: 380px;
  background: var(--bg-soft);
  overflow: hidden;
}
@media (min-width: 640px) { .map { height: 440px; } }

@media (min-width: 1024px) {
  .map { position: absolute; inset: 0; height: auto; z-index: 0; }
}

.map__frame {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(.92);
}

/* Заглушка от «залипания» страницы при прокрутке колесом над картой */
.map__shield {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: end center;
  padding: 14px;
  border: 0; background: transparent;
  cursor: pointer;
}
.map__shield[hidden] { display: none; }
.map__shield span {
  padding: 10px 18px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px -6px rgba(20, 33, 43, .35);
  font-family: var(--f-text); font-size: 13px; font-weight: 600; color: var(--ink);
}

/* ==========================================================================
   БЛОК 15. ПОДВАЛ
   Тёмный графит, светлый логотип
   ========================================================================== */
.footer {
  position: relative;
  padding: 56px 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
}
@media (min-width: 1024px) { .footer { padding: 72px 0 32px; } }

/* тонкая светящаяся линия сверху */
.footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, rgba(0, 213, 244, 0), var(--aqua), rgba(0, 213, 244, 0));
  opacity: .55;
}

.footer__top {
  display: grid; gap: 40px;
}
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 72px; }
}

/* --- Бренд --- */
.footer__logo { display: inline-block; }
.footer__logo img { width: 148px; height: auto; }

.footer__tagline {
  margin-top: 18px;
  max-width: 30em;
  font-size: 14.5px; line-height: 1.55;
  color: rgba(255, 255, 255, .58);
}

.footer__social { margin-top: 22px; display: flex; gap: 8px; }
.footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .3s, transform .4s var(--ease-out);
}
.footer__social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__social img { width: 18px; height: 18px; }

/* --- Навигация --- */
.footer__nav { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }
@media (min-width: 1024px) { .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; } }

.footer__title {
  font-family: var(--f-text);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua);
}

.footer__list { margin-top: 16px; display: grid; gap: 9px; }
.footer__list li { display: grid; gap: 1px; }
.footer__list a, .footer__list span {
  font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .76);
  transition: color .25s;
}
.footer__list a:hover { color: var(--aqua); }
.footer__list small { font-size: 12px; color: rgba(255, 255, 255, .42); line-height: 1.4; }

.footer__phone {
  font-family: var(--f-display); font-size: 20px !important; font-weight: 500;
  letter-spacing: -.01em; color: #fff !important;
}
.footer__list--contacts { gap: 14px; }

/* --- Правовая строка --- */
.footer__disclaimer {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: rgba(255, 255, 255, .48);
}
@media (min-width: 1024px) { .footer__disclaimer { margin-top: 56px; } }

.footer__bottom {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  font-size: 13px; color: rgba(255, 255, 255, .45);
}
.footer__copy { font-size: 13px; }
.footer__policy { color: rgba(255, 255, 255, .6); transition: color .25s; }
.footer__policy:hover { color: var(--aqua); }

/* на телефоне снизу висит панель действий — оставляем под неё место */
@media (max-width: 1023px) {
  .footer { padding-bottom: calc(28px + 68px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Мобильная нижняя панель
   ========================================================================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 33, 43, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(110%);
  transition: transform .5s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 600;
}
.mobile-bar__btn img { width: 18px; height: 18px; }
.mobile-bar__btn--ghost { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.mobile-bar__btn--primary { color: #fff; background: var(--brand); }
@media (min-width: 1250px) { .mobile-bar { display: none; } }

/* ==========================================================================
   Модальное окно заявки
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: end center; }
@media (min-width: 640px) { .modal { place-items: center; padding: 24px; } }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 20, 28, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .35s var(--ease) both;
}
.modal__dialog {
  position: relative; width: 100%; max-width: 520px;
  max-height: 92svh; overflow-y: auto;
  padding: 32px 22px calc(28px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: sheetUp .55s var(--ease-out) both;
}
@media (min-width: 640px) {
  .modal__dialog { padding: 44px 44px 40px; border-radius: 24px; animation-name: popIn; }
}
.modal.is-closing .modal__backdrop { animation: fadeOut .3s var(--ease) both; }
.modal.is-closing .modal__dialog { animation: fadeOut .25s var(--ease) both; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal__close {
  position: absolute; right: 14px; top: 14px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink);
  transition: background .2s, transform .4s var(--ease-out);
}
.modal__close:hover { background: var(--bg-blue); transform: rotate(90deg); }

.modal__title { margin-top: 14px; font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.modal__title em { color: var(--brand); }
.modal__text { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Форма */
.form { margin-top: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%; height: 54px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field__input:hover { border-color: #c7d4dc; }
.field__input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 130, 187, .14); }
.field__error { display: none; font-size: 12.5px; color: #c0392b; }
.field.is-invalid .field__input { border-color: #c0392b; }
.field.is-invalid .field__error { display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form__alt { text-align: center; font-size: 14px; color: var(--muted); }
.form__alt a { font-weight: 600; }

.form__success { display: none; text-align: center; padding: 24px 0 8px; }
.form__success-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 10px rgba(0, 130, 187, .1);
}
.form__success h3 { font-size: 26px; }
.form__success p { margin-top: 8px; color: var(--muted); }
[data-form-state="sent"] .form { display: none; }
[data-form-state="sent"] .form__success { display: block; animation: popIn .5s var(--ease-out) both; }


/* ---------- Доступность: уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__parallax { transform: none !important; }
}
