/* ============================================================
   Лендинг Попова В. О. — симультанная хирургия
   Дизайн-система и стили. Один файл, без сборщика.
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

/* ---------- Токены ---------- */
:root {
  /* цвет */
  --deep:      #122043;   /* глубокий синий: тёмные секции */
  --deep-dark: #0C1730;   /* подвал */
  --deep-soft: #2A4A8C;
  --ink:       #101828;   /* заголовки, почти чёрный */
  --body:      #475467;
  --muted:     #667085;
  --bg:        #FFFFFF;
  --bg-alt:    #F4F7FB;   /* холодный светлый фон чередующихся секций */
  --surface:   #FFFFFF;
  --line:      #E3E8EF;
  --line-soft: #EEF2F7;
  --accent:    #2563EB;   /* яркий синий: кнопки и акценты */
  --accent-dk: #1D4ED8;
  --accent-lt: #EFF4FF;
  --accent-on-dark: #8AB0FF; /* акцент поверх тёмно-синего */
  --ok:        #17795E;
  --warn:      #B54708;
  --err:       #B42318;

  /* типографика */
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ритм */
  --gap: 24px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 56px rgba(16, 24, 40, .12);
  --header-h: 76px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }
ul, ol { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { width: auto; height: auto; clip-path: none; }

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 { font-size: clamp(29px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.28; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Раскладка ---------- */
.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 48px); }

.section { padding: clamp(64px, 8vw, 112px) 0; }
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section--tight { padding-block: clamp(56px, 6vw, 84px); }
.section--slim { padding-block: clamp(48px, 5vw, 72px); }
.section--muted { background: var(--bg-alt); }
.section--dark { background: var(--deep); }
.section--form { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--body);
}
.section__cta { margin-top: 40px; text-align: center; }
.section__cta .hero__note { margin-top: 14px; }

/* тёмная секция */
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark { color: #C4D2EA; }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--dark .section__lead { color: #B7C6E4; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(180deg, #2E6BF0 0%, var(--accent) 55%, var(--accent-dk) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 16px rgba(37, 99, 235, .22);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dk) 60%, #1A45C2 100%);
  color: #fff;
}

.btn--outline { border-color: currentColor; color: var(--deep); }
.btn--outline:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.section--dark .btn--outline { color: #fff; }
.section--dark .btn--outline:hover { background: #fff; color: var(--deep); border-color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--deep); background: var(--surface); }
.btn--ghost:hover { border-color: var(--deep); color: var(--deep); }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .05);
}
.header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--accent);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--display); font-size: 17px; font-weight: 800;
  color: var(--ink); line-height: 1.2; letter-spacing: -0.01em;
}
.brand__role { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.nav { margin-left: auto; }
.nav__foot { display: none; }
.nav__list { display: flex; gap: 22px; }
.nav__list a {
  font-size: 14.5px; font-weight: 600; color: var(--body);
  text-decoration: none; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--deep); border-bottom-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone {
  font-weight: 700; font-size: 15px; color: var(--deep); text-decoration: none; white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.burger { display: none; width: 42px; height: 42px; padding: 10px; }
.burger span {
  display: block; height: 2px; background: var(--deep); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(760px 460px at 82% -6%, rgba(37, 99, 235, .10), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  padding-top: clamp(44px, 5vw, 76px);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 84px);
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 620px;
  color: var(--body);
}
.hero__points { margin: 26px 0 0; display: grid; gap: 11px; max-width: 620px; }
.hero__points li {
  position: relative; padding-left: 30px; font-size: 15.5px; color: var(--body);
}
.hero__points li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--accent);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%;
}
.hero__media figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-radius: 12px; padding: 14px 16px;
  font-size: 13px; line-height: 1.45; color: var(--body);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .1);
}
.hero__media figcaption strong {
  display: block; font-family: var(--display); font-size: 15px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 3px;
}

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 1px; }
.hero__facts b {
  font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.hero__facts span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   СХЕМА «ОБЫЧНО / СИМУЛЬТАННО»
   ============================================================ */
.scheme { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.scheme__col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
}
.scheme__col--accent {
  background: var(--deep); border-color: var(--deep);
  color: #C4D2EA;
}
.scheme__tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.scheme__col--accent .scheme__tag { color: var(--accent-on-dark); }
.scheme__track { display: grid; gap: 12px; flex: 1; align-content: start; }
.scheme__step {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-alt); border-radius: 12px; padding: 16px 18px;
  font-size: 15px; color: var(--body);
}
.scheme__col--accent .scheme__step {
  background: rgba(255, 255, 255, .08); color: #DAE3F5;
}
.scheme__step--wide { padding-block: 30px; font-size: 16px; font-weight: 600; }
.scheme__n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--deep);
}
.scheme__col--accent .scheme__n {
  background: var(--accent); border-color: var(--accent); color: #fff; width: 52px; border-radius: 26px;
}
.scheme__gap {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 4px 0; position: relative;
}
.scheme__gap::before, .scheme__gap::after {
  content: ""; position: absolute; top: 50%; width: 22%; height: 1px; background: var(--line);
}
.scheme__gap::before { left: 6%; }
.scheme__gap::after { right: 6%; }
.scheme__foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.scheme__col--accent .scheme__foot { color: #93A5C9; }

.disclaimer {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-lt);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px; color: #33456B;
}

