/* DURU Sonsuzluq Mərkəzi — main stylesheet
   Font: Inter (full Azerbaijani coverage). No inline styles anywhere (CSP: style-src 'self'). */

/* ---------- 1. Tokens ---------- */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ink: #13242b;
  --ink-2: #33474f;
  --muted: #5b6e76;

  --teal-950: #082b33;
  --teal-900: #0c3b45;
  --teal-800: #0f4a56;
  --teal-700: #125b67;
  --teal-600: #17707e;
  --teal-500: #1e8392;
  --teal-300: #8cc9cc;
  --teal-200: #b9dfe0;
  --teal-100: #dcefef;
  --teal-50: #eef7f6;

  --sand-50: #fbf8f4;
  --sand-100: #f5eee5;
  --sand-200: #ebe0d2;

  --coral-700: #9f3e2a;
  --coral-600: #b84a33;
  --coral-200: #f0c9bd;
  --coral-100: #f9e7e1;

  --line: #e4ddd3;
  --line-2: #d3cabd;
  --white: #fff;
  --page-bg: var(--sand-50);
  --surface: var(--white);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(12, 59, 69, .06), 0 1px 1px rgba(12, 59, 69, .04);
  --shadow: 0 12px 32px -14px rgba(12, 59, 69, .22), 0 2px 6px rgba(12, 59, 69, .06);
  --shadow-lg: 0 28px 64px -24px rgba(8, 43, 51, .38), 0 4px 12px rgba(8, 43, 51, .08);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--teal-500);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--page-bg);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); letter-spacing: -.024em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 650; }

p { margin: 0; }
em, i, cite, address { font-style: normal; }
strong, b { font-weight: 650; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-700); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .fill, .sprite .fill { fill: currentColor; stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.copy-buffer { position: fixed; top: 0; left: -9999px; opacity: 0; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

main:focus { outline: none; }

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

.section { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--white { background: var(--white); }
.section--tint { background: var(--teal-50); }
.section--sand { background: var(--sand-100); }
.section--deep { background: var(--teal-900); color: var(--teal-100); }
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px;
}
.section-head--row > div { display: grid; gap: 14px; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 650; letter-spacing: .01em;
  color: var(--teal-700);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--coral-600);
}
.section--deep .eyebrow { color: var(--teal-200); }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.section--deep .lead { color: var(--teal-100); }
.muted { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* Text link with arrow (secondary actions are links, never buttons) */
.link-arrow {
  display: inline; width: fit-content; justify-self: start; align-self: start;
  font-weight: 650; color: var(--teal-700);
  text-decoration: none;
}
.link-arrow .icon { display: inline-block; width: 1.1em; height: 1.1em; margin-left: 8px; vertical-align: -.2em; transition: transform .2s ease; }
.link-arrow:hover { color: var(--coral-700); }
.link-arrow:hover .icon { transform: translateX(3px); }
.section--deep .link-arrow, .link-arrow--light { color: #fff; }
.section--deep .link-arrow:hover, .link-arrow--light:hover { color: var(--coral-200); }

/* ---------- 4. Buttons ---------- */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--coral-600);
  color: #fff;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(184, 74, 51, .7);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-cta:hover { background: var(--coral-700); color: #fff; transform: translateY(-1px); }
.btn-cta .icon { width: 1.15em; height: 1.15em; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--teal-50); color: var(--teal-700); }

.round-link {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-800);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.round-link .icon { width: 22px; height: 22px; }
.round-link:hover { background: var(--teal-900); border-color: var(--teal-900); color: #fff; transform: translateY(-1px); }
.round-row { display: flex; flex-wrap: wrap; gap: 10px; }

.tool-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
}
.tool-btn:hover { border-color: var(--teal-500); color: var(--teal-700); }
.tool-btn .icon { width: 18px; height: 18px; }
.tool-btn.is-copied { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--page-bg);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(8, 43, 51, .45); }

