/* ============================================================
   Hero — Premium plastic surgery
   Palette: pearl/milky 60% · cold steel blue 30% · graphite 10%
   Cyan only as a thin accent. Matte + liquid glass surfaces.
   ============================================================ */

:root {
  /* ---- color ---- */
  --c-pearl:        #f5f7fa;
  --c-pearl-2:      #eaeef4;
  --c-mist:         #d7dfeb;
  --c-steel:        #94a8c4;
  --c-steel-deep:   #43577a;
  --c-navy:         #243349;
  --c-graphite:     #1b212c;
  --c-ink:          #2f3a4b;
  --c-ink-dim:      #56637a;
  --c-cyan:         #5aa6cf;            /* thin accent only */
  --c-line:         rgba(36, 51, 73, 0.12);
  --c-line-soft:    rgba(36, 51, 73, 0.07);

  /* ---- glass ---- */
  --glass:          rgba(255, 255, 255, 0.40);
  --glass-border:   rgba(255, 255, 255, 0.70);

  /* ---- type ---- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- z ---- */
  --z-bg: 0;
  --z-canvas: 1;
  --z-blur: 2;
  --z-grain: 3;
  --z-ui: 10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--c-pearl);
  color: var(--c-ink);
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Background gradient (pearl -> cold blue pocket behind object)
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(118% 92% at 80% 26%, rgba(67, 87, 122, 0.55) 0%, rgba(67, 87, 122, 0) 56%),
    radial-gradient(80% 70% at 92% 14%, rgba(36, 51, 73, 0.50) 0%, rgba(36, 51, 73, 0) 50%),
    linear-gradient(132deg, #f7f9fc 0%, #eef2f7 36%, #dde5f0 64%, #bccadd 100%);
}

/* hero wrapper confines the motion layers to the first screen,
   so the particle effect never bleeds into sections below */
.hero-wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  /* cold-premium tokens — scoped to the dark hero only */
  --t-hero:      #eef3fb;                       /* pearl white text     */
  --t-hero-dim:  rgba(222, 232, 245, 0.80);     /* dimmed pearl         */
  --t-hero-ice:  #a9c6e8;                        /* ice-blue accent      */
  --hero-line:   rgba(174, 200, 232, 0.30);      /* silver-blue hairline */
  --hero-frost:  rgba(255, 255, 255, 0.07);      /* frosted glass fill   */
}

.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, transparent, #0d1626);
  pointer-events: none;
  z-index: 10;
}

/* Desktop/tablet hero backdrop — premium cinematic split, built from clean layers.
   ::before = base deep navy + left steel-blue light zone + right near-black deep zone.
   ::after  = elastic luminous divider (aurora-like arc) + subtle top vignette.
   No grain/noise, no muddy glow blob. Bottom resolves to #0d1626 for a seamless
   seam with the section below. Cold palette only. Mobile overrides ::before. */
/* Desktop/tablet hero backdrop — premium two-field LIGHT ARCHITECTURE (no arc/figure).
   Left = lighter smoky steel-blue field presenting the typography; right = deep navy
   field giving the effect depth/contrast. The separation is a soft optical falloff
   between the two fields — not a drawn shape, not a line, no noise. Bottom resolves
   to #0d1626 for the seam. Cold palette only. Mobile overrides ::before. */
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background:
    /* seam floor → bottom edge = #0d1626 */
    linear-gradient(180deg, rgba(13, 22, 38, 0) 80%, #0d1626 100%),
    /* atmospheric vignette — spatial depth, corners fall away (never flat) */
    radial-gradient(125% 120% at 40% 42%, transparent 48%, rgba(2, 6, 14, 0.58) 100%),
    /* LEFT smoky steel-blue field — soft elliptical glow presenting the text */
    radial-gradient(66% 106% at 1% 44%, rgba(110, 136, 168, 0.50) 0%, rgba(84, 110, 142, 0.27) 30%, rgba(63, 88, 112, 0.07) 52%, rgba(63, 88, 112, 0) 66%),
    /* RIGHT deep navy field — depth & contrast for the effect */
    radial-gradient(82% 124% at 114% 52%, rgba(1, 4, 10, 0.88) 0%, rgba(3, 9, 18, 0.42) 38%, rgba(7, 17, 31, 0) 66%),
    /* base: smooth left→right field separation (lighter steel-navy → deep navy) */
    linear-gradient(98deg, #1b2d45 0%, #152339 32%, #0c1626 62%, #08111e 100%);
}

/* ============================================================
   Three.js canvas — positioned, bleeds off edges
   ============================================================ */
.hero__canvas {
  position: absolute;
  z-index: var(--z-canvas);
  top: 0;
  right: -6vw;
  width: 64vw;
  height: 100dvh;
  pointer-events: auto;
  /* OrbitControls forces inline `touch-action:none` on the canvas, which kills
     page scroll over the whole effect. `!important` (author-important) overrides
     that inline value → vertical swipe scrolls the page, horizontal/diagonal
     drag still rotates the effect. Desktop mouse rotation is unaffected. */
  touch-action: pan-y !important;
}
/* OrbitControls sets inline `touch-action:none` on its own canvas (renderer.domElement);
   override it so vertical page scroll works over the effect (horizontal drag still rotates). */
.hero__canvas canvas { display: block; touch-action: pan-y !important; }

/* ============================================================
   Blur / focus mask — most of the object is softly blurred,
   a soft circle stays in focus (follows pointer)
   ============================================================ */
.hero__blur {
  position: absolute;
  inset: 0;
  z-index: var(--z-blur);
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  /* pointer-driven focus (hero-motion.js updates --x/--y on move) */
  --x: 78%;
  --y: 32%;
  --focus: 270px;
  /* ALWAYS-visible clear zone — a soft feathered window over the upper / upper-side
     particle contour (~20% of the effect), so the effect reads as alive before hover */
  --rest-x: 85%;
  --rest-y: 17%;
  --rest-w: 215px;
  --rest-h: 275px;
  /* two clear windows (pointer + always-on); intersect → blur kept everywhere
     EXCEPT inside either window. Degrades gracefully (stays blurred) if a browser
     ignores mask-composite. */
  -webkit-mask-image:
    radial-gradient(circle var(--focus) at var(--x) var(--y), transparent 0%, transparent 40%, #000 100%),
    radial-gradient(var(--rest-w) var(--rest-h) at var(--rest-x) var(--rest-y), transparent 0%, transparent 30%, #000 100%);
  mask-image:
    radial-gradient(circle var(--focus) at var(--x) var(--y), transparent 0%, transparent 40%, #000 100%),
    radial-gradient(var(--rest-w) var(--rest-h) at var(--rest-x) var(--rest-y), transparent 0%, transparent 30%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* subtle matte grain */
.grain {
  position: absolute;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* clean deep gradient on every viewport — grain/noise fully disabled */
.grain { display: none; }

/* ============================================================
   UI layer
   ============================================================ */
.ui {
  position: relative;
  z-index: var(--z-ui);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.ui a, .ui button { pointer-events: auto; }

/* ---- nav ---- */
/* glassmorphism intensifies as user begins scrolling within hero */
.nav.is-scrolled {
  background: rgba(10, 17, 30, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(174, 200, 232, 0.18);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-graphite);
}
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--c-steel-deep); }
.brand__logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .brand__logo {
    height: 42px;
    max-width: 165px;
  }
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin-top: 0.28rem;
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.35s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--c-cyan);
  transition: width 0.4s var(--ease);
}
.nav__link:hover { color: var(--c-steel-deep); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: inline-flex; }
.nav__sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  align-self: center;
}

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 17px; height: 1.4px;
  background: var(--c-graphite);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vh, 4rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(90, 130, 180, 0.38);
  border-radius: 2rem;
  background: transparent;
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  margin-bottom: 1.6rem;
}
.hero__title .thin {
  display: block;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink);
  font-size: 0.62em;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}
.hero__title em {
  font-style: italic;
  color: var(--c-steel-deep);
}

.hero__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  font-weight: 400;
  max-width: 30rem;
  padding-left: 1.1rem;
  border-left: 1.5px solid var(--c-line);
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.6rem;
}

