/* Montserrat (SIL OFL 1.1, see fonts/OFL.txt) is served from the site itself, not Google Fonts. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/montserrat-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design system: design-system/faizrakhmanov/MASTER.md
   Trust & Authority pattern · Accessible & Ethical style
   Brand: Montserrat + slate #475369 from the doctor's Wix site */

:root {
  --bg: #ffffff;
  --surface: #f3f5f8;
  --muted: #e9edf2;
  --fg: #1e2533;
  --fg-muted: #4b5565;
  --primary: #475369;
  --primary-hover: #39435a;
  --accent: #475369;
  --accent-hover: #39435a;
  --border: #dde2ea;
  --dark: #1f2633;
  --dark-2: #2b3445;
  --on-dark: #f4f6fa;
  --on-dark-muted: #b6c0d2;
  --cyan: #8fb4ff;
  --ring: #475369;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(30, 37, 51, 0.06), 0 8px 24px rgba(30, 37, 51, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(31, 38, 51, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;

  --z-header: 40;
  --z-menu: 100;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}

img, video { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  z-index: 1000;
  background: var(--fg);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-3); color: #fff; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section { padding: var(--space-8) 0; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--cyan); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-head p { max-width: 560px; color: var(--fg-muted); }

.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cta { background: var(--accent); color: #fff; }
.btn--cta:hover { background: var(--accent-hover); color: #fff; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(244, 246, 250, 0.5); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(244, 246, 250, 0.08); }
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { background: var(--surface); color: var(--fg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px var(--space-4);
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--cyan); }
.topbar__group { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Solid, no backdrop-filter: a filter would become the containing block
     for the fixed off-canvas menu and widen the page on phones. */
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { color: var(--fg); }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--primary); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.brand__role { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--fg-muted); }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav a:hover { background: var(--surface); color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: #fff;
    z-index: var(--z-menu);
    padding: 88px var(--space-4) var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 280ms var(--ease-out); }
  .nav ul { flex-direction: column; }
  .nav a { min-height: 52px; font-size: 1.1rem; width: 100%; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary); background: var(--surface); }
  .nav__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
  }
  .header-actions .btn--cta { display: none; }
}
@media (min-width: 1081px) { .nav__close { display: none; } }

/* The header is its own stacking context; lift it above the scrim while
   the off-canvas menu inside it is open. */
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(31, 38, 51, 0.5);
  z-index: calc(var(--z-menu) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  color: var(--on-dark);
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(31, 38, 51, 0.86) 0%, rgba(31, 38, 51, 0.62) 46%, rgba(31, 38, 51, 0.1) 100%);
}
.hero__content {
  padding-top: var(--space-8);
  padding-bottom: calc(var(--space-8) + 40px);
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero .lead { color: #dfe5ef; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 246, 250, 0.28);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--on-dark);
  background: rgba(31, 38, 51, 0.35);
}
.hero__badges svg { width: 18px; height: 18px; color: var(--cyan); }

.media-toggle {
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 250, 0.4);
  background: rgba(31, 38, 51, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-toggle:hover { background: rgba(31, 38, 51, 0.8); }
.media-toggle svg { width: 20px; height: 20px; }

.page-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: var(--space-3); }
.page-hero p { color: var(--on-dark-muted); max-width: 720px; font-size: 1.12rem; }
.page-hero__mark {
  position: absolute;
  right: -80px;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  color: rgba(244, 246, 250, 0.16);
  pointer-events: none;
}
.breadcrumbs { font-size: 0.9rem; margin-bottom: var(--space-4); color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark); }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { padding: var(--space-5) var(--space-5); }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 10px; color: var(--fg-muted); font-size: 0.96rem; line-height: 1.4; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 420px) {
  .stat { padding: var(--space-4); }
}

/* ---------- Doctor intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7);
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: var(--space-5); }
}

.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--muted);
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait__badge {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--fg);
}
.portrait__badge strong { display: block; font-family: var(--font-head); font-size: 1rem; }

.prose { display: flex; flex-direction: column; gap: var(--space-4); }
.prose p { color: var(--fg-muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 2px; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow); border-color: #c3cbd8; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body p { color: var(--fg-muted); font-size: 0.98rem; }
.card__meta { font-size: 0.86rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }

.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tile__icon svg { width: 24px; height: 24px; }
.tile p { color: var(--fg-muted); font-size: 0.98rem; }
.tile__step { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 0.86rem; letter-spacing: 0.08em; }

.section--dark .tile { background: var(--dark-2); border-color: rgba(244, 246, 250, 0.12); }
.section--dark .tile h3 { color: #fff; }
.section--dark .tile p { color: var(--on-dark-muted); }
.section--dark .tile__icon { background: rgba(143, 180, 255, 0.14); color: var(--cyan); }

/* ---------- Video block ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline__year { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.timeline p { color: var(--fg-muted); margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  height: clamp(360px, 46vw, 560px);
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--muted); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .gallery figure:first-child { grid-row: auto; }
}

/* ---------- Quote ---------- */
.quote {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.quote svg { width: 40px; height: 40px; color: var(--primary); margin-bottom: var(--space-3); }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.45; }
.quote figcaption { margin-top: var(--space-4); color: var(--fg-muted); }

.platforms { display: grid; gap: var(--space-3); }
.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.platform:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--fg); }
.platform span { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--primary); }

/* ---------- Docs list ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 64px;
  padding: 14px 4px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.doc-list a:hover { color: var(--primary); }
.doc-list .tag {
  flex: none;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Contacts & form ---------- */
.contact-card {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 3px; }
.contact-row small { display: block; color: var(--on-dark-muted); font-size: 0.85rem; }
.contact-row > div { min-width: 0; overflow-wrap: anywhere; }
.site-footer li, .site-footer a { overflow-wrap: anywhere; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .split > * { min-width: 0; }
@media (max-width: 640px) {
  .contact-card, .form, .quote, .cta-band { padding: var(--space-4); }
}
.contact-row a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-row a:hover { color: var(--cyan); }

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: #b91c1c; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #a3adbd;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--fg);
  background: #fff;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(71, 83, 105, 0.25); }
.field input[aria-invalid="true"] { border-color: #b91c1c; }
.field__hint { font-size: 0.86rem; color: var(--fg-muted); }
.field__error { font-size: 0.9rem; color: #b91c1c; font-weight: 600; }
.form__note { font-size: 0.86rem; color: var(--fg-muted); }
.form__status { font-weight: 600; color: var(--accent); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244, 246, 250, 0.16);
  aspect-ratio: 16 / 10;
  background: var(--dark-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-band p { color: #e3e8f1; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: var(--space-7) 0 var(--space-5); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .brand { color: #fff; }
.site-footer .brand__mark { color: var(--cyan); }
.site-footer .brand__role { color: var(--on-dark-muted); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 246, 250, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.86rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.stack-4 > * + * { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* ---------- Eye explorer (Remotion Player) ---------- */
.eye-explorer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) { .eye-explorer { grid-template-columns: 1fr; } }
.eye-explorer__stage {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(244, 246, 250, 0.12);
}
.eye-explorer__zones { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.zone-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(244, 246, 250, 0.3);
  background: transparent;
  color: var(--on-dark);
  font: 600 0.95rem/1.2 var(--font-head);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
.zone-btn:hover { border-color: var(--on-dark); }
.zone-btn[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.eye-explorer__text h3 { color: #fff; font-size: 1.5rem; }
.eye-explorer__sub { color: var(--cyan) !important; font-weight: 600; margin: 6px 0 12px; }
.eye-explorer__fallback { color: var(--on-dark-muted); }
.eye-explorer__fallback li + li { margin-top: 6px; }

/* ---------- Forum ---------- */
.forum-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0; padding: 0; list-style: none; }
.forum-meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--dark-2);
  color: var(--on-dark);
  font-weight: 600;
}
.forum-meta svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.forum-timeline { margin-top: var(--space-6); }
.forum-topics { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.forum-topics li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 246, 250, 0.22);
  color: var(--on-dark);
  font-size: 0.92rem;
}
.section--dark .section-head p { color: var(--on-dark-muted); }
.section--dark .prose p, .section--dark .lead { color: var(--on-dark-muted); }
/* Guard against stray few-pixel overflow (e.g. blurred layers inside the
   Player); clip keeps position: sticky working, unlike overflow: hidden. */
html, body { overflow-x: clip; }

/* =========================================================
   Home page v2 — scenario: who → trust → person → cases →
   path → reviews → science → booking
   ========================================================= */
.section--tight { padding: var(--space-6) 0; }

/* Scroll cue in the hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  width: 30px;
  height: 48px;
  margin-left: -15px;
  border: 2px solid rgba(244, 246, 250, 0.6);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .word__inner { display: inline-block; }

/* Marquee of specialties */
.marquee {
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Facts strip */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact { padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: 8px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.fact__label { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* Portrait mask reveal */
.portrait--reveal { margin: 0; }
.portrait--reveal img { transform-origin: 50% 50%; }

/* Cases (what patients come with) */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 1000px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }
.case {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 900ms var(--ease-out); }
.case:hover .case__media img { transform: scale(1.14); }
.case__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; }
.case__symptom { font-style: italic; color: var(--primary); font-weight: 600; font-size: 0.98rem; }
.case__body p:last-child { color: var(--fg-muted); font-size: 0.95rem; }

/* Steps with a line drawn on scroll */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--border);
}
.steps::after { background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--progress, 1)); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding-right: var(--space-3); }
.step__dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--border);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg-muted);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), color 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.step.is-on .step__dot { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }
.step p { color: var(--fg-muted); font-size: 0.97rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-5); }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--progress, 1)); }
  .step { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: var(--space-3); padding-right: 0; }
  .step h3, .step p { flex: 1 1 calc(100% - 80px); margin-left: 80px; }
  .step__dot { position: absolute; left: 0; top: 0; }
}
.channels { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0 0; padding: 0; }
.channels li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