/* ============================================================
   САМОИДЕНТИФИКАЦИЯ: «С ЧЕМ ВЫ СТОЛКНУЛИСЬ»
   ============================================================ */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.segment {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.segment:hover {
  border-color: var(--accent); box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.segment__title {
  font-size: 19px; font-weight: 800; line-height: 1.28;
  letter-spacing: -0.02em; color: var(--ink);
}
.segment__text { font-size: 15px; color: var(--muted); flex: 1; }
.segment__more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--accent);
}
.segment__more svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.segment:hover .segment__more svg { transform: translateX(3px); }

/* ============================================================
   КОМБИНАЦИИ
   ============================================================ */
.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.combo {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 16px;
  height: 100%;
}
.combo__formula {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #9FB4D8;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.combo__formula em { font-style: normal; color: var(--accent-on-dark); font-size: 16px; }
.combo h3 { color: #fff; }
.combo p { font-size: 15px; color: #AFC0DF; }
.combo__list { display: grid; gap: 8px; padding-top: 4px; }
.combo__list li {
  position: relative; padding-left: 20px; font-size: 14.5px; color: #A9BBDA;
}
.combo__list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-dark);
}
.combo .btn { margin-top: auto; }

/* Светлая карточка в центре — переопределения идут после базовых правил,
   иначе при равной специфичности побеждает тёмный вариант. */
.combo--featured {
  background: var(--surface); border-color: var(--surface);
  box-shadow: var(--shadow-lg);
}
.combo--featured h3 { color: var(--ink); }
.combo--featured p { color: var(--body); }
.combo--featured .combo__list li { color: var(--body); }
.combo--featured .combo__list li::before { background: var(--accent); }
.combo--featured .combo__formula { color: var(--deep); border-bottom-color: var(--line); }
.combo--featured .combo__formula em { color: var(--accent); }

/* ============================================================
   ВЫГОДЫ
   ============================================================ */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.benefit { background: var(--surface); padding: 30px 28px; }
.benefit__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-lt); margin-bottom: 16px;
}
.benefit__icon svg {
  width: 22px; height: 22px; fill: none;
  stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.benefit h3 { margin-bottom: 8px; font-size: 18px; }
.benefit p { font-size: 15px; color: var(--muted); }

.callout {
  margin-top: 32px; padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.callout--warn { border-left: 4px solid var(--warn); }
.callout h3 { margin-bottom: 10px; }
.callout p { font-size: 15.5px; }

/* ============================================================
   КОМУ ПОДХОДИТ
   ============================================================ */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 19px; }
.card__badge {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.card--yes { border-top: 3px solid var(--ok); }
.card--yes .card__badge { background: #E3F5EE; color: var(--ok); }
.card--no { border-top: 3px solid var(--muted); }
.card--no .card__badge { background: var(--bg-alt); color: var(--muted); }
.card ul { display: grid; gap: 11px; }
.card li { position: relative; padding-left: 22px; font-size: 15px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 7px; height: 2px; border-radius: 2px; background: var(--line);
}
.card--yes li::before { background: var(--ok); }
.card li em { font-style: italic; color: var(--ink); font-weight: 600; }

/* ============================================================
   АНАТОМИЯ
   ============================================================ */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.anatomy__text { display: grid; gap: 22px; }
.layer {
  padding-left: 22px; border-left: 2px solid var(--line);
}
.layer h3 { margin-bottom: 7px; }
.layer p { font-size: 15.5px; }
.layer--accent { border-left-color: var(--accent); }

.anatomy__figure {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.anatomy__switch {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-alt); border-radius: 10px; margin-bottom: 18px;
}
.anatomy__switch button {
  flex: 1; padding: 9px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.anatomy__switch button.is-active { background: var(--surface); color: var(--deep); box-shadow: var(--shadow); }

.anatomy__svg { width: 100%; height: auto; }
.an-skin { fill: #EDF1F7; stroke: #C3CDDE; stroke-width: 2; }
.an-fold { fill: none; stroke: #C3CDDE; stroke-width: 2; stroke-linecap: round; }
.an-navel { fill: none; stroke: #B4C0D4; stroke-width: 2; }
.an-muscle { fill: #DBE5FA; stroke: var(--deep-soft); stroke-width: 2; stroke-linejoin: round; }
.an-line { fill: none; stroke: var(--deep-soft); stroke-width: 2; stroke-linecap: round; }
.an-line--h { fill: none; stroke: var(--deep-soft); stroke-width: 2; stroke-linecap: round; opacity: .4; }
.an-diastasis { fill: rgba(37, 99, 235, .09); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.an-defect { fill: rgba(37, 99, 235, .14); stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 5 4; }
.an-label {
  font-family: var(--sans); font-size: 12px; fill: var(--muted);
  text-anchor: middle; font-weight: 600;
}
.an-outer, .an-inner { transition: opacity .35s; }
.anatomy__svg[data-layer="outer"] .an-inner { opacity: 0; pointer-events: none; }
.anatomy__svg[data-layer="inner"] .an-outer { opacity: .12; }
.anatomy__svg[data-layer="inner"] .an-outer .an-label { opacity: 0; }
.anatomy__svg[data-layer="both"] .an-skin { fill: rgba(237, 241, 247, .55); }
.anatomy__svg[data-layer="both"] .an-outer .an-label { opacity: 0; }
.anatomy__cap { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ============================================================
   КЛИНИЧЕСКИЕ СЛУЧАИ
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--gap); }
.case {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.case__media { position: relative; background: var(--bg-alt); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.compare__img {
  width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover;
  transition: transform .45s ease;
}
.compare__tag {
  position: absolute; top: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(16, 24, 40, .82); color: #fff;
  padding: 4px 10px; border-radius: 20px;
}
.compare__tag--l { left: 12px; }
.compare__tag--r { left: calc(50% + 12px); }


.case__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__kind {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.case__body h3 { font-size: 19px; }
.case__facts { display: grid; gap: 2px; margin-top: 4px; }
.case__facts dt {
  font-size: 12px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 16px; line-height: 1.4;
}
.case__facts dt:first-child { margin-top: 0; }
.case__facts dd { margin: 0; font-size: 15px; color: var(--body); }

/* ============================================================
   ПУТЬ ПАЦИЕНТА
   ============================================================ */
.path {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; counter-reset: step;
}
.path__item {
  background: var(--surface); padding: 26px 26px 28px;
  counter-increment: step;
}
.path__item::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 14px; font-weight: 800;
  color: var(--accent); letter-spacing: .02em; margin-bottom: 10px;
}
.path__item h3 { font-size: 17.5px; margin-bottom: 6px; }
.path__item p { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   БЕЗОПАСНОСТЬ
   ============================================================ */
.safety { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.safety__list { display: grid; gap: 14px; }
.safety__list li {
  position: relative; padding-left: 34px; font-size: 16px; color: #C4D2EA;
}
.safety__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 20px; height: 11px;
  border-left: 2px solid var(--accent-on-dark); border-bottom: 2px solid var(--accent-on-dark);
  transform: rotate(-45deg);
}
.safety__aside {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.safety__aside h3 { margin-bottom: 12px; font-size: 20px; }
.safety__aside p { font-size: 15px; color: #AFC0DF; }
.safety__quote {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--display); font-size: 17px !important; font-weight: 700; color: #fff !important;
  letter-spacing: -0.015em;
}

/* ============================================================
   РЕАБИЛИТАЦИЯ
   ============================================================ */
.recovery { display: grid; gap: 14px; }
.rec {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.rec__when {
  font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em;
}
.rec p { font-size: 15.5px; }
.rec--alert { border-color: #CFDCF5; background: var(--accent-lt); }
.rec--alert .rec__when { color: var(--accent-dk); }
.rec--alert p { color: #33456B; }

/* ============================================================
   О ВРАЧЕ
   ============================================================ */
.doctor { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.doctor__photo img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 15%;
}
.doctor__lead { font-size: 18px; margin: 18px 0 14px; }
.doctor__body > p { font-size: 16px; }
.doctor__facts { display: grid; gap: 10px; margin: 26px 0; }
.doctor__facts li {
  position: relative; padding-left: 26px; font-size: 15.5px;
}
.doctor__facts li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--accent);
}
.doctor__reviews { padding-top: 22px; border-top: 1px solid var(--line); }
.doctor__reviews-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doctor__links { display: flex; flex-wrap: wrap; gap: 10px; }
.doctor__links a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); font-size: 14px; font-weight: 600;
  color: var(--deep); text-decoration: none;
}
.doctor__links a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   КЛИНИКА
   ============================================================ */
.clinic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.clinic__body h2 { margin-bottom: 18px; }
.clinic__body p { font-size: 16px; }
.clinic__list { display: grid; gap: 10px; margin: 22px 0; }
.clinic__list li { position: relative; padding-left: 26px; font-size: 15.5px; }
.clinic__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--accent);
}
.clinic__addr { font-family: var(--display); font-size: 18px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.clinic__photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ============================================================
   ДРУГИЕ НАПРАВЛЕНИЯ
   ============================================================ */
.other { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.other__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.other__item h3 { font-size: 17px; margin-bottom: 8px; }
.other__item p { font-size: 14.5px; color: var(--muted); }

/* ============================================================
   СТОИМОСТЬ
   ============================================================ */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.price__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.price__card h3 { margin-bottom: 18px; }
.price__list { display: grid; gap: 11px; }
.price__list li { position: relative; padding-left: 28px; font-size: 15px; }
.price__list li::before {
  position: absolute; left: 0; top: 0; font-weight: 700;
}
.price__list--in li::before { content: "+"; color: var(--ok); font-size: 18px; }
.price__list--out li::before { content: "−"; color: var(--muted); font-size: 18px; }

.price__cta {
  margin-top: var(--gap);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--deep); color: #B7C6E4;
  border-radius: var(--radius-lg); padding: 32px 36px;
}
.price__cta h3 { color: #fff; margin-bottom: 8px; }
.price__cta p { font-size: 15px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--display); font-size: 17.5px; font-weight: 700; color: var(--ink);
  line-height: 1.4; letter-spacing: -0.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 24px; top: 27px;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq__item[open] { border-color: #CBD9F0; }
.faq__body { padding: 0 24px 22px; }
.faq__body p { font-size: 15.5px; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.formblock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.formblock__head { margin-bottom: 30px; }
.formblock__head h2 { margin-bottom: 14px; }
.formblock__head p { font-size: 16px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label i { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--deep); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field__error { font-size: 13px; color: var(--err); min-height: 0; }
.field.is-invalid .field__error { min-height: 18px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.check i { color: var(--accent); font-style: normal; }
.check.is-invalid span { color: var(--err); }

.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form__status { font-size: 14.5px; text-align: center; display: none; padding: 12px; border-radius: 10px; }
.form__status.is-ok { display: block; background: #E3F5EE; color: var(--ok); }
.form__status.is-error { display: block; background: #FEF0EF; color: var(--err); }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.contacts h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); color: #8496BD; margin-bottom: 12px; }
.contacts h3 + h3 { margin-top: 26px; }
.contacts__col > .btn { margin-top: 18px; }
.contacts__big {
  display: block; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800; letter-spacing: -0.03em; color: #fff; text-decoration: none; margin-bottom: 6px;
}
.contacts__big:hover { color: var(--accent-on-dark); }
.contacts__text { font-size: 16px; color: #B7C6E4; }
.contacts__text a { color: #fff; }
.contacts__text a:hover { color: var(--accent-on-dark); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--deep-dark); color: #8B9BBE; padding: 56px 0 40px; font-size: 14px; }
.footer__top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .brand__mark { color: #fff; width: 36px; height: 36px; }
.footer__name { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.footer__role { font-size: 13px; color: #7788AC; }
.footer__nav { display: grid; gap: 9px; align-content: center; }
.footer__nav a { color: #A3B3D3; text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__legal { padding-top: 28px; display: grid; gap: 14px; }
.footer__legal p { font-size: 13.5px; line-height: 1.6; }
.footer__warning {
  font-weight: 700; color: #D6E0F2;
  padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  display: inline-block;
}
.footer__copy { color: #6B7C9E; font-size: 12.5px; }
.todo { color: #93B0EA; }

/* ============================================================
   МОБИЛЬНАЯ ПАНЕЛЬ
   ============================================================ */
.dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.dock__btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 10px;
  font-size: 12px; font-weight: 700; color: var(--deep); text-decoration: none;
}
.dock__btn svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dock__btn--primary { background: var(--accent); color: #fff; }

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); backdrop-filter: blur(3px); }
.modal__window {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  animation: modal-in .28s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted);
}
.modal__close:hover { background: var(--bg-alt); color: var(--ink); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__lead { font-size: 15px; color: var(--muted); margin: 12px 0 24px; }
.modal h2 { font-size: clamp(24px, 3vw, 30px); }
body.is-locked { overflow: hidden; }

/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================================ */
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.legal h2 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 38px 0 12px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p { margin-bottom: 14px; font-size: 16px; }
.legal ul { display: grid; gap: 9px; margin: 0 0 18px; }
.legal li { position: relative; padding-left: 22px; font-size: 16px; }
.legal li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 2px; border-radius: 2px; background: var(--accent);
}
.legal__date { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.legal__back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal__window { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1180px) {
  .nav__list { gap: 16px; }
  .nav__list a { font-size: 13.5px; }
  .header__phone { display: none; }
}

@media (max-width: 1024px) {
  .combos, .cases, .other, .segments { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .safety { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container, .container--narrow { width: min(100% - 36px, 1200px); }

  /* backdrop-filter на шапке делает её containing block для position: fixed
     потомков — из-за этого выпадающее меню схлопывалось по высоте.
     На мобильных размытие не нужно: шапка и так непрозрачная. */
  .header { background: var(--bg); backdrop-filter: none; }

  /* Скрытое меню убирается из потока целиком: иначе сдвинутый за экран
     фиксированный блок растягивает документ по горизонтали. */
  .nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    background: var(--bg);
    padding: 24px 24px 40px;
    overflow-y: auto;
  }
  .nav.is-open { display: block; animation: nav-in .22s ease; }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block; padding: 16px 0; font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a:hover { border-bottom-color: var(--line); }

  .nav__foot { display: grid; gap: 12px; margin-top: 28px; }
  .nav__phone {
    font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
    color: var(--ink); text-decoration: none;
  }
  .nav__note { font-size: 13px; color: var(--muted); text-align: center; }

  .burger { display: block; }
  .brand__role { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; margin-inline: auto; }
  .hero__title { font-size: clamp(36px, 9vw, 52px); }

  .scheme, .twocol, .anatomy, .doctor, .clinic, .price { grid-template-columns: 1fr; }
  .doctor__photo, .clinic__photo { max-width: 460px; }
  .price__cta { grid-template-columns: 1fr; }
  .rec { grid-template-columns: 1fr; gap: 6px; }

  .dock { display: grid; }
  body { padding-bottom: 76px; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .combos, .cases, .other, .benefits, .path, .segments { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__cta .btn { width: 100%; }
  .combo, .card, .price__card, .scheme__col, .safety__aside, .callout { padding: 24px 20px; }
}

@media (max-width: 560px) {
  /* В шапке остаётся только имя и бургер: запись и звонок вынесены в нижнюю панель */
  .header__actions .btn--sm { display: none; }
  .header__inner { gap: 12px; }
  .brand__name { font-size: 15.5px; }
  .brand__mark { width: 30px; height: 30px; }
}