/* ---- buttons (liquid glass) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.7rem;
  border-radius: 3rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.btn--primary {
  color: var(--c-graphite);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(255, 255, 255, 0.30) 44%,
      rgba(120, 146, 184, 0.32) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 24px -16px rgba(67, 87, 122, 0.55),
    0 16px 40px -18px rgba(43, 55, 80, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 26px -15px rgba(67, 87, 122, 0.6),
    0 22px 50px -18px rgba(43, 55, 80, 0.7);
}
.btn__arrow { color: var(--c-cyan); transition: transform 0.35s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--c-cyan);
  color: var(--c-steel-deep);
}

/* nav cta is a touch smaller */
.nav__cta.btn { min-height: 44px; font-size: 0.76rem; padding: 0 1.3rem; }

/* ---- meta chips ---- */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.8rem;
  list-style: none;
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--c-ink-dim);
  font-weight: 500;
}
.hero__meta svg { width: 24px; height: 24px; color: var(--c-steel-deep); flex: none; stroke-width: 2; }

/* secondary CTA — text link replacing ghost button */
.hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.hero__text-link__arrow {
  display: inline-block;
  color: var(--c-steel-deep);
  transition: transform 0.3s var(--ease);
}
.hero__text-link:hover { color: var(--c-steel-deep); }
.hero__text-link:hover .hero__text-link__arrow { transform: translateX(4px); }

/* dark hero override */
.hero-wrap .hero__text-link { color: rgba(196, 216, 240, 0.72); }
.hero-wrap .hero__text-link .hero__text-link__arrow { color: var(--t-hero-ice); }
.hero-wrap .hero__text-link:hover { color: var(--t-hero); }

/* trust / stats row */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
  flex-wrap: nowrap;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0 1.6rem;
}
.hero__trust-item:first-child { padding-left: 0; }
.hero__trust-divider {
  display: block;
  width: 1px;
  height: 2.4rem;
  background-color: var(--c-line);
  flex: none;
  align-self: center;
}
.hero__trust-value {
  font-family: var(--font-ui);
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  font-weight: 700;
  color: var(--c-graphite);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__trust-label {
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--c-ink-dim);
  line-height: 1.45;
  max-width: 10rem;
}

/* dark hero overrides for trust */
.hero-wrap .hero__trust-value { color: var(--t-hero); }
.hero-wrap .hero__trust-label { color: rgba(186, 208, 232, 0.65); }
.hero-wrap .hero__trust-divider { background-color: rgba(174, 200, 232, 0.65); }

/* ============================================================
   DARK HERO THEME — all overrides scoped under .hero-wrap so the
   light system (procedures, doctors, form, footer…) is untouched.
   No gold / champagne / warm tones — silver-blue + pearl only.
   ============================================================ */
.hero-wrap .brand        { color: var(--t-hero); }
.hero-wrap .brand__mark  { color: var(--t-hero-ice); }
.hero-wrap .brand__sub   { color: rgba(196, 210, 230, 0.72); }