/* Reviews carousel */
.carousel { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; gap: var(--space-4); transition: transform 600ms var(--ease-out); will-change: transform; }
.review {
  flex: 0 0 calc((100% - var(--space-4)) / 2);
  margin: 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--dark-2);
  border: 1px solid rgba(244, 246, 250, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 300px;
}
@media (max-width: 860px) { .review { flex-basis: 100%; padding: var(--space-4); } }
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--on-dark); position: relative; padding-top: 34px; }
.review blockquote::before { content: "“"; position: absolute; top: -18px; left: -4px; font-size: 4.5rem; line-height: 1; color: var(--cyan); font-family: Georgia, serif; }
.review figcaption { color: var(--on-dark-muted); font-weight: 600; }
.carousel__nav { display: flex; gap: var(--space-2); }
.carousel__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 246, 250, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.carousel__btn:hover { background: rgba(244, 246, 250, 0.1); border-color: #fff; }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.carousel__dots { display: flex; gap: 6px; }
.carousel__dot { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.carousel__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: rgba(244, 246, 250, 0.35); transition: width 300ms var(--ease-out), margin 300ms var(--ease-out), background-color 300ms; }
.carousel__dot[aria-selected="true"]::before { width: 22px; margin-left: -11px; background: #fff; }
.review-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.review-links a { color: var(--on-dark); font-weight: 600; }
.review-links a:hover { color: var(--cyan); }

/* Book fan */
.book-fan { position: relative; height: clamp(320px, 38vw, 460px); }
.book-fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(150px, 17vw, 230px);
  aspect-ratio: 600 / 823;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(30, 37, 51, 0.55);
  transform: translate(-50%, -50%);
}
.books-split { align-items: center; }

/* Booking + map */
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.form__lead { color: var(--fg-muted); }
.where { display: flex; flex-direction: column; gap: var(--space-4); }
.where .map-embed { border-color: var(--border); background: var(--muted); aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.where__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
@media (max-width: 520px) { .where__list { grid-template-columns: 1fr; } }
.where__list dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.where__list dd { margin: 4px 0 0; font-weight: 600; }

/* Initial states for GSAP (only when JS + motion are allowed) */
.motion [data-anim="fade-up"], .motion [data-anim="card"] { opacity: 0; }
.motion [data-anim="mask"] { clip-path: inset(100% 0 0 0); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

/* Books grid (science page) */
.books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
@media (max-width: 1000px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .books { grid-template-columns: 1fr; } }
.book { display: flex; flex-direction: column; gap: 10px; }
.book__cover {
  aspect-ratio: 600 / 823;
  border-radius: 6px;
  overflow: hidden;
  background: #11151d;
  box-shadow: 0 24px 48px -20px rgba(30, 37, 51, 0.5);
  display: flex;
  align-items: center;
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.book:hover .book__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 34px 60px -20px rgba(30, 37, 51, 0.6); }
.book__cover img { width: 100%; height: 100%; object-fit: contain; }
.book h3 { font-size: 1.02rem; line-height: 1.35; margin-top: 8px; }
.book p { color: var(--fg-muted); font-size: 0.88rem; line-height: 1.45; }
.forum-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.forum-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Reviews page */
.review-grid { columns: 2 360px; column-gap: var(--space-4); }
.review-card { break-inside: avoid; margin: 0 0 var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.review-card blockquote { margin: 0; line-height: 1.65; }
.review-card figcaption { margin-top: var(--space-3); font-weight: 700; color: var(--primary); }
.contact-card .map-embed { aspect-ratio: 16 / 10; }
/* Taller than the frame so the parallax shift never exposes the background. */
.portrait--reveal img { height: 114%; }
/* The line ends at the last dot's centre: 4 columns, 24px gap, 56px dots. */
@media (min-width: 861px) {
  .steps::before, .steps::after { right: calc(25% - 46px); }
}
.book-fan img { height: auto; }

/* ---------- 3D books (home shelf + science page) ---------- */
.book3d {
  --w: 180px;
  --t: 26px;
  position: relative;
  width: var(--w);
  aspect-ratio: 600 / 823;
  transform-style: preserve-3d;
  transform: rotateY(-28deg);
  transition: transform 600ms var(--ease-out);
}
.book3d img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  transform: translateZ(calc(var(--t) / 2));
  box-shadow: 4px 4px 14px rgba(30, 37, 51, 0.25);
  backface-visibility: hidden;
}
/* page block on the fore-edge */
.book3d::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: calc(var(--t) - 2px);
  height: calc(100% - 6px);
  transform: translateX(calc(var(--w) - var(--t) / 2 - 4px)) rotateY(90deg);
  background: linear-gradient(90deg, #fff 0%, #ececec 8%, #fff 16%, #ececec 24%, #fff 32%, #ececec 40%, #fff 48%, #ececec 56%, #fff 64%, #ececec 72%, #fff 80%, #ececec 88%, #fff 100%);
}
/* back cover with the cast shadow */
.book3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px 5px 5px 2px;
  background: #151a24;
  transform: translateZ(calc(var(--t) / -2));
  box-shadow: -18px 22px 40px -6px rgba(30, 37, 51, 0.45);
}

.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  perspective: 1800px;
  padding: var(--space-6) 0 var(--space-5);
  min-height: 360px;
}
.shelf .book3d { --w: clamp(96px, 11vw, 168px); --t: clamp(16px, 1.6vw, 24px); cursor: default; }
.no-js .shelf .book3d:hover, html:not(.motion) .shelf .book3d:hover { transform: rotateY(-6deg) translateY(-14px); }
@media (max-width: 640px) {
  .shelf { gap: 2px; min-height: 0; }
  .shelf .book3d { --w: 62px; --t: 10px; }
}

/* ---------- Rating cards (reviews block) ---------- */
.rating-cards { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rating-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: 2px;
  min-width: 190px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(244, 246, 250, 0.06);
  border: 1px solid rgba(244, 246, 250, 0.16);
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.rating-card:hover { background: rgba(244, 246, 250, 0.12); border-color: rgba(244, 246, 250, 0.4); color: #fff; transform: translateY(-2px); }
.rating-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.rating-card__score { grid-row: span 2; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff; }
.rating-card__score svg { width: 22px; height: 22px; color: #f5c451; }
.rating-card__meta { font-size: 0.86rem; color: var(--on-dark-muted); }
.rating-card--all { grid-template-columns: 1fr auto; }
.rating-card__arrow { grid-row: span 2; grid-column: 2; grid-row-start: 1; width: 22px; height: 22px; }

/* light variant for the reviews page */
.on-light .rating-card { background: #fff; border-color: var(--border); color: var(--fg); }
.on-light .rating-card:hover { border-color: var(--primary); color: var(--fg); box-shadow: var(--shadow); }
.on-light .rating-card__score { color: var(--fg); }
.on-light .rating-card__meta { color: var(--fg-muted); }

/* numbers card over the hero, as before */
#trust .stats { margin-top: -64px; }
.stat .stat__value { color: var(--primary); }

/* ---------- Science: 3D book cards ---------- */
.books { gap: var(--space-6) var(--space-4); }
.book { gap: 0; }
.book__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) 0 var(--space-4);
  perspective: 1400px;
  background: radial-gradient(ellipse at 50% 92%, rgba(71, 83, 105, 0.16), transparent 62%);
  border-radius: var(--radius-lg);
}
.book__stage .book3d { --w: min(70%, 190px); --t: 22px; }
.book__info { display: flex; flex-direction: column; gap: 8px; padding-top: var(--space-3); border-top: 1px solid var(--border); margin-top: var(--space-2); }
.book__info h3 { font-size: 1.02rem; line-height: 1.35; margin: 0; }
.book__authors { color: var(--fg-muted); font-size: 0.86rem; line-height: 1.5; }
.book__btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.book__btn:hover { background: var(--primary); color: #fff; }

/* ---------- Science: forum over conference video ---------- */
.video-section { position: relative; overflow: hidden; color: var(--on-dark); background: var(--dark); isolation: isolate; padding: calc(var(--space-8) + 20px) 0 var(--space-7); }
.video-section__bg, .video-section__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 38, 51, 0.92) 0%, rgba(31, 38, 51, 0.7) 55%, rgba(31, 38, 51, 0.35) 100%); }
.video-section p { color: #dfe5ef; }
.forum-head { max-width: 720px; display: flex; flex-direction: column; gap: var(--space-4); }
.forum-head .forum-meta { margin: 0; }
.video-section .forum-meta li { background: rgba(31, 38, 51, 0.6); backdrop-filter: blur(6px); }

/* ---------- Reviews page ---------- */
.rv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.rv-top__count { display: flex; align-items: center; gap: var(--space-3); color: var(--fg-muted); line-height: 1.4; }
.rv-top__num { font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--primary); }
.rv-featured { margin: 0 auto; max-width: 900px; text-align: center; }
.rv-featured blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.45; color: #fff; position: relative; padding-top: 56px; }
.rv-featured blockquote::before { content: "“"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 7rem; line-height: 1; color: var(--cyan); font-family: Georgia, serif; }
.rv-featured figcaption { margin-top: var(--space-5); display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-weight: 600; }
.rv-grid { columns: 3 300px; column-gap: var(--space-4); }
.rv { break-inside: avoid; margin: 0 0 var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(30, 37, 51, 0.04); transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out); }
.rv:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.rv__topic { display: inline-block; margin-bottom: var(--space-3); padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.rv blockquote { margin: 0; line-height: 1.65; }
.rv figcaption { margin-top: var(--space-4); display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--fg); }
.rv__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.rv-featured .rv__avatar { background: rgba(244, 246, 250, 0.14); }

