/* ==========================================================================
   Синий корпоративный медицинский стиль
   Токены → база → компоненты → секции → адаптив
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Бренд */
  --blue:        #2B6CE0;
  --blue-600:    #2258C9;
  --blue-700:    #1B47A6;
  --blue-300:    #6B9BEE;
  --blue-tint:   #EAF1FD;
  --blue-tint-2: #DCE8FC;
  --blue-grad:   linear-gradient(135deg, #3B7BE8 0%, #2258C9 100%);

  /* Акцент — призывы к действию */
  --orange:      #F58634;
  --orange-600:  #E5711B;
  --orange-grad: linear-gradient(135deg, #F99447 0%, #EE7620 100%);

  /* Срочность */
  --red:         #E23B3B;
  --red-tint:    #FDECEC;

  /* Успех */
  --green:       #1FA463;
  --green-tint:  #E6F6EE;

  /* Поверхности */
  --bg:          #F4F6FA;
  --bg-2:        #EDF1F8;
  --paper:       #FFFFFF;

  /* Текст */
  --ink:         #16181D;
  --ink-soft:    #444B5A;
  --ink-muted:   #78808F;
  --on-blue:     #FFFFFF;
  --on-blue-soft: #D3E1F9;

  /* Линии и тени */
  --line:        #E3E8F0;
  --line-strong: #CFD7E4;
  --line-blue:   rgba(255, 255, 255, .22);

  --shadow-xs: 0 1px 2px rgba(22, 24, 29, .05);
  --shadow-sm: 0 2px 10px rgba(22, 24, 29, .06);
  --shadow-md: 0 8px 26px rgba(22, 24, 29, .09);
  --shadow-lg: 0 18px 48px rgba(22, 24, 29, .13);
  --shadow-blue:   0 10px 28px rgba(43, 108, 224, .28);
  --shadow-orange: 0 10px 26px rgba(238, 118, 32, .34);

  /* Типографика */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Радиусы */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Ритм */
  --container: 1180px;
  --gutter: 24px;
  --section-y: 92px;

  /* Слои */
  --z-sticky: 20;
  --z-header: 30;
  --z-float:  35;
  --z-modal:  50;
  --z-toast:  60;

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

@media (max-width: 900px) {
  :root { --section-y: 62px; --gutter: 16px; }
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.14; }
h2 { font-size: clamp(25px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 1.9vw, 23px); }
h4 { font-size: 17px; }

/* Синим выделяется смысловая часть заголовка */
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); }

p { margin: 0 0 1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-color: rgba(43, 108, 224, .32); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }

/* Атрибут hidden должен побеждать display у классов вроде .btn */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -80px;
  z-index: 100; padding: 12px 20px;
  background: var(--blue); color: #fff;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--bg-2); }

