:root {
  --bg: #F4F1E9;
  --surface: #FFFFFF;
  --surface-warm: #FBF8F2;
  --surface-sage: #E8EEE2;
  --surface-blue: #E6F1F2;
  --primary: #3E5C49;
  --primary-deep: #2F4739;
  --primary-soft: #7E9675;
  --sage: #A7B692;
  --sage-light: #DCE5D2;
  --accent: #D48745;
  --accent-soft: #F3E3D3;
  --text: #222A25;
  --muted: #647069;
  --line: #D8DDD5;
  --danger: #8B2E23;
  --focus: #D76A16;
  --shadow-sm: 0 10px 30px rgba(47,71,57,.08);
  --shadow-md: 0 22px 60px rgba(47,71,57,.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 34px;
  --container: 1180px;
  --header-height: 86px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-contrast="high"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-warm: #FFFFFF;
  --surface-sage: #FFFFFF;
  --surface-blue: #FFFFFF;
  --primary: #000000;
  --primary-deep: #000000;
  --primary-soft: #000000;
  --sage: #FFFFFF;
  --sage-light: #FFFFFF;
  --accent: #8B3100;
  --accent-soft: #FFFFFF;
  --text: #000000;
  --muted: #111111;
  --line: #000000;
  --focus: #C43B00;
  --shadow-sm: none;
  --shadow-md: none;
}

html[data-text-scale="small"] { font-size: 93.75%; }
html[data-text-scale="large"] { font-size: 112.5%; }

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  scroll-padding-bottom: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(167,182,146,.28), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(230,241,242,.82), transparent 30%);
}
html[data-contrast="high"] body::before { display: none; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, input, summary, a { scroll-margin-block: calc(var(--header-height) + 18px) 110px; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 74px 0; }
.section-shell { padding: 20px 0 58px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 999;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.network-status {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 10px 16px;
  text-align: center;
  background: #F4D7A1;
  color: #3E2E13;
  font-size: .9rem;
  font-weight: 750;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}
.header-card {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 10px 8px 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(62,92,73,.11);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: max-content;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}
.brand strong { display: block; color: var(--primary-deep); font-size: 1rem; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.2; margin-top: 2px; }
.desktop-nav { margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.desktop-nav a { text-decoration: none; font-size: .86rem; font-weight: 700; color: #49534d; }
.desktop-nav a:hover { color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-call {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}
.display-settings { position: relative; }
.display-settings summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--primary-deep);
  font-weight: 850;
  cursor: pointer;
}
.display-settings summary::-webkit-details-marker { display: none; }
.display-settings__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.display-settings__row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.display-settings__row button,
.contrast-toggle { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-warm); color: var(--text); font-weight: 750; cursor: pointer; }
.contrast-toggle { width: 100%; padding-inline: 10px; }

.hero-card {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(34px,5vw,74px);
  align-items: center;
  padding: clamp(34px,5vw,72px);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(62,92,73,.10);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-sage);
  color: var(--primary-deep);
  font-size: .84rem;
  font-weight: 850;
}
.privacy-badge > span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
h1,h2,h3 { margin: 0; color: var(--primary-deep); }
h1,h2 { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.035em; }
h1 { margin-top: 22px; font-size: clamp(2.85rem,5.2vw,5rem); line-height: .98; max-width: 760px; }
h2 { font-size: clamp(2.15rem,3.8vw,3.75rem); line-height: 1.02; }
h3 { font-size: 1.2rem; line-height: 1.25; }
.hero-lead { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem,1.4vw,1.22rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-deep); }
.button-secondary { background: rgba(255,255,255,.72); color: var(--primary-deep); border-color: rgba(62,92,73,.22); }
.button-light { background: #fff; color: var(--primary-deep); }
.button-large { min-height: 56px; padding-inline: 24px; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 34px 0 0; padding: 0; }
.hero-facts li { padding-top: 14px; border-top: 1px solid var(--line); }
.hero-facts strong { display: block; color: var(--primary-deep); font-size: .94rem; }
.hero-facts span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }

.hero-visual {
  position: relative;
  min-height: 540px;
  margin: 0;
  isolation: isolate;
}
.visual-shape {
  position: absolute;
  inset: 4% 0 0 5%;
  border-radius: 46% 54% 44% 56% / 40% 38% 62% 60%;
  background: linear-gradient(145deg, var(--surface-blue), var(--sage-light));
  transform: rotate(-2deg);
}
.doctor-photo-wrap {
  position: absolute;
  inset: 1% 3% 7% 5%;
  overflow: hidden;
  border-radius: 45% 55% 47% 53% / 36% 39% 61% 64%;
  background: var(--surface-sage);
  box-shadow: 0 20px 50px rgba(47,71,57,.12);
}
.doctor-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -70px 90px rgba(47,71,57,.08);
}
.doctor-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 36%;
  transform: scale(1.015);
}
.doctor-card__caption {
  position: absolute;
  left: 7%;
  right: auto;
  bottom: 2.5%;
  z-index: 3;
  width: min(80%,420px);
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,71,57,.76), rgba(47,71,57,.64));
  color: #fff;
  box-shadow: 0 18px 45px rgba(31,49,39,.16);
  backdrop-filter: blur(12px) saturate(.9);
  -webkit-backdrop-filter: blur(12px) saturate(.9);
}
.doctor-card__caption strong,.doctor-card__caption span,.doctor-card__caption small { display: block; }
.doctor-card__caption strong { font-size: 1.08rem; }
.doctor-card__caption span { margin-top: 3px; color: rgba(255,255,255,.84); }
.doctor-card__caption small { margin-top: 6px; color: rgba(255,255,255,.66); }

.intro-band { padding: 0 0 32px; }
.intro-band__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 22px 28px; background: var(--surface-sage); border-radius: 24px; }
.intro-band p { margin: 0; color: var(--primary-deep); font-family: ui-serif, Georgia, serif; font-size: 1.25rem; line-height: 1.4; }
.intro-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.intro-points span { padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.74); color: var(--primary-deep); font-size: .82rem; font-weight: 800; }

.install-section { padding: 0 0 20px; }
.install-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; background: var(--primary); color: #fff; border-radius: 22px; }
.install-card h2 { color: #fff; font-family: inherit; font-size: 1.15rem; letter-spacing: 0; }
.install-card p { margin: 3px 0 0; color: rgba(255,255,255,.74); font-size: .9rem; }
.install-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); font-size: 1.5rem; }
.install-dismiss { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }

.section-heading { max-width: 700px; margin-bottom: 34px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: end; }
.section-heading--split > p { max-width: 560px; justify-self: end; }
.section-heading p,.doctor-credentials__copy > p,.credentials-copy-note p { color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 13px; color: var(--primary); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.services-section { background: rgba(255,255,255,.58); }
.services-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; }
.service-feature { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; overflow: hidden; border-radius: 30px; background: var(--primary); color: #fff; }
.service-feature::before { content:""; position:absolute; width:240px; height:240px; border-radius:50%; right:-70px; top:-60px; border:46px solid rgba(255,255,255,.08); }
.service-feature h3 { color: #fff; font-family: ui-serif, Georgia, serif; font-size: 2rem; }
.service-feature p { margin: 12px 0 18px; color: rgba(255,255,255,.75); max-width: 460px; }
.service-feature a { color: #fff; font-weight: 850; text-decoration: none; }
.service-icon { position: absolute; left: 32px; top: 28px; color: rgba(255,255,255,.62); font-weight: 900; letter-spacing: .08em; }
.service-stack { display: grid; gap: 14px; }
.service-mini { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.service-mini > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sage); color: var(--primary); font-size: .82rem; font-weight: 900; }
.service-mini h3 { margin-top: 2px; }
.service-mini p { margin: 7px 0 0; color: var(--muted); font-size: .95rem; }
.medical-note { margin: 24px 0 0; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: #4E3B2A; border-radius: 0 14px 14px 0; }
.emergency-link { font-weight: 900; color: #7A261F; }

.doctor-section { background: var(--surface-warm); }
.doctor-credentials { display: grid; grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr); gap: clamp(40px,7vw,90px); align-items: start; }
.doctor-credentials__copy h2 { max-width: 610px; }
.doctor-role { margin: 8px 0 22px !important; color: var(--primary) !important; font-size: 1.12rem; font-weight: 800; }
.doctor-facts { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.doctor-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doctor-facts dt { color: var(--muted); font-size: .85rem; }
.doctor-facts dd { margin: 0; color: var(--primary-deep); font-weight: 800; }
.credentials-copy-note { margin: 28px 0 22px; padding: 22px; border-radius: 20px; background: var(--surface-sage); }
.credentials-copy-note h3 { margin-bottom: 8px; }
.credentials-copy-note p { margin: 0; font-size: .94rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 900; text-decoration: none; }
.credentials-gallery-wrap { position: sticky; top: calc(var(--header-height) + 28px); padding: 24px; border-radius: 30px; background: var(--primary-deep); box-shadow: var(--shadow-md); }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; color: #fff; }
.gallery-head span { font-family: ui-serif, Georgia, serif; font-size: 1.55rem; font-weight: 700; }
.gallery-head small { color: rgba(255,255,255,.62); }
.documents-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.document-thumb { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 5.05; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.document-thumb img { width: 100%; height: 100%; object-fit: cover; }
.document-thumb span { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 6px 7px; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--primary-deep); font-size: .68rem; font-weight: 850; text-align: left; }
.gallery-note { margin: 14px 0 0; color: rgba(255,255,255,.62); font-size: .78rem; }

.process-section { overflow: hidden; }
.process-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(36px,7vw,90px); align-items: center; }
.process-visual { position: relative; min-height: 390px; border-radius: 30px; overflow: hidden; background: linear-gradient(150deg, var(--surface-blue), var(--surface-sage)); }
.process-circle { position: absolute; border-radius: 50%; border: 42px solid rgba(62,92,73,.13); }
.process-circle--one { width: 250px; height: 250px; left: -35px; bottom: -20px; }
.process-circle--two { width: 180px; height: 180px; right: -25px; top: -25px; border-color: rgba(212,135,69,.16); }
.process-callout { position: absolute; left: 28px; right: 28px; bottom: 28px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.86); color: var(--primary-deep); font-family: ui-serif, Georgia, serif; font-weight: 700; font-size: 1.25rem; }
.process-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--accent); font-weight: 900; letter-spacing: .06em; }
.process-list h3 { margin-bottom: 5px; }
.process-list p { margin: 0; color: var(--muted); }

.faq-section { background: var(--primary-deep); color: #fff; }
.section-heading--light h2 { color: #fff; }
.section-heading--light .eyebrow { color: #C8D8BE; }
.section-heading--light p { color: rgba(255,255,255,.67); }
.faq-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.045); will-change: height; }
.faq-list summary { min-height: 78px; display: grid; grid-template-columns: 1fr 44px; gap: 16px; align-items: center; padding: 17px 18px 17px 22px; cursor: pointer; list-style: none; color: #fff; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0; padding: 0 72px 22px 22px; color: rgba(255,255,255,.7); transform-origin: top; }
.faq-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); }
.faq-icon::before,.faq-icon::after { content:""; position:absolute; width:14px; height:2px; border-radius:999px; background:#D6E7CA; }
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }

.callback-section { background: var(--surface-warm); }
.callback-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px,6vw,72px); padding: clamp(28px,5vw,54px); border-radius: 30px; background: var(--surface-blue); box-shadow: var(--shadow-sm); }
.callback-copy h2 { max-width: 560px; }
.callback-copy > p { color: var(--muted); max-width: 560px; }
.call-direct { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(62,92,73,.18); }
.call-direct span { display: block; color: var(--muted); font-size: .84rem; }
.call-direct a { display: inline-block; margin-top: 4px; color: var(--primary-deep); font-family: ui-serif, Georgia, serif; font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 700; text-decoration: none; }
.callback-form { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.callback-form label { display: block; margin: 0 0 8px; color: var(--primary-deep); font-weight: 850; }
.callback-form input { width: 100%; min-height: 54px; margin-bottom: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-warm); color: var(--text); }
.callback-form input:focus { border-color: var(--primary); }
.callback-form .field-help { display: block; margin-bottom: 18px; color: var(--muted); }
.callback-form .button { width: 100%; margin-top: 14px; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.form-consent { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.form-status { min-height: 24px; margin: 10px 0 0; font-size: .88rem; font-weight: 800; }
.form-status.success { color: var(--primary); }
.form-status.error { color: var(--danger); }
.turnstile-slot { margin-top: 12px; }

.contact-band { padding: 24px 0; background: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 20px; }
.contact-grid > div { padding-right: 18px; border-right: 1px solid rgba(47,71,57,.18); }
.contact-grid > div:last-child { border-right: 0; }
.contact-label { display: block; color: rgba(47,71,57,.74); font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.contact-grid strong,.contact-grid a { display: block; margin-top: 4px; color: var(--primary-deep); font-weight: 850; text-decoration: none; }

.site-footer { padding: 46px 0 calc(46px + var(--safe-bottom)); background: #24342B; color: #fff; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.35fr .85fr; gap: 38px; align-items: start; }
.footer-grid p { margin: 7px 0 0; color: rgba(255,255,255,.62); font-size: .88rem; }
.legal-warning strong { color: #fff; }
.footer-meta { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-link { display: inline-block; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; opacity: .88; }
.footer-link:hover { opacity: 1; }

.mobile-call-bar { display: none; }

.document-lightbox { width: min(94vw,860px); max-height: 92vh; padding: 22px; border: 0; border-radius: 24px; background: #151A17; color: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.35); }
.document-lightbox::backdrop,.install-dialog::backdrop { background: rgba(14,19,16,.76); backdrop-filter: blur(3px); }
.document-lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.document-lightbox img { max-height: 76vh; width: auto; border-radius: 8px; background: #fff; }
.document-lightbox figcaption { color: rgba(255,255,255,.72); font-size: .9rem; }
.lightbox-close,.lightbox-nav,.dialog-close { border: 0; cursor: pointer; }
.lightbox-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; z-index: 4; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.25rem; z-index: 3; }
.lightbox-nav--prev { left: 12px; }
.lightbox-nav--next { right: 12px; }
.install-dialog { width: min(92vw,520px); border: 0; border-radius: 24px; padding: 28px; }
.install-dialog h2 { font-family: inherit; letter-spacing: -.02em; font-size: 1.6rem; }
.dialog-close { position: absolute; right: 12px; top: 10px; background: transparent; font-size: 1.5rem; }

#site-content { display: none; }
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.gate-card {
  background-color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.gate-card h2 { margin: 0 0 1.5rem; font-size: 1.5rem; color: #1c1e21; line-height: 1.3; }
.gate-card label { display: none; }
.gate-code-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.gate-code-input {
  width: 50px;
  height: 60px;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-code-input:focus {
  border-color: #3E5C49;
  box-shadow: 0 0 0 2px rgba(62, 92, 73, 0.2);
  outline: none;
}
@media (min-width: 420px) {
  .gate-code-input { width: 60px; height: 70px; }
}
.gate-card button {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background-color: #3E5C49;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.gate-card .password-error { color: #d93025; margin-top: 1rem; min-height: 1.2em; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-card { justify-content: space-between; }
  .hero-card { grid-template-columns: 1fr 1fr; padding: 36px; min-height: auto; }
  h1 { font-size: clamp(2.7rem,7vw,4.25rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 9px; }
  .hero-facts li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
  .intro-band__inner,.section-heading--split,.services-layout,.doctor-credentials,.process-layout,.faq-layout,.callback-card { grid-template-columns: 1fr; }
  .section-heading--split > p { justify-self: start; }
  .credentials-gallery-wrap { position: static; }
  .documents-gallery { grid-template-columns: repeat(4,1fr); }
  .process-visual { min-height: 280px; }
  .faq-layout { gap: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --header-height: 68px; }
  body { font-size: 16px; padding-bottom: calc(78px + var(--safe-bottom)); }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 52px 0; }
  .section-shell { padding: 10px 0 42px; }
  .site-header { padding: 8px 0 5px; }
  .header-card { min-height: 56px; padding: 6px 7px 6px 9px; border-radius: 17px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 1.4rem; }
  .brand strong { font-size: .9rem; }
  .brand small { display: none; }
  .header-call { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .header-call__label { display: none; }
  .display-settings summary { width: 40px; height: 40px; }

  .hero-card {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px 18px 18px;
    border-radius: 24px;
  }
  h1 {
    margin-top: 16px;
    max-width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
    line-height: 1.01;
    letter-spacing: -.03em;
    text-wrap: balance;
  }
  h2 { font-size: clamp(2rem,9vw,2.9rem); }
  .privacy-badge { max-width: 100%; padding: 9px 12px; font-size: .8rem; }
  .hero-lead { max-width: 100%; margin-top: 16px; font-size: 1rem; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .hero-actions .button { width: 100%; min-width: 0; padding-inline: 16px; }
  .hero-facts { margin-top: 22px; }
  .hero-facts li { grid-template-columns: minmax(88px, 98px) minmax(0, 1fr); gap: 10px; }
  .hero-facts strong, .hero-facts span { min-width: 0; }
  .hero-visual { min-height: 370px; }
  .visual-shape { inset: 5% 0 0 3%; }
  .doctor-photo-wrap { inset: 1% 2% 8% 3%; }
  .doctor-photo-wrap img { object-position: 50% 34%; }
  .doctor-card__caption { left: 4%; right: auto; bottom: 2%; width: 90%; padding: 14px 15px; }

  .intro-band { padding-bottom: 18px; }
  .intro-band__inner { gap: 18px; padding: 20px; }
  .intro-band p { font-size: 1.06rem; }
  .intro-points { justify-content: flex-start; }
  .intro-points span { font-size: .76rem; }

  .install-card { grid-template-columns: auto 1fr; }
  .install-card .button { grid-column: 1 / -1; }

  .section-heading { margin-bottom: 26px; }
  .section-heading--split { gap: 14px; }
  .eyebrow { margin-bottom: 10px; }

  .service-feature { min-height: 340px; padding: 26px 22px; }
  .service-feature h3 { font-size: 1.7rem; }
  .service-icon { left: 22px; top: 20px; }
  .service-mini { grid-template-columns: 44px 1fr; gap: 13px; padding: 20px 18px; }

  .doctor-credentials { gap: 30px; }
  .doctor-facts div { grid-template-columns: 1fr; gap: 2px; }
  .credentials-gallery-wrap { margin-inline: -2px; padding: 16px; border-radius: 22px; }
  .gallery-head { align-items: center; }
  .gallery-head span { font-size: 1.3rem; }
  .gallery-head small { font-size: .72rem; }
  .documents-gallery { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .document-thumb { border-radius: 12px; }

  .process-layout { gap: 28px; }
  .process-visual { min-height: 220px; }
  .process-callout { left: 18px; right: 18px; bottom: 18px; padding: 14px; font-size: 1.05rem; }
  .process-list li { grid-template-columns: 42px 1fr; gap: 12px; }

  .faq-section .section-heading { text-align: center; margin-inline: auto; }
  .faq-list summary { min-height: 68px; grid-template-columns: 1fr 38px; padding: 15px 12px 15px 16px; }
  .faq-list details p { padding: 0 16px 18px; }
  .faq-icon { width: 34px; height: 34px; }

  .callback-card { padding: 22px 18px; border-radius: 24px; }
  .callback-copy { text-align: center; }
  .callback-form { padding: 20px 16px; }
  .call-direct { text-align: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 13px; }
  .contact-grid > div { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid rgba(47,71,57,.18); }
  .contact-grid > div:last-child { border-bottom: 0; padding-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-meta { grid-column: auto; }

  .mobile-call-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(9px + var(--safe-bottom));
    z-index: 90;
    display: grid;
    grid-template-columns: 1.45fr .7fr;
    gap: 8px;
    padding: 8px;
    border-radius: 21px;
    background: rgba(36,52,43,.96);
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
  }
  .mobile-call-bar a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 15px; text-decoration: none; font-weight: 900; }
  .mobile-call-bar__call { background: #B9D39E; color: #1C3528; }
  .mobile-call-bar__form { border: 1px solid rgba(255,255,255,.18); color: #fff; }

  .document-lightbox { padding: 16px 8px; }
  .lightbox-nav { top: auto; bottom: 10px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (forced-colors: active) {
  .button,.header-call,.privacy-badge,.intro-points span,.mobile-call-bar a { border: 1px solid ButtonText; }
}


@media (max-width: 430px) {
  .container { width: calc(100% - 20px); }
  .hero-card { padding: 20px 16px 16px; border-radius: 22px; }
  h1 { font-size: clamp(2.15rem, 10.2vw, 2.65rem); }
  .hero-lead { font-size: .98rem; }
  .hero-facts li { grid-template-columns: 88px minmax(0, 1fr); }
  .hero-visual { min-height: 350px; }
  .doctor-card__caption { width: 92%; }
}

/* =========================================================
   MAIN TREATMENT DIRECTIONS
   ========================================================= */

.directions-section {
  background: var(--surface-warm);
  border-top: 1px solid rgba(62, 92, 73, .08);
  border-bottom: 1px solid rgba(62, 92, 73, .08);
}

.directions-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.directions-heading h2 {
  max-width: 680px;
  margin: 8px 0 0;
}

.directions-heading > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.direction-card {
  position: relative;
  min-width: 0;
  min-height: 285px;

  display: flex;
  flex-direction: column;

  padding: 24px 22px;

  background: var(--surface);
  border: 1px solid rgba(62, 92, 73, .10);
  border-radius: 24px;

  box-shadow: var(--shadow-sm);

  overflow: hidden;
}

.direction-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;

  width: 160px;
  height: 160px;

  border-radius: 50%;
  background: var(--surface-sage);

  opacity: .48;
  pointer-events: none;
}

.direction-card--detox {
  background: var(--primary);
  border-color: transparent;
  color: #fff; /* Загальний колір тексту для картки */
}

.direction-card--detox::after { background: rgba(255,255,255,.12); }

/* Застосовуємо білий колір до всіх текстових елементів всередині */
.direction-card--detox .direction-link {
  color: #fff;
}

/* Робимо другорядний текст напівпрозорим для ієрархії */
.direction-card--detox .direction-number,
.direction-card--detox .direction-label {
  color: rgba(255,255,255,.75);
}

.direction-card--detox h3,
.direction-card--detox p {
  color: #f0f2f5;
}

.direction-card--therapy { background: var(--surface-blue); }
.direction-card--therapy .direction-link {
  /* Посилання на синій картці має бути темним для контрасту */
  color: var(--primary);
}

.direction-card__top {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 32px;
}

.direction-number {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--primary);
}

.direction-label {
  font-size: .76rem;
  font-weight: 750;
  color: var(--muted);
  text-align: right;
}

.direction-card__body {
  position: relative;
  z-index: 1;
}

.direction-card h3 {
  margin: 0;

  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.7rem, 7vw, 2.25rem);
  line-height: 1.05;

  color: var(--primary-deep);
}

.direction-card p {
  max-width: 520px;
  margin: 14px 0 24px;

  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
}

.direction-link {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: auto;

  color: var(--primary);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 850;
}

.direction-link span {
  transition: transform .2s ease;
}

.direction-link:hover span {
  transform: translateX(4px);
}

.directions-disclaimer {
  max-width: 820px;

  margin: 24px 0 0;
  padding-left: 16px;

  border-left: 3px solid var(--sage);

  color: var(--muted);
  font-size: .88rem;
}


/* Tablet */
@media (min-width: 680px) {
  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .direction-card {
    min-height: 310px;
    padding: 28px;
  }
}


/* Desktop */
@media (min-width: 920px) {
  .directions-heading {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: end;
    gap: 60px;

    margin-bottom: 38px;
  }

  .directions-heading > p {
    justify-self: end;
  }

  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .direction-card {
    min-height: 330px;
    padding: 32px;
  }

  .direction-card h3 {
    font-size: 2.15rem;
  }
}


/* Accessibility: high contrast */
html[data-contrast="high"] .direction-card {
  border: 2px solid var(--text);
  box-shadow: none;
}

html[data-contrast="high"] .direction-card::after {
  display: none;
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .direction-link span {
    transition: none;
  }
}

/* Public launch: disable temporary PIN gate */
#password-gate {
  display: none !important;
}

#site-content {
  display: block !important;
}