/* ==========================================================================
   DermaMed — design system
   Palette: deep navy (from the logo mark) on crisp cool neutrals,
            with one restrained teal accent.
   Type:    Plus Jakarta Sans (headings) + Inter (UI / body)
            Both cover Latin Extended, so Latvian diacritics render correctly.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Navy — the brand, carries every heading and dark surface */
  --navy-950: #061529;
  --navy-900: #0a1f3c;
  --navy-800: #0e2a52; /* logo navy */
  --navy-700: #17385c;
  --navy-600: #234c78;
  --navy-500: #33639a;
  --navy-400: #5d87b5;
  --navy-300: #93aecb;
  --navy-200: #c4d3e3;
  --navy-100: #e3eaf2;
  --navy-50:  #f1f5f9;

  /* Neutrals — cool, crisp, no warm cast */
  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --paper-3: #eef2f6;
  --line: #e2e8ef;
  --line-strong: #cbd6e2;

  /* Teal — the single accent, used sparingly */
  --teal-700: #0b6f68;
  --teal-600: #0d857c;
  --teal-500: #109b90;
  --teal-300: #6fcac2;
  --teal-100: #d3ede9;
  --teal-50:  #eff8f7;

  /* Text */
  --text: #16243a;
  --text-muted: #55657c;
  --text-faint: #8493a6;
  --on-navy: #eaf0f7;
  --on-navy-muted: #9db2cc;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(10, 31, 60, 0.06);
  --shadow-sm: 0 2px 8px rgba(10, 31, 60, 0.06), 0 1px 2px rgba(10, 31, 60, 0.04);
  --shadow-md: 0 12px 32px rgba(10, 31, 60, 0.08), 0 2px 6px rgba(10, 31, 60, 0.04);
  --shadow-lg: 0 30px 64px rgba(10, 31, 60, 0.13), 0 4px 12px rgba(10, 31, 60, 0.05);

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: 28px;
  --header-h: 78px;
  --statebar-h: 52px;
  --docbar-h: 38px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy-800); color: #fff; }

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

/* ---------- 3. Typography ------------------------------------------------ */
/* Serif is reserved for headings. Everything else is Inter. */
.h1, .h2, .h3, .h4, .display {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.1;
  color: var(--navy-800);
}

.h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1.1; }
.h2 { font-size: clamp(1.8rem, 2.9vw, 2.4rem); line-height: 1.14; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.h4 { font-size: 1.15rem; line-height: 1.3; }

/* Light-on-dark headings — the one place colour must be forced. */
.on-navy .h1, .on-navy .h2, .on-navy .h3, .on-navy .h4 { color: #fff; }

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
}
.on-navy .lead { color: var(--on-navy-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.eyebrow--light { color: var(--teal-300); }
.eyebrow--plain::before { display: none; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 0.86rem; }
.on-navy .muted { color: var(--on-navy-muted); }

/* ---------- 4. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(64px, 7.5vw, 110px) 0; }
.section--tight { padding: clamp(44px, 5vw, 68px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--navy {
  background: var(--navy-800);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}

.section-head { max-width: 640px; margin-bottom: clamp(38px, 4.5vw, 60px); }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary:hover { --btn-bg: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line-strong);
}
.btn--outline:hover { --btn-bg: var(--navy-50); --btn-bd: var(--navy-300); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--light:hover { --btn-bg: var(--navy-50); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.3);
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: rgba(255, 255, 255, 0.55); }

.btn--sm { padding: 10px 17px; font-size: 0.865rem; }
.btn--lg { padding: 15px 30px; font-size: 0.97rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { color: var(--teal-700); gap: 12px; }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--teal-300); }

/* ---------- 6. Logo ------------------------------------------------------ */
/* The mark IS the D of "DermaMed". Its viewBox is cropped to the letter's
   bounds, so setting its height to Inter's cap height (0.7275em) and aligning
   on the baseline makes it kern like a real capital. */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-800);
  transition: opacity var(--dur) var(--ease);
}
.logo:hover { opacity: 0.75; }
.logo__mark {
  height: 0.8em;
  width: auto;
  aspect-ratio: 70 / 84;
  flex: none;
}
.logo__word {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-left: 0.05em;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}
.logo__word b { font-weight: 800; }
.logo--light { color: #fff; }
.logo--lg { font-size: 1.85rem; }

/* Accessibility: keyboard users reach the content without tabbing the nav */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* Language switcher */
.topbar__langs { display: inline-flex; align-items: center; gap: 2px; }
.topbar__langs a {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-200);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.topbar__langs a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topbar__langs a.is-active { background: var(--teal-600); color: #fff; }

.mobile-nav__langs { display: flex; gap: 8px; padding: 16px 2px 4px; }
.mobile-nav__langs a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-nav__langs a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- 7. Header ---------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--navy-200);
  font-size: 0.795rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  padding-block: 9px;
}
.topbar__list { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--teal-300); flex: none; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--teal-300); }
.topbar__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-300); }
.topbar__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(16, 155, 144, 0.25);
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 0.905rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--navy-800); background: var(--navy-50); }
.nav__link.is-active { color: var(--navy-800); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
}
.header__actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--navy-800); transition: background 0.2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--navy-800); transition: transform var(--dur) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Sticky state-funded notice — lives inside the sticky header, so the two
   pin as one block and need no offset maths. */
