/* ==========================================================================
   Yatskiv Clinic — design system
   --------------------------------------------------------------------------
   1. Fonts            5. Buttons & links     9. Sections (hero, split, …)
   2. Tokens           6. Forms              10. Cards & lists
   3. Base             7. Header & nav       11. Modal & mobile bar
   4. Layout & type    8. Footer             12. Quiz · utilities · motion
   Mobile-first: base rules target phones, min-width queries scale up.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face{font-family:'Geologica';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/geologica-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geologica';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/geologica-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geologica';font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/geologica-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}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/onest-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/onest-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/onest-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}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Palette: roasted browns over warm paper. */
  --espresso: #231711;
  --cocoa: #36261d;
  --mocha: #5f4739;
  --taupe: #8a7363;
  --caramel: #b98d63;
  --caramel-deep: #8c6238;
  --sand: #dccab2;
  --beige: #ebe0cf;
  --cream: #f4ede2;
  --ivory: #fbf8f3;
  --white: #fff;
  --danger: #b3402e;
  --success: #4f6b45;

  --ink: var(--espresso);
  --ink-soft: var(--mocha);
  --ink-faint: var(--taupe);
  --line: rgba(35, 23, 17, .12);
  --line-strong: rgba(35, 23, 17, .22);
  --line-light: rgba(244, 237, 226, .16);

  /* Surface-aware action colours: what a primary button looks like here,
     and what floods it on hover. Dark surfaces swap them (see .section--dark). */
  --ink-inverse: var(--ivory);
  --act-bg: var(--espresso);
  --act-fg: var(--cream);
  --act-fill: var(--caramel-deep);
  --act-fill-fg: var(--ivory);

  --font-display: 'Geologica', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale (360px → 1280px viewports). */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-h4: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);
  --fs-h3: clamp(1.4375rem, 1.25rem + .85vw, 2rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 2vw, 3.25rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.6vw, 4.75rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --gutter: clamp(18px, 5vw, 40px);
  --container: 1240px;
  --section-y: clamp(64px, 9vw, 128px);

  --shadow-sm: 0 1px 2px rgba(35, 23, 17, .06), 0 4px 14px rgba(35, 23, 17, .05);
  --shadow-lg: 0 24px 60px -18px rgba(35, 23, 17, .32);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --bar-h: 68px;
}

@media (min-width: 1024px) {
  :root { --header-h: 92px; }
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}

/* Room for the sticky mobile action bar, only on pages that show it. */
@media (max-width: 1023.98px) {
  body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

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

::selection { background: var(--espresso); color: var(--cream); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--espresso); color: var(--cream);
  padding: 12px 18px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 4. Layout & type -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--cream { background: var(--cream); }
.section--beige { background: var(--beige); }
.section--dark {
  background: var(--espresso);
  color: var(--cream);
  --ink: var(--cream);
  --ink-soft: rgba(244, 237, 226, .72);
  --ink-faint: rgba(244, 237, 226, .5);
  --line: var(--line-light);
  --line-strong: rgba(244, 237, 226, .3);
  --ink-inverse: var(--espresso);
  --act-bg: var(--cream); --act-fg: var(--espresso);
  --act-fill: var(--caramel); --act-fill-fg: var(--espresso);
}

.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.h4 { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }

/* Emphasis inside display headings: weight and tone, never a second colour. */
.h1 em, .h2 em, .h3 em { font-style: normal; font-weight: 500; color: var(--caramel-deep); }
.section--dark .h1 em, .section--dark .h2 em, .section--dark .h3 em,
.hero--dark .h1 em { color: var(--caramel); }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }

/* The eyebrow borrows the boxed, letter-spaced “C L I N I C” bar of the logo. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  border: 1px solid currentColor;
  padding: .42em .7em .38em .95em;
  font-size: .6875rem; font-weight: 600; line-height: 1;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--plain { border: 0; padding: 0; color: var(--ink-soft); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head__title { max-width: 18ch; }
.section-head__lead { max-width: 52ch; }
.section-head .eyebrow { justify-self: start; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .eyebrow { justify-self: center; }
.section-head--center .section-head__title { max-width: 22ch; }

@media (min-width: 900px) {
  .section-head--row {
    grid-template-columns: 1fr auto; align-items: end; column-gap: 40px;
  }
  .section-head--row .eyebrow { grid-column: 1 / -1; }
  .section-head--row .section-head__aside { grid-column: 2; grid-row: 2 / span 2; align-self: end; max-width: 40ch; }
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack { display: grid; gap: var(--stack, 20px); align-content: start; justify-items: start; }
.stack--lg { --stack: 32px; }
.stack--sm { --stack: 12px; }
.stack > .btn--block, .stack > form, .stack > .lead, .stack > p { justify-self: stretch; }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* Text + media, stacked on phones, side by side from tablet up. */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .split--top { align-items: start; }
  .split--reverse > :first-child { order: 2; }
}

/* 5. Buttons & links ------------------------------------------------------ */
/* Hover floods the button from the point where the pointer entered
   (--px/--py are set by app.js; without JS it rises from the bottom centre). */
.btn {
  --btn-bg: var(--act-bg); --btn-fg: var(--act-fg); --btn-bd: var(--act-bg);
  --btn-fill: var(--act-fill); --btn-fill-fg: var(--act-fill-fg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-align: center;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn::before {
  content: ''; position: absolute; z-index: -1;
  left: var(--px, 50%); top: var(--py, 100%);
  width: 240%; aspect-ratio: 1; border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .icon { flex: none; transition: transform .3s var(--ease); }

.btn--light { --btn-bg: var(--cream); --btn-fg: var(--espresso); --btn-bd: var(--cream); --btn-fill: var(--caramel); --btn-fill-fg: var(--espresso); }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--espresso); --btn-bd: var(--sand); --btn-fill: var(--espresso); --btn-fill-fg: var(--cream); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-fill: var(--ink); --btn-fill-fg: var(--ink-inverse); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--fs-sm); }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

@media (hover: hover) {
  .btn:not([disabled]):hover { color: var(--btn-fill-fg); border-color: var(--btn-fill); box-shadow: 0 14px 30px -16px rgba(35, 23, 17, .55); }
  .btn:not([disabled]):hover::before { transform: translate(-50%, -50%) scale(1); }
  .btn:hover .icon--arrow { transform: translateX(4px); }
}
/* Touch screens get the same colour as a press state instead of a hover. */
@media (hover: none) {
  .btn:not([disabled]):active { background: var(--btn-fill); color: var(--btn-fill-fg); border-color: var(--btn-fill); }
}
.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--caramel); outline-offset: 3px;
}

/* Inline text link with an underline that draws on hover. */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease);
}
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% 100%; } }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn--solid { background: var(--act-bg); border-color: var(--act-bg); color: var(--act-fg); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn:not([disabled]):active { transform: scale(.94); }
@media (hover: hover) {
  .icon-btn:not([disabled]):hover { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
  .icon-btn--solid:not([disabled]):hover { background: var(--act-fill); border-color: var(--act-fill); color: var(--act-fill-fg); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--beige); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2;
}
.chip--line { background: transparent; border: 1px solid var(--line-strong); }

/* 6. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }

.input, .select {
  width: 100%; min-height: 56px; padding: 14px 18px;
  background: var(--white); color: var(--espresso);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-size: 1.0625rem; line-height: 1.3;   /* ≥16px: no zoom-on-focus in iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: var(--taupe); }
.input:focus, .select:focus {
  outline: 0; border-color: var(--espresso);
  box-shadow: 0 0 0 4px rgba(185, 141, 99, .28);
}
.select {
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23231711' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.select:invalid { color: var(--taupe); }
.select option, .select optgroup { color: var(--espresso); }

.is-invalid, .is-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 64, 46, .14); }
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.section--dark .field__error, .section--dark .form__status { color: #f0b3a4; }

.form__status {
  font-size: var(--fs-sm); font-weight: 500; color: var(--danger);
  padding: 12px 16px; border-radius: var(--r-sm); background: rgba(179, 64, 46, .08);
}
.form__note { font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.45; }

/* 7. Header & nav --------------------------------------------------------- */
/* A floating glass capsule: the page stays visible around it. */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h); display: flex; align-items: center;
  pointer-events: none;
}
.header > .container { pointer-events: auto; }
.header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 6px 0 18px;
  border-radius: var(--r-pill);
  background: rgba(251, 248, 243, .78);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border: 1px solid rgba(35, 23, 17, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 24px -18px rgba(35, 23, 17, .35);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.header.is-stuck .header__inner {
  background: rgba(251, 248, 243, .93);
  border-color: rgba(35, 23, 17, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -22px rgba(35, 23, 17, .5);
}
/* Reading progress along the bottom edge of the capsule. */
.header__progress {
  position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--caramel); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  opacity: 0; transition: opacity .3s var(--ease);
}
.header.is-stuck .header__progress { opacity: 1; }

.logo { display: inline-flex; color: var(--espresso); flex: none; transition: opacity .2s var(--ease); }
.logo svg { width: 112px; height: auto; }
@media (hover: hover) { .logo:hover { opacity: .72; } }

.header__nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.header__phone { display: none; }
.header__cta { display: none; }
.header__actions .icon-btn { width: 44px; height: 44px; }

.burger { position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), background-color .2s;
}
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ''; position: absolute; left: 0; }
.burger__lines::before { top: -5px; }
.burger__lines::after { top: 5px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .header__inner { height: 64px; padding: 0 8px 0 26px; }
  .logo svg { width: 132px; }
  .header__nav { display: flex; align-items: center; gap: 2px; }
  .header__phone {
    display: grid; justify-items: end; gap: 1px; padding: 6px 14px; border-radius: var(--r-pill);
    font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2;
    transition: background-color .25s var(--ease);
  }
  .header__phone:hover { background: rgba(140, 98, 56, .1); }
  .header__cta { display: inline-flex; min-height: 48px; }
  .header__call, .burger { display: none; }
}