.hero-wrap .nav__link        { color: rgba(226, 235, 248, 0.82); }
.hero-wrap .nav__link:hover  { color: #ffffff; }

.hero-wrap .nav__toggle {
  border: 1px solid var(--hero-line);
  background: var(--hero-frost);
}
.hero-wrap .nav__toggle span,
.hero-wrap .nav__toggle span::before,
.hero-wrap .nav__toggle span::after { background: #eaf1fb; }

.hero-wrap .hero__eyebrow {
  color: #bdd3ee;
  border-color: rgba(174, 200, 232, 0.35);
  background: transparent;
}

.hero-wrap .hero__title       { color: var(--t-hero); }
.hero-wrap .hero__title .thin { color: #dde7f4; }
.hero-wrap .hero__title em    { color: var(--t-hero-ice); }

.hero-wrap .hero__lead {
  color: var(--t-hero-dim);
  border-left-color: var(--hero-line);
}

.hero-wrap .hero__meta li  { color: rgba(206, 219, 236, 0.70); }
.hero-wrap .hero__meta svg { color: #9fbbdd; }

/* liquid-glass buttons re-tuned for the dark hero (frosted silver-blue, no gold) */
.hero-wrap .btn--primary {
  color: #f3f7fd;
  border: 1px solid rgba(174, 200, 232, 0.45);
  background:
    linear-gradient(165deg,
      rgba(214, 230, 250, 0.26) 0%,
      rgba(150, 178, 216, 0.14) 46%,
      rgba(70, 104, 156, 0.22) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(226, 238, 255, 0.55),
    inset 0 -14px 28px -18px rgba(120, 160, 210, 0.50),
    0 18px 44px -20px rgba(0, 0, 0, 0.60);
}
.hero-wrap .btn--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 200, 232, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(226, 238, 255, 0.70),
    inset 0 -14px 30px -16px rgba(120, 160, 210, 0.60),
    0 24px 54px -20px rgba(0, 0, 0, 0.70);
}

.hero-wrap .btn--ghost {
  color: #e7eefb;
  border: 1px solid var(--hero-line);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-wrap .btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 200, 232, 0.60);
  color: #ffffff;
}

/* ============================================================
   Mobile menu — premium full-screen glass overlay
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s var(--ease);
}
/* lock background scroll while the overlay is open */
html.menu-open, body.menu-open { overflow: hidden; }

.menu__panel {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 5vw, 2rem) clamp(1.25rem, 6vw, 2.25rem) clamp(1.6rem, 5vh, 2.6rem);
  background:
    radial-gradient(125% 70% at 50% 0%, rgba(48, 74, 116, 0.32) 0%, rgba(48, 74, 116, 0) 60%),
    linear-gradient(180deg, rgba(13, 21, 36, 0.88) 0%, rgba(10, 16, 28, 0.93) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  transform: translateY(-10px);
  transition: transform 0.32s var(--ease);
}
.menu.is-open .menu__panel { transform: none; }

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.5rem, 5vh, 2.5rem);
  border-bottom: 1px solid rgba(174, 200, 232, 0.12);
}
.menu .brand { color: #f1f5fc; }
.menu .brand__mark { color: #aecae8; }
.menu .brand__sub { color: rgba(196, 210, 230, 0.72); }

.menu__close {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(174, 200, 232, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #eaf1fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.menu__close:hover { border-color: rgba(174, 200, 232, 0.6); background: rgba(255, 255, 255, 0.10); }
.menu__close:active { transform: scale(0.94); }
.menu__close svg { width: 20px; height: 20px; }

.menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  counter-reset: nav-item;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 8vw, 2.3rem);
  line-height: 1.1;
  color: rgba(220, 232, 248, 0.85);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(174, 200, 232, 0.09);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
  counter-increment: nav-item;
}
.menu__nav a::before {
  content: "0" counter(nav-item);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(174, 200, 232, 0.38);
  flex: none;
  width: 1.6rem;
  transition: color 0.25s var(--ease);
}
.menu__nav a:last-child { border-bottom: 0; }
.menu__nav a:hover,
.menu__nav a:focus-visible { color: #ffffff; padding-left: 0.25rem; }
.menu__nav a:hover::before,
.menu__nav a:focus-visible::before { color: rgba(174, 200, 232, 0.70); }

.menu__foot { margin-top: auto; }
.menu__cta.btn { width: 100%; justify-content: center; }
/* frosted silver-blue CTA, consistent with the dark hero (no gold) */
.menu .btn--primary {
  color: #f3f7fd;
  border: 1px solid rgba(174, 200, 232, 0.42);
  background: linear-gradient(165deg,
    rgba(214, 230, 250, 0.18) 0%,
    rgba(150, 178, 216, 0.10) 50%,
    rgba(70, 104, 156, 0.16) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(226, 238, 255, 0.45),
    0 10px 30px -18px rgba(0, 0, 0, 0.55);
}
.menu .btn--primary:hover { border-color: rgba(174, 200, 232, 0.7); }

/* staggered entrance for overlay content */
.menu__head, .menu__nav a, .menu__foot {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.menu.is-open .menu__head { opacity: 1; transform: none; transition-delay: 0.06s; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.12s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.18s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.30s; }
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: 0.34s; }

/* ============================================================
   Entrance reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.is-ready .reveal {
  animation: reveal 1s var(--ease) forwards;
}
.is-ready .reveal:nth-child(1) { animation-delay: 0.05s; }
.is-ready .reveal:nth-child(2) { animation-delay: 0.18s; }
.is-ready .reveal:nth-child(3) { animation-delay: 0.31s; }
.is-ready .reveal:nth-child(4) { animation-delay: 0.44s; }
.is-ready .reveal:nth-child(5) { animation-delay: 0.57s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Focus states (accessibility)
   ============================================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .hero__canvas { width: 72vw; right: -10vw; }
  .hero__blur { --focus: 230px; --x: 76%; --y: 30%; }
  .hero { max-width: 520px; }
}

/* ============================================================
   Mobile — object on top, text below
   ============================================================ */
@media (max-width: 768px) {
  .bg {
    background:
      linear-gradient(168deg, #eef2f8 0%, #dfe7f1 40%, #e9eef5 72%, #f4f6fa 100%);
  }
  /* mobile hero backdrop — cold glow centred behind the object, air around it */
  .hero-wrap::before {
    background:
      radial-gradient(98% 64% at 50% 45%, rgba(72, 116, 172, 0.44) 0%, rgba(72, 116, 172, 0) 62%),
      radial-gradient(80% 44% at 50% 3%, rgba(6, 13, 26, 0.52) 0%, rgba(6, 13, 26, 0) 50%),
      radial-gradient(90% 40% at 50% 100%, rgba(6, 13, 26, 0.45) 0%, rgba(6, 13, 26, 0) 55%),
      linear-gradient(180deg, #0e1828 0%, #0d1524 50%, #0d1626 100%);
  }
  /* ONE centred composition: the particle object is centred over the hero,
     text/CTA sit on its darker core. Object is large but fully visible. */
  .hero__canvas {
    top: 45%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 102vw;          /* keeps the widest morph shape (heart/orb) fully on-screen */
    /* svh (not dvh): stable height that doesn't recompute when the browser
       toolbar shows/hides on scroll → no per-frame canvas resize / judder */
    height: 68svh;
  }
  .hero__blur {
    --x: 50%;
    --y: 45%;
    --focus: 215px;
    /* always-visible zone over the TOP contour of the centred object (~15%),
       above the headline so it never sits on text/buttons */
    --rest-x: 50%;
    --rest-y: 13%;
    --rest-w: 158px;
    --rest-h: 128px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
  /* soft dark core behind the text group so the headline always sits on a
     readable zone, regardless of which morph shape is in front */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(135% 46% at 50% 42%,
      rgba(9, 15, 27, 0.60) 0%,
      rgba(9, 15, 27, 0.32) 48%,
      rgba(9, 15, 27, 0) 74%);
  }
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__toggle { display: inline-flex; }

  .hero {
    position: relative;            /* anchor for the pinned meta row */
    /* VANTA layered pattern: capsule/heading/lead cluster high, CTA pushed
       to the lower part of the effect — text+object read as one composition */
    justify-content: flex-start;
    max-width: 100%;
    padding-top: clamp(4.5rem, 13vh, 7.5rem);
    padding-bottom: clamp(6rem, 15vh, 8.5rem);
    min-height: 100dvh;
  }
  /* capsule label removed on mobile — declutters the layered composition */
  .hero__eyebrow { display: none; }

  .hero__title { font-size: clamp(1.55rem, 6.6vw, 2.4rem); overflow-wrap: break-word; word-break: break-word; margin-bottom: 1.5rem; }
  .hero__lead { margin-bottom: 0; max-width: 100%; }
  /* narrower, centred CTA group */
  .hero__actions { width: 100%; flex-direction: column; align-items: center; margin-top: auto; margin-bottom: 0; }
  .hero__actions .btn { width: 100%; max-width: 82vw; justify-content: center; }
  .nav__cta.btn { width: auto; }

  /* lighter, more transparent liquid-glass CTAs — motion/gradient reads softly
     through the frosting; no heavy filled blue slab. Silver-blue only. */
  .hero-wrap .btn--primary {
    background: linear-gradient(165deg,
      rgba(220, 234, 252, 0.14) 0%,
      rgba(150, 178, 216, 0.07) 52%,
      rgba(70, 104, 156, 0.10) 100%);
    border-color: rgba(174, 200, 232, 0.38);
    -webkit-backdrop-filter: blur(13px) saturate(135%);
    backdrop-filter: blur(13px) saturate(135%);
    box-shadow:
      inset 0 1px 0 rgba(226, 238, 255, 0.38),
      0 8px 26px -16px rgba(0, 0, 0, 0.40);
  }
  .hero-wrap .btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(174, 200, 232, 0.24);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }
  /* meta row («Консультация хирурга» / «Индивидуальный план») hidden on mobile:
     pinned-bottom labels swam under the white next section on scroll. */
  .hero__meta { display: none; }

  /* ── mobile refinements ── */

  /* hero-wrap по большому вьюпорту: при показанной нижней панели Telegram
     100dvh резолвится меньше видимой области и снизу подглядывает секция.
     100lvh всегда перекрывает экран при любом состоянии панелей. */
  .hero-wrap { height: 100lvh; }

  /* воздух сверху — контент не давит сразу */
  .hero { padding-top: clamp(3rem, 8vh, 5rem); }

  /* параграф — чуть компактнее */
  .hero__lead {
    font-size: clamp(0.85rem, 3.8vw, 1rem);
    line-height: 1.55;
  }

  /* CTA — не на всю ширину, элегантнее */
  .hero__actions .btn--primary {
    width: auto;
    min-width: 220px;
    max-width: none;
    align-self: flex-start;
    padding: 0.85rem 2rem;
  }

  /* статистика — значения на одной верхней линии, РУДН не всплывает.
     align-items:flex-start выравнивает 5+/500+/РУДН по верху, даже когда
     подпись 3-го блока переносится в несколько строк. */
  .hero__trust {
    align-items: flex-start;
    gap: clamp(0.6rem, 2.5vw, 1.4rem);
    padding-bottom: clamp(1.2rem, 3vh, 2rem);
  }
  .hero__trust-item { padding: 0 clamp(0.6rem, 2.5vw, 1rem); }
  .hero__trust-label { font-size: 0.62rem; line-height: 1.35; max-width: 8.5rem; }
  .hero__trust-divider { align-self: stretch; height: auto; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .menu, .menu__panel, .menu__head, .menu__nav a, .menu__foot { transition: none; transform: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   SECTION — Процедуры
   ============================================================ */
.procedures {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 7vh, 5rem);
  background: linear-gradient(to bottom,
    rgba(247, 249, 252, 0.55) 0%,
    rgba(247, 249, 252, 0.82) 100%);
}

.proc__inner { max-width: 1240px; margin: 0 auto; }

.proc__head {
  max-width: 620px;
  margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}
.proc__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.proc__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.proc__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 32rem;
}

/* ---- grid ---- */
.proc__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px)  { .proc__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .proc__grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }

/* ---- glass card ---- */
.proc-card { display: flex; }
.proc-card__link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  min-height: 104px;
  padding: 1.3rem 1.4rem;
  border-radius: 1.4rem;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 42px -28px rgba(43, 55, 80, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.proc-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 32px 60px -28px rgba(43, 55, 80, 0.62);
}
.proc-card__link:active { transform: translateY(-1px) scale(0.994); }

.proc-card__icon {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(214, 223, 235, 0.5));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -7px 14px -7px rgba(67, 87, 122, 0.4),
    0 6px 16px -10px rgba(43, 55, 80, 0.5);
  transition: transform 0.5s var(--ease);
}
.proc-card__link:hover .proc-card__icon { transform: scale(1.05); }
.proc-card__icon svg { width: 30px; height: 30px; }

/* Procedure icons — unified line-art PNG set rendered through a CSS mask so the
   colour is driven by --c-steel-deep (the PNG only defines the alpha shape).
   All use mask-size:contain; the per-icon box size normalises each figure's
   largest dimension to ~28px so the six icons share one optical weight despite
   different padding inside their source canvases. */
.proc-card__mask {
  display: block;
  background-color: var(--c-steel-deep);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.proc-card__mask--face    { width: 43px; height: 43px; -webkit-mask-image: url('../img/face.png');    mask-image: url('../img/face.png'); }
.proc-card__mask--bust    { width: 40px; height: 40px; -webkit-mask-image: url('../img/bust.png');    mask-image: url('../img/bust.png'); }
.proc-card__mask--body    { width: 46px; height: 46px; -webkit-mask-image: url('../img/body.png');    mask-image: url('../img/body.png'); }
.proc-card__mask--shield  { width: 48px; height: 48px; -webkit-mask-image: url('../img/shield.png');  mask-image: url('../img/shield.png'); }
.proc-card__mask--plus    { width: 42px; height: 42px; -webkit-mask-image: url('../img/plus.png');    mask-image: url('../img/plus.png'); }
.proc-card__mask--message { width: 46px; height: 46px; -webkit-mask-image: url('../img/message.png'); mask-image: url('../img/message.png'); }

.proc-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.proc-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-graphite);
}
.proc-card__desc { font-size: 0.84rem; line-height: 1.5; color: var(--c-ink-dim); }

.proc-card__arrow {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -8px rgba(43, 55, 80, 0.5);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.proc-card__link:hover .proc-card__arrow { transform: translateX(3px); background: rgba(255, 255, 255, 0.72); }

/* ---- CTA ---- */
.proc__cta { display: flex; justify-content: center; margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.btn--lg { min-height: 62px; padding: 0 2.6rem; font-size: 0.86rem; }

/* ---- counter ---- */
.proc__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(2rem, 4vh, 2.8rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.proc__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.proc__counter-sep { opacity: 0.45; }

/* ---- scroll reveal (premium, transform/opacity/filter) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease),
    filter 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform, filter;
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ── Directional entry by element type (point 4) ────────────── */

/* Eyebrows: slide from left — different axis than cards/text = dynamic variety */
[class*="__eyebrow"][data-reveal] {
  transform: translateX(-20px);
  filter: none;
  transition-delay: 0ms;                 /* eyebrows always lead the sequence */
  transition-duration: 0.55s;
}

/* Titles: Y + scale, softer blur */
[class*="__title"][data-reveal] {
  transform: translateY(22px) scale(0.97);
  filter: blur(3px);
  transition-delay: calc(var(--i, 0) * 70ms + 40ms);
}

/* Lead / desc text: subtle Y, no blur — clean readability */
[class*="__lead"][data-reveal],
[class*="__desc"][data-reveal] {
  transform: translateY(14px);
  filter: none;
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
  transition-duration: 0.70s;
}

/* Cards: more Y + scale, longer stagger wave (point 3 — stagger refinement) */
.proc-card[data-reveal],
.ba-card[data-reveal],
.doc-card[data-reveal] {
  transform: translateY(36px) scale(0.96);
  filter: blur(4px);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* .is-in overrides — specificity 0,3,0 beats directional rules (0,2,0) */
[class*="__eyebrow"][data-reveal].is-in,
[class*="__title"][data-reveal].is-in,
[class*="__lead"][data-reveal].is-in,
[class*="__desc"][data-reveal].is-in,
.proc-card[data-reveal].is-in,
.ba-card[data-reveal].is-in,
.doc-card[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Mobile: strip blur from reveals — GPU cost not worth it below 768px */
@media (max-width: 768px) {
  [data-reveal]                          { filter: none; }
  [class*="__title"][data-reveal]        { filter: none; transform: translateY(18px) scale(0.98); }
  [class*="__eyebrow"][data-reveal]      { transform: translateX(-12px); }
  .proc-card[data-reveal],
  .ba-card[data-reveal],
  .doc-card[data-reveal]                 { filter: none; transform: translateY(22px) scale(0.98); }
}

@media (max-width: 640px) {
  .proc__cta .btn { width: 100%; justify-content: center; }
  .proc-card__link { padding: 1.15rem 1.2rem; gap: 0.95rem; }
  .proc-card__icon { width: 56px; height: 56px; }
  .proc-card__icon svg { width: 27px; height: 27px; }
  /* scaled ~0.90 from desktop to keep the same content-to-circle ratio in the 56px circle */
  .proc-card__mask--face    { width: 39px; height: 39px; }
  .proc-card__mask--bust    { width: 36px; height: 36px; }
  .proc-card__mask--body    { width: 41px; height: 41px; }
  .proc-card__mask--shield  { width: 43px; height: 43px; }
  .proc-card__mask--plus    { width: 38px; height: 38px; }
  .proc-card__mask--message { width: 41px; height: 41px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .proc-card__link { transition: none; }
}

/* ============================================================
   SECTION — До и после (before/after sliders, placeholders)
   ============================================================ */
.beforeafter {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 6rem);
  /* continues smoothly from the foot of .procedures */
  background: linear-gradient(to bottom,
    rgba(247, 249, 252, 0.82) 0%,
    rgba(244, 247, 251, 0.9) 60%,
    rgba(241, 245, 250, 0.94) 100%);
}

.ba__inner { max-width: 1240px; margin: 0 auto; }

.ba__head { max-width: 620px; margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.ba__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.ba__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.ba__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 32rem;
}

/* ---- grid: mobile 1 col (3 cards), tablet 2 col, desktop 3×2 ---- */
.ba__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px)  { .ba__grid { grid-template-columns: 1fr 1fr; gap: 1.3rem; } }
@media (min-width: 1024px) { .ba__grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }

/* ---- glass card ---- */
.ba-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1.05rem;
  border-radius: 1.4rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.40);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 42px -28px rgba(43, 55, 80, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.ba-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 32px 60px -28px rgba(43, 55, 80, 0.62);
}

/* ---- before/after slider ---- */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: #d7e0ed;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    inset 0 -22px 44px -26px rgba(67, 87, 122, 0.5);
  touch-action: pan-y;          /* page can still scroll over the pane */
}
.ba__pane {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* abstract contour motif — NOT a real silhouette/photo */
.ba__pane--after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23435a7a' stroke-width='1.1' opacity='0.16'%3E%3Cpath d='M-10 170 C 120 90 240 210 410 120'/%3E%3Cpath d='M-10 200 C 110 120 250 250 410 150'/%3E%3Cpath d='M-10 230 C 120 160 260 270 410 180'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 16%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 55%),
    radial-gradient(85% 80% at 72% 86%, rgba(120, 146, 184, 0.40), rgba(120, 146, 184, 0) 60%),
    linear-gradient(158deg, #eef3f9 0%, #dde7f3 55%, #c8d7e9 100%);
}
.ba__pane--before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23435a7a' stroke-width='1.1' opacity='0.16'%3E%3Cpath d='M-10 170 C 120 90 240 210 410 120'/%3E%3Cpath d='M-10 200 C 110 120 250 250 410 150'/%3E%3Cpath d='M-10 230 C 120 160 260 270 410 180'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(110% 90% at 34% 20%, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0) 55%),
    linear-gradient(158deg, #e1e7ef 0%, #cfd8e4 55%, #bcc7d8 100%);
  filter: saturate(0.82) brightness(0.98) contrast(0.97);
  /* show only the left part, up to the handle position */
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 12px rgba(43, 55, 80, 0.35);
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;            /* handle owns the gesture while dragging */
  color: var(--c-steel-deep);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.34) 45%,
      rgba(120, 146, 184, 0.36) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px -8px rgba(43, 55, 80, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ba__handle svg { width: 20px; height: 20px; }
.ba__handle:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 12px 26px -8px rgba(43, 55, 80, 0.68); }
.ba:not(.is-dragging) .ba__handle:active { transform: translate(-50%, -50%) scale(0.94); }

.ba__label {
  position: absolute;
  bottom: 0.7rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-graphite);
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ba__label--before { left: 0.7rem; }
.ba__label--after  { right: 0.7rem; }

/* ---- meta ---- */
.ba-card__meta { padding: 0.95rem 0.55rem 0; }
.ba-card__tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
}
.ba-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--c-graphite);
  margin: 0.3rem 0 0.4rem;
}
.ba-card__desc { font-size: 0.82rem; line-height: 1.5; color: var(--c-ink-dim); }

/* ---- CTA / disclaimer / counter ---- */
.ba__cta { display: flex; justify-content: center; margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.ba__disclaimer {
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--c-ink-dim);
  opacity: 0.85;
}
.ba__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.ba__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.ba__counter-sep { opacity: 0.45; }

@media (max-width: 640px) {
  .ba { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-card, .ba__handle { transition: none; }
}

/* ============================================================
   SECTION — Врачи (editorial profile placeholders)
   ============================================================ */
.doctors {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 6rem);
  background: linear-gradient(to bottom,
    rgba(241, 245, 250, 0.94) 0%,
    rgba(238, 243, 249, 0.96) 100%);
}

.doc__inner { max-width: 1120px; margin: 0 auto; }

.doc__head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.doc__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.doc__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.doc__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 32rem;
}

/* ---- single editorial card, full width ---- */
.doctors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

/* ---- editorial card: text | photo carousel (distinct from before/after cards) ---- */
.doc-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 22px 50px -30px rgba(43, 55, 80, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 36px 70px -30px rgba(43, 55, 80, 0.6);
}

.doc-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
}
.doc-card__eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
}
.doc-card__role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
  line-height: 1.1;
  color: var(--c-graphite);
  margin: 0.5rem 0 0.85rem;
}
.doc-card__divider {
  display: block;
  width: 40px; height: 1.5px;
  background: var(--c-line);
  margin-bottom: 1rem;
}
.doc-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  color: var(--c-graphite);
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.9rem;
}
.doc-card__bio {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--c-ink);
  margin-bottom: 1.2rem;
}
.doc-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: var(--c-steel-deep);
  padding-left: 1rem;
  border-left: 2px solid var(--c-line);
  margin-bottom: 1.6rem;
}
.doc-card__note {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--c-ink-dim);
  margin-bottom: 1.1rem;
  max-width: 22rem;
}
.doc-card__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.doc-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-ink);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.doc-card__cta {
  margin-top: auto;
  align-self: flex-start;
  width: auto;
  min-height: 46px;
  font-size: 0.78rem;
}