.topbar { background: var(--teal-900); color: var(--teal-100); font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar a { color: var(--teal-100); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__address { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.topbar__address .icon { width: 16px; height: 16px; }
.topbar__icons { display: flex; align-items: center; gap: 2px; }
.topbar__icons .icon-btn { width: 34px; height: 34px; color: var(--teal-100); }
.topbar__icons .icon-btn .icon { width: 18px; height: 18px; }
.topbar__icons .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.mainbar__inner { position: relative; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--teal-900); text-decoration: none; flex: none; }
.brand:hover { color: var(--teal-900); }
.brand__mark { width: 42px; height: 42px; color: var(--teal-700); }
.brand__dot { fill: var(--coral-600); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-size: 1.28rem; font-weight: 800; letter-spacing: .16em; }
.brand__sub { font-size: .78rem; font-weight: 550; color: var(--muted); letter-spacing: .01em; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-item--mega { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 11px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .98rem; font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--teal-50); color: var(--teal-800); }
.nav-item.is-open > .nav-link .icon { transform: rotate(180deg); }
.nav-item[data-current="true"] > .nav-link { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--coral-600); border-radius: 0; }
.nav-item[data-current="true"] > .nav-link:hover { border-radius: 999px; box-shadow: none; }

.submenu, .mega {
  display: none;
  position: absolute; top: 100%; z-index: 60;
  padding-top: 10px;
}
.submenu { left: 0; min-width: 270px; }
.mega { left: var(--gutter); right: var(--gutter); }
.nav-item.is-open > .submenu, .nav-item.is-open > .mega { display: block; }
@media (hover: hover) and (pointer: fine) {
  .nav-item--menu:hover > .submenu, .nav-item--menu:hover > .mega { display: block; }
}
.submenu__panel, .mega__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.submenu__panel { padding: 10px; list-style: none; display: grid; gap: 2px; }
.submenu__panel a, .mega__list a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: .97rem; font-weight: 500;
  text-decoration: none;
}
.submenu__panel a:hover, .mega__list a:hover { background: var(--teal-50); color: var(--teal-800); }
.submenu__panel a[aria-current="page"], .mega__list a[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); font-weight: 650; }

.mega__panel { padding: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mega__col { min-width: 0; }
.mega__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; padding: 0 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--teal-600);
}
.mega__title .icon { width: 18px; height: 18px; }
.mega__list { list-style: none; display: grid; gap: 1px; }
.mega__title--spaced { margin-top: 20px; }
.mega__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 16px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .95rem;
}

.mainbar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.site-nav + .mainbar__actions { margin-left: 8px; }
.menu-toggle { display: none; }
.mainbar__actions .btn-cta { margin-left: 8px; }

/* ---------- 6. Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden; overflow: clip;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--sand-50) 88%);
  padding-block: clamp(36px, 5vw, 80px) clamp(56px, 7vw, 104px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-800);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pill .icon { width: 18px; height: 18px; color: var(--coral-600); }
.hero h1 { max-width: 15ch; }
.hero__slogan { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 650; color: var(--coral-600); }
.hero__lead { max-width: 34em; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 6px; padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2); font-size: .95rem; font-weight: 550;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--teal-600); }

.hero-visual { position: relative; min-width: 0; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-visual__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}
.float-card__title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.float-card__title .badge { width: 34px; height: 34px; }
.float-card--journey { left: 0; bottom: 10%; width: min(330px, 70%); }
.float-card--lab { right: 0; top: 12%; width: min(250px, 52%); }
.float-card--lab p, .float-card--regions p { margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.float-card--regions { right: 4%; bottom: 0; width: min(240px, 50%); }
.journey { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.journey li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink-2); }
.journey b {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700);
  font-size: .8rem; font-weight: 700;
}

.badge {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.badge .icon { width: 22px; height: 22px; }
.badge--coral { background: var(--coral-100); color: var(--coral-700); }
.badge--deep { background: rgba(255, 255, 255, .08); color: var(--teal-200); }

/* Decorative rings (shared) */
.rings { position: absolute; z-index: 0; pointer-events: none; color: var(--teal-200); }
.rings--hero { width: 520px; height: 520px; right: -140px; top: -170px; opacity: .6; }
.rings--page { width: 420px; height: 420px; right: -120px; top: -150px; opacity: .55; }