/* “Open now” line: filled in by app.js from the clinic's hours. */
.open-status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--ink-soft); }
.open-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); flex: none; }
.open-status.is-open::before { background: #5d8a4e; box-shadow: 0 0 0 0 rgba(93, 138, 78, .5); animation: pulse-dot 2.4s var(--ease) infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 7px rgba(93, 138, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 138, 78, 0); } }

/* Nav links take the boxed frame of the logo's “C L I N I C” bar on hover. */
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-weight: 500; font-size: var(--fs-sm); white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; inset: 5px 3px; border: 1px solid currentColor; border-radius: 3px;
  opacity: 0; transform: scaleX(.72); transition: opacity .25s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.nav-link .icon { transition: transform .3s var(--ease); }
.nav-link[aria-current="page"]::after { opacity: 1; transform: none; }
@media (hover: hover) {
  .nav-link:hover::after, .nav-drop:hover > .nav-link::after { opacity: 1; transform: none; }
}
.nav-drop.is-open > .nav-link::after, .nav-drop:focus-within > .nav-link::after { opacity: 1; transform: none; }
.nav-drop:hover > .nav-link .icon, .nav-drop.is-open > .nav-link .icon { transform: rotate(180deg); }

/* Desktop “Послуги” panel: services with icons and a contact card. */
.nav-drop { position: static; }
.nav-drop__panel {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin-inline: auto; width: min(100%, 860px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px;
  padding: 10px; background: var(--ivory);
  border: 1px solid rgba(35, 23, 17, .1); border-radius: 28px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.nav-drop__panel::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel, .nav-drop.is-open .nav-drop__panel {
  opacity: 1; visibility: visible; transform: none;
}
.nav-drop__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; align-content: start; }
.nav-drop__link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 9px 12px 9px 9px; border-radius: 16px; font-weight: 500; font-size: var(--fs-sm); line-height: 1.25;
  transition: background-color .2s var(--ease);
}
.nav-drop__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream); color: var(--caramel-deep);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-drop__link > .icon { opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .3s var(--ease); }
@media (hover: hover) {
  .nav-drop__link:hover { background: rgba(140, 98, 56, .09); }
  .nav-drop__link:hover .nav-drop__icon { background: var(--espresso); color: var(--cream); }
  .nav-drop__link:hover > .icon { opacity: 1; transform: none; }
}
.nav-drop__aside {
  display: grid; gap: 14px; align-content: end; padding: 22px; border-radius: 20px;
  background: var(--espresso); color: var(--cream); position: relative; overflow: hidden; isolation: isolate;
  --ink: var(--cream); --ink-inverse: var(--espresso); --line-strong: rgba(244, 237, 226, .3);
  --act-bg: var(--cream); --act-fg: var(--espresso); --act-fill: var(--caramel); --act-fill-fg: var(--espresso);
}
.nav-drop__aside p { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }

/* Mobile drawer. */
.drawer {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ivory);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 4px) var(--gutter) calc(var(--bar-h) + 32px + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .drawer { display: none; } }

.drawer__group { padding-block: 22px; border-bottom: 1px solid var(--line); }
.drawer__group:last-child { border-bottom: 0; }
.drawer__label {
  display: block; margin-bottom: 10px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint);
}
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding-block: 10px;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2;
}
.drawer__link .icon { color: var(--ink-faint); }
.drawer__services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__service {
  display: flex; align-items: center; min-height: 52px; padding: 12px 14px;
  background: var(--cream); border-radius: var(--r-md);
  font-weight: 500; font-size: var(--fs-sm); line-height: 1.25;
}
.drawer__service--wide { grid-column: 1 / -1; }

.contact-list { display: grid; gap: 14px; }
.contact-list__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--beige); color: var(--espresso);
}
.section--dark .contact-list__icon, .footer .contact-list__icon { background: rgba(244, 237, 226, .1); color: var(--cream); }
.contact-list__label { display: block; font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.3; }
.contact-list__value { display: block; font-weight: 600; line-height: 1.35; }

.socials { display: flex; gap: 8px; }

/* 8. Footer --------------------------------------------------------------- */
.footer {
  background: var(--espresso); color: var(--cream);
  --ink: var(--cream); --ink-soft: rgba(244, 237, 226, .7); --ink-faint: rgba(244, 237, 226, .48);
  --line: var(--line-light); --line-strong: rgba(244, 237, 226, .3);
  --ink-inverse: var(--espresso); --act-bg: var(--cream); --act-fg: var(--espresso); --act-fill: var(--caramel); --act-fill-fg: var(--espresso);
  padding-top: clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.footer__top { display: grid; gap: 40px; padding-bottom: clamp(40px, 6vw, 72px); }
.footer__brand { display: grid; gap: 20px; align-content: start; max-width: 44ch; }
.footer__brand .logo { color: var(--cream); }
.footer__brand .logo svg { width: 168px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.footer__col--wide { grid-column: 1 / -1; }
.footer__title {
  margin-bottom: 16px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint);
}
.footer__list { display: grid; gap: 4px; }
.footer__list a { display: inline-block; padding-block: 6px; color: var(--ink-soft); transition: color .2s; }
.footer__list li { color: var(--ink-soft); }
@media (hover: hover) { .footer__list a:hover { color: var(--cream); } }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 22px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-faint);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
  .footer__cols { grid-template-columns: 1.1fr .8fr 1.3fr; }
  .footer__col--wide { grid-column: auto; }
}

/* 9. Sections ------------------------------------------------------------- */

/* Home hero */
.hero { padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero__grid { display: grid; gap: 28px; }
.hero__copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.hero__title { max-width: 11ch; }
.hero__lead { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__media { position: relative; }
.hero__media .media { aspect-ratio: 4 / 4.4; }
.hero__badge {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(35, 23, 17, .72); color: var(--cream);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__badge-name { display: block; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; }
.hero__badge-role { display: block; font-size: var(--fs-xs); color: rgba(244, 237, 226, .72); }
.hero__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); margin-top: 8px; width: 100%;
}
.hero__fact { padding: 16px 0 0; display: grid; gap: 2px; }
.hero__fact + .hero__fact { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__fact-label { font-size: var(--fs-xs); color: var(--ink-faint); }
.hero__fact-value { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__media .media { aspect-ratio: auto; height: 100%; min-height: 560px; max-height: 720px; }
  .hero__badge { left: 20px; right: auto; bottom: 20px; min-width: 300px; padding: 16px 20px; }
}

/* Inner page hero */
.page-hero { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(40px, 6vw, 88px); }
.page-hero__grid { display: grid; gap: 28px; }
.page-hero__copy { display: grid; gap: 20px; align-content: center; justify-items: start; }
.page-hero__title { max-width: 16ch; }
.page-hero__title--long { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem); max-width: 20ch; }
.page-hero .media { aspect-ratio: 4 / 3.6; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .page-hero .media { aspect-ratio: 4 / 4.4; max-height: 620px; width: 100%; }
}
.page-hero--plain .page-hero__title { max-width: 22ch; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: var(--fs-xs); color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }

/* Image frame */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--beige); aspect-ratio: 4 / 5; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 3 / 2; }
.media--square { aspect-ratio: 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--auto { aspect-ratio: auto; }
.media--contain img { object-fit: contain; padding: 8%; }
.media__caption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(251, 248, 243, .9); color: var(--espresso);
  font-size: var(--fs-xs); font-weight: 600;
}