/* ---- photo accordion-carousel (right column): expanding panels ---- */
.doc-acc {
  display: flex;
  gap: 5px;
  min-height: 100%;
  padding: 5px;
  background: linear-gradient(180deg, #dfe8f3 0%, #cdd9ec 100%);
}
.doc-acc__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  background: #c2d3e8;
  filter: saturate(0.82) brightness(0.9);
  transition: flex-grow 0.65s var(--ease), filter 0.65s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.doc-acc__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
/* scrim + bottom fade so the index reads on any photo */
.doc-acc__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 38, 0) 55%, rgba(13, 22, 38, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.65s var(--ease);
}
.doc-acc__num {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #f1f6fd;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  text-shadow: 0 2px 10px rgba(13, 22, 38, 0.55);
  pointer-events: none;
}
.doc-acc__item.is-active {
  flex-grow: 5;
  filter: none;
}
.doc-acc__item.is-active::after { opacity: 1; }
.doc-acc__item.is-active .doc-acc__num { opacity: 1; transform: none; }
.doc-acc__item:focus-visible { outline: 2px solid var(--c-steel-deep); outline-offset: -2px; }
/* hover behaves like an accordion on pointer devices */
@media (hover: hover) {
  .doc-acc:hover .doc-acc__item { flex-grow: 1; filter: saturate(0.8) brightness(0.86); }
  .doc-acc:hover .doc-acc__item::after { opacity: 0; }
  .doc-acc:hover .doc-acc__item .doc-acc__num { opacity: 0; transform: translateY(6px); }
  .doc-acc:hover .doc-acc__item:hover { flex-grow: 5; filter: none; }
  .doc-acc:hover .doc-acc__item:hover::after { opacity: 1; }
  .doc-acc:hover .doc-acc__item:hover .doc-acc__num { opacity: 1; transform: none; }
}