/* About page portrait is a different photo; keep the frame proportions */
/* Bigger, overlapping books so the depth reads */
.shelf { gap: 0; min-height: 420px; }
.shelf .book3d { --w: clamp(120px, 14vw, 210px); --t: clamp(18px, 2vw, 30px); }
.shelf .book3d + .book3d { margin-left: calc(var(--w) * -0.28); }
@media (max-width: 640px) {
  .shelf { min-height: 0; }
  .shelf .book3d { --w: 92px; --t: 14px; }
}
/* Paint order fallback: if a browser flattens the 3D context, the cover still wins. */
.book3d img { z-index: 2; }
.book3d::before { z-index: 1; }
.book3d::after { z-index: 0; }
.shelf .book3d { isolation: isolate; }
.book { height: 100%; }
.book__info { flex: 1; }
.book__btn { margin-top: auto; }
.book__authors { margin-bottom: 6px; }
/* The fan stays inside its column: books scale with it, not with the viewport. */
.book-fan { overflow: visible; }
.book-fan img { width: min(220px, 32%); }

/* Forum section, centred over the conference video (topics list removed) */
#forum { padding: calc(var(--space-8) + 40px) 0 var(--space-7); }
#forum::after { background: radial-gradient(ellipse 70% 65% at 50% 42%, rgba(31, 38, 51, 0.58) 0%, rgba(31, 38, 51, 0.72) 60%, rgba(31, 38, 51, 0.9) 100%); }
#forum .forum-head { max-width: 980px; margin: 0 auto; align-items: center; text-align: center; gap: var(--space-5); }
#forum .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--cyan); }
#forum .eyebrow::before, #forum .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.6; }
#forum h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
#forum .forum-head p { max-width: 640px; font-size: 1.08rem; line-height: 1.7; }
#forum .forum-meta { justify-content: center; gap: 0; padding: 6px; border-radius: 999px; background: rgba(31, 38, 51, 0.55); border: 1px solid rgba(244, 246, 250, 0.16); backdrop-filter: blur(8px); }
#forum .forum-meta li { background: none; backdrop-filter: none; border-radius: 999px; padding: 10px 20px; }
#forum .forum-meta li + li { border-left: 1px solid rgba(244, 246, 250, 0.16); }
#forum .forum-timeline { margin-top: var(--space-7); }
@media (max-width: 640px) {
  #forum { padding: calc(var(--space-7) + 40px) 0 var(--space-6); }
  #forum .forum-meta { flex-direction: column; border-radius: var(--radius-lg); width: 100%; }
  #forum h2 { font-size: 1.7rem; }
  #forum .forum-meta li { justify-content: center; text-align: center; border-radius: 0; }
  #forum .forum-meta li + li { border-left: 0; border-top: 1px solid rgba(244, 246, 250, 0.16); }
}

/* Forum: date and venue as two equal cards */
#forum .forum-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--space-3); width: 100%; max-width: 800px; }
#forum .forum-fact { display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: left; border-radius: var(--radius-lg); background: rgba(31, 38, 51, 0.55); border: 1px solid rgba(244, 246, 250, 0.14); backdrop-filter: blur(8px); }
#forum .forum-fact__icon { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(143, 180, 255, 0.14); color: var(--cyan); }
#forum .forum-fact__icon svg { width: 22px; height: 22px; }
#forum .forum-fact__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
#forum .forum-fact__value { display: block; margin-top: 2px; font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.35; }
#forum .forum-fact__sub { display: block; font-size: 0.9rem; color: var(--on-dark-muted); }
@media (max-width: 640px) { #forum .forum-facts { grid-template-columns: 1fr; } }

/* Remotion Player widgets on the patients page */
.motion-widget { margin-top: var(--space-6); }

/* Forum: date and venue as one quiet line (replaces the cards) */
#forum .forum-facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; max-width: none; width: auto; }
#forum .forum-fact { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; background: none; border: 0; border-radius: 0; backdrop-filter: none; font-weight: 600; color: #fff; }
#forum .forum-fact + .forum-fact { border-left: 1px solid rgba(244, 246, 250, 0.3); }
#forum .forum-fact svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
@media (max-width: 640px) {
  #forum .forum-facts { flex-direction: column; gap: 10px; }
  #forum .forum-fact + .forum-fact { border-left: 0; }
  #forum .forum-fact { padding: 0; text-align: center; justify-content: center; }
}

/* Patients page: steps reuse the home-page route, channels as quiet cards */
.steps--page { margin-top: var(--space-6); }
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.channel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.channel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease-out) 200ms; }
.channel.is-visible::before { transform: scaleX(1); }
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.channel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.channel__num { font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; color: var(--fg-muted); }
.channel .tile__icon { transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.channel:hover .tile__icon { background: var(--primary); color: #fff; }
.channel__abbr { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: 0.02em; color: var(--fg); }
.channel__full { font-weight: 600; color: var(--fg); line-height: 1.45; }
.channel__note { color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 960px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .channel-grid { grid-template-columns: 1fr; } }

/* Softer book shadows */
.book3d img { box-shadow: 2px 2px 8px rgba(30, 37, 51, 0.14); }
.book3d::after { box-shadow: -8px 12px 22px -10px rgba(30, 37, 51, 0.24); }
.book__stage { background: radial-gradient(ellipse at 50% 92%, rgba(71, 83, 105, 0.07), transparent 60%); }

/* About: timeline rail drawn by the Remotion Player (falls back to the CSS line) */
.timeline--rail { position: relative; border-left: 0; }
.timeline--rail li { padding-left: 76px; }
.timeline--rail li::before { display: none; }
.timeline__rail { position: absolute; left: 0; top: 0; width: 56px; pointer-events: none; }
.timeline--rail .timeline__year { color: var(--fg-muted); transition: color 400ms var(--ease-out); }
.timeline--rail li.is-on .timeline__year { color: var(--primary); }
@media (max-width: 640px) { .timeline--rail li { padding-left: 64px; } }

/* Patients: four channels as one panel split into columns (replaces the cards) */
.channel-panel {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 37, 51, 0.04);
}
.channel-panel__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-6) var(--space-5);
  transition: background-color 300ms var(--ease-out);
}
.channel-panel__item + .channel-panel__item { border-left: 1px solid var(--border); }
.channel-panel__item:hover { background: var(--surface); }
.channel-panel__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--primary);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.channel-panel__icon svg { width: 22px; height: 22px; }
.channel-panel__item:hover .channel-panel__icon { background: var(--primary); border-color: var(--primary); color: #fff; }
.channel-panel h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: 0.03em; color: var(--fg); margin: 0; }
.channel-panel p { color: var(--fg-muted); font-size: 0.98rem; line-height: 1.5; margin: 0; }
.channel-panel__note { margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.channel-panel__item:hover .channel-panel__note { background: #fff; }
@media (max-width: 960px) {
  .channel-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-panel__item:nth-child(3) { border-left: 0; }
  .channel-panel__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .channel-panel { grid-template-columns: 1fr; }
  .channel-panel__item { padding: var(--space-5) var(--space-4); }
  .channel-panel__item + .channel-panel__item { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Design review fixes (UI UX Pro Max pass) ---------- */
/* Phone numbers never break; e-mail breaks only at the <wbr> before @ */
a[href^="tel:"] { white-space: nowrap; }
.site-footer li, .site-footer a { overflow-wrap: normal; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* Readable brand subtitle */
.brand__role { font-size: 0.82rem; }

/* Touch targets: 44px on phones */
.carousel__dots { gap: 0; }
.carousel__dot { width: 44px; height: 44px; }
@media (max-width: 700px) {
  .site-footer a { min-height: 44px; }
  .topbar a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Phones: the top strip keeps only hours and phone, on one line */
@media (max-width: 700px) {
  .topbar .container > span:first-child { display: none; }
  .topbar .container { padding-top: 2px; padding-bottom: 2px; }
  .topbar__group { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
}

/* One card language: same radius and resting shadow for every white card */
.case, .tile, .card, .rv, .form, .contact-card, .rating-card, .channel-panel, .cta-band { border-radius: var(--radius-lg); }
.case, .tile, .card, .rv, .form, .channel-panel { box-shadow: 0 1px 2px rgba(30, 37, 51, 0.04), 0 6px 18px rgba(30, 37, 51, 0.05); }
.case { display: flex; flex-direction: column; height: 100%; }
.case__body { flex: 1; }
.case__body h3 { min-height: 2.5em; display: flex; align-items: flex-end; }
@media (max-width: 640px) { .case__body h3 { min-height: 0; } }

/* Form title as a class instead of inline styles */
.form__title { font-size: 1.6rem; line-height: 1.25; }

/* Inner page heroes: a real photo from the Center instead of the old logo rings */
.page-hero--photo { isolation: isolate; }
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -2;
  background: var(--hero-photo) var(--hero-pos, 50% 50%) / cover no-repeat;
}
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 38%, rgba(31, 38, 51, 0.82) 58%, rgba(31, 38, 51, 0.45) 100%);
}
@media (max-width: 760px) {
  .page-hero--photo::before { inset: 0; opacity: 0.35; }
  .page-hero--photo::after { background: linear-gradient(180deg, rgba(31, 38, 51, 0.7), var(--dark)); }
}

/* Map: address under the frame in case the widget doesn't load, plus a direct link */
.map-embed { position: relative; }
.map-embed iframe { position: relative; z-index: 1; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: var(--space-4); text-align: center; color: var(--fg-muted); font-weight: 600; }
.map-fallback svg { width: 32px; height: 32px; color: var(--primary); }
.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: var(--space-2); font-weight: 700; color: var(--primary); text-decoration: none; }
.map-link svg { width: 16px; height: 16px; }
.map-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .topbar__group { align-items: center; }
  .hero__content { padding-top: var(--space-6); padding-bottom: calc(var(--space-6) + 40px); }
}

/* Inner page heroes: background video (replaces the still photo) */
.page-hero--video { isolation: isolate; padding: calc(var(--space-8) + 24px) 0 var(--space-8); }
.page-hero__media, .page-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(31, 38, 51, 0.94) 0%, rgba(31, 38, 51, 0.8) 45%, rgba(31, 38, 51, 0.35) 100%);
}
@media (max-width: 760px) {
  .page-hero--video::after { background: linear-gradient(180deg, rgba(31, 38, 51, 0.6), rgba(31, 38, 51, 0.92)); }
}