/* Stats */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stat { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.stat__value {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(2.5rem, 2rem + 2.6vw, 4rem); white-space: nowrap;
}
.split .stat__value { font-size: clamp(2.25rem, 1.2rem + 2vw, 3.1rem); }
.stat__label { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.45; max-width: 30ch; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .stat { border-bottom: 0; padding: 28px 24px 28px 0; }
  .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* Numbered index of services: a typographic list instead of stock thumbnails. */
.index-list { border-top: 1px solid var(--line-strong); counter-reset: idx; }
.index-list__item {
  counter-increment: idx;
  display: grid; grid-template-columns: 2.4em 1fr auto; align-items: center; gap: 12px;
  min-height: 68px; padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), background-color .3s var(--ease);
}
.index-list__item::before {
  content: counter(idx, decimal-leading-zero);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.index-list__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.2;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
}
.index-list__note { display: block; font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: 0; color: var(--ink-soft); margin-top: 4px; }
.index-list__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) {
  .index-list__item:hover { padding-inline: 16px 12px; background: rgba(140, 98, 56, .09); }
  .index-list__item:hover .index-list__arrow { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); transform: rotate(-45deg); }
  .section--dark .index-list__item:hover { background: rgba(244, 237, 226, .07); }
}
@media (min-width: 900px) {
  .index-list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* Horizontal slider: native scroll-snap, optional arrow buttons. */
.slider { position: relative; }
.slider__track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { flex: 0 0 var(--slide, 78%); scroll-snap-align: start; }
.slider__nav { display: flex; gap: 8px; }
@media (min-width: 640px) { .slider__track { gap: 20px; } .slider__track > * { flex-basis: var(--slide-md, 44%); } }
@media (min-width: 1024px) { .slider__track > * { flex-basis: var(--slide-lg, 30%); } }
@media (min-width: 1320px) {
  .slider__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

/* Steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em;
  color: var(--caramel-deep); min-width: 1.6em;
}
.section--dark .step::before { color: var(--caramel); }
.step__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.step__text { grid-column: 2; color: var(--ink-soft); }
.step__title:only-child, .step > p:only-child { grid-row: span 2; align-self: center; }
@media (min-width: 900px) {
  .steps--row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 32px; }
  .steps--row .step { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; border-bottom: 0; }
  .steps--row .step::before { grid-row: auto; }
  .steps--row .step__text { grid-column: 1; }
}

/* Dark call-to-action band with the booking form. */
.cta { display: grid; gap: 32px; }
.cta__copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.cta__panel {
  background: var(--cream); color: var(--espresso); border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 36px);
  --ink: var(--espresso); --ink-soft: var(--mocha); --ink-faint: var(--taupe);
  --line: rgba(35, 23, 17, .12); --line-strong: rgba(35, 23, 17, .22);
  --ink-inverse: var(--ivory); --act-bg: var(--espresso); --act-fg: var(--cream); --act-fill: var(--caramel-deep); --act-fill-fg: var(--ivory);
}
.cta__panel .field__error, .cta__panel .form__status { color: var(--danger); }
@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
}

/* Oversized brand letter used as a quiet backdrop. */
.monogram {
  position: absolute; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; line-height: .8;
  font-size: clamp(280px, 46vw, 620px); letter-spacing: -.06em;
  color: rgba(244, 237, 226, .045);
  right: -4%; bottom: -12%;
}
.section--dark, .footer { isolation: isolate; overflow: hidden; overflow: clip; }
.monogram { z-index: -1; }

/* Long-form article pages */
.prose { display: grid; gap: 1.1em; max-width: 68ch; font-size: var(--fs-base); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.15; margin-top: .8em; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -.015em; line-height: 1.25; margin-top: .6em; }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ''; position: absolute; left: .2em; top: .68em; width: .6em; height: 1.5px; background: var(--caramel-deep); }
.prose ol { counter-reset: ol; }
.prose ol li { counter-increment: ol; position: relative; padding-left: 2.2em; }
.prose ol li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-size: var(--fs-xs); font-weight: 600; color: var(--caramel-deep); letter-spacing: .06em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong, .prose b { font-weight: 600; }
.prose img { border-radius: var(--r-lg); }

/* 10. Cards & lists ------------------------------------------------------- */
.card {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.card--cream { background: var(--cream); border-color: transparent; }
.card--beige { background: var(--beige); border-color: transparent; }
.card--dark {
  background: var(--espresso); color: var(--cream); border-color: transparent;
  --ink: var(--cream); --ink-soft: rgba(244, 237, 226, .72); --ink-faint: rgba(244, 237, 226, .5);
  --line: var(--line-light); --line-strong: rgba(244, 237, 226, .3);
  --ink-inverse: var(--espresso); --act-bg: var(--cream); --act-fg: var(--espresso); --act-fill: var(--caramel); --act-fill-fg: var(--espresso);
}
.section--dark .card { background: rgba(244, 237, 226, .06); border-color: var(--line-light); }
.card__index { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--beige); color: var(--espresso); margin-bottom: 4px;
}
.card--cream .card__icon, .card--beige .card__icon { background: var(--white); }
.card--dark .card__icon { background: rgba(244, 237, 226, .1); color: var(--cream); }
.card__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.card__text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; }
.card__value { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 2rem + 2.4vw, 3.75rem); letter-spacing: -.04em; line-height: 1; }
.card--media { padding: 0; overflow: hidden; }
.card--media .media { border-radius: 0; height: 100%; min-height: 220px; aspect-ratio: auto; }

/* Linked card with image (services, articles). */
.tile { display: grid; gap: 14px; align-content: start; }
.tile .media { aspect-ratio: 4 / 3; }
.tile .media img { transition: transform .6s var(--ease); }
.tile__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tile__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.tile__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) {
  .tile:hover .media img { transform: scale(1.04); }
  .tile:hover .tile__arrow { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); transform: rotate(-45deg); }
}