/* ---- section CTA / counter ---- */
.doc__cta { display: flex; justify-content: center; margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.doc__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.doc__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.doc__counter-sep { opacity: 0.45; }

/* stack on narrow screens: accordion tap-to-expand (same behaviour as desktop) */
@media (max-width: 760px) {
  .doc-card { display: flex; flex-direction: column; }
  .doc-acc {
    order: -1;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    overflow: hidden;
  }
  /* pan-y: browser owns vertical scroll, horizontal drag comes to our touchmove */
  .doc-acc { touch-action: pan-y; }

  /* thin slices = inactive; .is-active expands via flex-grow (same as desktop) */
  .doc-acc__item {
    flex: 1 1 0;
    filter: saturate(0.65) brightness(0.80);
  }
  .doc-acc__item.is-active {
    flex: 5 1 0;
    filter: none;
  }
  /* scrim + number: follow base CSS (visible only on active) — no override */
}

@media (prefers-reduced-motion: reduce) {
  .doc-card { transition: none; }
  .doc-acc__item { transition: none; }
}

/* ============================================================
   SECTION — Стоимость (price placeholders, neutral statuses)
   ============================================================ */
.prices {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 6rem);
  background: linear-gradient(to bottom,
    rgba(238, 243, 249, 0.96) 0%,
    rgba(244, 247, 251, 0.97) 100%);
}

.price__inner { max-width: 1000px; margin: 0 auto; }

.price__head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.price__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.price__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.price__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 32rem;
}

/* ---- compact glass list ---- */
.price__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.price-row { display: flex; }
.price-row__link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "icon main status arrow";
  align-items: center;
  gap: 0 1.1rem;
  width: 100%;
  min-height: 86px;
  padding: 0.9rem 1.2rem 0.9rem 1rem;
  border-radius: 1.3rem;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 40px -30px rgba(43, 55, 80, 0.5);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.price-row__link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 56px -30px rgba(43, 55, 80, 0.6);
}
.price-row__link:active { transform: translateY(-1px) scale(0.996); }

.price-row__icon {
  grid-area: icon;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(214, 223, 235, 0.5));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -7px 14px -7px rgba(67, 87, 122, 0.4),
    0 6px 16px -10px rgba(43, 55, 80, 0.5);
}
.price-row__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-steel-deep);
  line-height: 1;
  letter-spacing: 0.01em;
  user-select: none;
}

.price-row__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.price-row__name { font-size: 1rem; font-weight: 600; color: var(--c-graphite); }
.price-row__sub { font-size: 0.8rem; color: var(--c-ink-dim); }

.price-row__status {
  grid-area: status;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-steel-deep);
  text-align: right;
  white-space: nowrap;
}

.price-row__arrow {
  grid-area: arrow;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -8px rgba(43, 55, 80, 0.5);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.price-row__link:hover .price-row__arrow { transform: translateX(3px); background: rgba(255, 255, 255, 0.72); }

/* ---- section CTA / disclaimer / counter ---- */
.price__cta { display: flex; justify-content: center; margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.price__disclaimer {
  text-align: center;
  margin: 1.3rem auto 0;
  max-width: 34rem;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--c-ink-dim);
  opacity: 0.85;
}
.price__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.price__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.price__counter-sep { opacity: 0.45; }

/* ---- consultation always-visible block ---- */
.price__consult {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(2rem, 4vh, 3rem);
  border: 1px solid var(--glass-border);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.price__consult-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.5rem;
}
.price__consult-row + .price__consult-row { border-top: 1px solid var(--glass-border); }
.price__consult-name { font-size: 0.96rem; font-weight: 500; color: var(--c-graphite); }
.price__consult-price {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-steel-deep);
  white-space: nowrap;
}