/* Consultation block: a real exam photo, the phone as the main element */
.consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.consult__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.consult__media img { width: 100%; height: 100%; object-fit: cover; }
.consult__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.consult__body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.consult__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.consult__phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.consult__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--space-4); margin: 0 0 var(--space-3); }
.consult__facts div { display: contents; }
.consult__facts dt { color: var(--fg-muted); font-size: 0.92rem; }
.consult__facts dd { margin: 0; font-weight: 600; color: var(--fg); font-size: 0.98rem; }
@media (max-width: 860px) {
  .consult { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---------- Consultation block v2: one card, photo to the edge, one primary action ---------- */
.consult {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  align-items: stretch;
}
.consult__media { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.consult__body { padding: var(--space-7) var(--space-6); justify-content: center; gap: var(--space-3); }
.consult__body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.consult__lead { color: var(--fg-muted); max-width: 40ch; }
.consult__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.consult__phone { font-size: 1.3rem; }
.consult__meta { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px var(--space-4); color: var(--fg-muted); font-size: 0.92rem; }
.consult__meta li + li::before { content: "·"; margin-right: var(--space-4); color: var(--border); font-weight: 700; }
.consult__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 600; }
.consult__rating svg { width: 16px; height: 16px; color: #e7a92b; }
@media (max-width: 860px) {
  .consult { grid-template-columns: 1fr; }
  .consult__media { aspect-ratio: 16 / 10; }
  .consult__body { padding: var(--space-5) var(--space-4) var(--space-5); }
  .consult__meta { flex-direction: column; }
  .consult__meta li + li::before { content: none; }
}

/* Home: one address, compact list under the Google map */
.where__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.where__list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; }
.where__list li + li { border-top: 1px solid var(--border); }
.where__list svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.where__list span { display: flex; flex-direction: column; gap: 2px; color: var(--fg-muted); font-size: 0.92rem; }
.where__list strong { color: var(--fg); font-size: 1rem; }
.where__list a { text-decoration: none; }
.where__list a:hover strong { color: var(--primary); }
.doctor__more { margin-top: var(--space-2); }

/* ---------- Navigation v2: a quiet segmented bar, current page as a filled pill ---------- */
@media (min-width: 1081px) {
  .nav ul { gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
  .nav a { min-height: 40px; border-radius: 999px; padding: 0 18px; font-weight: 600; color: var(--fg-muted); transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
  .nav a:hover { background: transparent; color: var(--fg); }
  .nav a[aria-current="page"] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(30, 37, 51, 0.08), 0 2px 8px rgba(30, 37, 51, 0.06); border-radius: 999px; }
}
@media (max-width: 1080px) {
  .nav a[aria-current="page"] { box-shadow: none; border-radius: 12px; background: var(--surface); color: var(--fg); }
}
/* Mobile menu: booking and phone at the bottom of the drawer */
.nav__extra { display: none; }
@media (max-width: 1080px) {
  .nav { display: flex; flex-direction: column; }
  .nav__extra { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--border); }
  .nav__extra .btn { width: 100%; }
  .nav__phone { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav__extra span { text-align: center; color: var(--fg-muted); font-size: 0.9rem; }
}
@media (max-width: 1080px) {
  .nav .nav__extra .btn { justify-content: center; color: #fff; background: var(--primary); border-radius: 999px; min-height: 52px; font-size: 1.05rem; }
  .nav .nav__extra .nav__phone { width: 100%; }
}

/* ---------- Navigation v3: plain clinic-style links, underline marks the current page ---------- */
.site-header { transition: box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(30, 37, 51, 0.06), 0 8px 24px -12px rgba(30, 37, 51, 0.18); }
@media (min-width: 1081px) {
  .site-header .container { min-height: 84px; }
  .nav { margin-left: auto; }
  .nav ul { gap: 34px; padding: 0; border: 0; border-radius: 0; background: none; }
  .nav a { position: relative; min-height: 84px; padding: 0; border-radius: 0; font-size: 0.95rem; font-weight: 600; color: var(--fg-muted); background: none; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
  .nav a:hover { color: var(--fg); background: none; }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--fg); background: none; box-shadow: none; border-radius: 0; }
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { padding-left: 34px; margin-left: 34px; border-left: 1px solid var(--border); }
  .header-actions .btn--cta { min-height: 46px; padding: 0 26px; font-size: 0.95rem; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav ul { gap: 24px; }
  .header-actions { padding-left: 24px; margin-left: 24px; }
}
/* Mobile drawer: list rows with a thin divider and an arrow */
@media (max-width: 1080px) {
  .nav ul { gap: 0; }
  .nav li + li { border-top: 1px solid var(--border); }
  .nav a { justify-content: space-between; min-height: 58px; padding: 0 4px; border-radius: 0; font-size: 1.12rem; }
  .nav a::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; opacity: 0.35;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: none; border-radius: 12px; padding: 0 14px; }
  .nav li:has(> a[aria-current="page"]) + li { border-color: transparent; }
  .nav li:has(> a[aria-current="page"]) { border-color: transparent; }
  .nav a[aria-current="page"]::after { opacity: 0.9; }
  .nav .nav__extra a::after { content: none; }
  .nav .nav__extra .nav__phone { justify-content: center; }
}

/* ---------- Consultation block v3: dark navy card on a quiet video loop ---------- */
.consult {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #1b2436;
  color: var(--on-dark);
  overflow: hidden;
}
.consult__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; min-height: 0; border-radius: 0; }
.consult__media video, .consult__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.consult::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 30, 46, 0.96) 0%, rgba(22, 30, 46, 0.88) 38%, rgba(27, 36, 54, 0.55) 70%, rgba(27, 36, 54, 0.35) 100%),
    linear-gradient(0deg, rgba(22, 30, 46, 0.35), rgba(22, 30, 46, 0.35));
}
.consult__body { position: relative; max-width: 620px; min-height: 420px; padding: var(--space-7) var(--space-7); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-3); }
.consult__body h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: 0; }
.consult .consult__lead { color: var(--on-dark-muted); max-width: 38ch; margin: 0; }
.consult__actions { margin-top: var(--space-3); gap: var(--space-3) var(--space-5); }
.consult .btn--cta { background: #fff; color: var(--fg); }
.consult .btn--cta:hover { background: var(--surface); color: var(--fg); }
.consult .consult__phone { color: #fff; }
@media (max-width: 860px) {
  .consult { min-height: 0; }
  .consult::before { background: linear-gradient(180deg, rgba(22, 30, 46, 0.5) 0%, rgba(22, 30, 46, 0.9) 55%, rgba(22, 30, 46, 0.96) 100%); }
  .consult__body { min-height: 440px; padding: var(--space-6) var(--space-4) var(--space-5); justify-content: flex-end; }
  .consult__actions { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .consult__actions .btn { justify-content: center; }
}
/* Consult v3: text on the left, button and phone on the right (desktop) */
@media (min-width: 861px) {
  .consult__body { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-6); row-gap: var(--space-3); align-content: center; }
  .consult__body > h2, .consult__body > .consult__lead { grid-column: 1; }
  .consult__actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; flex-wrap: nowrap; }
  .consult::before { background: linear-gradient(90deg, rgba(22, 30, 46, 0.95) 0%, rgba(22, 30, 46, 0.82) 45%, rgba(22, 30, 46, 0.7) 100%); }
}
/* Landscape cover (Swept-source OCT): wider book, same 3D treatment */
.book__stage .book3d--landscape { --w: min(94%, 280px); aspect-ratio: 592 / 427; }
/* keep the landscape stage as tall as a portrait one so titles line up */
.books .book { container-type: inline-size; }
.book__stage:has(.book3d--landscape) { min-height: calc(var(--space-5) + var(--space-4) + min(70cqw, 190px) * 823 / 600); }

/* ---------- Reviews page v2: grouped by topic, side index, no avatars ---------- */
.rv-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.rv-nav { position: sticky; top: 112px; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.rv-nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; padding: 0 0 0 var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.rv-nav a span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--surface); color: var(--fg-muted); font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.rv-nav a:hover { color: var(--fg); }
.rv-nav a[aria-current="true"] { color: var(--fg); border-left-color: var(--primary); }
.rv-nav a[aria-current="true"] span { background: var(--primary); color: #fff; }
.rv-groups { display: flex; flex-direction: column; gap: var(--space-7); }
.rv-group { scroll-margin-top: 112px; }
.rv-group__title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); font-size: 1.35rem; }
.rv-group__title span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--fg-muted); white-space: nowrap; }
.rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.rv-list .rv { margin: 0; display: flex; flex-direction: column; padding: var(--space-5); }
.rv-list .rv:hover { transform: none; box-shadow: 0 1px 2px rgba(30, 37, 51, 0.04), 0 6px 18px rgba(30, 37, 51, 0.05); }
.rv-list .rv blockquote { position: relative; padding-top: 34px; color: var(--fg); }
.rv-list .rv blockquote::before { content: "\201C"; position: absolute; top: -14px; left: -2px; font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; color: var(--primary); opacity: 0.35; }
.rv-list .rv figcaption { margin-top: auto; padding-top: var(--space-4); }
.rv-list .rv figcaption::before { content: ""; display: inline-block; width: 24px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--primary); }
.rv-featured figcaption { gap: 0; }
@media (max-width: 1000px) {
  .rv-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .rv-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; border-left: 0; padding-bottom: 4px; scrollbar-width: none; }
  .rv-nav::-webkit-scrollbar { display: none; }
  .rv-nav a { flex: none; margin: 0; padding: 0 8px 0 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
  .rv-nav a[aria-current="true"] { border-color: var(--primary); }
}
@media (max-width: 700px) {
  .rv-list { grid-template-columns: 1fr; }
  .rv-groups { gap: var(--space-6); }
}
/* a lone or last odd review takes the full row, no empty half */
.rv-list .rv:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Reviews page: one summary row of four equal tiles */
.rv-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.rv-tile { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5); color: var(--fg); text-decoration: none; transition: background-color 200ms var(--ease-out); }
.rv-tile + .rv-tile { border-left: 1px solid var(--border); }
a.rv-tile:hover { background: var(--surface); color: var(--fg); }
.rv-tile__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.rv-tile__value { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1.1; color: var(--fg); }
.rv-tile__value svg { width: 26px; height: 26px; color: #e7a92b; }
.rv-tile__value--text { font-size: 1.6rem; min-height: 2.64rem; }
.rv-tile__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 0.92rem; }
.rv-tile__meta svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
a.rv-tile:hover .rv-tile__meta svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .rv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-tile { padding: var(--space-4); }
  .rv-tile + .rv-tile { border-left: 0; }
  .rv-tile:nth-child(even) { border-left: 1px solid var(--border); }
  .rv-tile:nth-child(n+3) { border-top: 1px solid var(--border); }
  .rv-tile__value { font-size: 1.9rem; }
  .rv-tile__value--text { font-size: 1.3rem; min-height: 2.09rem; }
}
.rv-summary-wrap { padding-bottom: 0; }
/* Consult: compact height */
.consult { min-height: 0; }
@media (min-width: 861px) {
  .consult__body { min-height: 0; padding: var(--space-6) var(--space-7); }
  .consult__body h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
}
@media (max-width: 860px) {
  .consult__body { min-height: 360px; }
}
/* Consult: let the video show through — dark only behind the text */
.consult__media video, .consult__media img { object-position: center 30%; }
@media (min-width: 861px) {
  .consult::before { background: linear-gradient(90deg, rgba(22, 30, 46, 0.9) 0%, rgba(22, 30, 46, 0.72) 38%, rgba(22, 30, 46, 0.38) 62%, rgba(22, 30, 46, 0.42) 100%); }
}
@media (max-width: 860px) {
  .consult::before { background: linear-gradient(180deg, rgba(22, 30, 46, 0.25) 0%, rgba(22, 30, 46, 0.7) 45%, rgba(22, 30, 46, 0.92) 100%); }
}
.consult .consult__phone { text-shadow: 0 1px 12px rgba(10, 14, 22, 0.55); }