/* Doctor card */
.doctor { display: grid; grid-template-rows: auto 1fr; background: var(--cream); border-radius: var(--r-lg); overflow: hidden; }
.doctor__photo {
  position: relative; aspect-ratio: 1 / 1.02; overflow: hidden;
  background: linear-gradient(180deg, var(--beige) 0%, var(--sand) 100%);
}
.doctor__photo img { position: absolute; inset: auto 0 0; width: 100%; height: 94%; object-fit: contain; object-position: bottom center; }
.doctor__photo--portrait img { inset: 0; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.doctor__reviews {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-pill); background: rgba(251, 248, 243, .92);
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
}
.doctor__reviews .icon { color: var(--caramel-deep); }
.doctor__body { display: grid; gap: 6px; padding: 18px 18px 20px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.doctor__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.doctor__role { font-size: var(--fs-sm); color: var(--caramel-deep); font-weight: 500; line-height: 1.35; }
.doctor__about { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
.doctor__body .btn { margin-top: 12px; }
.section--dark .doctor, .section--beige .doctor { background: var(--ivory); color: var(--espresso); --ink: var(--espresso); --ink-soft: var(--mocha); --line-strong: rgba(35, 23, 17, .22); --ink-inverse: var(--ivory); --act-bg: var(--espresso); --act-fg: var(--cream); --act-fill: var(--caramel-deep); --act-fill-fg: var(--ivory); }

/* Featured doctor (specialist pages) */
.profile { display: grid; gap: 28px; }
.profile__photo { background: linear-gradient(180deg, var(--beige), var(--sand)); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; position: relative; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__photo--cutout img { object-fit: contain; object-position: bottom; padding-top: 8%; }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: center; } }

/* Checklist */
.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.checklist li::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--espresso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ede2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.section--dark .checklist li::before, .card--dark .checklist li::before {
  background-color: var(--caramel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231711' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}
@media (min-width: 720px) { .checklist--2 { grid-template-columns: 1fr 1fr; gap: 14px 32px; } }

/* Accordion: native <details>, so it works without JavaScript. */
.acc-list { border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  min-height: 68px; padding: 18px 2px;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; letter-spacing: -.015em; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.acc__icon {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .acc__icon { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
details[open] > summary .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { padding: 0 2px 24px; display: grid; gap: 14px; color: var(--ink-soft); max-width: 70ch; }
.acc__body strong { color: var(--ink); font-weight: 600; }
.acc__kicker { display: block; margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.acc__answer { padding: 16px 18px; border-radius: var(--r-md); background: var(--cream); color: var(--ink); }
.section--cream .acc__answer { background: var(--white); }
.section--dark .acc__answer { background: rgba(244, 237, 226, .08); }

/* Tabs */
.tabs__list {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
  scroll-snap-type: x proximity;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 46px; padding: 10px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; scroll-snap-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
.tab:active { transform: scale(.97); }
@media (hover: hover) {
  .tab:not([aria-selected="true"]):hover { border-color: var(--ink); background: rgba(140, 98, 56, .1); }
  a.tab:hover { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
}
.tabs__panel { margin-top: clamp(20px, 3vw, 36px); }
@media (min-width: 900px) { .tabs__list { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

/* Price list */
.price-group { border-bottom: 1px solid var(--line); }
.price-group:first-child { border-top: 1px solid var(--line-strong); }
.price-group__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 2px;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25;
}
.price-group__body { padding: 0 2px 18px; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline;
  padding-block: 12px; border-top: 1px dashed var(--line-strong);
}
.price-row:first-child { border-top: 0; }
.price-row__name { color: var(--ink-soft); line-height: 1.4; }
.price-row__value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.price-row--label { grid-template-columns: 1fr; padding-top: 18px; }
.price-row--label .price-row__name { color: var(--ink); font-weight: 600; }
.price-row--note .price-row__name { font-size: var(--fs-sm); font-style: italic; }
.price-block { display: grid; gap: 18px; align-content: start; }
.price-block__title { display: flex; align-items: baseline; gap: 12px; }
.price-block__title span { font-size: var(--fs-xs); color: var(--ink-faint); font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* Reviews */
.review {
  display: grid; gap: 16px; align-content: start; height: 100%;
  padding: clamp(20px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--espresso);
}
.review__top { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--beige); }
.review__name { display: block; font-weight: 600; line-height: 1.25; }
.review__date { display: block; font-size: var(--fs-xs); color: var(--taupe); }
.review__stars { margin-left: auto; display: flex; gap: 2px; color: var(--caramel); }
.review__stars .icon { width: 16px; height: 16px; }
.review__text { color: var(--mocha); font-size: var(--fs-sm); line-height: 1.6; }
.review__source { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--taupe); font-weight: 500; }

/* Notice / inline callout */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: var(--r-md); background: var(--beige); color: var(--espresso);
}
.note .icon { margin-top: 2px; color: var(--caramel-deep); }

/* Definition-style spec list (equipment, product details) */
.specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.specs__row dt { color: var(--ink-faint); }
.specs__row dd { font-weight: 500; }

/* Product card (hearing aids, quiz results) */
.product { display: grid; gap: 14px; align-content: start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--espresso); }
.product .media { aspect-ratio: 4 / 3; background: var(--cream); }
.product__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.product__price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.product__price small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--taupe); letter-spacing: 0; margin-bottom: 6px; font-weight: 500; }

/* 11. Modal & mobile bar -------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(35, 23, 17, .55); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__sheet {
  position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 14px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.modal.is-open .modal__sheet { transform: none; }
.modal__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 18px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; }
.modal__head { display: grid; gap: 8px; margin-bottom: 20px; padding-right: 44px; }
.modal__title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.modal__context { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.modal__context:empty { display: none; }
.modal--wide .modal__sheet { max-width: 760px; }
@media (min-width: 720px) {
  .modal { align-items: center; justify-items: center; padding: 24px; }
  .modal__sheet { max-width: 460px; border-radius: var(--r-xl); padding: 36px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .modal.is-open .modal__sheet { opacity: 1; }
  .modal__grip { display: none; }
  .modal__close { top: 16px; right: 16px; }
}

/* Sticky action bar: the primary conversion path on phones. */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 243, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.mobile-bar .btn { min-height: 48px; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

.to-top {
  position: fixed; right: var(--gutter); bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  background: var(--ivory); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s, color .25s;
  box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .to-top { bottom: 28px; } }

/* 12. Quiz ---------------------------------------------------------------- */
.quiz { min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-rows: auto 1fr; }
.quiz__progress { height: 3px; background: var(--beige); }
.quiz__progress-bar { height: 100%; width: 0; background: var(--espresso); transition: width .4s var(--ease); }
.quiz__screen { display: none; padding-block: clamp(28px, 5vw, 72px); }
.quiz__screen.active { display: block; animation: quiz-in .4s var(--ease); }
@keyframes quiz-in { from { opacity: 0; transform: translateY(10px); } }
.quiz__panel { max-width: 720px; margin-inline: auto; display: grid; gap: 24px; justify-items: start; }
.quiz__panel--center { text-align: center; justify-items: center; }
.quiz__options { display: grid; gap: 10px; width: 100%; }
.option-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  text-align: left; font-weight: 500; line-height: 1.35;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.option-btn::before {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-strong); transition: all .2s var(--ease);
}
.option-btn.active { border-color: var(--espresso); background: var(--cream); }
.option-btn.active::before { border-color: var(--espresso); background: var(--espresso); box-shadow: inset 0 0 0 4px var(--cream); }
.quiz__art { width: min(260px, 60%); }

/* Utilities --------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: clamp(36px, 5vw, 64px); }
.center { text-align: center; }
.w-full { width: 100%; }
.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: initial; } .only-mobile { display: none !important; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Motion ------------------------------------------------------------------ */
/* Content is visible by default; the reveal only arms once JS has loaded. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .header, .mobile-bar, .to-top, .modal, .drawer { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* Index-list rows may be buttons (booking triggers) as well as links. */
button.index-list__item { width: 100%; text-align: left; font: inherit; color: inherit; background: none; cursor: pointer; }

/* Generic centred block (confirmation pages, empty states). */
.centered { max-width: 640px; margin-inline: auto; display: grid; gap: 22px; justify-items: center; text-align: center; }

/* Card grids that stay two-up on phones: compact doctor cards on /team. */
@media (max-width: 639.98px) {
  .grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid--duo .doctor { border-radius: var(--r-md); }
  .grid--duo .doctor__body { padding: 12px 12px 14px; gap: 4px; }
  .grid--duo .doctor__name { font-size: 1rem; }
  .grid--duo .doctor__role { font-size: var(--fs-xs); }
  .grid--duo .doctor__about:empty { display: none; }
  .grid--duo .doctor__reviews { font-size: 11px; padding: 4px 8px; left: 8px; top: 8px; }
  .grid--duo .btn { min-height: 42px; padding-inline: 10px; font-size: var(--fs-sm); margin-top: 8px; }
}

/* 13. Home ---------------------------------------------------------------- */
/* Signature motifs: sound-wave rings (the clinic began with ENT), the arch,
   and the boxed, letter-spaced bar of the logo. Everything animates with
   transform/opacity only. */

/* Hero */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(18px, 3.5vw, 48px));
  padding-bottom: clamp(40px, 6vw, 88px);
}
.home-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 68% at 86% 44%, rgba(220, 202, 178, .6), transparent 72%),
    linear-gradient(168deg, #f1e6d6 0%, var(--cream) 55%, var(--ivory) 100%);
}
.rings {
  position: absolute; width: min(1100px, 190vw); aspect-ratio: 1; color: var(--caramel-deep);
  right: 0; top: 50%; transform: translate(calc(26% + var(--mx, 0) * -14px), calc(-46% + var(--my, 0) * -14px));
  transition: transform .9s var(--ease);
}
.rings circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .1; animation: ring 7s var(--ease) infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes ring { 0%, 100% { opacity: .07; } 45% { opacity: .3; } }

.home-hero__grid { display: grid; gap: 34px; }
.home-hero__copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.home-hero__title {
  font-size: clamp(2.75rem, 1.5rem + 5.6vw, 6rem); line-height: .98; letter-spacing: -.045em; max-width: 10ch;
}
.home-hero__title span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.home-hero__title span > i { display: block; font-style: normal; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * .09s + .05s); }
@keyframes rise { from { transform: translateY(105%); } }
.home-hero__lead { max-width: 38ch; animation: fade-up .9s var(--ease) .35s both; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; animation: fade-up .9s var(--ease) .45s both; }
.home-hero__actions .btn { flex: 1 1 220px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.home-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; animation: fade-up .9s var(--ease) .55s both; }
.fact {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .6); border: 1px solid rgba(35, 23, 17, .08);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.25;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.fact__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--caramel-deep); flex: none; }
.fact .open-status { font-size: inherit; color: inherit; }
@media (hover: hover) { a.fact:hover { background: var(--white); border-color: rgba(35, 23, 17, .2); transform: translateY(-2px); } }