/* ---- tab navigation ---- */
.price__tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--c-line);
}
.price__tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-ink-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.price__tab-btn:hover { color: var(--c-graphite); }
.price__tab-btn.is-active {
  color: var(--c-steel-deep);
  border-bottom-color: var(--c-steel-deep);
}
.price__tab-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-ink-dim);
  background: rgba(90, 130, 180, 0.08);
  border-radius: 2rem;
  padding: 0.08rem 0.42rem;
  line-height: 1.65;
  letter-spacing: 0;
}
.price__tab-btn.is-active .price__tab-count {
  background: rgba(90, 130, 180, 0.14);
  color: var(--c-steel-deep);
}
.price__tab-panel[hidden] { display: none; }

/* status drops under the name on small screens (icon + arrow span both rows) */
@media (max-width: 560px) {
  .price-row__link {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon main arrow"
      "icon status arrow";
    row-gap: 0.15rem;
  }
  .price-row__status { text-align: left; font-size: 0.78rem; white-space: normal; }
  .price-row__icon { width: 48px; height: 48px; }
  .price-row__num { font-size: 0.95rem; }
  .price-row__name { font-size: 0.94rem; }
  .price__tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.5rem 0.68rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }
  .price__consult-row { padding: 1rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .price-row__link { transition: none; }
}

/* ============================================================
   SECTION — Форма записи (frontend-only glass form)
   ============================================================ */
.appoint {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 6rem);
  background: linear-gradient(to bottom,
    rgba(244, 247, 251, 0.97) 0%,
    rgba(238, 243, 249, 0.98) 100%);
}

.appt__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.4rem);
  align-items: start;
}
@media (min-width: 920px) { .appt__inner { grid-template-columns: 1fr 1.05fr; gap: clamp(2.4rem, 4vw, 4rem); } }

/* ---- intro / benefits ---- */
.appt__head { margin-bottom: clamp(1.8rem, 4vh, 2.6rem); }
.appt__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.appt__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.appt__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 26rem;
}

.appt__benefits { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.appt-benefit { display: flex; align-items: flex-start; gap: 0.95rem; }
.appt-benefit__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(214, 223, 235, 0.5));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 6px 16px -10px rgba(43, 55, 80, 0.5);
}
.appt-benefit__icon svg { width: 22px; height: 22px; }
.appt-benefit__body { display: flex; flex-direction: column; gap: 0.2rem; }
.appt-benefit__title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-graphite); }
.appt-benefit__desc { font-size: 0.84rem; line-height: 1.5; color: var(--c-ink-dim); }

/* ---- form card ---- */
.appt__card {
  border-radius: 24px;
  border: 1px solid rgba(67, 87, 122, 0.15);            /* var(--c-steel-deep) @ 15% */
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 8px 48px rgba(20, 40, 80, 0.07);
  padding: 40px 36px;
}

.appt-form { display: flex; flex-direction: column; gap: 12px; }

/* field wrapper IS the glass surface; input sits transparent on top */
.appt-form .field {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(67, 87, 122, 0.17);            /* var(--c-steel-deep) @ 17% */
  border-radius: 12px;
  min-height: 52px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.appt-form .field--area { align-items: flex-start; }
.field__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--c-steel-deep);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
  z-index: 1;
}
.field__icon svg { width: 18px; height: 18px; }
.appt-form .field--area .field__icon { top: 15px; transform: none; }
.appt-form .field input,
.appt-form .field select,
.appt-form .field textarea {
  flex: 1;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--c-ink);
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  min-height: 52px;
}
.appt-form .field input:focus,
.appt-form .field select:focus,
.appt-form .field textarea:focus { outline: none; }
.appt-form .field--area textarea { min-height: 100px; padding: 14px 16px 14px 44px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(60, 80, 110, 0.45); }
.appt-form .field:focus-within {
  border-color: rgba(67, 87, 122, 0.5);
  box-shadow: 0 0 0 3px rgba(67, 87, 122, 0.08);
}
.field:focus-within .field__icon { opacity: 1; }

/* select */
.field--select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}
.field__chevron {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--c-steel-deep);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* error state — border lives on the wrapper now */
.appt-form .field--error {
  border-color: rgba(194, 86, 106, 0.7);
  box-shadow: 0 0 0 3px rgba(194, 86, 106, 0.13);
}

/* privacy link inside consent text */
.consent__link {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}

/* consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(40, 60, 90, 0.7);
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* visible custom box (native input stays hidden) — premium values from spec 3.4 */
.consent__box {
  flex: none;
  position: relative;
  top: 1px;
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(67, 87, 122, 0.38);          /* var(--c-steel-deep) @ 38% — visible edge */
  background: rgba(255, 255, 255, 0.9);
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.consent__box svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.6); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.consent input:checked + .consent__box {
  background: var(--c-steel-deep);
  border-color: var(--c-steel-deep);
}
.consent input:checked + .consent__box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.consent--error .consent__box { border-color: rgba(194, 86, 106, 0.8); box-shadow: 0 0 0 3px rgba(194, 86, 106, 0.13); }

/* form submit — inherits .btn + .btn--primary (frosted glass pill, dark text) */
.appt-form__submit { width: 100%; justify-content: center; margin-top: 8px; }

.appt-form__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--c-ink-dim);
  text-align: center;
}
.appt-form__trust svg { width: 15px; height: 15px; color: var(--c-steel-deep); flex: none; }

/* success state */
.appt__success {
  text-align: center;
  padding: clamp(1.6rem, 4vw, 2.6rem) 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.appt__success.is-in { opacity: 1; transform: none; }
.appt__success-icon {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(165deg, var(--c-steel) 0%, var(--c-steel-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 28px -12px rgba(43, 55, 80, 0.6);
}
.appt__success-icon svg { width: 28px; height: 28px; }
.appt__success-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--c-graphite);
  margin-bottom: 0.5rem;
}
.appt__success-text { font-size: 0.9rem; line-height: 1.6; color: var(--c-ink-dim); max-width: 24rem; margin: 0 auto; }

/* counter */
.appt__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(2rem, 4vh, 3rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.appt__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.appt__counter-sep { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
  .appt__card, .field input, .field select, .field textarea,
  .consent__box, .consent__box svg, .appt__success { transition: none; }
}

/* ============================================================
   SECTION — Контакты + footer (final, calm closing)
   ============================================================ */
.contacts {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 5vh, 3.5rem);
  background: linear-gradient(to bottom,
    rgba(238, 243, 249, 0.98) 0%,
    rgba(231, 238, 247, 1) 55%,
    rgba(224, 233, 244, 1) 100%);
}

.contacts__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 960px) {
  .contacts__inner {
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: clamp(2.4rem, 4vw, 3.6rem);
    row-gap: clamp(1.6rem, 4vh, 2.4rem);
  }
  .contacts__head { grid-column: 1 / -1; margin-bottom: 0; }
  .contacts__cards { align-self: start; }
  .contacts__right { align-self: stretch; }
}

/* ---- head ---- */
.contacts__head { margin-bottom: 0; }
.contacts__eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 0.9rem;
}
.contacts__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-graphite);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.contacts__rule { display: block; width: 56px; height: 1.5px; background: var(--c-line); margin: 1.1rem 0; }
.contacts__lead {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--c-ink);
  max-width: 26rem;
}

/* ---- contact cards ---- */
.contacts__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px) {
  .contacts__cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .contact-card--reviews { grid-column: 1 / -1; }
}
@media (min-width: 960px) and (max-width: 1100px) { .contacts__cards { grid-template-columns: 1fr; } }

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 1rem;
  text-decoration: none;
  min-height: 92px;
  padding: 1rem 1.1rem;
  border-radius: 1.3rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 40px -30px rgba(43, 55, 80, 0.5);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 56px -30px rgba(43, 55, 80, 0.6);
}
.contact-card:active { transform: translateY(-1px) scale(0.996); }

.contact-card__icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), rgba(214, 223, 235, 0.5));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 6px 16px -10px rgba(43, 55, 80, 0.5);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__body { min-width: 0; display: flex; flex-direction: column; gap: 0.28rem; }
.contact-card__label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-steel-deep); }
.contact-card__value { font-size: 0.9rem; color: var(--c-ink); line-height: 1.4; }
.contact-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -8px rgba(43, 55, 80, 0.5);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.contact-card:hover .contact-card__arrow { transform: translateX(3px); background: rgba(255, 255, 255, 0.72); }