/* ---------- 7. Paths (two journeys) ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.path-card {
  position: relative; overflow: hidden; overflow: clip;
  display: grid; align-content: start; gap: 16px;
  min-width: 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
}
.path-card > * { position: relative; z-index: 1; }
.path-card--now { background: var(--teal-900); border-color: var(--teal-900); color: var(--teal-100); }
.path-card--now h3 { color: #fff; }
.path-card--later { background: var(--coral-100); border-color: var(--coral-200); }
.path-card h3 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); letter-spacing: -.02em; }
.path-card .eyebrow { color: inherit; }
.path-card--now .eyebrow { color: var(--teal-200); }
.path-card--later .eyebrow { color: var(--coral-700); }
.path-card__links { list-style: none; display: grid; gap: 4px; margin-top: 4px; }
.path-card__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(19, 36, 43, .12);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.path-card--now .path-card__links a { color: #fff; border-top-color: rgba(255, 255, 255, .14); }
.path-card__links a:hover { color: var(--coral-700); }
.path-card--now .path-card__links a:hover { color: var(--coral-200); }
.path-card__links .icon { width: 20px; height: 20px; }

/* ---------- 8. Cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.service-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: var(--teal-200); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-size: .92rem; font-weight: 650; }
.service-card__more .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.service-card:hover .service-card__more { color: var(--coral-700); }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }

.feature-card {
  display: grid; align-content: start; gap: 12px;
  min-width: 0;
  padding: 26px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}
.feature-card p { color: var(--ink-2); font-size: .98rem; }
.section--deep .feature-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--deep .feature-card p { color: var(--teal-100); }

/* Principles (numbered editorial list) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); list-style: none; counter-reset: pr; }
.principle { counter-increment: pr; padding: 26px 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; min-width: 0; }
.principle::before { content: counter(pr, decimal-leading-zero); font-size: .9rem; font-weight: 700; color: var(--coral-600); letter-spacing: .04em; }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--ink-2); font-size: .98rem; }

/* ---------- 9. Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: st; }
.steps::before { content: ""; position: absolute; left: 24px; right: calc((100% - 80px) / 5 - 24px); top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-200) 0 8px, transparent 8px 14px); }
.step { position: relative; counter-increment: st; padding-top: 64px; min-width: 0; }
.step::before {
  content: counter(st);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--teal-500);
  color: var(--teal-700); font-weight: 700; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }

/* ---------- 10. Doctor feature ---------- */
.doctor { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
/* Portrait card: the photo sits on a soft offset panel; the optional badge floats over the bottom edge */
.doctor-photo {
  position: relative; isolation: isolate;
  justify-self: center;
  width: 100%; max-width: min(460px, calc(100% - 24px));
  margin: 0;
}
.doctor-photo::before {
  content: ""; position: absolute; z-index: -1;
  top: 26px; right: -22px; bottom: -22px; left: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--teal-100), var(--sand-100));
}
.doctor-photo img {
  width: 100%; aspect-ratio: 719 / 899; object-fit: cover;
  border-radius: var(--radius-xl);
  background: #efeae3;
  box-shadow: 0 30px 60px -34px rgba(8, 43, 51, .5);
}
.doctor-photo--badge { margin-bottom: 30px; }
.doctor-photo__badge {
  position: absolute; left: 20px; right: 20px; bottom: -30px;
  display: grid; gap: 4px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.doctor-photo__name { font-size: 1.12rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.doctor-photo__role { font-size: .9rem; font-weight: 600; line-height: 1.45; color: var(--teal-700); }
.doctor__body { display: grid; gap: 20px; min-width: 0; }
.fact-list { list-style: none; display: grid; gap: 12px; }
.fact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.fact-list .icon { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; }

.quote {
  margin: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--coral-600);
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  line-height: 1.5; font-weight: 550; color: var(--ink);
}
.quote footer { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.section--deep .quote { color: #fff; }
.section--deep .quote footer { color: var(--teal-200); }

/* ---------- 11. Lab band ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lab__quote { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.3; font-weight: 650; color: #fff; letter-spacing: -.02em; }
.lab__quote span { color: var(--coral-200); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--teal-500); }
.section--deep .check-list .icon { color: var(--teal-300); }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }

.lab > div { display: grid; gap: 18px; align-content: start; min-width: 0; }
.lab__quote--spaced { margin-top: 6px; }
.lab__by { color: var(--teal-200); font-weight: 600; }
.lab__list { gap: 26px; }

/* ---------- 12. Regions ---------- */
.regions__copy { display: grid; gap: 20px; align-content: start; min-width: 0; }
.regions { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .95rem; font-weight: 600;
}
.chip .icon { width: 16px; height: 16px; color: var(--coral-600); }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--teal-500); color: var(--teal-700); }
.panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; gap: 16px; align-content: start;
  min-width: 0;
}
.panel h3 { display: flex; align-items: center; gap: 12px; }
.mini-steps { list-style: none; counter-reset: ms; display: grid; gap: 14px; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--ink-2); font-size: .98rem; }
.mini-steps li::before {
  content: counter(ms);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--coral-100); color: var(--coral-700);
  font-weight: 700; font-size: .85rem;
}