.home-hero__media { position: relative; justify-self: center; width: min(100%, 520px); animation: fade-up 1.1s var(--ease) .2s both; }
.home-hero__media .media {
  aspect-ratio: 4 / 4.7; border-radius: 999px 999px var(--r-xl) var(--r-xl);
  box-shadow: 0 40px 80px -40px rgba(35, 23, 17, .55);
}
.home-hero__media .media img { object-position: 62% 30%; }
.home-hero__media::before {
  content: ''; position: absolute; inset: -12px; z-index: -1;
  border: 1px solid rgba(140, 98, 56, .35); border-radius: 999px 999px 40px 40px;
}
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 40px -20px rgba(35, 23, 17, .5);
  font-size: var(--fs-xs); line-height: 1.25; color: var(--ink-soft);
  animation: bob 7s ease-in-out infinite alternate;
}
.float-chip strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; letter-spacing: -.02em; color: var(--espresso); }
.float-chip__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--espresso); color: var(--cream); flex: none; }
.float-chip--a { left: -6px; top: 30%; }
.float-chip--b { right: -6px; top: 56%; animation-delay: -3.5s; }
.float-chip--b .float-chip__icon { background: var(--cream); color: var(--caramel-deep); }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.home-hero__badge {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 12px 12px 18px; border-radius: 20px;
  background: rgba(35, 23, 17, .7); color: var(--cream);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s var(--ease);
}
.home-hero__badge b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.2; }
.home-hero__badge small { display: block; font-size: var(--fs-xs); color: rgba(244, 237, 226, .72); }
.home-hero__badge > span:last-child {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--cream); color: var(--espresso); transition: transform .35s var(--ease), background-color .3s var(--ease);
}
@media (hover: hover) {
  .home-hero__badge:hover { background: rgba(35, 23, 17, .88); }
  .home-hero__badge:hover > span:last-child { transform: rotate(90deg); background: var(--caramel); }
}
@media (min-width: 900px) {
  .home-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
  .home-hero__actions .btn { flex: 0 0 auto; }
  .home-hero__media { justify-self: end; }
  .float-chip--a { left: -44px; }
  .float-chip--b { right: -28px; }
}