/* ---- multi-line cards (addresses, socials) — no trailing arrow ---- */
.contact-card--addr {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.contact-card--social {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.contact-card--addr .contact-card__body,
.contact-card--social .contact-card__body { gap: 0.5rem; }

/* two addresses, Moscow = primary */
.contacts__addr { display: block; text-decoration: none; color: var(--c-ink); }
.contacts__addr + .contacts__addr {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--c-line-soft);
}
.contacts__addr-badge {
  display: inline-block;
  font-size: 0.54rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-steel-deep);
  background: rgba(90, 166, 207, 0.14);
  border: 1px solid rgba(90, 166, 207, 0.28);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.contacts__addr-name { display: block; font-size: 0.9rem; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.contacts__addr-line { display: block; font-size: 0.82rem; color: var(--c-ink-dim); line-height: 1.4; margin-top: 0.15rem; }
.contacts__addr:hover .contacts__addr-name { color: var(--c-steel-deep); }

/* brand socials — colour is intentional (recognisability), not the line-art system */
.contacts__social { display: flex; gap: 8px; align-items: center; width: fit-content; margin-top: 0.15rem; }
.csoc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.csoc-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- map (Yandex embed) ---- */
.contacts__right { display: flex; flex-direction: column; gap: 1.1rem; }
.contacts__map {
  position: relative;
  min-height: 320px;
  flex: 1;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background:
    repeating-linear-gradient(38deg, rgba(67, 87, 122, 0.045) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(-52deg, rgba(67, 87, 122, 0.045) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(38deg, rgba(67, 87, 122, 0.06) 0 3px, transparent 3px 200px),
    repeating-linear-gradient(-52deg, rgba(67, 87, 122, 0.06) 0 3px, transparent 3px 260px),
    linear-gradient(160deg, #e9eef6 0%, #dde6f1 60%, #cdd9e9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 56px -34px rgba(43, 55, 80, 0.5);
}
.contacts__map-card {
  position: absolute;
  left: 1.2rem; top: 1.2rem;
  max-width: 62%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -22px rgba(43, 55, 80, 0.55);
}
.contacts__map-label { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-steel-deep); margin-bottom: 0.4rem; }
.contacts__map-text { font-size: 0.82rem; line-height: 1.5; color: var(--c-ink-dim); }
.contacts__pin {
  position: absolute;
  left: 64%; top: 56%;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -60%) rotate(-45deg);
  background: linear-gradient(135deg, var(--c-steel) 0%, var(--c-steel-deep) 100%);
  box-shadow: 0 0 0 8px rgba(90, 166, 207, 0.16), 0 10px 22px -8px rgba(43, 55, 80, 0.6);
}
.contacts__pin::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}
.contacts__map-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.contacts__route { width: 100%; justify-content: center; }

/* ---- footer ---- */
.site-footer {
  max-width: 1120px;
  margin: clamp(2.6rem, 6vh, 4.2rem) auto 0;
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--c-line-soft);
}
.site-footer__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 2.8rem;
}
.foot-feature { display: flex; align-items: center; gap: 0.7rem; }
.foot-feature__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-steel-deep);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), rgba(214, 223, 235, 0.45));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 5px 14px -10px rgba(43, 55, 80, 0.5);
  flex: none;
}
.foot-feature__icon svg { width: 20px; height: 20px; }
.foot-feature__text { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink); line-height: 1.35; }

.site-footer__bottom {
  margin-top: clamp(2rem, 4vh, 2.8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.site-footer__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--c-graphite); }
.site-footer__brand .brand__mark { width: 28px; height: 28px; color: var(--c-steel-deep); }
.site-footer__brand .brand__name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; line-height: 1; }
.site-footer__brand .brand__sub { display: block; font-family: var(--font-ui); font-size: 0.5rem; letter-spacing: 0.28em; color: var(--c-ink-dim); margin-top: 0.26rem; font-weight: 500; }
.site-footer__note { max-width: 38rem; font-size: 0.72rem; line-height: 1.55; color: var(--c-ink-dim); }
.site-footer__copy { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--c-ink-dim); opacity: 0.7; }

.contacts__counter {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.2rem);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-ink-dim);
}
.contacts__counter-num { color: var(--c-steel-deep); font-weight: 600; }
.contacts__counter-sep { opacity: 0.45; }

@media (max-width: 540px) {
  .contacts__map { min-height: 260px; }
  .contacts__map-card { max-width: 74%; }
}

@media (max-width: 768px) {
  /* Reduce excess bottom space on mobile */
  .contacts {
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    margin-top: clamp(1.6rem, 4vh, 2.6rem);
    padding-top: clamp(1.4rem, 3vh, 2rem);
    padding-bottom: 0.4rem;
  }
  .contacts__counter { margin-top: clamp(1rem, 2.5vh, 1.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card { transition: none; }
}

/* ============================================================
   Privacy modal (ФЗ-152 policy)
   ============================================================ */
.consent__link {
  background: none; border: none; padding: 0;
  font-size: inherit; font-family: inherit; line-height: inherit;
  color: var(--c-steel-deep); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
  transition: color 0.18s;
}
.consent__link:hover { color: var(--c-graphite); }

.privacy-modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.privacy-modal[hidden] { display: none; }
.privacy-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(13, 22, 38, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.privacy-modal__panel {
  position: relative; z-index: 1;
  background: #f5f8fb;
  border-radius: 1.2rem;
  max-width: 640px; width: 100%;
  max-height: 82vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px -16px rgba(13, 22, 38, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.privacy-modal__head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  padding: 1.8rem 1.8rem 1.2rem;
  border-bottom: 1px solid rgba(43, 55, 80, 0.1);
  flex: none;
}
.privacy-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500; line-height: 1.3;
  color: var(--c-graphite); margin: 0;
}
.privacy-modal__close {
  flex: none; width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink-dim);
  transition: background 0.18s, color 0.18s;
}
.privacy-modal__close:hover { background: rgba(43,55,80,0.08); color: var(--c-graphite); }
.privacy-modal__close svg { width: 18px; height: 18px; }
.privacy-modal__body {
  overflow-y: auto; padding: 1.5rem 1.8rem 2rem;
  flex: 1; overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(67, 87, 122, 0.25) transparent;
}
.privacy-modal__body::-webkit-scrollbar { width: 4px; }
.privacy-modal__body::-webkit-scrollbar-thumb { background: rgba(67, 87, 122, 0.25); border-radius: 2px; }
.privacy-modal__body::-webkit-scrollbar-track { background: transparent; }
.privacy-modal__body h3 {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 500; color: var(--c-graphite);
  margin: 1.4rem 0 0.45rem;
}
.privacy-modal__body h3:first-child { margin-top: 0; }
.privacy-modal__body p {
  font-size: 0.85rem; line-height: 1.75;
  color: var(--c-ink-dim); margin: 0 0 0.6rem;
}
.privacy-modal__body ul {
  font-size: 0.85rem; line-height: 1.75;
  color: var(--c-ink-dim); margin: 0 0 0.6rem;
  padding-left: 1.3rem;
}
.privacy-modal__body ul li { margin-bottom: 0.25rem; }

@media (max-width: 480px) {
  .privacy-modal__panel { max-height: 90vh; border-radius: 1rem; }
  .privacy-modal__head { padding: 1.4rem 1.4rem 1rem; }
  .privacy-modal__body { padding: 1.2rem 1.4rem 1.6rem; }
}

/* ============================================================
   Motion — section divider line (point 5)
   Hairline draws left→right as section enters viewport.
   Pure CSS: section gets .is-section-in from reveal.js IO.
   ============================================================ */
section[id] { position: relative; }
section[id]::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 3.5rem);
  height: 1px;
  background: linear-gradient(to right,
    var(--c-steel) 0%,
    rgba(148, 168, 196, 0.40) 60%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.0s var(--ease);
  pointer-events: none;
}
section[id].is-section-in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  section[id]::before { transition: none; transform: scaleX(1); }
}