/* ---------- 13. Video & media ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card {
  display: grid; grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-200); color: var(--ink); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--teal-100); overflow: hidden; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--coral-600);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.video-card__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-card__body { display: grid; gap: 6px; align-content: start; padding: 18px 20px 20px; }
.video-card__title { font-weight: 650; line-height: 1.4; }
.video-card__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.video-card__meta .icon { width: 16px; height: 16px; }

.media-strip { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.media-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
a.media-badge:hover { border-color: var(--teal-500); color: var(--ink); }
.media-badge .badge { width: 40px; height: 40px; border-radius: 12px; }
.media-badge__text { display: grid; line-height: 1.3; }
.media-badge__text b { font-weight: 650; }
.media-badge__text span { color: var(--muted); font-size: .88rem; }

/* ---------- 14. FAQ ---------- */
.faq { list-style: none; border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 20px 52px 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.07rem; font-weight: 650; line-height: 1.45;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px;
  border-radius: 999px;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23125b67' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--coral-100);
}
.faq__item summary:hover { color: var(--teal-700); }
.faq__a { padding: 0 52px 22px 0; color: var(--ink-2); display: grid; gap: 10px; }
.faq__a a { font-weight: 600; }
.faq-group + .faq-group { margin-top: clamp(36px, 5vw, 56px); }
.faq-more { margin-top: 24px; }
.faq-group > h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 15. Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  min-width: 0;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-200); color: var(--ink); }
.post-card__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: .8rem; font-weight: 650; }
.post-card h2, .post-card h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; }
.post-grid--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid--index .post-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--teal-900); border-color: var(--teal-900); color: #fff;
}
.post-grid--index .post-card:first-child .post-card__tag { background: rgba(255, 255, 255, .1); color: var(--teal-100); }
.post-grid--index .post-card:first-child h2 { grid-column: 1; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: #fff; }
.post-grid--index .post-card:first-child p { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--teal-100); font-size: 1.05rem; }
.post-grid--index .post-card:first-child .post-card__more { grid-column: 1; align-self: end; color: #fff; }
@media (max-width: 1023px) {
  .post-grid--index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid--index .post-card:first-child { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .post-grid--index .post-card:first-child > * { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .post-grid--index { grid-template-columns: minmax(0, 1fr); }
}
.post-card p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-size: .92rem; font-weight: 650; }
.post-card__more .icon { width: 18px; height: 18px; }

/* ---------- 16. Contact blocks ---------- */
.contact-band {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  align-items: center;
}
.contact-band__copy, .contact-band__side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.contact-lines { list-style: none; display: grid; gap: 16px; }
.contact-lines li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.contact-lines b { display: block; font-weight: 650; }
.contact-lines span { color: var(--muted); font-size: .95rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.contact-info { display: grid; gap: 16px; min-width: 0; }
.panel__title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; letter-spacing: -.01em; }
.panel__title .badge { width: 40px; height: 40px; border-radius: 12px; }
.contact-info__address { font-size: 1.05rem; color: var(--ink); font-weight: 550; }
.contact-info__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-list { list-style: none; display: grid; gap: 2px; }
.social-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink); font-weight: 550; text-decoration: none; }
.social-list a:hover { background: var(--teal-50); color: var(--teal-800); }
.social-list .icon { width: 20px; height: 20px; color: var(--teal-600); }
.notice__body { display: grid; gap: 8px; }
.form-card__head { display: grid; gap: 8px; }
.form-card__head h2 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); }
.result-count { font-weight: 600; color: var(--muted); }
.search-help { margin-top: 40px; display: grid; gap: 14px; }
.search-help__title { font-size: 1.05rem; }
.search-page-form { margin-top: 6px; }
.form-card {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; gap: 20px;
  min-width: 0;
}
.request-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .95rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); outline: none; }
.field [aria-invalid="true"] { border-color: var(--coral-600); box-shadow: 0 0 0 4px var(--coral-100); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-error { color: var(--coral-700); font-weight: 600; font-size: .95rem; }
.request-form .btn-cta { width: 100%; }

.notice {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--ink-2);
  font-size: .96rem;
}
.notice .icon { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; }
.notice--coral { background: var(--coral-100); border-color: var(--coral-200); }
.notice--coral .icon { color: var(--coral-700); }