/* Services: icon tiles on phones; list + live photo stage on desktop. */
.svc { display: grid; gap: 28px; }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: svc; }
.svc__item {
  counter-increment: svc; position: relative;
  display: grid; gap: 22px; align-content: space-between; min-height: 132px; padding: 14px;
  background: var(--white); border: 1px solid rgba(35, 23, 17, .07); border-radius: 20px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.svc__item:active { transform: scale(.98); }
.svc__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--cream); color: var(--caramel-deep); font-size: 1.125rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc__title { font-family: var(--font-display); font-weight: 400; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.2; }
.svc__item::after {
  content: counter(svc, decimal-leading-zero); position: absolute; top: 16px; right: 16px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.svc__arrow { display: none; }
.svc__stage { display: none; }
@media (min-width: 640px) { .svc__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .svc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .svc__list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
  .svc__item {
    grid-template-columns: 2.4em auto 1fr auto; align-items: center; gap: 18px; min-height: 0;
    padding: 13px 14px 13px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .svc__item::after { position: static; grid-column: 1; grid-row: 1; font-size: var(--fs-xs); transition: color .3s var(--ease); }
  .svc__item::before {
    content: ''; position: absolute; inset: 4px -10px; z-index: -1; border-radius: 18px; background: var(--espresso);
    opacity: 0; transform: scaleX(.97); transition: opacity .3s var(--ease), transform .4s var(--ease);
  }
  .svc__list { isolation: isolate; }
  .svc__title { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); }
  .svc__arrow {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
    transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  }
  .svc__item.is-active { color: var(--cream); border-bottom-color: transparent; }
  .svc__item.is-active::before { opacity: 1; transform: none; }
  .svc__item.is-active::after { color: var(--caramel); }
  .svc__item.is-active .svc__icon { background: rgba(244, 237, 226, .12); color: var(--cream); }
  .svc__item.is-active .svc__arrow { background: var(--cream); border-color: var(--cream); color: var(--espresso); transform: rotate(-45deg); }

  .svc__stage {
    display: block; position: sticky; top: calc(var(--header-h) + 16px);
    aspect-ratio: 4 / 4.6; border-radius: var(--r-xl); overflow: hidden; background: var(--beige); isolation: isolate;
  }
  .svc__shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
  .svc__shot.is-active { opacity: 1; transform: none; }
  .svc__shot img { width: 100%; height: 100%; object-fit: cover; }
  .svc__caption {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-radius: 18px; color: var(--cream);
    background: rgba(35, 23, 17, .68); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -.01em;
  }
  .svc__caption small { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; color: rgba(244, 237, 226, .7); font-variant-numeric: tabular-nums; }
}

/* Founder: photo with the offset outline, stats that count up. */
.framed { position: relative; }
.framed::before {
  content: ''; position: absolute; inset: 0; border: 1px solid rgba(140, 98, 56, .45); border-radius: var(--r-lg);
  transform: translate(12px, 12px); z-index: -1;
}
.framed { isolation: isolate; margin: 0 12px 12px 0; }
.framed .media img { transition: transform 1.4s var(--ease); }
@media (hover: hover) { .framed:hover .media img { transform: scale(1.04); } }

/* Soft sound-wave lines behind dark bands. */
.waves { position: absolute; inset: auto 0 0; width: 100%; height: 60%; z-index: -1; color: var(--caramel); opacity: .16; pointer-events: none; }
.waves path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Slider progress + drag */
.slider__progress { height: 2px; margin-top: 22px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slider__progress span { display: block; height: 100%; background: var(--caramel-deep); transform-origin: 0 50%; transform: scaleX(var(--p, .2)); transition: transform .2s linear; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.slider__track.is-dragging a, .slider__track.is-dragging button { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { [data-slider-drag] { cursor: grab; } }

/* Doctor cards come alive on hover (all pages). */
.doctor { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.doctor__photo img { transition: transform .8s var(--ease); transform-origin: 50% 100%; }
@media (hover: hover) {
  .doctor:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(35, 23, 17, .55); }
  .doctor:hover .doctor__photo img { transform: scale(1.05); }
}

/* Steps with icons */
.step-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 18px 16px 16px; border-radius: 20px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(35, 23, 17, .07);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.step-card + .step-card { margin-top: 10px; }
.step-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--espresso); color: var(--cream); font-size: 1.25rem; }
.step-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -.015em; line-height: 1.25; }
.step-card__num { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; letter-spacing: -.04em; color: var(--caramel-deep); }
@media (hover: hover) { .step-card:hover { background: var(--white); transform: translateX(6px); } }

/* Price rows answer the pointer. */
.price-row { transition: background-color .2s var(--ease); }
@media (hover: hover) { .price-row:not(.price-row--label):hover { background: rgba(140, 98, 56, .07); } }

/* Review cards */
.review { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
@media (hover: hover) { .review:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -34px rgba(35, 23, 17, .5); } }

@media (prefers-reduced-motion: reduce) {
  .float-chip, .rings circle, .open-status.is-open::before { animation: none !important; }
  .home-hero__title span > i, .home-hero__lead, .home-hero__actions, .home-hero__facts, .home-hero__media { animation: none !important; }
}

/* Home hero refinements */
.fact > span:last-child { display: grid; gap: 1px; }
.fact .muted.small { font-size: .75rem; }
@media (max-width: 899.98px) {
  .rings { top: auto; bottom: 0; right: 50%; width: 170vw; transform: translate(50%, 22%); }
}
@media (max-width: 639.98px) { .svc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc__title { overflow-wrap: anywhere; }
@media (max-width: 479.98px) {
  .svc__item { padding: 12px; }
  .svc__title { font-size: .9375rem; letter-spacing: -.03em; }
}

/* 14. Brand layer for inner pages ------------------------------------------
   The home page vocabulary promoted to shared blocks: clean tinted backdrop,
   one quiet line motif per speciality, shaped hero photo with an icon seal,
   wave lines on dark bands. Static: no JS, no animation on the motifs. */

:root {
  --motif-rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Ccircle cx='300' cy='300' r='38'/%3E%3Ccircle cx='300' cy='300' r='67'/%3E%3Ccircle cx='300' cy='300' r='96'/%3E%3Ccircle cx='300' cy='300' r='125'/%3E%3Ccircle cx='300' cy='300' r='154'/%3E%3Ccircle cx='300' cy='300' r='183'/%3E%3Ccircle cx='300' cy='300' r='212'/%3E%3Ccircle cx='300' cy='300' r='241'/%3E%3Ccircle cx='300' cy='300' r='270'/%3E%3Ccircle cx='300' cy='300' r='299'/%3E%3C/svg%3E");
  --motif-petal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%280 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%2820 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%2840 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%2860 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%2880 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%28100 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%28120 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%28140 300 300%29'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='104' transform='rotate%28160 300 300%29'/%3E%3C/svg%3E");
  --motif-bubbles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Ccircle cx='182' cy='432' r='24'/%3E%3Ccircle cx='108' cy='121' r='80'/%3E%3Ccircle cx='108' cy='247' r='56'/%3E%3Ccircle cx='89' cy='525' r='56'/%3E%3Ccircle cx='169' cy='79' r='56'/%3E%3Ccircle cx='458' cy='442' r='10'/%3E%3Ccircle cx='260' cy='106' r='10'/%3E%3Ccircle cx='277' cy='90' r='56'/%3E%3Ccircle cx='123' cy='174' r='56'/%3E%3Ccircle cx='405' cy='382' r='80'/%3E%3Ccircle cx='420' cy='64' r='10'/%3E%3Ccircle cx='67' cy='156' r='16'/%3E%3Ccircle cx='457' cy='175' r='24'/%3E%3Ccircle cx='120' cy='352' r='56'/%3E%3Ccircle cx='213' cy='133' r='24'/%3E%3Ccircle cx='352' cy='387' r='56'/%3E%3Ccircle cx='401' cy='119' r='16'/%3E%3Ccircle cx='424' cy='92' r='56'/%3E%3Ccircle cx='90' cy='376' r='56'/%3E%3Ccircle cx='528' cy='564' r='16'/%3E%3Ccircle cx='363' cy='518' r='38'/%3E%3Ccircle cx='532' cy='292' r='56'/%3E%3C/svg%3E");
  --motif-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Cpolygon points='293%2C69.8 270%2C109.7 224%2C109.7 201%2C69.8 224%2C30 270%2C30'/%3E%3Cpolygon points='362%2C30 339%2C69.8 293%2C69.8 270%2C30 293%2C-9.8 339%2C-9.8'/%3E%3Cpolygon points='224%2C109.7 201%2C149.5 155%2C149.5 132%2C109.7 155%2C69.8 201%2C69.8'/%3E%3Cpolygon points='293%2C149.5 270%2C189.3 224%2C189.3 201%2C149.5 224%2C109.7 270%2C109.7'/%3E%3Cpolygon points='362%2C109.7 339%2C149.5 293%2C149.5 270%2C109.7 293%2C69.8 339%2C69.8'/%3E%3Cpolygon points='431%2C149.5 408%2C189.3 362%2C189.3 339%2C149.5 362%2C109.7 408%2C109.7'/%3E%3Cpolygon points='569%2C149.5 546%2C189.3 500%2C189.3 477%2C149.5 500%2C109.7 546%2C109.7'/%3E%3Cpolygon points='155%2C229.2 132%2C269 86%2C269 63%2C229.2 86%2C189.3 132%2C189.3'/%3E%3Cpolygon points='293%2C229.2 270%2C269 224%2C269 201%2C229.2 224%2C189.3 270%2C189.3'/%3E%3Cpolygon points='362%2C189.3 339%2C229.2 293%2C229.2 270%2C189.3 293%2C149.5 339%2C149.5'/%3E%3Cpolygon points='431%2C229.2 408%2C269 362%2C269 339%2C229.2 362%2C189.3 408%2C189.3'/%3E%3Cpolygon points='500%2C189.3 477%2C229.2 431%2C229.2 408%2C189.3 431%2C149.5 477%2C149.5'/%3E%3Cpolygon points='155%2C308.9 132%2C348.7 86%2C348.7 63%2C308.9 86%2C269 132%2C269'/%3E%3Cpolygon points='224%2C269 201%2C308.9 155%2C308.9 132%2C269 155%2C229.2 201%2C229.2'/%3E%3Cpolygon points='362%2C269 339%2C308.9 293%2C308.9 270%2C269 293%2C229.2 339%2C229.2'/%3E%3Cpolygon points='431%2C308.9 408%2C348.7 362%2C348.7 339%2C308.9 362%2C269 408%2C269'/%3E%3Cpolygon points='500%2C269 477%2C308.9 431%2C308.9 408%2C269 431%2C229.2 477%2C229.2'/%3E%3Cpolygon points='569%2C308.9 546%2C348.7 500%2C348.7 477%2C308.9 500%2C269 546%2C269'/%3E%3Cpolygon points='155%2C388.5 132%2C428.4 86%2C428.4 63%2C388.5 86%2C348.7 132%2C348.7'/%3E%3Cpolygon points='224%2C348.7 201%2C388.5 155%2C388.5 132%2C348.7 155%2C308.9 201%2C308.9'/%3E%3Cpolygon points='293%2C388.5 270%2C428.4 224%2C428.4 201%2C388.5 224%2C348.7 270%2C348.7'/%3E%3Cpolygon points='431%2C388.5 408%2C428.4 362%2C428.4 339%2C388.5 362%2C348.7 408%2C348.7'/%3E%3Cpolygon points='500%2C348.7 477%2C388.5 431%2C388.5 408%2C348.7 431%2C308.9 477%2C308.9'/%3E%3Cpolygon points='569%2C388.5 546%2C428.4 500%2C428.4 477%2C388.5 500%2C348.7 546%2C348.7'/%3E%3Cpolygon points='155%2C468.2 132%2C508 86%2C508 63%2C468.2 86%2C428.4 132%2C428.4'/%3E%3Cpolygon points='224%2C428.4 201%2C468.2 155%2C468.2 132%2C428.4 155%2C388.5 201%2C388.5'/%3E%3Cpolygon points='293%2C468.2 270%2C508 224%2C508 201%2C468.2 224%2C428.4 270%2C428.4'/%3E%3Cpolygon points='362%2C428.4 339%2C468.2 293%2C468.2 270%2C428.4 293%2C388.5 339%2C388.5'/%3E%3Cpolygon points='500%2C428.4 477%2C468.2 431%2C468.2 408%2C428.4 431%2C388.5 477%2C388.5'/%3E%3Cpolygon points='569%2C468.2 546%2C508 500%2C508 477%2C468.2 500%2C428.4 546%2C428.4'/%3E%3Cpolygon points='224%2C508 201%2C547.9 155%2C547.9 132%2C508 155%2C468.2 201%2C468.2'/%3E%3Cpolygon points='293%2C547.9 270%2C587.7 224%2C587.7 201%2C547.9 224%2C508 270%2C508'/%3E%3Cpolygon points='362%2C508 339%2C547.9 293%2C547.9 270%2C508 293%2C468.2 339%2C468.2'/%3E%3Cpolygon points='431%2C547.9 408%2C587.7 362%2C587.7 339%2C547.9 362%2C508 408%2C508'/%3E%3C/svg%3E");
  --motif-sonar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Cpath d='M263.1 57.3A60 60 0 0 0 336.9 57.3'/%3E%3Cpath d='M235.4 92.7A105 105 0 0 0 364.6 92.7'/%3E%3Cpath d='M207.7 128.2A150 150 0 0 0 392.3 128.2'/%3E%3Cpath d='M179.9 163.7A195 195 0 0 0 420.1 163.7'/%3E%3Cpath d='M152.2 199.1A240 240 0 0 0 447.8 199.1'/%3E%3Cpath d='M124.5 234.6A285 285 0 0 0 475.5 234.6'/%3E%3Cpath d='M96.8 270A330 330 0 0 0 503.2 270'/%3E%3Cpath d='M69.1 305.5A375 375 0 0 0 530.9 305.5'/%3E%3Cpath d='M41.4 341A420 420 0 0 0 558.6 341'/%3E%3Cpath d='M13.7 376.4A465 465 0 0 0 586.3 376.4'/%3E%3Cpath d='M-14 411.9A510 510 0 0 0 614 411.9'/%3E%3Cpath d='M-41.7 447.3A555 555 0 0 0 641.7 447.3'/%3E%3Cpath d='M300 10L-63.2 474.9M300 10L663.2 474.9'/%3E%3C/svg%3E");
  --motif-flow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Cpath d='M-20 60C80 34 160 86 260 60S440 34 620 73'/%3E%3Cpath d='M-20 108C80 80 160 136 260 108S440 80 620 122'/%3E%3Cpath d='M-20 156C80 126 160 186 260 156S440 126 620 171'/%3E%3Cpath d='M-20 204C80 172 160 236 260 204S440 172 620 220'/%3E%3Cpath d='M-20 252C80 218 160 286 260 252S440 218 620 269'/%3E%3Cpath d='M-20 300C80 264 160 336 260 300S440 264 620 318'/%3E%3Cpath d='M-20 348C80 310 160 386 260 348S440 310 620 367'/%3E%3Cpath d='M-20 396C80 356 160 436 260 396S440 356 620 416'/%3E%3Cpath d='M-20 444C80 402 160 486 260 444S440 402 620 465'/%3E%3Cpath d='M-20 492C80 448 160 536 260 492S440 448 620 514'/%3E%3Cpath d='M-20 540C80 494 160 586 260 540S440 494 620 563'/%3E%3C/svg%3E");
  --motif-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%238c6238' stroke-width='0.8'%3E%3Crect x='14' y='280' width='9' height='40' rx='4.5'/%3E%3Crect x='39' y='160.7' width='9' height='278.7' rx='4.5'/%3E%3Crect x='64' y='98.6' width='9' height='402.7' rx='4.5'/%3E%3Crect x='89' y='117.4' width='9' height='365.3' rx='4.5'/%3E%3Crect x='114' y='193.9' width='9' height='212.2' rx='4.5'/%3E%3Crect x='139' y='275.7' width='9' height='48.7' rx='4.5'/%3E%3Crect x='164' y='244.9' width='9' height='110.2' rx='4.5'/%3E%3Crect x='189' y='260.3' width='9' height='79.4' rx='4.5'/%3E%3Crect x='214' y='257.8' width='9' height='84.4' rx='4.5'/%3E%3Crect x='239' y='237.4' width='9' height='125.2' rx='4.5'/%3E%3Crect x='264' y='271.2' width='9' height='57.6' rx='4.5'/%3E%3Crect x='289' y='207.6' width='9' height='184.7' rx='4.5'/%3E%3Crect x='314' y='123.7' width='9' height='352.6' rx='4.5'/%3E%3Crect x='339' y='91.6' width='9' height='416.8' rx='4.5'/%3E%3Crect x='364' y='140.5' width='9' height='318.9' rx='4.5'/%3E%3Crect x='389' y='253.9' width='9' height='92.3' rx='4.5'/%3E%3Crect x='414' y='182.6' width='9' height='234.9' rx='4.5'/%3E%3Crect x='439' y='108.5' width='9' height='383.1' rx='4.5'/%3E%3Crect x='464' y='113.6' width='9' height='372.7' rx='4.5'/%3E%3Crect x='489' y='181.7' width='9' height='236.6' rx='4.5'/%3E%3Crect x='514' y='263' width='9' height='74.1' rx='4.5'/%3E%3Crect x='539' y='252.6' width='9' height='94.8' rx='4.5'/%3E%3Crect x='564' y='263' width='9' height='74.1' rx='4.5'/%3E%3Crect x='589' y='255.5' width='9' height='88.9' rx='4.5'/%3E%3C/svg%3E");
  --motif-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' fill='none' stroke='%23f4ede2' stroke-width='1'%3E%3Cpath d='M0 40C200 -6 400 86 600 40S1000 -6 1200 40'/%3E%3Cpath d='M0 74C200 28 400 120 600 74S1000 28 1200 74'/%3E%3Cpath d='M0 108C200 62 400 154 600 108S1000 62 1200 108'/%3E%3Cpath d='M0 142C200 96 400 188 600 142S1000 96 1200 142'/%3E%3Cpath d='M0 176C200 130 400 222 600 176S1000 130 1200 176'/%3E%3Cpath d='M0 210C200 164 400 256 600 210S1000 164 1200 210'/%3E%3C/svg%3E");
}


/* Hero backdrop */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(16px, 3vw, 40px));
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 70% at 88% 42%, var(--tone-deep), transparent 72%),
    linear-gradient(168deg, var(--tone) 0%, var(--tone-soft) 58%, var(--ivory) 100%);
}
.page-hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(880px, 150vw); aspect-ratio: 1;
  right: 50%; bottom: 0; transform: translate(50%, 30%);
  background: var(--motif, var(--motif-rings)) center / contain no-repeat; opacity: .26;
}
@media (min-width: 900px) {
  .page-hero::after { right: 0; bottom: auto; top: 50%; transform: translate(24%, -46%); }
  .page-hero--plain::after { transform: translate(34%, -40%); opacity: .34; }
}
[data-motif="petal"] { --motif: var(--motif-petal); }
[data-motif="bubbles"] { --motif: var(--motif-bubbles); }
[data-motif="hex"] { --motif: var(--motif-hex); }
[data-motif="sonar"] { --motif: var(--motif-sonar); }
[data-motif="flow"] { --motif: var(--motif-flow); }
[data-motif="bars"] { --motif: var(--motif-bars); }
[data-motif="grid"]::after {
  background: radial-gradient(circle, rgba(140, 98, 56, .55) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: .6;
}

@media (max-width: 899.98px) { [data-motif="grid"]::after { opacity: .3; } }
.page-hero__copy { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 359.98px) { .page-hero__title { font-size: 1.875rem; overflow-wrap: anywhere; } }
.page-hero__copy > * { animation: fade-up .8s var(--ease) both; }
.page-hero__copy > :nth-child(2) { animation-delay: .06s; }
.page-hero__copy > :nth-child(3) { animation-delay: .12s; }
.page-hero__copy > :nth-child(4) { animation-delay: .2s; }
.page-hero__copy > :nth-child(n + 5) { animation-delay: .28s; }
.page-hero__title em, .section-head__title em { font-style: normal; color: var(--caramel-deep); }
.page-hero .lead { max-width: 46ch; }
.page-hero__copy > .btn { margin-top: 4px; }
@media (max-width: 559.98px) { .page-hero__copy > .btn { width: 100%; } }

/* Hero photo: shape by speciality family, hairline echo, icon seal. */
.hero-media { position: relative; justify-self: center; width: min(100%, 540px); animation: fade-up 1s var(--ease) .15s both; --shape: var(--r-xl); }
.hero-media > .media, .hero-media > .card { border-radius: var(--shape); box-shadow: 0 36px 70px -42px rgba(35, 23, 17, .55); }
.hero-media::before {
  content: ''; position: absolute; inset: -10px; z-index: -1; border: 1px solid rgba(140, 98, 56, .38);
  border-radius: var(--shape-out, calc(var(--r-xl) + 10px));
}
.hero-media--arch { --shape: 999px 999px var(--r-xl) var(--r-xl); --shape-out: 999px 999px 38px 38px; }
.hero-media--leaf { --shape: 44% 28px 44% 28px / 34% 28px 34% 28px; --shape-out: 45% 36px 45% 36px / 35% 36px 35% 36px; }
.hero-media--tab { --shape: 28px 38% 28px 28px / 28px 30% 28px 28px; --shape-out: 36px 39% 36px 36px / 36px 31% 36px 36px; }
.hero-media__seal {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--espresso); color: var(--cream); font-size: 1.5rem;
  box-shadow: 0 0 0 6px rgba(251, 248, 243, .55), 0 18px 36px -18px rgba(35, 23, 17, .7);
}
.hero-media__seal::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(140, 98, 56, .5); }
.hero-media--leaf .hero-media__seal { left: auto; right: 14px; }
@media (min-width: 900px) {
  .hero-media { justify-self: end; }
  .hero-media__seal { width: 76px; height: 76px; font-size: 1.75rem; left: -22px; bottom: 34px; }
  .hero-media--leaf .hero-media__seal { right: -22px; }
}