.statebar {
  border-top: 1px solid var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-700);
}
.statebar__inner {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.statebar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.statebar__label svg { width: 16px; height: 16px; flex: none; }
.statebar__text {
  flex: 1 1 360px;
  min-width: 0;
  font-size: 0.855rem;
  line-height: 1.5;
}
.statebar__text b { font-weight: 700; }
.statebar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 0.845rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(11, 111, 104, 0.35);
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.statebar__link svg { width: 14px; height: 14px; }
.statebar__link:hover { border-color: var(--teal-700); gap: 10px; }

/* Secondary sticky line — deliberately lighter than the teal bar so the two
   do not compete for attention. */
.docbar {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--text-muted);
}
.docbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  font-size: 0.815rem;
  line-height: 1.45;
}
.docbar__inner svg { width: 15px; height: 15px; flex: none; color: var(--navy-500); }
.docbar__inner b { font-weight: 600; color: var(--navy-800); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px var(--gutter) 22px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 2px; font-size: 1.02rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: 100%; margin-top: 18px; }

/* ---------- 8. Hero — typographic, with a booking panel ------------------ */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 104px);
}

.hero__copy { min-width: 0; }
.hero__title { margin-top: 20px; max-width: 18ch; }
.hero__lead { margin-top: 20px; max-width: 56ch; }
.hero__para {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--text-muted);
}
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Priority callout — the state-funded services message */
.highlight {
  margin-top: 28px;
  max-width: 62ch;
  padding: 22px 26px;
  border: 1px solid var(--teal-100);
  border-left: 3px solid var(--teal-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--teal-50);
}
.highlight__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.highlight__label svg { width: 17px; height: 17px; flex: none; }
.highlight__text {
  margin-top: 11px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--navy-800);
}
.highlight__text b { font-weight: 700; }
.highlight__link { margin-top: 14px; color: var(--teal-700); }
/* Standalone callout — full width of its container, not inside the hero. */
.highlight--wide { margin-top: 0; max-width: none; }