/* Booking form: name and surname side by side, optional fields marked */
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.field__opt { margin-left: 6px; font-weight: 500; font-size: 0.82rem; color: var(--fg-muted); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card[hidden] { display: none; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: var(--space-4); }
.post-card__cat, .article-hero__cat { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.post-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.post-card h3 a { color: var(--fg); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { margin: 0; color: var(--fg-muted); font-size: 0.92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); font-size: 0.85rem; }
.post-card__meta svg { width: 16px; height: 16px; }

.post-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; margin-bottom: var(--space-6); border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); }
.post-featured__media { display: block; min-height: 340px; }
.post-featured__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-featured__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: var(--space-6); }
.post-featured .post-card__cat { color: var(--cyan); }
.post-featured h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.post-featured h2 a { color: #fff; text-decoration: none; }
.post-featured p { margin: 0; color: var(--on-dark-muted); }
.post-featured .link-arrow { color: #fff; }

.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.blog-filter__chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--fg-muted); font: 600 0.92rem var(--font-body); cursor: pointer; transition: all 200ms var(--ease-out); }
.blog-filter__chip:hover { color: var(--fg); border-color: var(--primary); }
.blog-filter__chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Article */
.article-hero { padding-bottom: var(--space-7); }
.article-hero h1 { max-width: 900px; }
.article-hero__cat { display: inline-block; margin-bottom: var(--space-2); color: var(--cyan); }
.article-hero__meta { display: flex; gap: 10px; color: var(--on-dark-muted); font-size: 0.95rem !important; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: var(--space-7); align-items: start; justify-content: center; }
.article-toc { position: sticky; top: 112px; }
.article-toc__title { display: block; margin-bottom: var(--space-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.article-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.article-toc a { display: block; padding: 8px 0 8px var(--space-3); margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-muted); font-size: 0.9rem; line-height: 1.4; text-decoration: none; transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.article-toc a:hover { color: var(--fg); }
.article-toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--primary); font-weight: 600; }
.article { font-size: 1.05rem; line-height: 1.75; color: var(--fg); }
.article h2 { margin: var(--space-6) 0 var(--space-3); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.25; scroll-margin-top: 112px; }
.article p { margin: 0 0 var(--space-3); }
.article ul { margin: 0 0 var(--space-3); padding-left: 1.2em; }
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--primary); }
.article__lead { font-size: 1.2rem; line-height: 1.6; color: var(--fg); font-weight: 500; }
.article-keys { margin: var(--space-4) 0 var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.article-keys__title { display: block; margin-bottom: var(--space-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.article-keys ul { list-style: none; padding: 0; margin: 0; }
.article-keys li { display: flex; gap: 12px; margin: 8px 0 0; font-size: 0.98rem; line-height: 1.55; }
.article-keys svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--primary); }
.article-alert { display: flex; gap: 14px; margin: var(--space-4) 0; padding: var(--space-4); border-radius: var(--radius); background: #fff6e8; border: 1px solid #f1d7a8; }
.article-alert svg { flex: none; width: 24px; height: 24px; color: #b7791f; margin-top: 2px; }
.article-alert p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: #5a4214; }
.article-media { margin: var(--space-5) 0; }
.article-media video, .article-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
.article-media figcaption, .eye-diagram figcaption { margin-top: 10px; color: var(--fg-muted); font-size: 0.88rem; line-height: 1.5; }
.article-steps { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-3); }
.article-steps li { display: flex; gap: var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.article-steps__n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; }
.article-steps h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.article-steps p { margin: 0; font-size: 0.95rem; color: var(--fg-muted); line-height: 1.55; }
.faq { margin-top: var(--space-6); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--primary); font-size: 1.2rem; transition: transform 200ms var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 var(--space-3); color: var(--fg-muted); }
.article__disclaimer { margin-top: var(--space-5) !important; font-size: 0.88rem; color: var(--fg-muted); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); }
.article-cta h2 { margin: 0 0 6px; color: #fff; font-size: 1.4rem; }
.article-cta p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; max-width: 44ch; }
.article-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.article-cta .btn--cta { background: #fff; color: var(--fg); }
.article-cta__phone { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }

/* Eye diagram */
.eye-diagram { margin: var(--space-5) 0; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.eye-diagram svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.eye-diagram text { font-size: 15px; font-weight: 600; fill: var(--fg-muted); }
.eye-diagram text.is-label { fill: var(--primary); font-weight: 700; }
.eye-sclera { fill: var(--surface); stroke: #c5ccd8; stroke-width: 3; }
.eye-retina { fill: none; stroke: #c5ccd8; stroke-width: 6; stroke-linecap: round; }
.eye-vessels path { fill: none; stroke: #d9b3b3; stroke-width: 2.5; stroke-linecap: round; }
.eye-macula { fill: #c5ccd8; }
.eye-nerve { fill: #dfe3ea; stroke: #c5ccd8; stroke-width: 2; }
.eye-cornea { fill: none; stroke: #c5ccd8; stroke-width: 4; stroke-linecap: round; }
.eye-iris { stroke: var(--primary); stroke-width: 6; stroke-linecap: round; opacity: 0.5; }
.eye-lens { fill: #eef1f5; stroke: #c5ccd8; stroke-width: 3; }
.eye-lead { fill: none; stroke: #c5ccd8; stroke-width: 1.5; }
.eye-diagram .is-focus { stroke: #c0392b; }
.eye-retina.is-focus { stroke-width: 7; }
.eye-macula.is-focus { fill: #c0392b; stroke: #fff; stroke-width: 3; }
.eye-nerve.is-focus { fill: #f3c7c1; }
.eye-lens.is-focus { fill: #f6ead2; stroke: #c0392b; }
.eye-vessels.is-focus path { stroke: #c0392b; }
@media (prefers-reduced-motion: no-preference) {
  .eye-diagram .is-focus { animation: eye-pulse 2.4s var(--ease-out) infinite; }
}
@keyframes eye-pulse { 50% { opacity: 0.55; } }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .article-toc { position: static; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
  .article-toc ol { border-left: 0; }
  .article-toc a { padding: 6px 0; border-left: 0; }
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-featured__body { padding: var(--space-4); }
  .article { font-size: 1rem; }
  .article__lead { font-size: 1.08rem; }
  .article-keys { padding: var(--space-4); }
  .article-cta { padding: var(--space-4); }
  .article-cta__actions { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .eye-diagram { padding: var(--space-3); }
  .eye-diagram text { font-size: 18px; }
}

/* ---------- Loading screen (choreography from remotion/src/Loader.tsx, 30 fps) ---------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #2b3445 0%, #1f2633 70%); color: #f4f6fa;
  animation: loader-out 700ms cubic-bezier(0.83, 0, 0.17, 1) 4s forwards; /* safety net if JS never runs */
}
.is-loading body { overflow: hidden; }
.is-leaving .loader { animation: loader-out 700ms cubic-bezier(0.83, 0, 0.17, 1) forwards; }
.is-leaving .loader__inner { animation: loader-fade 300ms ease forwards; }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes loader-fade { to { opacity: 0; transform: translateY(-16px); } }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.loader__eye { width: 120px; height: auto; overflow: visible; }
.loader__lid, .loader__iris { fill: none; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.loader__lid { stroke: #f4f6fa; stroke-width: 2.5; animation: loader-draw 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.loader__iris { stroke: #8fb4ff; stroke-width: 2.5; animation: loader-draw 800ms cubic-bezier(0.16, 1, 0.3, 1) 330ms forwards; }
.loader__pupil { fill: #8fb4ff; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: loader-pop 450ms cubic-bezier(0.34, 1.56, 0.64, 1) 800ms forwards; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-pop { to { transform: scale(1); } }
.loader__name { margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: 0.01em; }
.loader__name span { display: inline-block; opacity: 0; transform: translateY(18px); animation: loader-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.loader__name span:nth-child(1) { animation-delay: 600ms; }
.loader__name span:nth-child(2) { animation-delay: 700ms; }
.loader__role { margin: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #b6c0d2; opacity: 0; animation: loader-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards; }
@keyframes loader-rise { to { opacity: 1; transform: none; } }
.loader__bar { position: relative; width: 140px; height: 2px; margin-top: 10px; border-radius: 2px; background: rgba(244, 246, 250, 0.16); overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: #8fb4ff; transform: scaleX(0); transform-origin: left; animation: loader-bar 1700ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes loader-bar { to { transform: scaleX(1); } }

/* ---------- Inner page heroes: staggered rise on arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page-hero .container > * { animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .page-hero .container > *:nth-child(2) { animation-delay: 90ms; }
  .page-hero .container > *:nth-child(3) { animation-delay: 180ms; }
  .page-hero .container > *:nth-child(4) { animation-delay: 270ms; }
  .page-hero .container > *:nth-child(5) { animation-delay: 360ms; }
  .is-loading .page-hero .container > * { animation-play-state: paused; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- SVG stroke draw-in (js/main.js sets the lengths) ---------- */
.svg-draw [data-len] { transition: stroke-dashoffset 1100ms cubic-bezier(0.16, 1, 0.3, 1); }
.svg-draw.is-drawn [data-len] { stroke-dashoffset: 0 !important; }

/* ---------- Legal: consent checkbox, map by consent, cookie notice, documents ---------- */
.field--check .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 0.9rem; line-height: 1.5; color: var(--fg-muted); cursor: pointer; }
.field--check input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.field--check input[type="checkbox"]:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; box-shadow: none; }
.field--check input[aria-invalid="true"] { outline: 2px solid #b91c1c; outline-offset: 2px; }
.field--check a { color: var(--primary); }

.map-fallback { z-index: 2; background: var(--muted); }
.map-fallback.is-loaded { display: none; }
.map-fallback small { font-weight: 500; font-size: 0.8rem; color: var(--fg-muted); }
.map-fallback__btn { min-height: 44px; padding: 8px 20px; background: #fff; }
.map-embed iframe[hidden] { display: none !important; }

.footer-warning {
  margin: var(--space-6) 0 0;
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(244, 246, 250, 0.12);
  color: var(--on-dark);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-warning + .footer-bottom { margin-top: 0; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-docs a, .footer-docs button { color: var(--on-dark-muted); font: inherit; font-size: 0.86rem; min-height: 32px; }
.footer-docs button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-docs a:hover, .footer-docs button:hover { color: var(--cyan); }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; }
  .footer-docs { flex-direction: column; gap: 0; }
  .footer-docs a, .footer-docs button { min-height: 44px; text-align: left; }
}

.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 440px;
  padding: var(--space-4);
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(31, 38, 51, 0.18);
  display: grid;
  gap: var(--space-3);
  font-size: 0.9rem;
  line-height: 1.55;
}
.cookie-note p { margin: 0; color: var(--fg-muted); }
.cookie-note a { color: var(--primary); font-weight: 600; }
.cookie-note__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-note__actions .btn { min-height: 44px; padding: 8px 18px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: var(--space-3); }
  .cookie-note__actions .btn { flex: 1 1 auto; }
}

.page-hero--plain { padding: calc(var(--space-7) + 24px) 0 var(--space-6); }
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: var(--space-6) 0 var(--space-3); }
.legal-doc h2:first-child, .legal-doc__meta + h2 { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--fg-muted); line-height: 1.7; }
.legal-doc p { margin: 0 0 var(--space-3); }
.legal-doc ul { margin: 0 0 var(--space-3); padding-left: 1.2em; display: grid; gap: 6px; }
.legal-doc a { color: var(--primary); }
.legal-doc__meta { font-size: 0.9rem; font-weight: 600; color: var(--fg-muted); margin-bottom: var(--space-5) !important; }
.legal-doc__warning { font-weight: 700; color: var(--fg) !important; text-transform: uppercase; letter-spacing: 0.02em; }
.legal-table { overflow-x: auto; margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-table th { background: var(--surface); font-weight: 700; color: var(--fg); }
.legal-table td { color: var(--fg-muted); line-height: 1.55; }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Motion v2: blog filter, article booking card, checkbox, small touches ---------- */
/* Blog filter: one pill slides under the chosen chip */
.blog-filter { position: relative; }
.blog-filter__pill { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; background: var(--primary); pointer-events: none; transition: transform 480ms var(--ease-out), width 480ms var(--ease-out), height 480ms var(--ease-out); }
.blog-filter__chip { position: relative; z-index: 1; }
.blog-filter.has-pill .blog-filter__chip[aria-pressed="true"] { background: transparent; border-color: transparent; color: #fff; }
.blog-filter.has-pill .blog-filter__chip { transition: color 300ms var(--ease-out), border-color 300ms var(--ease-out), background-color 300ms var(--ease-out); }

/* Booking card inside articles: the same video card as on the inner pages, stacked for the narrow column */
.consult--article { margin-top: var(--space-5); min-height: 0; }
.consult--article .consult__body { display: flex; flex-direction: column; align-items: flex-start; max-width: none; min-height: 0; padding: var(--space-6); gap: var(--space-3); }
.consult--article .consult__body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.consult--article .consult__lead { max-width: 40ch; }
.consult--article .consult__actions { display: flex; flex-wrap: wrap; align-items: center; align-self: flex-start; width: auto; flex-direction: row; margin-top: var(--space-2); }
.consult--article::before { background: linear-gradient(90deg, rgba(22, 30, 46, 0.94) 0%, rgba(22, 30, 46, 0.8) 45%, rgba(22, 30, 46, 0.45) 100%); }
@media (max-width: 640px) {
  .consult--article .consult__body { padding: var(--space-5) var(--space-4); min-height: 380px; justify-content: flex-end; }
  .consult--article::before { background: linear-gradient(180deg, rgba(22, 30, 46, 0.35) 0%, rgba(22, 30, 46, 0.85) 50%, rgba(22, 30, 46, 0.96) 100%); }
  .consult--article .consult__actions { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .consult--article .consult__actions .btn { justify-content: center; }
}

/* Consent checkbox: a box whose tick draws itself (stroke-dashoffset) */
.field--check .check { position: relative; }
.field--check input[type="checkbox"] { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; z-index: 1; }
.check__box { flex: none; width: 24px; height: 24px; margin-top: 0; border: 1.5px solid #a3adbd; border-radius: 7px; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out); }
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check__box path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 320ms var(--ease-out) 60ms; }
.field--check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.field--check input:checked + .check__box path { stroke-dashoffset: 0; }
.field--check input:active + .check__box { transform: scale(0.92); }
.field--check input:focus-visible + .check__box { outline: 3px solid var(--ring); outline-offset: 2px; }
.field--check input[aria-invalid="true"] + .check__box { border-color: #b91c1c; }
.field--check input[aria-invalid="true"] { outline: 0; }

/* Article reading progress */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* FAQ: answers fade in as they open */
.faq__item { overflow: hidden; }
.faq__item.is-closing summary::after { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Page hero video settles from a slight zoom */
  .page-hero__media video, .page-hero__media img { animation: media-settle 2.4s var(--ease-out) both; }
  /* Booking card: video eases in, text and buttons follow one after another */
  .consult.reveal .consult__media video { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
  .consult.reveal.is-visible .consult__media video { transform: none; }
  .consult.reveal .consult__body > * { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .consult.reveal.is-visible .consult__body > * { opacity: 1; transform: none; }
  .consult.reveal.is-visible .consult__body > *:nth-child(2) { transition-delay: 120ms; }
  .consult.reveal.is-visible .consult__body > *:nth-child(3) { transition-delay: 240ms; }
  .faq__item[open] > :not(summary) { animation: faq-in 420ms var(--ease-out) both; }
  .cookie-note { animation: cookie-in 600ms var(--ease-out) 400ms both; }
  .map-fallback svg { animation: pin-bob 2.6s ease-in-out infinite; }
  .post-featured__media video { transition: transform 900ms var(--ease-out); }
  .post-featured:hover .post-featured__media video { transform: scale(1.04); }
  .doc-list a svg, .footer-docs a { transition: transform 220ms var(--ease-out), color 220ms var(--ease-out); }
  .doc-list a:hover svg { transform: translateX(4px); }
}
@keyframes media-settle { from { transform: scale(1.08); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Article booking card v2: one compact row — text left, button and phone right */
.consult--article { margin-top: var(--space-5); border-radius: var(--radius-lg); }
.consult--article .consult__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-4); row-gap: 10px; min-height: 200px; max-width: none; padding: 44px 44px; }
.consult--article .consult__body h2 { grid-column: 1; margin: 0; font-size: 1.45rem; line-height: 1.2; }
.consult--article .consult__lead { grid-column: 1; max-width: none; font-size: 1rem; }
.consult--article .consult__actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; width: auto; text-align: center; }
.consult--article .consult__actions .btn { min-height: 52px; padding: 12px 28px; font-size: 1rem; justify-content: center; }
.consult--article .consult__phone { font-size: 1.1rem; white-space: nowrap; }
.consult--article::before { background: linear-gradient(90deg, rgba(22, 30, 46, 0.95) 0%, rgba(22, 30, 46, 0.85) 55%, rgba(22, 30, 46, 0.6) 100%); }
@media (max-width: 640px) {
  .consult--article .consult__body { grid-template-columns: 1fr; padding: var(--space-4); min-height: 0; }
  .consult--article .consult__actions { grid-column: 1; grid-row: auto; margin-top: var(--space-2); }
  .consult--article::before { background: rgba(22, 30, 46, 0.85); }
}

/* Reviews summary: three tiles (НаПоправку removed) */
.rv-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .rv-tile:first-child { grid-column: 1 / -1; }
  .rv-tile:nth-child(even) { border-left: 0; }
  .rv-tile:nth-child(3) { border-left: 1px solid var(--border); }
  .rv-tile:nth-child(n+2) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .rv-summary { grid-template-columns: 1fr; }
  .rv-tile:nth-child(3) { border-left: 0; }
}

/* ---------- Loading screen v2: an iris; the pupil opens onto the site ---------- */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.is-loading .loader { animation: loader-gone 600ms ease 4s forwards; } /* safety net if JS never runs */
@keyframes loader-gone { to { opacity: 0; visibility: hidden; } }
.loader__eye { width: clamp(120px, 24vw, 160px); height: auto; overflow: visible; margin-bottom: 10px; }
.loader__ring { fill: none; stroke: rgba(244, 246, 250, 0.9); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: loader-draw 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.loader__limbus { fill: rgba(143, 180, 255, 0.06); stroke: rgba(143, 180, 255, 0.28); stroke-width: 5; opacity: 0; animation: loader-show 700ms ease 250ms forwards; }
.loader__fibers { transform-origin: 60px 60px; transform: scale(0.55); opacity: 0; animation: loader-fibers 1100ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards, loader-spin 30s linear infinite; }
.loader__fibers path { fill: none; stroke: #8fb4ff; stroke-width: 1.1; stroke-linecap: round; opacity: 0.7; }
.loader .loader__pupil { fill: #0b0f17; transform-box: view-box; transform-origin: 60px 60px; transform: scale(1.9); animation: loader-pupil 900ms cubic-bezier(0.34, 1.45, 0.64, 1) 350ms forwards, loader-breathe 2.4s ease-in-out 1.4s infinite; }
.loader__glint { fill: rgba(255, 255, 255, 0.85); opacity: 0; animation: loader-show 400ms ease 950ms forwards; }
@keyframes loader-show { to { opacity: 1; } }
@keyframes loader-fibers { to { transform: none; opacity: 1; } }
@keyframes loader-spin { to { rotate: 360deg; } }
@keyframes loader-pupil { to { transform: scale(1); } }
@keyframes loader-breathe { 50% { scale: 1.12; } }
.loader__name span { animation-name: loader-rise; }
.loader__name span:nth-child(1) { animation-delay: 650ms; }
.loader__name span:nth-child(2) { animation-delay: 750ms; }
.loader__role { animation-delay: 1000ms; }

/* Exit: a circular hole grows from the pupil while the iris zooms in around it */
.is-leaving .loader {
  animation: loader-open 950ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
  -webkit-mask: radial-gradient(circle at var(--cx, 50%) var(--cy, 45%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at var(--cx, 50%) var(--cy, 45%), transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.is-leaving .loader__inner { animation: loader-zoom 950ms cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.is-leaving .loader__glint { opacity: 0; transition: opacity 200ms ease; }
@keyframes loader-open { from { --hole: 14px; } to { --hole: 150vmax; } }
@keyframes loader-zoom { to { transform: scale(3.2); opacity: 0; } }
.no-iris.is-leaving .loader { -webkit-mask: none; mask: none; animation: loader-gone 600ms ease forwards; }

/* ---------- Loading screen v3: an eye with lids that looks left and right, no text ---------- */
.loader__eye { width: clamp(150px, 34vw, 210px); margin: 0; }
.loader .loader__lid { fill: none; stroke: rgba(244, 246, 250, 0.92); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: loader-draw 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.loader .loader__limbus { fill: rgba(143, 180, 255, 0.16); stroke: rgba(143, 180, 255, 0.45); stroke-width: 2; opacity: 0; animation: loader-show 600ms ease 300ms forwards; }
.loader .loader__fibers { transform-origin: 100px 60px; }
.loader .loader__pupil { transform-origin: 100px 60px; }
.loader__look { animation: loader-look 1500ms cubic-bezier(0.65, 0, 0.35, 1) 750ms forwards; }
@keyframes loader-look {
  0% { translate: 0 0; }
  22%, 40% { translate: -34px 0; }
  62%, 80% { translate: 34px 0; }
  100% { translate: 0 0; }
}

/* ---------- Footer v2: six titled columns, a row of documents, a slot for the developer's logo ---------- */
.site-footer { padding: var(--space-7) 0 var(--space-5); font-size: 0.86rem; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 0.75fr 1.2fr 1.05fr 1fr 1fr; gap: var(--space-5) var(--space-4); }
.footer-col h3 { margin: 0 0 var(--space-3); color: #fff; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.footer-col p { margin: 0 0 10px; color: var(--on-dark-muted); }
.footer-col ul { gap: 2px; }
.footer-col a { min-height: 28px; color: var(--on-dark-muted); transition: color 200ms var(--ease-out); }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-col p a { display: inline; min-height: 0; color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(244, 246, 250, 0.35); text-underline-offset: 3px; }
.footer-col .footer-strong a { color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
.footer-col button { background: none; border: 0; padding: 0; font: inherit; color: var(--on-dark); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(244, 246, 250, 0.35); text-underline-offset: 3px; }
.site-footer .footer-warning { margin-top: var(--space-6); }
.site-footer .footer-bottom { margin-top: 0; padding-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); font-size: 0.82rem; }
.site-footer .footer-docs { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.site-footer .footer-docs a { display: inline-block; min-height: 0; line-height: 1.45; color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: rgba(244, 246, 250, 0.3); text-underline-offset: 3px; transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out); }
.site-footer .footer-docs a:hover { color: #fff; text-decoration-color: #fff; }
.footer-dev { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-size: 0.8rem; }
.footer-dev__logo { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; height: 36px; padding: 0 12px; border: 1px dashed rgba(244, 246, 250, 0.35); border-radius: 8px; color: rgba(244, 246, 250, 0.5); font-size: 0.75rem; letter-spacing: 0.04em; }
.footer-dev__logo img { display: block; max-height: 28px; width: auto; }
@media (max-width: 1180px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .footer-col--brand { grid-column: 1 / -1; }
  .site-footer .footer-docs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); width: 100%; }
  .site-footer .footer-docs br { display: none; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer .footer-docs { grid-template-columns: 1fr; }
  .footer-col a { min-height: 40px; }
}
@media (max-width: 420px) {
  .footer-col ul { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .footer-col a { min-height: 36px; }
  .footer-cols { gap: var(--space-4); }
}

/* Footer v2.1: only brand, sections and contacts; legal texts live in the documents row */
.footer-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: var(--space-5) var(--space-6); }
.footer-col--brand p { max-width: 42ch; }
.site-footer .footer-docs button { display: inline-block; min-height: 0; padding: 0; border: 0; background: none; font: inherit; line-height: 1.45; text-align: left; color: var(--on-dark-muted); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(244, 246, 250, 0.3); text-underline-offset: 3px; }
.site-footer .footer-docs button:hover { color: #fff; text-decoration-color: #fff; }
@media (max-width: 720px) {
  .site-footer .footer-docs button br { display: none; }
}
@media (max-width: 1180px) and (min-width: 721px) {
  .footer-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr); }
}
/* Footer without the warning strip: the document row sits under one divider */
.site-footer .footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(244, 246, 250, 0.12); }

/* Footer v2.2: documents as their own column between sections and contacts */
.footer-cols { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: var(--space-5) var(--space-6); }
.footer-col--docs a { line-height: 1.45; padding: 4px 0; }
.footer-col--docs button { color: var(--on-dark-muted); text-decoration: none; min-height: 28px; text-align: left; }
.site-footer .footer-bottom { justify-content: flex-end; }
@media (max-width: 1180px) and (min-width: 721px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer .footer-bottom { align-items: flex-start; }
}
@media (max-width: 420px) {
  .footer-col--docs ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Footer v2.3: three columns; © moved under the divider, opposite the developer slot */
.footer-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: var(--space-5) var(--space-6); }
.site-footer .footer-bottom { justify-content: space-between; align-items: center; }
.footer-copy { color: var(--on-dark); font-weight: 600; font-size: 0.86rem; }
@media (max-width: 1180px) and (min-width: 721px) {
  .footer-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Unslop polish (unslop by @heydamir, CC BY 4.0): calm type, smaller radii, quiet hover ---------- */
/* Radii: cards 20, panels 16, controls 12 (pills stay on buttons) */
:root { --radius-lg: 20px; --radius: 16px; }
/* Labels above headings: sentence case, no tracking */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 0.92rem; }
#forum .eyebrow { text-transform: none; letter-spacing: 0; }
h3 { letter-spacing: 0; }
/* One text scale: 0.86 / 0.95 / 1 / 1.15rem */
.stat__label, .step p, .case__body p:last-child { font-size: 0.95rem; }
.review blockquote { font-size: 1.15rem; }
/* Hover: surface and shadow only, nothing jumps or zooms */
.case:hover, .rv:hover, .channel:hover, .post-card:hover { transform: none; }
.case:hover .case__media img { transform: scale(1.08); }
.card:hover .card__media img, .post-card:hover .post-card__media img { transform: none; }
/* No looping decoration */
.map-fallback svg { animation: none !important; }

/* ---------- Unslop polish, whole site (unslop by @heydamir, CC BY 4.0) ---------- */
/* 1. Labels: sentence case, no tracking */
.post-card__cat, .article-hero__cat, .article-toc__title, .article-keys__title, .rv-tile__label, .where__list dt, .doc-list .tag {
  text-transform: none; letter-spacing: 0;
}
.channel-panel h3 { letter-spacing: 0; }
/* 3. No tightened tracking on the phone number */
.consult__phone { letter-spacing: 0; }
/* 4. Labels and small buttons: radius by size instead of pills */
.channels li, .channel-panel__note, .book__btn { border-radius: 8px; }
/* 5. The highlighted zone of the eye diagram stays still */
.eye-diagram .is-focus { animation: none !important; }

/* Unslop weights (restored by request): hierarchy from size, 600 at most */
.eyebrow { font-weight: 600; }
h1, h2, h3 { font-weight: 600; }
.stat__value, .fact__value, .rv-top__num, .rv-tile__value, .rating-card__score { font-weight: 600; }
.brand__name { font-weight: 700; }
.card__meta { font-weight: 600; }
.timeline__year, .tile__step, .step__dot, .channel-panel h3, .book__btn, .rv figcaption, .review-card figcaption,
.article strong, .article-steps__n, .footer-col h3, .legal-table th, .doc-list .tag, .post-card__cat,
.article-hero__cat, .article-toc__title, .article-keys__title, .rv-tile__label, .rating-card__name, .contact-row a,
.consult__phone, .btn { font-weight: 600; }
.header-actions .btn, .site-header .btn, .book__info .book__btn, .site-footer .footer-col h3, .footer-col .footer-strong a,
.where__list strong, .eye-diagram text, .eye-diagram text.is-label, main .btn, main strong { font-weight: 600; }

/* Home hero headline stays bold (by request), everything else follows the 600 rule */
.hero h1 { font-weight: 700; }

/* Small fixes (4 Nov): pause button on phones moves to the phone-button row, off the eyebrow */
@media (max-width: 606px) {
  .media-toggle { top: auto; bottom: 89px; }
  .eyebrow__sep { display: none; }
}
@media (max-width: 340px) {
  .media-toggle { right: 8px; width: 44px; height: 44px; }
}
/* Forum facts on phones: the icon stays next to the wrapped text */
@media (max-width: 640px) {
  #forum .forum-fact { display: block; }
  #forum .forum-fact svg { display: inline-block; vertical-align: -3px; margin-right: 8px; }
}
/* Field borders reach the 3:1 contrast norm */
.field input, .field textarea, .check__box { border-color: #8691a3; }

/* Booking form: spam trap field and send error */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { color: #b91c1c; }

/* Contacts: details and map share the card 50/50. Details are four even rows
   with hairlines; a phone or mail row is clickable across its full width. */
.contact-card { display: grid; grid-template-rows: 1fr 1fr; padding: 0; gap: 0; overflow: hidden; }
.contact-card__info { display: grid; grid-template-rows: auto repeat(4, 1fr); padding: var(--space-6) 40px var(--space-2); }
.contact-card__info h2 { margin-bottom: var(--space-3); }
.contact-row { position: relative; align-items: center; gap: var(--space-3); padding: 12px 0; border-top: 1px solid rgba(244, 246, 250, 0.12); }
.contact-row svg { width: 24px; height: 24px; margin-top: 0; }
.contact-row > div { font-size: 1.05rem; line-height: 1.4; font-weight: 500; color: #fff; overflow-wrap: normal; }
.contact-row small { margin-bottom: 2px; font-size: 0.86rem; font-weight: 400; }
.contact-row a { font-weight: 500; transition: color 180ms var(--ease-out); }
.contact-row a::after { content: ""; position: absolute; inset: 0; }
.contact-row:has(a):hover svg { color: #fff; }
.contact-card .map-embed { aspect-ratio: auto; min-height: 260px; border: 0; border-radius: 0; }
.contact-card .map-embed iframe { position: absolute; inset: 0; }
@media (max-width: 1120px) {
  .contact-row a[href^="mailto"] { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .contact-card { grid-template-rows: auto auto; }
  .contact-card__info { grid-template-rows: none; padding: var(--space-4) var(--space-4) var(--space-2); }
  .contact-row { padding: 14px 0; }
  .contact-card .map-embed { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Launch pass: long Russian words on narrow phones, touch targets, large screens */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.legal-doc p, .legal-doc li, .legal-doc td { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .page-hero h1, .article-hero h1 { font-size: 1.85rem; }
}
@media (pointer: coarse) {
  .brand, .consult__phone, .link-arrow, .breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a { min-height: 44px; }
}
.footer-dev__logo { min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; opacity: 0.85; transition: opacity 180ms var(--ease-out); }
.footer-dev__logo:hover { opacity: 1; }
.footer-dev__logo img { height: 24px; max-height: none; }
@media (min-width: 1800px) {
  html { font-size: 112.5%; }
  .container { max-width: 1400px; }
  .hero { min-height: 84vh; }
  .hero__media video { object-position: center 25%; }
}
@media (min-width: 2400px) {
  html { font-size: 125%; }
  .container { max-width: 1640px; }
}
@media (max-width: 700px) {
  .page-hero__media video[poster*="page-about"] { object-position: 72% center; }
}