/* Light bands are clean flat colour; dark bands get the wave lines. */
.section--dark { position: relative; }
.section--dark::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: min(260px, 60%); z-index: -1; pointer-events: none;
  background: var(--motif-waves) bottom center / max(100%, 900px) 100% no-repeat; opacity: .1;
}

/* Cards */
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
@media (hover: hover) {
  .grid > .card:hover, .stack > .card:hover, .slider__track > .card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(35, 23, 17, .5); }
}
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--espresso); color: var(--cream); font-size: 1.25rem; }
.card--cream .card__icon, .card--beige .card__icon { background: var(--espresso); }
.card--dark .card__icon, .section--dark .card__icon { background: rgba(244, 237, 226, .12); color: var(--caramel); }
.card__index {
  justify-self: start; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--caramel-deep); letter-spacing: .18em;
}
.card--dark .card__index, .section--dark .card__index { color: var(--caramel); }
.card__value { color: var(--caramel-deep); }
.card--dark .card__value { color: var(--caramel); }

/* Steps become soft cards with the big numeral, like the home page. */
.steps { gap: 10px; }
.step, .step:last-child { border: 0; }
.step {
  padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, .62);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.section--cream .step, .section--beige .step { background: rgba(255, 255, 255, .7); }
.section--dark .step { background: rgba(244, 237, 226, .06); }
@media (hover: hover) {
  .step:hover { background: var(--white); transform: translateX(6px); }
  .section--dark .step:hover { background: rgba(244, 237, 226, .11); }
}
@media (min-width: 900px) {
  .steps--row { gap: 14px; }
  .steps--row .step { padding: 24px; }
  .steps--row .step:hover { transform: translateY(-4px); }
}