/* Hero aside — real contact details, not an invented booking system */
.hero__aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.hero__aside-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero__aside-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(16, 155, 144, 0.16);
  flex: none;
}
.hero__aside-phone {
  display: block;
  margin-top: 14px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  transition: color var(--dur) var(--ease);
}
.hero__aside-phone:hover { color: var(--teal-700); }
.hero__aside-sub { margin-top: 6px; font-size: 0.85rem; color: var(--text-muted); }
.hero__aside-hours { margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero__aside-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.hero__aside-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero__aside-row b { font-weight: 600; color: var(--navy-800); }
.hero__aside-row.is-closed b { font-weight: 400; color: var(--text-faint); }

/* Trust strip along the hero's bottom edge */
.hero__strip { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }
.hero__strip-inner {
  display: flex; flex-wrap: wrap;
  gap: 10px clamp(24px, 4vw, 52px);
  padding-block: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero__strip-inner span { display: inline-flex; align-items: center; gap: 9px; }
.hero__strip-inner span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}

/* Inner page hero */
.page-hero {
  position: relative;
  background: var(--navy-800);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 100% at 88% 0%, rgba(16, 155, 144, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #10305c 0%, #0e2a52 100%);
}
.page-hero__mark {
  position: absolute;
  right: -3%;
  top: -34%;
  width: min(38vw, 400px);
  color: #fff;
  opacity: 0.055;
  z-index: -1;
}
.page-hero__inner { padding-block: clamp(52px, 6.5vw, 88px); max-width: 740px; }
.page-hero .h1 { margin-top: 18px; }
.page-hero .lead { margin-top: 20px; }

.breadcrumb {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.815rem;
  color: var(--on-navy-muted);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.45; }
.breadcrumb em { font-style: normal; color: #fff; }

/* ---------- 9. Cards ----------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card--hover:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-3px); }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 22px;
}
.card__icon svg { width: 21px; height: 21px; }
.card__title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.012em; color: var(--navy-800); }
.card__text { margin-top: 10px; font-size: 0.93rem; color: var(--text-muted); }
.card__meta {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex; justify-content: space-between; gap: 12px;
}
.card__meta b { color: var(--navy-800); font-weight: 600; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.stat { padding: 32px 30px; border-right: 1px solid var(--line); }
/* Single centred figure — the only counter on the homepage. */
.stats--single { max-width: 440px; margin-inline: auto; text-align: center; grid-template-columns: minmax(0, 1fr); }
.stats.stats--single .stat { border-right: 0; border-bottom: 0; padding: 34px 30px; }
.stats--single .stat__num { font-size: clamp(2.6rem, 4.5vw, 3.4rem); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-variant-numeric: tabular-nums;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.stat__num sup { font-size: 0.45em; color: var(--teal-600); top: -0.7em; }
.stat__value {
  margin-top: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}
.stat__label { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- 10. Doctors -------------------------------------------------- */
/* Portrait tiles are monogram placeholders — swap for real photography. */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(165deg, #16406f 0%, #0e2a52 55%, #081d3a 100%);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(75% 60% at 72% 16%, rgba(16, 155, 144, 0.24) 0%, transparent 62%);
}
.portrait--warm { background: linear-gradient(165deg, #1b4a7e 0%, #0e2a52 58%, #06182f 100%); }
.portrait--warm::before { background: radial-gradient(75% 60% at 28% 18%, rgba(93, 135, 181, 0.32) 0%, transparent 60%); }
.portrait__monogram {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(3.6rem, 7vw, 5.2rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  z-index: 2;
}
.portrait__mark {
  position: absolute;
  right: -12%; bottom: -14%;
  width: 58%;
  color: #fff;
  opacity: 0.07;
  z-index: 1;
}
.portrait--photo { background: var(--paper-3); }
.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
/* Scrim so the availability chip stays legible over a light photo. */
.portrait--photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 21, 41, 0) 0%, rgba(6, 21, 41, 0.5) 100%);
  pointer-events: none;
}

.portrait__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(6, 21, 41, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: calc(100% - 28px);
  color: #fff;
}
.portrait__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); display: block; flex: none; }

.doctor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  height: 100%;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doctor-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.doctor-card .portrait { aspect-ratio: 3 / 4; }
.doctor-card__body { padding: 10px 12px 10px 0; display: flex; flex-direction: column; }
.doctor-card__name { font-size: 1.5rem; }
.doctor-card__role {
  margin-top: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.doctor-card__text { margin-top: 16px; font-size: 0.93rem; color: var(--text-muted); }
.langs {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
}
/* Inline, not flex — the sentence must wrap as ordinary text. */
.langs svg {
  display: inline-block;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: var(--teal-600);
}
.langs b { font-weight: 600; color: var(--navy-800); }
.doctor-card__langs { margin-top: 16px; }
.doc-hero__langs { margin-top: 16px; }

.doctor-card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.doctor-card__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chip--teal { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-700); }

.person-row {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.person-row__avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.15rem;
}
.person-row__name { font-weight: 600; color: var(--navy-800); font-size: 0.99rem; }
.person-row__role { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- 11. Doctor detail ------------------------------------------- */
.doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.doc-hero__portrait { position: sticky; top: calc(var(--header-h) + var(--statebar-h) + var(--docbar-h) + 28px); }
.doc-hero__name { margin-top: 16px; }
.doc-hero__role {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.doc-quote {
  margin: 30px 0 0;
  padding: 26px 30px;
  border-left: 2px solid var(--teal-500);
  background: var(--paper-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}

.factlist { margin-top: 32px; }
.factlist__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
.factlist__row:last-child { border-bottom: 1px solid var(--line); }
.factlist__key {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 3px;
}

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute; left: -28px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal-500);
}
.timeline__year { font-size: 0.77rem; font-weight: 600; letter-spacing: 0.09em; color: var(--teal-700); }
.timeline__title { margin-top: 5px; font-weight: 600; color: var(--navy-800); }
.timeline__text { margin-top: 4px; font-size: 0.92rem; color: var(--text-muted); }

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  font-size: 0.95rem;
}
.checklist svg { width: 19px; height: 19px; color: var(--teal-600); margin-top: 3px; }

/* ---------- 12. Pricing -------------------------------------------------- */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  width: fit-content;
  max-width: 100%;
}
.price-tab {
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.price-tab:hover { color: var(--navy-800); background: #fff; }
.price-tab.is-active { background: var(--navy-800); color: #fff; }

.price-panel { display: none; }
.price-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.price-group { margin-bottom: clamp(44px, 5vw, 64px); }
.price-group:last-of-type { margin-bottom: 0; }
/* The state-funded group leads the page, so it gets the accent treatment. */
.price-group--state .price-group__head { border-bottom-color: var(--teal-500); }
.price-group--state .price-group__title { color: var(--teal-700); }
.price-group--state .price-table tbody tr:hover { background: var(--teal-50); }
.price-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.price-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-800);
}
.price-group__note { font-size: 0.85rem; color: var(--text-faint); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 16px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.price-table th:last-child, .price-table td:last-child { text-align: right; padding-right: 0; }
.price-table th.col-dur, .price-table td.col-dur { width: 120px; white-space: nowrap; }
.price-table th.col-price, .price-table td.col-price { width: 140px; }
.price-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr { transition: background var(--dur) var(--ease); }
.price-table tbody tr:hover { background: var(--paper-2); }
.price-name { font-weight: 600; color: var(--navy-800); font-size: 0.98rem; }
.price-desc { margin-top: 5px; font-size: 0.87rem; color: var(--text-muted); max-width: 58ch; }
.price-dur { font-size: 0.89rem; color: var(--text-muted); padding-top: 2px; }
.price-value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-800);
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  font-size: 0.91rem;
  color: var(--teal-700);
  line-height: 1.6;
}
.notice svg { width: 20px; height: 20px; margin-top: 3px; }
.notice--plain { background: var(--paper-2); border-color: var(--line); color: var(--text-muted); }
.notice--plain svg { color: var(--navy-500); }
.notice--plain b { color: var(--navy-800); }

/* Compact price preview on the homepage */
.mini-prices { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.mini-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.mini-price:last-child { border-bottom: 0; }
.mini-price__body { min-width: 0; }
.mini-price__name { font-size: 0.98rem; font-weight: 600; color: var(--navy-800); line-height: 1.4; }
.mini-price__desc { margin-top: 4px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.mini-price__value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  white-space: nowrap;
}
/* The state-funded row leads, so it carries the accent. */
.mini-price--state {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  border-bottom-color: var(--teal-100);
}
.mini-price--state .mini-price__name,
.mini-price--state .mini-price__value { color: var(--teal-700); }
.mini-price--state .mini-price__desc { color: var(--teal-700); opacity: 0.85; }
.mini-prices__foot { margin-top: 28px; text-align: center; }

/* Pricing page header carries only its title */
.page-hero--compact .page-hero__inner { padding-block: clamp(40px, 4.5vw, 60px); }

/* "What to bring" pair on the directions page */
.bring__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.bring__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.bring__icon svg { width: 22px; height: 22px; }
.bring__title { font-size: 1.02rem; font-weight: 600; color: var(--navy-800); line-height: 1.35; }
.bring__text { margin-top: 7px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- 13. Steps ---------------------------------------------------- */
.steps { display: grid; counter-reset: step; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.step { padding: 32px 28px; counter-increment: step; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step__num {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--navy-200);
}
.step__num::before { content: "0" counter(step); }
.step__title { margin-top: 18px; font-size: 1.04rem; font-weight: 600; color: var(--navy-800); }
.step__text { margin-top: 9px; font-size: 0.91rem; color: var(--text-muted); }

/* ---------- 14. Testimonials -------------------------------------------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote-card__stars { display: flex; gap: 3px; color: var(--teal-600); margin-bottom: 20px; }
.quote-card__stars svg { width: 15px; height: 15px; }
.quote-card__text {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.6;
  letter-spacing: -0.012em;
  color: var(--navy-800);
  flex: 1;
}
.quote-card__author {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 13px;
}
.quote-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-3);
  font-size: 0.8rem; font-weight: 600; color: var(--navy-700);
}
.quote-card__name { font-size: 0.92rem; font-weight: 600; color: var(--navy-800); }
.quote-card__meta { font-size: 0.81rem; color: var(--text-faint); }

/* ---------- 15. Split block --------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
}
.split--top { align-items: start; }

.media-tile {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #16406f 0%, #0e2a52 58%, #071a33 100%);
  isolation: isolate;
}
.media-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(65% 55% at 78% 16%, rgba(16, 155, 144, 0.25) 0%, transparent 62%);
}
.media-tile__mark {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: 42%;
  color: #fff;
  opacity: 0.1;
}
.media-tile__badge {
  position: absolute;
  right: 22px; bottom: 22px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  max-width: 64%;
}
.media-tile__badge-num { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--navy-800); }
.media-tile__badge-text { margin-top: 7px; font-size: 0.81rem; color: var(--text-muted); line-height: 1.45; }

/* ---------- 16. Map ------------------------------------------------------ */
.map-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}
.map-wrap svg, .map-frame { width: 100%; height: 100%; }
.map-frame { border: 0; display: block; filter: saturate(0.82) contrast(1.02); }
.map-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 14px;
}
.map-wrap--tall { aspect-ratio: 4 / 3; }
.map-wrap--wide { aspect-ratio: 16 / 8; }

.map-legend {
  position: absolute;
  left: 18px; top: 18px;
  z-index: 3;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-width: 250px;
}
.map-legend__title { font-size: 0.94rem; font-weight: 600; color: var(--navy-800); }
.map-legend__text { margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.map-legend__link { margin-top: 14px; display: inline-flex; }


/* ---------- 17. Contact -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 42px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy-800); }
.field label span { color: var(--teal-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355657c' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(16, 155, 144, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field__hint { font-size: 0.78rem; color: var(--text-faint); }

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--teal-600); cursor: pointer; }
.consent a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.91rem;
}
.form-success.is-visible { display: block; animation: fadeUp 0.4s var(--ease); }

.contact-list { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.contact-item {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--navy-700);
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item__label {
  font-size: 0.71rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-faint);
}
.contact-item__value { margin-top: 6px; font-size: 1rem; font-weight: 600; color: var(--navy-800); }
.contact-item__value a:hover { color: var(--teal-700); }
.contact-item__sub { margin-top: 4px; font-size: 0.85rem; color: var(--text-muted); }
.contact-item__sub a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy-800); }
.hours tr.is-today td, .hours tr.is-today td:last-child { color: var(--teal-700); }
.hours tr.is-closed td:last-child { color: var(--text-faint); font-weight: 400; }

/* ---------- 18. FAQ ------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  background: none; border: 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--teal-700); }
.faq__icon {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq__icon svg { width: 13px; height: 13px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding-bottom: 24px; padding-right: 52px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- 19. Route ---------------------------------------------------- */
.route { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.route__item { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route__head { display: flex; align-items: center; gap: 13px; }
.route__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--navy-800);
  color: #fff;
}
.route__icon svg { width: 18px; height: 18px; }
.route__title { font-size: 1.04rem; font-weight: 600; color: var(--navy-800); }
.route__body { margin-top: 18px; font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }
.route__body strong { color: var(--navy-800); font-weight: 600; }
.route__lines { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.line-badge {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 28px;
  padding-inline: 9px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-800);
}
.line-badge--tram { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-700); }

/* ---------- 20. CTA band ------------------------------------------------- */
.cta-band { isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 110% at 88% 10%, rgba(16, 155, 144, 0.2) 0%, transparent 62%),
    linear-gradient(180deg, #10305c 0%, #0b2447 100%);
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__mark {
  position: absolute;
  left: 52%; top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  color: #fff;
  opacity: 0.04;
  z-index: -1;
}

/* ---------- 21. Footer --------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: var(--navy-200);
  padding-top: clamp(54px, 6vw, 80px);
  font-size: 0.91rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 50px;
}
.footer__about { margin-top: 20px; max-width: 34ch; line-height: 1.7; color: var(--on-navy-muted); }
.footer__title {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__list { display: grid; gap: 11px; }
.footer__list a:hover, .footer address a:hover { color: var(--teal-300); }
.footer address { font-style: normal; display: grid; gap: 11px; line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(157, 178, 204, 0.8);
}
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.socials { display: flex; gap: 9px; margin-top: 24px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--navy-200);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.socials svg { width: 16px; height: 16px; }

/* ---------- 22. Reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 23. Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 310px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 1000px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .booking { max-width: 420px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .doc-hero { grid-template-columns: minmax(0, 1fr); }
  .doc-hero__portrait { position: static; max-width: 330px; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .topbar__item--hide-sm { display: none; }
  .route__item:nth-child(2n) { border-right: 0; }
  .doctor-card { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 18px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .route__item { border-right: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .factlist__row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .topbar { display: none; }
  .statebar__label { display: none; }
  .statebar__inner { gap: 6px 14px; padding-block: 9px; }
  .statebar__text { flex: 1 1 100%; font-size: 0.8rem; }
  .statebar__link { font-size: 0.8rem; }
  .docbar__inner { font-size: 0.765rem; gap: 8px; padding-block: 8px; align-items: flex-start; }
  .docbar__inner svg { margin-top: 2px; }
  .arrows { display: none; }
  .card { padding: 24px; }
  .price-table th.col-dur, .price-table td.col-dur { display: none; }
  .price-table th.col-price, .price-table td.col-price { width: 100px; }
  .price-value { font-size: 1.14rem; }
  .mini-price { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .faq__a p { padding-right: 0; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .map-wrap--tall, .map-wrap--wide { aspect-ratio: 4 / 3; }
  .map-legend { position: static; max-width: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .doc-quote { padding: 22px 24px; }
  .doctor-card { grid-template-columns: minmax(0, 1fr); }
  .doctor-card .portrait { aspect-ratio: 16 / 10; }
  .doctor-card__body { padding: 4px 8px 12px; }
}

/* ---------- 24. Print ---------------------------------------------------- */
@media print {
  .header, .topbar, .statebar, .docbar, .footer, .hero__controls, .cta-band, .mobile-nav { display: none !important; }
  body { background: #fff; }
  .price-panel { display: block !important; }
}