/* ============================================================
   Motion — scroll progress bar (point 6)
   Fixed 2px line at page top, scaleX driven by reveal.js on scroll.
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--c-cyan), var(--c-steel-deep));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ============================================================
   MOBILE PERFORMANCE + UX — comprehensive fix block
   Must stay at end of file to override earlier rules.
   ============================================================ */

/* ── Kill ALL backdrop-filter on mobile ───────────────────────
   39 blur layers → 0. #1 GPU / frame-rate fix.
   Compensate with more opaque backgrounds where needed.       */
@media (max-width: 768px) {
  .hero__blur,
  .nav__toggle,
  .nav.is-scrolled,
  .btn--primary,
  .btn--ghost,
  .hero-wrap .btn--primary,
  .hero-wrap .btn--ghost,
  .menu__panel,
  .menu__close,
  .menu .btn--primary,
  .proc-card__link,
  .ba-card,
  .ba__handle,
  .ba__label,
  .doc-card,
  .price-row__link,
  .price__group,
  .appt__card,
  .appt-form .field,
  .contact-card,
  .contacts__map-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .proc-card__link    { background: rgba(255, 255, 255, 0.90); }
  .ba-card            { background: rgba(255, 255, 255, 0.90); }
  .ba__handle         { background: rgba(240, 246, 255, 0.94); }
  .ba__label          { background: rgba(255, 255, 255, 0.90); }
  .doc-card           { background: rgba(255, 255, 255, 0.90); }
  .price-row__link    { background: rgba(255, 255, 255, 0.90); }
  .price__group       { background: rgba(255, 255, 255, 0.94); }
  .appt__card         { background: rgba(255, 255, 255, 0.97); }
  .appt-form .field   { background: rgba(255, 255, 255, 0.97); }
  .contact-card       { background: rgba(255, 255, 255, 0.90); }
  .contacts__map-card { background: rgba(255, 255, 255, 0.94); }

  .hero-wrap .btn--primary {
    background: rgba(42, 68, 115, 0.60);
    border-color: rgba(174, 200, 232, 0.52);
  }
  .hero-wrap .btn--ghost   { background: rgba(255, 255, 255, 0.10); }
  .nav.is-scrolled         { background: rgba(10, 17, 30, 0.97); }
  /* menu: fully opaque panel on mobile (no backdrop-filter) */
  .menu__panel {
    background:
      radial-gradient(125% 70% at 50% 0%, rgba(48, 74, 116, 0.45) 0%, rgba(48, 74, 116, 0) 60%),
      linear-gradient(180deg, #0d1524 0%, #0a101c 100%);
  }
  /* menu CTA: solid on mobile (glass killed above) */
  .menu .btn--primary {
    background: linear-gradient(135deg, rgba(55, 95, 165, 0.90) 0%, rgba(28, 55, 105, 0.95) 100%);
    border-color: rgba(174, 200, 232, 0.50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.40);
  }
}

/* ── Simplify [data-reveal] transitions on mobile ─────────────
   Drop filter from transition + will-change (was no-op anyway) */
@media (max-width: 768px) {
  [data-reveal] {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    will-change: opacity, transform;
  }
}

/* ── Remove hover lift on touch devices ───────────────────────
   No hover on touch → card stays in "lifted" state after tap. */
@media (hover: none) {
  .proc-card__link:hover,
  .ba-card:hover,
  .doc-card:hover,
  .price-row__link:hover,
  .contact-card:hover { transform: none; }
}

/* ── Lighter box-shadows on mobile ────────────────────────────
   Deep multi-layer shadows are expensive; simpler reads fine. */
@media (max-width: 768px) {
  .proc-card__link,
  .ba-card,
  .doc-card,
  .price-row__link,
  .contact-card {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.80),
      0 2px 14px -4px rgba(43, 55, 80, 0.14);
  }
}

/* ── Appointment benefits: hide on mobile (too cluttered) ────
   Still visible on desktop (≥769px).                          */
@media (max-width: 768px) {
  .appt__benefits { display: none; }
}

/* ── Appointment form: Premium Medical card on mobile ──────────
   backdrop-filter is killed on mobile → 65%-opacity card vanishes
   against near-white section bg. Fix: pure white card + no-icon
   tinted fields + solid dark CTA.                               */
@media (max-width: 768px) {
  .appt__inner { gap: 1.5rem; }

  /* Pure white card — clear depth against light blue section bg */
  .appt__card {
    background: #ffffff;
    border: 1px solid rgba(67, 87, 122, 0.10);
    box-shadow: 0 2px 20px rgba(14, 22, 40, 0.05), 0 1px 0 rgba(67, 87, 122, 0.06);
    border-radius: 20px;
    padding: 28px 22px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Tighter field gap */
  .appt-form { gap: 8px; }

  /* Fields: tinted bg, lighter border, no icons */
  .appt-form .field {
    background: rgba(241, 245, 252, 0.85);
    border: 1px solid rgba(67, 87, 122, 0.12);
    border-radius: 10px;
    min-height: 50px;
    box-shadow: none;
  }
  .appt-form .field:focus-within {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(67, 87, 122, 0.42);
    box-shadow: 0 0 0 3px rgba(67, 87, 122, 0.07);
  }
  .appt-form .field--error {
    border-color: rgba(194, 86, 106, 0.65);
    box-shadow: 0 0 0 3px rgba(194, 86, 106, 0.10);
  }

  /* Hide icons — field text starts at 14px from left */
  .appt-form .field .field__icon,
  .appt-form .field--area .field__icon { display: none; }

  .appt-form .field input,
  .appt-form .field select {
    padding: 0 14px;
    min-height: 50px;
    font-size: 0.95rem;
  }
  .appt-form .field--area { min-height: auto; align-items: stretch; }
  .appt-form .field--area textarea {
    padding: 13px 14px;
    min-height: 72px;
    font-size: 0.95rem;
  }
  .field--select select { padding-right: 40px; }
  .field__chevron { right: 14px; }

  /* Consent: compact */
  .consent { margin: 1rem 0 0; font-size: 0.80rem; }

  /* CTA: solid dark navy */
  .appoint .appt-form__submit {
    margin-top: 6px;
    background: var(--c-graphite);
    color: #eef4fc;
    border-color: var(--c-graphite);
    box-shadow: 0 4px 20px rgba(14, 22, 40, 0.20);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .appt-form__trust { margin-top: 0.8rem; }
}

/* ── Readability — bump tiny text on mobile ───────────────────
   0.60–0.66rem = 9.6–10.6px; illegible on phone screens.     */
@media (max-width: 768px) {
  .proc__eyebrow,
  .ba__eyebrow,
  .doc__eyebrow,
  .doc-card__eyebrow,
  .price__eyebrow,
  .appt__eyebrow,
  .contacts__eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; }

  .ba__label { font-size: 0.65rem; }
}

/* ============================================================
   Certificates / documents block (#doctors)
   ============================================================ */
.certs {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--c-line-soft);
}
.certs__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-steel-deep);
  margin-bottom: 1.25rem;
}
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.2rem);
}

.cert-card {
  margin: 0;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(67, 87, 122, 0.10);
  box-shadow: 0 2px 16px rgba(20, 40, 80, 0.07);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  scroll-snap-align: start;
}
.cert-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #eef2f7;
}
.cert-card__caption {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--c-ink-dim);
  padding: 0.65rem 0.8rem 0.8rem;
  margin: 0;
}
@media (hover: hover) {
  .cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(20, 40, 80, 0.14);
  }
}

/* Mobile: horizontal snap-scroll carousel */
@media (max-width: 640px) {
  .certs__grid {
    grid-auto-flow: column;
    grid-auto-columns: 72vw;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3.5rem));
    padding-left: clamp(1.25rem, 4vw, 3.5rem);
    padding-right: clamp(1.25rem, 4vw, 3.5rem);
  }
  .certs__grid::-webkit-scrollbar { display: none; }
  /* solid bg on mobile (backdrop-filter is killed for perf) */
  .cert-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #ffffff;
  }
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 10, 20, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