/* Linked tiles and products */
.tile .media { border-radius: var(--r-lg); }
.product { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .product:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(35, 23, 17, .5); } }

/* Cut-outs on white (hearing aids) sit on cream instead of a stark white card. */
.hero-media > .card { background: var(--cream); border-color: transparent; }
.hero-media > .card img { mix-blend-mode: multiply; }
/* The home "problems" band already draws its own wave lines. */
.section--dark:has(.waves)::before { display: none; }

/* Readability: small grey text gets the stronger ink; chips keep an edge on tinted grounds. */
.breadcrumbs, .form__note { color: var(--ink-soft); }
.chip { box-shadow: inset 0 0 0 1px rgba(35, 23, 17, .1); }
.media { isolation: isolate; }

/* Long service names must wrap inside narrow price lists. */
.price-block { grid-template-columns: minmax(0, 1fr); }
.price-row__name { min-width: 0; overflow-wrap: anywhere; }

/* Funnel pages (quiz, thank-you) share the hero backdrop. */
.backdrop { position: relative; isolation: isolate; overflow: hidden; overflow: clip; background: var(--ivory); }
.backdrop::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 60% at 86% 30%, rgba(220, 202, 178, .7), transparent 70%),
    radial-gradient(45% 45% at 4% 96%, rgba(235, 224, 207, .9), transparent 70%);
}
.backdrop::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: min(880px, 150vw); aspect-ratio: 1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--motif, var(--motif-rings)) center / contain no-repeat; opacity: .24;
}
.backdrop--pull { margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + var(--section-y)); }
@media (max-width: 899.98px) { .quiz.backdrop::after { opacity: .1; } }
@media (min-width: 900px) { .quiz.backdrop::after { left: auto; right: 0; transform: translate(30%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  .page-hero__copy > *, .hero-media { animation: none; }
}

/* 15. Speciality tones ------------------------------------------------------
   Each speciality owns a quiet tint: it colours the hero and the light bands
   of that page, so pages stop looking alike. Keyed off the hero's data-motif;
   no texture, flat colour only. */
:root { --tone: #f1e6d6; --tone-soft: var(--cream); --tone-deep: rgba(220, 202, 178, .6); }
[data-motif="petal"], main:has(> [data-motif="petal"]) { --tone: #f5e3dc; --tone-soft: #faf0ec; --tone-deep: rgba(232, 194, 181, .55); }
[data-motif="bubbles"], main:has(> [data-motif="bubbles"]) { --tone: #e0ecef; --tone-soft: #eff5f6; --tone-deep: rgba(172, 205, 214, .55); }
[data-motif="hex"], main:has(> [data-motif="hex"]) { --tone: #e4eadb; --tone-soft: #f1f4ea; --tone-deep: rgba(188, 203, 167, .55); }
[data-motif="flow"], main:has(> [data-motif="flow"]) { --tone: #f7e5cf; --tone-soft: #fbf2e5; --tone-deep: rgba(233, 195, 146, .5); }
[data-motif="bars"], main:has(> [data-motif="bars"]) { --tone: #e7e4ec; --tone-soft: #f3f1f6; --tone-deep: rgba(196, 189, 210, .55); }
[data-motif="sonar"], main:has(> [data-motif="sonar"]) { --tone: #dfe9e8; --tone-soft: #eef4f3; --tone-deep: rgba(168, 198, 195, .55); }
[data-motif="grid"], main:has(> [data-motif="grid"]) { --tone: #f1e6d6; --tone-soft: var(--cream); --tone-deep: transparent; }
main:has(> .page-hero) .section--cream { background-color: var(--tone-soft); }
main:has(> .page-hero) .section--beige { background-color: var(--tone); }

/* Dark hero: the espresso surface, for pages that should open on contrast. */
.page-hero--dark {
  color: var(--cream);
  --ink: var(--cream); --ink-soft: rgba(244, 237, 226, .74); --ink-faint: rgba(244, 237, 226, .52);
  --line: var(--line-light); --line-strong: rgba(244, 237, 226, .3); --ink-inverse: var(--espresso);
  --act-bg: var(--cream); --act-fg: var(--espresso); --act-fill: var(--caramel); --act-fill-fg: var(--espresso);
}
.page-hero--dark::before {
  background:
    radial-gradient(50% 70% at 86% 44%, rgba(95, 71, 57, .7), transparent 72%),
    linear-gradient(168deg, var(--espresso) 0%, var(--cocoa) 100%);
}
.page-hero--dark::after { opacity: .5; }
.page-hero--dark .page-hero__title em { color: var(--caramel); }
.page-hero--dark .chip { background: rgba(244, 237, 226, .1); box-shadow: inset 0 0 0 1px rgba(244, 237, 226, .18); }
.page-hero--dark .hero-media::before { border-color: rgba(185, 141, 99, .5); }
.page-hero--dark .hero-media__seal { background: var(--caramel); color: var(--espresso); box-shadow: 0 0 0 6px rgba(35, 23, 17, .55), 0 18px 36px -18px rgba(0, 0, 0, .7); }
/* The capsule header floats over the dark hero; the next band must not repeat the hero colour. */
.page-hero--dark + .section--dark { background: var(--cocoa); }
/* Over a dark hero the translucent capsule turns muddy: keep it opaque. */
body:has(.page-hero--dark) .header__inner { background: rgba(251, 248, 243, .95); }

/* 16. Price page -------------------------------------------------------------
   One white card per speciality on a cream page; sections sit side by side
   as tinted panels, all open, so the list reads like the printed price sheet. */
main:has(> .price-page) { background: var(--cream); }
main:has(> .price-page) > .page-hero::before { background: linear-gradient(180deg, #f1e6d6 0%, var(--cream) 100%); }
.price-stack { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.price-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-bottom: clamp(14px, 2vw, 22px); margin-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line-strong);
}
.price-card__head .h2 { font-size: var(--fs-h3); }
.price-cols { column-gap: 20px; }
.price-sec {
  break-inside: avoid; margin-bottom: 20px; padding: 18px 20px 8px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.price-cols > .price-sec:last-child { margin-bottom: 0; }
.price-sec__title {
  margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--caramel-deep); line-height: 1.5;
}
.price-sec .price-row { padding-inline: 8px; margin-inline: -8px; border-radius: 8px; break-inside: avoid; }
.price-sec .price-row__name { color: var(--ink); }
@media (max-width: 559.98px) { .price-card__head .btn { width: 100%; } }
@media (min-width: 900px) {
  .price-cols { columns: 2; }
  .price-cols--single { columns: 1; }
  .price-cols--single .price-sec__rows { columns: 2; column-gap: 48px; }
}

/* 17. Phone polish ------------------------------------------------------------
   Fixes found on 360–390px screens: no mid-word breaks, even buttons, tighter
   paddings where nested cards ate the line width. */
@media (max-width: 559.98px) {
  .h1 { overflow-wrap: break-word; }
  .page-hero__title:not(.page-hero__title--long) { font-size: clamp(2rem, 9.4vw, 2.375rem); }
  .btn--lg { min-height: 56px; padding: 16px 20px; font-size: 1rem; }
  .eyebrow { letter-spacing: .2em; }

  .svc__title { font-size: .8125rem; letter-spacing: -.03em; hyphens: auto; }

  .grid--duo .doctor__body { grid-template-rows: auto auto 1fr auto; }
  .grid--duo .btn { align-self: end; height: 42px; min-height: 0; padding-block: 0; }

  .price-card { padding: 14px 12px; border-radius: var(--r-lg); }
  .price-sec { padding: 14px 14px 6px; margin-bottom: 12px; border-radius: var(--r-md); }
  .price-sec .price-row { padding-block: 10px; gap: 6px 12px; font-size: var(--fs-sm); }
}
/* The space reserved for the sticky action bar continues the footer colour. */
@media (max-width: 1023.98px) { body.has-bar { background: var(--espresso); } body.has-bar main:not(:has(> .price-page)) { background-color: var(--ivory); } }