/* Синяя секция */
.section--dark { background: var(--blue-700); color: var(--on-blue); }
.section--dark h2, .section--dark h3 { color: var(--on-blue); }
.section--dark h2 em { color: #A8C6F7; }
.section--dark p { color: var(--on-blue-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Надзаголовок: текст + синяя пилюля */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow b {
  display: inline-block;
  padding: 5px 15px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
}
.section--dark .eyebrow { color: var(--on-blue-soft); }
.section--dark .eyebrow b { background: rgba(255, 255, 255, .18); }

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 64ch;
}
.section--dark .lede { color: var(--on-blue-soft); }

.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   3. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 15px; font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

/* Основной CTA — оранжевый */
.btn--primary {
  background: var(--orange-grad);
  color: #fff;
  box-shadow: var(--shadow-orange);
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: .04em;
}
.btn--primary:hover { background: var(--orange-600); color: #fff; }

/* Второстепенный — синий */
.btn--emerald, .btn--blue { background: var(--blue); color: #fff; }
.btn--emerald:hover, .btn--blue:hover { background: var(--blue-600); color: #fff; }

.btn--outline {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

.section--dark .btn--outline,
.hero-panel .btn--outline {
  background: transparent; color: #fff; border-color: var(--line-blue);
}
.section--dark .btn--outline:hover,
.hero-panel .btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--wide { width: 100%; }
.btn--lg { min-height: 62px; padding-inline: 36px; font-size: 15.5px; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-note {
  display: block; margin-top: 11px;
  font-size: 13px; color: var(--ink-muted);
}
.section--dark .btn-note { color: var(--on-blue-soft); }

/* --------------------------------------------------------------------------
   4. Шапка
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header__row { display: flex; align-items: center; gap: 26px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.brand__tag { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 25px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue); }

.header__contact { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--blue); }
.header .btn { min-height: 46px; padding: 12px 24px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--blue); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--blue);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

/* Верхняя строка — уходит внутрь синей панели, на десктопе скрыта */
.topline { display: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: 26px clamp(40px, 5vw, 72px); }

/* Синяя панель с УТП и врачами */
.hero-panel {
  background: var(--blue-grad);
  border-radius: var(--r-xl);
  padding: 26px 30px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-blue);
  margin-bottom: clamp(34px, 4.4vw, 58px);
}
.hero-panel__claim {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 600; line-height: 1.4;
  max-width: 30ch; margin: 0;
}
.hero-panel__claim mark {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: var(--r-pill);
  padding: 2px 13px;
  white-space: nowrap;
}
.hero-panel__docs { display: flex; gap: 11px; flex: none; }
.hero-panel__docs img {
  width: 84px; height: 84px;
  border-radius: 16px; object-fit: cover;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .38);
  box-shadow: 0 4px 14px rgba(15, 40, 90, .22);
}

.hero__head { max-width: 880px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.hero__head h1 { margin-bottom: 18px; }
.hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 58ch; }

.hero__cards {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  /* Каждая карточка по своей высоте: иначе более короткая растягивается
     под соседнюю и внутри неё появляется пустая полоса */
  align-items: start;
}

/* Левая синяя карточка с подарками */
.offer-card {
  background: var(--blue-grad);
  border-radius: var(--r-lg);
  padding: 30px 32px 32px;
  color: #fff;
  box-shadow: var(--shadow-blue);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.offer-card::after {
  content: ''; position: absolute; right: -60px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.offer-card__title {
  font-size: clamp(20px, 2.1vw, 26px); font-weight: 700;
  line-height: 1.25; margin: 0 0 22px; max-width: 22ch;
  position: relative;
}
.offer-card .btn { position: relative; margin-bottom: 22px; align-self: flex-start; }
.offer-card__list { display: grid; gap: 11px; position: relative; }

/* Блок «до / после» — прижат к низу карточки, забирает свободное место */
.ba {
  position: relative;
  margin-top: auto; padding-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.ba__item {
  position: relative;
  margin: 0; min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .4);
  box-shadow: 0 6px 18px rgba(15, 40, 90, .26);
}
.ba__item img {
  width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; display: block;
}
.ba__label {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.ba__label--before { background: rgba(22, 24, 29, .74); color: #fff; }
.ba__label--after  { background: #fff; color: var(--blue); }

.ba__arrow {
  width: 34px; height: 34px; flex: none;
  display: grid; place-content: center;
  background: #fff; color: var(--blue);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 40, 90, .3);
}
.ba__arrow svg { width: 17px; height: 17px; }

.ba__note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px; color: var(--on-blue-soft);
  text-align: center;
}
.offer-card__list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15px; color: var(--on-blue-soft); line-height: 1.45;
}
.offer-card__list svg { width: 18px; height: 18px; color: #fff; flex: none; margin-top: 3px; }
.offer-card__list b { color: #fff; font-weight: 600; }

/* Правая белая карточка с ценой */
.price-card {
  position: relative; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card__label {
  font-size: clamp(17px, 1.7vw, 21px); font-weight: 600;
  color: var(--ink); line-height: 1.3; margin-bottom: 18px; max-width: 24ch;
}
.price-card__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.price-card__now {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: clamp(23px, 2.5vw, 31px); font-weight: 700;
  padding: 9px 20px; border-radius: var(--r-md);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.price-card__was { font-size: 19px; color: var(--ink-muted); text-decoration: line-through; }
.price-card__cap { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 22px; }

.price-card__timer {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--red);
  margin-bottom: 12px;
}
.price-card__timer svg { width: 17px; height: 17px; flex: none; }

.price-card__stock { margin-top: 4px; }
.price-card__stock p { font-size: 14.5px; color: var(--red); font-weight: 500; margin: 0 0 10px; }
.price-card__bar {
  height: 7px; border-radius: var(--r-pill);
  background: var(--red-tint); overflow: hidden;
}
.price-card__bar i {
  display: block; height: 100%;
  background: var(--red); border-radius: inherit;
  position: relative;
}
.price-card__bar i::after {
  content: ''; position: absolute; right: -4px; top: 50%;
  width: 13px; height: 13px; transform: translateY(-50%);
  background: var(--red); border: 2.5px solid #fff; border-radius: 50%;
}

.price-card__incl { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-card__incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.price-card__incl svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 3px; }

/* Полоса показателей */
.hero__trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 26px;
}
.hero__trust > div {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.hero__trust dt {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700;
  color: var(--blue); line-height: 1.1;
  overflow-wrap: anywhere;
}
.hero__trust dd { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   6. Подарки (переиспользуется в квизе и модалке)
   -------------------------------------------------------------------------- */
.gifts { display: grid; gap: 11px; margin: 24px 0 26px; }
.gift {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.gift__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-content: center;
  background: var(--blue-tint); color: var(--blue);
  border-radius: 10px;
}
.gift__icon svg { width: 20px; height: 20px; }
.gift__text { flex: 1; font-size: 15px; line-height: 1.45; }
.gift__price {
  font-size: 17px; font-weight: 700;
  color: var(--green); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Главврач
   -------------------------------------------------------------------------- */
.chief__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Видео вместо картинки: контейнеру нужна своя высота, кадр вертикальный —
   обрезаем его по ширине, точку фокуса на улыбке задаём в object-position */
.media-frame--video { aspect-ratio: 16 / 9; }
.media-frame--video video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  background: var(--bg-2);
}

.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px;
  display: grid; place-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.play-btn:hover { background: #fff; }
.play-btn svg { width: 24px; height: 24px; margin-left: 4px; }

.media-frame__time {
  position: absolute; right: 14px; bottom: 14px;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: rgba(22, 24, 29, .76); color: #fff;
  font-size: 12.5px; font-weight: 500;
}

.chief__sign {
  display: flex; align-items: center; gap: 15px;
  margin: 26px 0 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.chief__sign img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.chief__sign b { font-size: 18px; font-weight: 700; display: block; }
.chief__sign span { font-size: 14px; color: var(--ink-muted); }

.creds { display: grid; gap: 16px; }
.cred { display: flex; gap: 14px; align-items: flex-start; }
.cred__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-content: center;
  background: var(--blue-tint); color: var(--blue);
  border-radius: 10px;
}
.cred__icon svg { width: 19px; height: 19px; }
.cred b { display: block; font-size: 16px; font-weight: 600; color: var(--blue); }
.cred span { font-size: 14.5px; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   8. Квиз
   -------------------------------------------------------------------------- */
.quiz-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: stretch;
}

/* Карточка тянется на всю высоту левой колонки, кнопки прижаты к низу */
.quiz {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column;
}

.quiz__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 10px;
  font-size: 13.5px; color: var(--ink-muted); font-weight: 500;
}
.quiz__progress {
  height: 7px; border-radius: var(--r-pill);
  background: var(--bg-2); overflow: hidden; margin-bottom: 28px;
}
.quiz__progress i {
  display: block; height: 100%; width: 0;
  background: var(--blue); border-radius: inherit;
  transition: width 380ms var(--ease);
}

.quiz__step { display: none; border: 0; padding: 0; margin: 0; }
.quiz__step.is-active { display: block; animation: fade-up 320ms var(--ease); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.quiz__q { font-size: clamp(19px, 2.1vw, 24px); font-weight: 700; margin-bottom: 20px; padding: 0; }

.quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.quiz__option { position: relative; }
.quiz__option input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz__option label {
  display: flex; align-items: center; gap: 13px;
  min-height: 64px; padding: 13px 17px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.quiz__option label:hover { border-color: var(--blue-300); background: var(--blue-tint); }
.quiz__option input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.quiz__option input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.quiz__option label .tick {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  display: grid; place-content: center;
}
.quiz__option input:checked + label .tick { background: var(--blue); border-color: var(--blue); }
.quiz__option input:checked + label .tick::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

.quiz__nav { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 24px; }
.quiz__back {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink-muted); padding: 12px 4px;
}
.quiz__back:hover { color: var(--blue); }

.quiz__final { display: grid; gap: 15px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input[type="tel"], .field input[type="text"] {
  height: 56px; padding: 0 17px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit; font-size: 17px; color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus { border-color: var(--blue); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 13px; color: var(--red); }
.field__error:empty { display: none; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-muted); line-height: 1.5;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.consent a { color: var(--ink-soft); }

.quiz-aside .gifts { margin-top: 24px; }

/* --------------------------------------------------------------------------
   9. Показатели и принципы
   -------------------------------------------------------------------------- */
.metrics { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 38px; }
.metric {
  display: inline-flex; align-items: center; gap: 14px;
}
.metric b {
  display: inline-block;
  background: var(--paper);
  color: var(--blue);
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-md);
  line-height: 1.15; white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.metric span { font-size: 15px; color: var(--ink-soft); max-width: 15ch; line-height: 1.35; }

.section--dark .metric b { background: rgba(255, 255, 255, .14); color: #fff; }
.section--dark .metric span { color: var(--on-blue-soft); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.principle {
  padding: 24px 26px 26px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.section--dark .principle {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-blue);
}

/* Пилюля-бейдж с галочкой */
.principle__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; margin-bottom: 16px;
  background: var(--bg-2); color: var(--ink-soft);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
}
.principle__badge svg { width: 15px; height: 15px; color: var(--blue); flex: none; }
.section--dark .principle__badge { background: rgba(255, 255, 255, .13); color: #fff; }
.section--dark .principle__badge svg { color: #fff; }

.principle h3 { font-size: 19px; margin-bottom: 9px; color: var(--blue); }
.section--dark .principle h3 { color: #A8C6F7; }
.principle p { font-size: 15px; margin: 0; color: var(--ink-soft); }
.section--dark .principle p { color: var(--on-blue-soft); }

/* Раскладка секции ценностей: карточки + фото справа */
.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.values__photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 100%;
  /* фото врачей — вырезка без фона, поэтому подложку рисуем сами */
  background: linear-gradient(180deg, var(--blue-tint) 0%, #F7FAFE 55%, var(--paper) 100%);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: space-between;
}
.values__photo img {
  width: 118%; max-width: none; height: auto;
  align-self: center; margin-top: auto;
  object-fit: contain; object-position: center bottom;
}
.values__photo-text { padding: 28px 28px 0; }
.values__photo-text h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.values__photo-text p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.values__photo-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: none;
}
.values__photo-link svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.values__photo-link:hover svg { transform: translateX(4px); }
.values__likes {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(22, 24, 29, .6); color: #fff;
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.values__likes svg { width: 17px; height: 17px; color: #FF5A5A; }

/* --------------------------------------------------------------------------
   10. Сложные случаи + до/после
   -------------------------------------------------------------------------- */
.cases-intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.case-type {
  padding: 24px 26px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.case-type__icon {
  width: 44px; height: 44px; margin-bottom: 16px;
  display: grid; place-content: center;
  background: var(--blue-tint); color: var(--blue); border-radius: 12px;
}
.case-type__icon svg { width: 21px; height: 21px; }
.case-type h3 { font-size: 18px; margin-bottom: 7px; color: var(--blue); }
.case-type p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Карусель */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 22px; transition: transform 460ms var(--ease); will-change: transform; }
.carousel__slide { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
/* Врачи — портреты 3:4, поэтому карточка уже: четыре в ряд на десктопе */
@media (min-width: 1201px) {
  #teamCarousel .carousel__slide { flex-basis: calc((100% - 66px) / 4); }
}

.carousel__controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.carousel__btn {
  width: 50px; height: 50px;
  display: grid; place-content: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%; cursor: pointer;
  color: var(--blue);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.carousel__btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel__btn[disabled] { opacity: .38; cursor: default; }
.carousel__btn[disabled]:hover { background: var(--paper); color: var(--blue); border-color: var(--line-strong); }
.carousel__btn svg { width: 19px; height: 19px; }

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  height: 100%; display: flex; flex-direction: column;
}
.compare {
  position: relative; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--bg-2);
  cursor: ew-resize; touch-action: none; user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 50%); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(22, 24, 29, .12);
}
.compare__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%232B6CE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.compare__tag {
  position: absolute; top: 13px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: 13px; background: rgba(22, 24, 29, .7); color: #fff; }
.compare__tag--after  { right: 13px; background: var(--blue); color: #fff; }

.case-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.case-card__body p { font-size: 15px; margin: 0; flex: 1; }
.case-card__meta { font-size: 13px; color: var(--ink-muted); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--blue);
  text-decoration: none; background: none; border: 0; padding: 0;
  cursor: pointer; font-family: inherit;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11. Результат
   -------------------------------------------------------------------------- */
.result__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px); align-items: center;
}
.result__list { display: grid; gap: 13px; margin-top: 26px; }
.result__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; color: var(--ink-soft);
}
.result__list svg { width: 21px; height: 21px; color: var(--green); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   12. CTA-баннер
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--blue-grad);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 54px);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.cta-band::before {
  content: ''; position: absolute; left: -110px; bottom: -150px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta-band__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(26px, 4vw, 52px); align-items: center; position: relative;
}
.cta-band h2 { color: #fff; margin-bottom: 24px; }
.cta-band h2 em { color: #C8DBFB; }
.cta-band .eyebrow { color: var(--on-blue-soft); }
.cta-band .eyebrow b { background: rgba(255, 255, 255, .2); }
.cta-band .btn-note { color: var(--on-blue-soft); }

.cta-band__list { display: grid; gap: 13px; margin-bottom: 30px; }
.cta-band__list li {
  position: relative; padding-left: 33px;
  font-size: 15.5px; line-height: 1.5; color: var(--on-blue-soft);
}
.cta-band__list svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: #fff; }
.cta-band__list b { color: #fff; font-weight: 600; }

.mini-price {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--r-lg);
  padding: 28px 30px 26px;
  box-shadow: 0 18px 44px rgba(11, 34, 84, .18);
}
/* Имплант в нижнем углу плашки с ценой — декор: не мешает кликам, скрыт от скринридера */
.implant-pic {
  position: absolute; right: 22px; bottom: 20px;
  width: 62px; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(11, 34, 84, .16));
}
.mini-price__label {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 600;
  color: var(--ink); line-height: 1.3; margin-bottom: 16px;
  max-width: 22ch;
}
.mini-price__row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.mini-price__now {
  display: inline-block;
  background: var(--blue); color: #fff;
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1;
  padding: 10px 20px; border-radius: var(--r-md);
  letter-spacing: -.02em; overflow-wrap: anywhere;
}
.mini-price__was { font-size: 17px; color: var(--ink-muted); text-decoration: line-through; }
.mini-price__cap {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); margin: 22px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mini-price__timer {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--red);
  margin: 20px 0 12px;
}
.mini-price__timer svg { width: 17px; height: 17px; flex: none; }

.mini-price__stock p { font-size: 14px; color: var(--red); font-weight: 500; margin: 0 0 10px; }
.mini-price__bar {
  height: 7px; border-radius: var(--r-pill);
  background: var(--red-tint); overflow: hidden;
}
.mini-price__bar i {
  display: block; height: 100%;
  background: var(--red); border-radius: inherit; position: relative;
}
.mini-price__bar i::after {
  content: ''; position: absolute; right: -4px; top: 50%;
  width: 13px; height: 13px; transform: translateY(-50%);
  background: var(--red); border: 2.5px solid #fff; border-radius: 50%;
}

.mini-price__incl { display: grid; gap: 9px; margin-top: 13px; }
.mini-price__incl li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-soft);
}
.mini-price__incl svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   13. Команда врачей
   -------------------------------------------------------------------------- */
.doctor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  height: 100%; display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doctor-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.doctor-card__media {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #F8FAFE 62%, var(--paper) 100%);
}
.doctor-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-card__media .play-btn { width: 56px; height: 56px; }
.doctor-card__media .play-btn svg { width: 19px; height: 19px; }

.doctor-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.doctor-card__name { font-size: 18px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.doctor-card__role { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.doctor-card__exp {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--blue-tint); color: var(--blue);
  font-size: 13px; font-weight: 600;
}
.doctor-card__rating {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.rating { display: flex; align-items: center; gap: 7px; }
.rating .stars { display: inline-flex; gap: 1px; color: #F5A623; margin-left: auto; }
.rating .stars svg { width: 13px; height: 13px; flex: none; }
.rating__logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.rating__src {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doctor-card__docs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.doctor-card__docs img {
  width: 44px; height: 60px; object-fit: cover; object-position: top center;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.doctor-card__docs img:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.doctor-card__docs img:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   14. Гарантии и пакеты
   -------------------------------------------------------------------------- */
.guarantees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.guarantee {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.guarantee__icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-content: center;
  background: var(--blue-tint); color: var(--blue); border-radius: 11px;
}
.guarantee__icon svg { width: 20px; height: 20px; }
.guarantee b { display: block; font-size: 16.5px; margin-bottom: 4px; color: var(--blue); }
.guarantee span { font-size: 14.5px; color: var(--ink-soft); }

.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.package {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: box-shadow var(--dur) var(--ease);
}
.package:hover { box-shadow: var(--shadow-md); }
.package--featured { border-color: var(--blue); border-width: 2px; box-shadow: var(--shadow-blue); }
.package__flag {
  position: absolute; top: -12px; left: 22px;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700;
}
.package__origin { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.package__brand { font-size: 21px; font-weight: 700; margin: 7px 0 16px; }
.package__img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg); border-radius: var(--r-md);
  margin-bottom: 18px; padding: 12px;
}
.package__list { display: grid; gap: 8px; margin-bottom: 20px; }
.package__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.package__list svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }

.package__price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.package__was { font-size: 15px; color: var(--ink-muted); text-decoration: line-through; }
.package__now { font-size: 27px; font-weight: 700; color: var(--blue); line-height: 1.1; display: block; margin: 3px 0; }
.package__mo { font-size: 13.5px; color: var(--ink-muted); }
.package .btn { margin-top: 16px; }

/* --------------------------------------------------------------------------
   15. Подход
   -------------------------------------------------------------------------- */
.approach__wide { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 38px; box-shadow: var(--shadow-md); }
.approach__wide img { width: 100%; }
.approach__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
.approach__col h3 { margin-bottom: 12px; color: var(--blue); }
.approach__col .media-frame { margin-top: 18px; aspect-ratio: 16 / 9; }
.approach__note {
  margin-top: 38px; padding: 26px 30px;
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600; line-height: 1.45;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   16. Отзывы
   -------------------------------------------------------------------------- */
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.review-card__quote {
  margin: 0; padding: 44px 22px 18px;
  font-size: 18px; font-weight: 600; line-height: 1.4;
  position: relative; color: var(--blue);
}
.review-card__quote::before {
  content: '“'; font-size: 54px; line-height: 1;
  color: var(--blue-tint-2);
  position: absolute; top: 16px; left: 20px;
}
.review-card__person {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 22px 18px; font-size: 14px; color: var(--ink-muted);
}
.review-card__person b { color: var(--ink); font-weight: 600; }
.review-card > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--bg-2); border-block: 1px solid var(--line);
}
.review-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.review-card__body p { font-size: 15px; margin: 0; flex: 1; color: var(--ink-soft); }
.review-card__doc {
  display: flex; align-items: center; gap: 11px;
  padding-top: 15px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-muted);
}
.review-card__doc img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.review-card__doc b { display: block; color: var(--ink); font-size: 14.5px; }

.trustband { text-align: center; }
.trustband__logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px; margin-top: 34px;
}
.trustband__logos img {
  height: 88px; width: 88px; border-radius: 16px; object-fit: cover;
  border: 2px solid var(--paper); box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   17. Адреса
   -------------------------------------------------------------------------- */
/* Слева список филиалов, справа общая карта с метками */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.contacts__list { display: grid; gap: 16px; }

.clinic {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: grid; gap: 8px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.clinic:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-300); }
.clinic__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.clinic__tag svg { width: 17px; height: 17px; flex: none; }
.clinic__addr { font-size: 19px; font-weight: 700; margin: 0; }
.clinic__hours {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--ink-soft); margin: 0;
}
.clinic__hours svg { width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.clinic__phone {
  font-size: 16px; font-weight: 700; color: var(--ink);
  text-decoration: none; justify-self: start;
}
.clinic__phone:hover { color: var(--blue); }
.clinic__legal {
  font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); margin: 0;
  padding-top: 10px; border-top: 1px solid var(--line);
}

.contacts__map { display: grid; gap: 16px; }
.contacts__map iframe {
  width: 100%; aspect-ratio: 4 / 3; min-height: 340px;
  border: 0; border-radius: var(--r-lg); display: block;
  box-shadow: var(--shadow-md); background: var(--bg-2);
}
.contacts__map .btn { width: 100%; }
.contacts__map .btn-note { text-align: center; }

/* --------------------------------------------------------------------------
   18. Подвал
   -------------------------------------------------------------------------- */
.footer {
  background: #131A2B;
  color: #9AA4B8;
  padding-block: 56px 28px;
  font-size: 14.5px;
}
.footer a { color: #9AA4B8; }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 38px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #9AA4B8; }
.footer h4 {
  color: #fff; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer__legal { display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; }
.footer__links { display: grid; gap: 9px; }
.footer__phone { font-size: 21px; font-weight: 700; color: #fff !important; text-decoration: none; }
.footer__licenses { display: flex; gap: 10px; margin-top: 15px; }
.footer__licenses img {
  width: 62px; height: 84px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px; cursor: pointer;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  justify-content: space-between; padding-top: 26px; font-size: 12.5px; line-height: 1.5;
}
.footer__disclaimer {
  /* max-width:70ch с общего правила для p обрезал плашку — здесь она во всю ширину */
  flex: 0 0 100%; max-width: none;
  padding: 15px 20px; margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm);
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 11.5px; text-align: center; color: #fff;
}

/* --------------------------------------------------------------------------
   19. Модальные окна
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(19, 26, 43, .6);
  backdrop-filter: blur(4px);
  animation: fade 220ms var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  position: relative; width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-lg);
  animation: pop 260ms var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute; top: 13px; right: 13px;
  width: 42px; height: 42px;
  display: grid; place-content: center;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--ink-muted);
  transition: background var(--dur) var(--ease);
}
.modal__close:hover { background: var(--bg-2); color: var(--ink); }
.modal__close svg { width: 20px; height: 20px; }

.modal h3 { font-size: clamp(21px, 2.5vw, 26px); margin-bottom: 8px; padding-right: 40px; }
.modal__sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; }
.modal .gifts { margin: 0 0 20px; gap: 9px; }
.modal .gift { padding: 12px 15px; }
.modal .gift__icon { width: 34px; height: 34px; }
.modal .gift__icon svg { width: 17px; height: 17px; }
.modal .gift__text { font-size: 14.5px; }
.modal form { display: grid; gap: 15px; }

.form-state { display: none; text-align: center; }
.form-state.is-active { display: block; }
.form-state__icon {
  width: 70px; height: 70px; margin: 0 auto 18px;
  display: grid; place-content: center; border-radius: 50%;
}
.form-state__icon svg { width: 32px; height: 32px; }
.form-state--success .form-state__icon { background: var(--green-tint); color: var(--green); }
.form-state--error .form-state__icon   { background: var(--red-tint); color: var(--red); }
.form-state--dup .form-state__icon     { background: var(--blue-tint); color: var(--blue); }
.form-state p { margin-inline: auto; }
.form-state__phone {
  display: inline-block; margin-top: 14px;
  font-size: 25px; font-weight: 700; color: var(--blue); text-decoration: none;
}

/* --------------------------------------------------------------------------
   20. Cookie, плавающие кнопки, лайтбокс
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  z-index: var(--z-toast);
  display: none; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 700px; margin-inline: auto;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.cookie.is-open { display: flex; }
.cookie p { margin: 0; flex: 1; min-width: 200px; }
.cookie .btn { min-height: 44px; padding-inline: 24px; font-size: 14px; }

/* Плавающие кнопки справа */
.floaties {
  position: fixed; right: 20px; bottom: 24px;
  z-index: var(--z-float);
  display: flex; flex-direction: column; gap: 12px;
}
.floatie {
  width: 58px; height: 58px;
  display: grid; place-content: center;
  border: 0; border-radius: 50%;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.floatie svg { width: 24px; height: 24px; }
.floatie--call { background: var(--orange); color: #fff; }
.floatie--call:hover { background: var(--orange-600); color: #fff; }
.floatie--up {
  background: var(--paper); color: var(--blue);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden;
}
.floatie--up.is-visible { opacity: 1; visibility: visible; }
.floatie--up:hover { background: var(--blue-tint); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; min-height: 50px; padding-inline: 14px; font-size: 14px; }
.sticky-cta .btn--outline { flex: 0 0 54px; padding: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; align-items: center; justify-content: center;
  padding: 28px; background: rgba(19, 26, 43, .9);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--r-sm); }

/* --------------------------------------------------------------------------
   21. Появление блоков
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Мобильное меню
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .header.is-menu-open .nav {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px var(--gutter) 20px;
    animation: fade-up 220ms var(--ease);
  }
  .header.is-menu-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .header.is-menu-open .nav__link {
    display: block; padding: 14px 2px; font-size: 16.5px;
    border-bottom: 1px solid var(--line);
  }
  .header.is-menu-open .nav__list li:last-child .nav__link { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   23. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__slide { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .header__row { gap: 14px; }
  .burger { display: inline-flex; margin-left: auto; }
  .header__contact { display: none; }

  .hero__cards,
  .chief__grid,
  .quiz-wrap,
  .result__grid,
  .cta-band__grid,
  .approach__cols,
  .values__grid,
  .contacts__grid { grid-template-columns: minmax(0, 1fr); }

  .values__photo { min-height: 300px; }
  .hero-panel { justify-content: center; text-align: center; }
  .hero-panel__claim { max-width: none; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cases-intro { grid-template-columns: minmax(0, 1fr); }
  .principles, .guarantees { grid-template-columns: minmax(0, 1fr); }
  .carousel__slide { flex-basis: 100%; }
  /* На узком экране карточка врача во всю ширину — вертикальное фото было бы во весь экран */
  .doctor-card__media { aspect-ratio: auto; height: 320px; }
  .doctor-card__name { min-height: 0; }
  .packages { grid-template-columns: minmax(0, 1fr); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 74px; }
  .cookie { bottom: 86px; }
  .floaties { bottom: 88px; right: 14px; }
  .floatie { width: 52px; height: 52px; }
  .hero-panel__docs img { width: 62px; height: 62px; }
}

@media (max-width: 560px) {
  .quiz__options { grid-template-columns: minmax(0, 1fr); }
  .hero__trust { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .offer-card .btn { align-self: stretch; }
  .sticky-cta .btn { width: auto; }
  .carousel__controls { justify-content: center; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .review-card__person { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-panel__docs { flex-wrap: wrap; justify-content: center; }
  .hero-panel__docs img { width: 56px; height: 56px; }
  .metric { width: 100%; }
}