/* ---------- 17. Inner pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden; overflow: clip;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--sand-50) 100%);
  padding-block: 28px clamp(40px, 5vw, 64px);
}
.page-hero .container { position: relative; z-index: 1; display: grid; gap: 18px; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 44em; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 4px; }
.page-hero__split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.page-hero__copy { display: grid; gap: 18px; min-width: 0; align-content: start; }
.page-hero__sub { font-size: 1.08rem; font-weight: 600; color: var(--teal-700); max-width: 44em; }
.page-hero__split .doctor-photo { max-width: min(420px, calc(100% - 24px)); }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.group-block + .group-block { margin-top: clamp(40px, 5vw, 64px); }
.group-block > h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.group-block__more { margin-top: 16px; }
.faq-nav { margin-top: 6px; }
.person h2 { font-size: 1.22rem; letter-spacing: -.01em; }
.person .quote { font-size: 1.02rem; padding-left: 16px; }
.person .link-arrow { justify-self: start; }
@media (max-width: 1023px) {
  .page-hero__split, .about-intro { grid-template-columns: minmax(0, 1fr); }
  .team-grid, .service-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__split .doctor-photo { justify-self: start; max-width: min(360px, calc(100% - 24px)); }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; font-size: .9rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid var(--line-2); border-top: 1.6px solid var(--line-2);
  transform: rotate(45deg);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-700); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 550; }

.page-body { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.page-layout > * { min-width: 0; }
.toc { display: none; }
.page-main { display: grid; align-content: start; min-width: 0; }
.prose .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: .4em; }
@media (max-width: 720px) { .prose .video-grid { grid-template-columns: minmax(0, 1fr); } }

@media (min-width: 1024px) {
  .page-layout.has-toc { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .page-layout.has-toc .toc { display: block; }
}
.toc__inner { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 12px; }
.toc__title { font-size: .85rem; font-weight: 700; color: var(--teal-600); letter-spacing: .02em; }
.toc__list { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc__list a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: .93rem; line-height: 1.4;
  text-decoration: none;
}
.toc__list a:hover { color: var(--teal-700); }
.toc__list a.is-active { color: var(--teal-800); border-left-color: var(--coral-600); font-weight: 600; }

/* Prose */
.prose { max-width: 46rem; display: grid; gap: 1.05em; align-content: start; }
.prose > * { margin: 0; }
.prose h2 { margin-top: 1.25em; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: .9em; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose ul.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 0; }
.prose-figure { display: grid; gap: 10px; margin: .6em 0 .2em; }
.prose-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; background: var(--teal-50); }
.prose-figure figcaption { font-size: .9rem; color: var(--muted); }
.prose ul li::marker { color: var(--teal-500); }
.prose ol li::marker { color: var(--teal-700); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .lead { color: var(--ink-2); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--teal-50); color: var(--teal-900); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.prose blockquote.quote { margin-block: .4em; }
.prose .notice p, .prose .notice li { color: var(--ink-2); }
.prose .notice strong { color: var(--ink); }

.prose .steps-v { list-style: none; padding: 0; counter-reset: sv; display: grid; gap: 0; }
.prose .steps-v > li {
  counter-increment: sv;
  position: relative;
  display: block;
  padding: 0 0 22px 56px;
}
.prose .steps-v > li > strong:first-child { display: block; margin-bottom: 4px; }
.prose .steps-v > li::before {
  content: counter(sv);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--teal-500);
  color: var(--teal-700); font-weight: 700; font-size: .95rem;
}
.prose .steps-v > li::after {
  content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--teal-100);
}
.prose .steps-v > li:last-child { padding-bottom: 0; }
.prose .steps-v > li:last-child::after { display: none; }
.prose .steps-v strong { font-size: 1.05rem; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .92rem; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline .icon { width: 16px; height: 16px; }

.refs { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
.refs p { color: var(--muted); }
.refs a { color: var(--muted); }

.related { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.related .service-grid, .service-grid--fit { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.service-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .service-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .service-grid--4 { grid-template-columns: minmax(0, 1fr); } }
.related h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person {
  display: grid; align-content: start; gap: 12px;
  min-width: 0;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.person__mono {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700);
  font-weight: 700; font-size: 1.25rem; letter-spacing: .03em;
}
.person__mono--coral { background: var(--coral-100); color: var(--coral-700); }
.person__role { color: var(--teal-700); font-weight: 600; font-size: .95rem; }
.person p { color: var(--ink-2); font-size: .98rem; }
.person--lead { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: center; }
.person__photo {
  display: block; width: 104px; height: 104px; border-radius: 999px; overflow: hidden;
  background: var(--teal-50);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--teal-100);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__body { display: grid; gap: 10px; min-width: 0; }

/* Timeline */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--teal-100); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 26px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 999px; background: var(--white); border: 3px solid var(--teal-500); }
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { font-size: .9rem; font-weight: 700; color: var(--coral-700); }
.timeline__what { color: var(--ink); font-weight: 600; }
.timeline__where { color: var(--ink-2); font-size: .98rem; }

/* Search page */
.search-page-form { display: flex; gap: 10px; max-width: 640px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field .icon { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px 12px 50px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--white);
  font-size: 1.08rem;
}
.search-field input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); outline: none; }
.results { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.result a {
  display: grid; gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.result a:hover, .result a.is-active { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.result__section { font-size: .8rem; font-weight: 650; color: var(--teal-600); }
.result__title { font-weight: 650; font-size: 1.05rem; }
.result__snippet { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.result mark { background: var(--coral-100); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.results__empty { margin-top: 24px; color: var(--muted); }

/* 404 */
.notfound { text-align: center; display: grid; gap: 18px; justify-items: center; }
.notfound__code { font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 800; letter-spacing: -.04em; color: var(--teal-200); line-height: 1; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--teal-950); color: var(--teal-100); padding-top: clamp(48px, 6vw, 80px); font-size: .97rem; }
.site-footer a { color: var(--teal-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer__grid > * { min-width: 0; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__mark { color: var(--teal-300); }
.footer__brand .brand__sub { color: var(--teal-200); }
.footer__brand p { color: var(--teal-100); max-width: 34em; }
.footer__address { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.footer__address .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--teal-300); }
.footer__title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer__links { list-style: none; display: grid; gap: 9px; }
.footer__icons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__icons a {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: var(--teal-100);
}
.footer__icons a:hover { background: var(--coral-600); color: #fff; text-decoration: none; }
.footer__icons .icon { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem; color: var(--teal-200);
}
.footer__bottom p { color: var(--teal-200); max-width: 60em; }

/* ---------- 19. Dialogs ---------- */
dialog {
  padding: 0; border: 0;
  background: transparent;
  color: var(--ink);
  max-width: none; max-height: none;
}
dialog::backdrop { background: rgba(8, 43, 51, .56); }
.dialog__panel {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.dialog__title { font-size: 1.12rem; font-weight: 700; }
.dialog__body { min-height: 0; overflow: auto; padding: 22px 24px 26px; display: grid; gap: 18px; align-content: start; }

/* Search dialog */
dialog.search-dialog { margin: min(10vh, 88px) auto auto; }
.search-dialog .dialog__panel { width: min(720px, calc(100vw - 24px)); grid-template-rows: auto minmax(0, 1fr); }
.search-dialog__bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.search-dialog__bar .icon-search { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-dialog__bar input {
  flex: 1; min-width: 0;
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  font-size: 1.12rem;
}
.search-dialog__bar input:focus { outline: none; }
.search-dialog__bar input::-webkit-search-cancel-button { display: none; }
.search-dialog .dialog__body { padding: 16px 18px 20px; }
.search-dialog .results { margin-top: 0; gap: 8px; }
.search-dialog .result a { padding: 14px 16px; }
.suggest__title { font-size: .85rem; font-weight: 700; color: var(--teal-600); margin-bottom: 10px; }
.suggest .chips { gap: 8px; }
.suggest .chip { font-size: .9rem; padding: 7px 12px; cursor: pointer; }
.kbd-hint { font-size: .82rem; color: var(--muted); }

/* Vizitkart */
.vcard .dialog__panel { width: min(470px, calc(100vw - 32px)); }
.vcard__brand { display: flex; align-items: center; gap: 14px; }
.vcard__brand .brand__mark { width: 52px; height: 52px; color: var(--teal-700); }
.vcard__name { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.vcard__role { color: var(--muted); font-size: .95rem; }
.vcard__rows { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.vcard__rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vcard__rows .badge { width: 40px; height: 40px; border-radius: 12px; }
.vcard__label { display: grid; line-height: 1.35; min-width: 0; }
.vcard__label b { font-weight: 650; }
.vcard__label span { color: var(--muted); font-size: .9rem; }

/* Accessibility card */
.a11y .dialog__panel { width: min(460px, calc(100vw - 32px)); }
.a11y__group { display: grid; gap: 10px; }
.a11y__label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.a11y__label .icon { width: 20px; height: 20px; color: var(--teal-600); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--sand-100); }
.seg button {
  min-height: 42px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-weight: 650; color: var(--ink-2);
}
.seg button[aria-pressed="true"] { background: var(--white); color: var(--teal-800); box-shadow: var(--shadow-sm); }
.seg button:nth-child(1) { font-size: .9rem; }
.seg button:nth-child(2) { font-size: 1rem; }
.seg button:nth-child(3) { font-size: 1.12rem; }
.seg button:nth-child(4) { font-size: 1.24rem; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  font-weight: 600;
}
.switch-row .a11y__label { font-weight: 600; }
.switch {
  position: relative; flex: none;
  width: 46px; height: 26px; border-radius: 999px;
  background: var(--line-2);
  transition: background-color .2s ease;
}
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.switch-row[aria-pressed="true"] .switch { background: var(--teal-600); }
.switch-row[aria-pressed="true"] .switch::after { transform: translateX(20px); }

/* Drawer (mobile menu) */
dialog.drawer { margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.drawer__panel {
  width: 100%; height: 100%;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--page-bg);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.drawer__body { min-height: 0; overflow: auto; padding: 12px var(--gutter) 40px; display: grid; gap: 22px; align-content: start; }
.drawer-nav { list-style: none; display: grid; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav > li > a, .drawer-nav summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 2px;
  color: var(--ink); font-size: 1.1rem; font-weight: 650;
  text-decoration: none; list-style: none; cursor: pointer;
}
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary .icon { width: 20px; height: 20px; transition: transform .2s ease; }
.drawer-nav details[open] summary .icon { transform: rotate(180deg); }
.drawer-sub { list-style: none; display: grid; gap: 2px; padding: 0 0 14px; }
.drawer-sub__title { margin: 10px 0 4px; font-size: .8rem; font-weight: 700; color: var(--teal-600); }
.drawer-sub a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; text-decoration: none; }
.drawer-sub a:hover, .drawer-sub a[aria-current="page"] { background: var(--teal-50); color: var(--teal-800); }
.drawer__tools { display: grid; gap: 14px; }

/* ---------- 20. Responsive ---------- */
@media (min-width: 721px) {
  .mainbar__actions .btn-cta { padding-inline: 18px; }
  .mainbar__actions .btn-cta .icon { display: none; }
}
@media (max-width: 1260px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .mainbar__actions, .site-nav + .mainbar__actions { margin-left: auto; }
}
@media (max-width: 1420px) {
  html[data-text="lg"] .site-nav { display: none; }
  html[data-text="lg"] .menu-toggle { display: inline-grid; }
  html[data-text="lg"] .mainbar__actions { margin-left: auto; }
}
@media (max-width: 1580px) {
  html[data-text="xl"] .site-nav { display: none; }
  html[data-text="xl"] .menu-toggle { display: inline-grid; }
  html[data-text="xl"] .mainbar__actions { margin-left: auto; }
}
@media (max-width: 1740px) {
  html[data-text="xxl"] .site-nav { display: none; }
  html[data-text="xxl"] .menu-toggle { display: inline-grid; }
  html[data-text="xxl"] .mainbar__actions { margin-left: auto; }
}

@media (max-width: 1023px) {
  .topbar { display: none; }
  .hero__grid, .doctor, .lab, .regions, .contact-band, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: stretch; max-width: none; aspect-ratio: auto; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual__art { display: none; }
  .float-card { position: relative; inset: auto; width: auto; box-shadow: var(--shadow); }
  .float-card--journey { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .steps::before { display: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body.has-cta { padding-bottom: 84px; }
  .mainbar__actions .btn-cta {
    position: fixed; z-index: 70;
    left: 12px; right: 12px;
    bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    margin: 0;
    min-height: 54px;
    box-shadow: 0 14px 30px -12px rgba(8, 43, 51, .55);
  }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { font-size: .72rem; }
  .paths, .grid-2, .grid-3, .principles, .video-grid, .field-row, .check-list--2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 26px 64px; min-height: 48px; }
  .step::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 6px; width: 2px; background: var(--teal-100); }
  .step:last-child::after { display: none; }
  .hero-visual { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .person--lead { grid-template-columns: minmax(0, 1fr); }
  .team-grid, .service-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .faq__item summary { padding-right: 46px; font-size: 1.02rem; }
  .faq__a { padding-right: 0; }
  .vcard__rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .vcard__rows li > :last-child { grid-column: 2; justify-self: start; }
  .section-head--row { align-items: start; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .mainbar__inner { gap: 8px; }
  .icon-btn { width: 42px; height: 42px; }
}

/* ---------- 21. Accessibility preferences ---------- */
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
html[data-text="xxl"] { font-size: 137.5%; }

html[data-contrast="on"] {
  --ink: #000;
  --ink-2: #111;
  --muted: #262626;
  --line: #6b6b6b;
  --line-2: #4a4a4a;
  --teal-700: #00414d;
  --teal-600: #004a57;
  --teal-50: #eaf4f4;
  --page-bg: #fff;
  --sand-50: #fff;
  --sand-100: #f2f2f2;
}
html[data-contrast="on"] a { text-decoration: underline; }
html[data-underline="on"] a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 22. Print ---------- */
@media print {
  .site-header, .site-footer, dialog, .toc, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; }
  .page-hero, .hero { background: none; }
  a { color: #000; }
}
