/* =========================================================
   Alyans Clinic — site styles
   Identity: the navy of the logo, hospital-wayfinding colour codes
   for the medical directions and a quiet şəbəkə (Şəki lattice) motif.
   Type: Fira Sans (full Azerbaijani coverage).
   ========================================================= */

:root {
  --navy-950: #040C3D;
  --navy-900: #06135C;
  --navy-800: #0A1C7C;
  --navy-700: #1330A6;
  --navy-600: #2447CC;
  --navy-200: #C9D3F4;
  --navy-100: #E4E9FB;
  --navy-50: #F1F4FD;

  --ink: #0B1233;
  --text: #283052;
  --muted: #555F82;
  --line: #E1E6F1;
  --line-2: #CBD2E4;
  --canvas: #F5F7FC;
  --paper: #FFFFFF;

  --live: #0E9F6E;
  --live-ink: #0A6B4B;
  --live-bg: #E2F5EC;
  --alert: #BF2B3A;
  --alert-bg: #FDEEF0;
  --wa: #128C4B;
  --wa-dark: #0E7640;
  --guest-bg: #FFF3D9;
  --guest-ink: #7E4B00;

  --t-azure: #2459DB;   --t-azure-bg: #EAF0FF;
  --t-violet: #6647D1;  --t-violet-bg: #F0ECFF;
  --t-rose: #BE3864;    --t-rose-bg: #FDEEF3;
  --t-emerald: #0B7F62; --t-emerald-bg: #E3F5EF;
  --t-amber: #A45F00;   --t-amber-bg: #FDF2DE;

  --tone: var(--navy-800);
  --tone-bg: var(--navy-50);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 70, .06), 0 1px 1px rgba(10, 20, 70, .04);
  --shadow: 0 12px 32px -14px rgba(10, 24, 90, .24), 0 2px 6px rgba(10, 24, 90, .06);
  --shadow-lg: 0 34px 70px -28px rgba(6, 18, 80, .42);

  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --dock-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='rgb(255,255,255)' stroke-opacity='.08' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l12.4 12.4M56 0L43.6 12.4M0 56l12.4-12.4M56 56L43.6 43.6'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='rgb(10,28,124)' stroke-opacity='.07' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l12.4 12.4M56 0L43.6 12.4M0 56l12.4-12.4M56 56L43.6 43.6'/%3E%3C/g%3E%3C/svg%3E");
}

.tone-azure   { --tone: var(--t-azure);   --tone-bg: var(--t-azure-bg); }
.tone-violet  { --tone: var(--t-violet);  --tone-bg: var(--t-violet-bg); }
.tone-rose    { --tone: var(--t-rose);    --tone-bg: var(--t-rose-bg); }
.tone-emerald { --tone: var(--t-emerald); --tone-bg: var(--t-emerald-bg); }
.tone-amber   { --tone: var(--t-amber);   --tone-bg: var(--t-amber-bg); }
.tone-navy    { --tone: var(--navy-800);  --tone-bg: var(--navy-50); }

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }

html.is-locked { overflow: hidden; }
html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.uwa-pause) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; overflow-wrap: break-word; }
strong { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-size: .9em; }
mark { background: #FFE58A; color: var(--ink); border-radius: 3px; padding: 0 2px; }
::selection { background: var(--navy-100); color: var(--ink); }

:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 10px;
  background: var(--navy-900); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- small components ---------- */
.badge {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--tone-bg); color: var(--tone);
}
.badge .icon { width: 20px; height: 20px; }
.badge--sm { width: 28px; height: 28px; border-radius: 9px; }
.badge--sm .icon { width: 16px; height: 16px; }
.badge--glass { background: rgba(255, 255, 255, .12); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  color: var(--tone);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--navy-50); color: var(--navy-800);
  font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.chip .icon { width: 15px; height: 15px; }
.chip--live { background: var(--live-bg); color: var(--live-ink); border-color: rgba(14, 159, 110, .25); }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.chip--guest { background: var(--guest-bg); color: var(--guest-ink); border-color: rgba(164, 95, 0, .2); }
.chip--link { text-decoration: none; }
.chip--link:hover { background: var(--navy-100); color: var(--navy-900); }
.chip--pick {
  background: var(--paper); border-color: var(--line-2); color: var(--text);
  font-weight: 500; font-size: .88rem; padding: 6px 13px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip--pick:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-900); }
.chip--pick.is-active, .chip--pick[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip--head { background: rgba(255, 255, 255, .75); border-color: var(--line); color: var(--text); font-size: .86rem; padding: 6px 12px; white-space: normal; max-width: 100%; border-radius: 16px; line-height: 1.35; }
.chip--head .icon { color: var(--tone); }
.chip--head.chip--live { background: var(--live-bg); color: var(--live-ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy-800); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy-900); }
.link-arrow:hover .icon { transform: translateX(4px); }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--navy-900);
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.btn-ghost .icon { width: 19px; height: 19px; color: var(--navy-700); }
.btn-ghost:hover { border-color: var(--navy-200); background: var(--navy-50); color: var(--navy-900); }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  color: var(--navy-800); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.link-btn .icon { width: 18px; height: 18px; }
.link-btn:hover { background: var(--navy-50); color: var(--navy-900); }
.link-btn--light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.link-btn--light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 50%;
  background: var(--navy-50); color: var(--navy-800);
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.icon-btn .icon { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--navy-800); color: #fff; }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .icon { width: 17px; height: 17px; }
.icon-btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.icon-btn--glass:hover { background: #fff; color: var(--navy-900); }
.icon-btn--whatsapp:hover { background: var(--wa); }

.contact-icons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.contact-icons--lg .icon-btn { width: 52px; height: 52px; }
.contact-icons--lg .icon-btn .icon { width: 24px; height: 24px; }
.contact-icons--footer .icon-btn,
.contact-icons--hero .icon-btn { border-color: var(--line); }
.contact-icons--footer .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.contact-icons--footer .icon-btn:hover { background: #fff; color: var(--navy-900); }
.contact-icons--hero .icon-btn { width: 48px; height: 48px; background: var(--paper); }
.contact-icons--hero .icon-btn:hover { background: var(--navy-800); color: #fff; }
.contact-icons--hero .icon-btn--whatsapp:hover { background: var(--wa); border-color: var(--wa); }
.icon-row { display: flex; margin: 8px 0 34px; }
.icon-row--center { justify-content: center; }

.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .95rem; color: var(--text); }
.status strong { font-weight: 600; }
.status-detail { color: var(--muted); }
.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #99A2B8; flex: 0 0 auto; }
.status-dot.is-open { background: var(--live); }
.status-dot.is-open::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--live); opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: 0 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* The blur lives on a pseudo-element so fixed children (mobile dock) keep the viewport as their containing block. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(8, 20, 80, .35); }
.header-row { display: flex; align-items: center; gap: 18px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: .76rem; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.brand:hover .brand-name { color: var(--navy-700); }

.nav { display: none; position: relative; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-item.has-mega { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 42px; padding: 0 11px;
  border: 0; border-radius: 10px; background: none;
  color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--navy-50); color: var(--navy-900); }
.nav-item.is-current > .nav-link, .nav-link[aria-current="page"] { color: var(--navy-700); }
.nav-item.is-current > .nav-link::after, .nav-link[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-700); margin-left: 4px;
}
.nav-chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-item.is-open > .nav-link .nav-chev { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 70;
  min-width: 330px; padding: 10px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: .06s; }
  .nav-item.has-sub:hover > .nav-link .nav-chev { transform: rotate(180deg); }
}
.sub--wide { min-width: 560px; }
.sub--end { left: auto; right: -8px; }
.sub-list { list-style: none; display: grid; gap: 2px; }
.sub-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sub-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px;
  color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.sub-link:hover, .sub-link[aria-current="page"] { background: var(--navy-50); color: var(--navy-900); }
.sub-link--compact { padding-block: 8px; }
.sub-link--compact .chip { margin-left: auto; }
.sub-title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.sub-desc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.sub--mega {
  left: 50%; top: calc(100% + 10px);
  width: min(1120px, calc(100vw - 40px));
  padding: 22px 22px 16px;
  transform: translate(-50%, 6px);
}
.nav-item.is-open > .sub--mega { transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-mega:hover > .sub--mega { transform: translate(-50%, 0); }
}
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mega-head {
  display: flex; align-items: center; gap: 8px; min-height: 36px;
  margin: 0 0 8px; padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--muted);
}
.mega-col ul { list-style: none; display: grid; gap: 2px; }
.mega-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 11px;
  color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.3; text-decoration: none;
}
.mega-link:hover, .mega-link[aria-current="page"] { background: var(--tone-bg); color: var(--ink); }
.mega-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mega-all {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px;
  color: var(--navy-800); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.mega-all:hover { background: var(--navy-50); }
.mega-all .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mega-all:hover .arrow { transform: translateX(3px); }
.sub--wide > .mega-all { margin-top: 6px; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cta-slot { display: flex; align-items: center; gap: 8px; }
.contact-icons--dock { display: none; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 18px 0 16px;
  border-radius: 999px; background: var(--navy-800); color: #fff;
  font-size: .97rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 22px -10px rgba(10, 28, 124, .7);
  transition: background-color .18s, box-shadow .18s, transform .18s;
}
.cta:hover { background: var(--navy-700); color: #fff; box-shadow: 0 14px 26px -10px rgba(10, 28, 124, .75); }
.cta:active { transform: translateY(1px); }
.cta-icon { width: 20px; height: 20px; }
.cta-arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.cta:hover .cta-arrow { transform: translateX(3px); }
.burger { background: var(--navy-900); color: #fff; }
.burger:hover { background: var(--navy-700); }

@media (min-width: 1240px) {
  .nav { display: flex; }
  .burger { display: none; }
}
@media (max-width: 1379.98px) and (min-width: 1240px) {
  .brand-sub { display: none; }
  .header-row { gap: 14px; }
  .nav-link { padding: 0 8px; font-size: .92rem; }
  .header-actions .cta-arrow { display: none; }
}

/* Phones: the single primary CTA becomes a fixed bottom dock that never scrolls away. */
@media (max-width: 767.98px) {
  :root { --header-h: 66px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .7rem; }
  .cta-slot[data-cta-home] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    min-height: var(--dock-h);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(8, 20, 80, .45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .contact-icons--dock { display: flex; flex-wrap: nowrap; gap: 8px; }
  .contact-icons--dock .icon-btn { width: 50px; height: 50px; border-color: var(--line); }
  .contact-icons--dock .icon-btn--whatsapp { background: var(--wa); color: #fff; }
  .cta-slot[data-cta-home] .cta { flex: 1 1 auto; height: 50px; min-width: 0; white-space: normal; line-height: 1.2; text-align: center; }
  .cta-label { min-width: 0; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
}
@media (max-width: 419.98px) {
  .cta-slot[data-cta-home] .cta { padding: 0 12px; font-size: .9rem; gap: 8px; }
  .cta-slot[data-cta-home] .cta-arrow { display: none; }
}
@media (max-width: 359.98px) {
  .brand-sub { display: none; }
  .contact-icons--dock .icon-btn { width: 46px; height: 46px; }
}

/* ---------- drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(420px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%;
  padding: 0; border: 0; background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.drawer::backdrop { background: rgba(4, 12, 61, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-nav { overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 18px; }
.drawer-link, .drawer-group > summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px; border-radius: 14px;
  color: var(--ink); font-weight: 600; font-size: 1.02rem; text-decoration: none;
  cursor: pointer; list-style: none;
}
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-link:hover, .drawer-group > summary:hover, .drawer-link[aria-current="page"] { background: var(--navy-50); }
.drawer-chev { margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.drawer-group[open] > summary .drawer-chev { transform: rotate(180deg); }
.drawer-group ul { list-style: none; margin: 2px 0 8px 22px; padding-left: 14px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.drawer-group ul a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px;
  color: var(--text); font-size: .96rem; text-decoration: none;
}
.drawer-group ul a .icon { width: 18px; height: 18px; color: var(--navy-700); }
.drawer-group ul a:hover, .drawer-group ul a[aria-current="page"] { background: var(--navy-50); color: var(--navy-900); }
.drawer-foot { display: grid; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--canvas); }
.drawer-foot .contact-icons { justify-content: center; }
.cta-slot--drawer:empty { display: none; }
.cta-slot--drawer .cta { width: 100%; height: 52px; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 14px; font-size: .86rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-radius: 50%; background: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--navy-800); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60vw, 520px); }
.crumb-home { width: 17px; height: 17px; }
.view-home .crumbs { display: none; }

/* ---------- sections & headings ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 100px); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.2rem); color: var(--navy-900); }
.section-title--sm { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); margin-bottom: 18px; }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 40px); }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.section-head--split > div { max-width: 720px; }
.section-head--split .more-links { margin: 0; }
.card-title { font-size: 1.22rem; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.card-title--sm { font-size: 1.05rem; margin-top: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(26px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(36, 71, 204, .09), transparent 70%),
    linear-gradient(180deg, var(--navy-50) 0%, #fff 78%);
}
.hero-lattice {
  position: absolute; inset: 0 0 auto auto; width: 62%; height: 100%;
  background-image: var(--lattice-dark); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side at 70% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: center;
}
.hero-title {
  font-size: clamp(2.3rem, 1.3rem + 3.1vw, 3.8rem);
  line-height: 1.06; letter-spacing: -.025em; color: var(--navy-900);
  margin-bottom: 20px; text-wrap: balance;
}
.hero-copy > p { font-size: clamp(1.08rem, 1rem + .35vw, 1.26rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 26px 0 22px; }
.hero-copy .status { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }

.directory { position: relative; display: grid; }
.directory-photo {
  position: relative; margin: 0 0 0 clamp(0px, 16%, 150px);
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16 / 11; box-shadow: var(--shadow);
}
.directory-photo img { width: 100%; height: 100%; object-fit: cover; }
.directory-photo figcaption {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .82rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.directory-photo figcaption .icon { width: 15px; height: 15px; color: var(--navy-700); }
.directory-board {
  position: relative; margin: clamp(-150px, -10vw, -80px) clamp(0px, 12%, 110px) 0 0;
  padding: 18px 18px 10px;
  border-radius: var(--radius-lg);
  background: var(--navy-900) var(--lattice-light);
  background-size: auto, 56px 56px;
  color: #fff; box-shadow: var(--shadow-lg);
}
.directory-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.directory-list { list-style: none; }
.directory-list li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.directory-list a {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 7px 8px; margin-inline: -8px; border-radius: 12px;
  color: #fff; text-decoration: none;
  transition: background-color .15s;
}
.directory-list a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dir-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.dir-icon .icon { width: 19px; height: 19px; }
.dir-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dir-label { font-weight: 600; font-size: .98rem; }
.dir-sub { font-size: .8rem; color: rgba(255, 255, 255, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.directory-list .chip--live { background: rgba(14, 159, 110, .18); color: #9AF0CE; border-color: rgba(154, 240, 206, .25); }
.directory-list .chip--live::before { background: #4CE0A6; }
.dir-arrow { width: 18px; height: 18px; opacity: .55; transition: transform .2s var(--ease), opacity .2s; grid-column: 4; }
.directory-list a:hover .dir-arrow { transform: translateX(3px); opacity: 1; }

.facts {
  list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm);
}
.fact { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-big { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 700; line-height: 1.1; color: var(--navy-800); letter-spacing: -.02em; }
.fact-small { font-weight: 600; color: var(--ink); line-height: 1.3; }
.fact-text { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }

/* ---------- intro + finder ---------- */
.section--intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.intro-copy p { font-size: 1.08rem; }
.intro-finder {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--canvas), #fff);
  box-shadow: var(--shadow-sm);
}
.finder-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 16px; }
.finder-bar {
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 10px 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  box-shadow: 0 6px 18px -12px rgba(10, 28, 124, .4);
  transition: border-color .15s, box-shadow .15s;
}
.finder-bar:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 71, 204, .14); }
.finder-icon { width: 22px; height: 22px; color: var(--navy-700); }
.finder-bar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; font-size: 1.02rem; outline: none; }
.finder-bar input::-webkit-search-cancel-button { display: none; }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.finder-results { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.finder-results:empty { display: none; }
.finder-hit a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.finder-hit a:hover { border-color: var(--tone); box-shadow: var(--shadow); transform: translateY(-1px); }
.finder-hit .badge { width: 44px; height: 44px; border-radius: 13px; }
.finder-hit .badge .icon { width: 22px; height: 22px; }
.finder-hit-name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.finder-hit-format { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.finder-hit-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.finder-hit-items span { font-size: .84rem; padding: 3px 9px; border-radius: 8px; background: var(--tone-bg); color: var(--ink); }
.finder-hit-items mark { background: none; color: var(--tone); font-weight: 600; padding: 0; }
.finder-hit > a > .icon { width: 20px; height: 20px; color: var(--muted); margin-top: 12px; }
.finder-empty { padding: 14px 16px; border-radius: var(--radius); background: var(--canvas); color: var(--muted); font-size: .95rem; }
.finder-note { display: flex; gap: 10px; margin: 18px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.finder-note .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--navy-700); }

/* ---------- department tiles ---------- */
.section--depts { background: var(--canvas); }
.dept-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 16px; }
.dept-tile a {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 22px 22px 18px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.dept-tile a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--tone); transform: scaleX(.18); transform-origin: left;
  transition: transform .35s var(--ease);
}
.dept-tile a:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.dept-tile a:hover::before { transform: scaleX(1); }
.dept-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 15px; background: var(--tone-bg); color: var(--tone); }
.dept-icon .icon { width: 26px; height: 26px; }
.dept-name { font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.dept-desc { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.dept-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.dept-format { font-size: .8rem; font-weight: 600; color: var(--tone); line-height: 1.35; }
.dept-arrow { width: 20px; height: 20px; color: var(--tone); transition: transform .2s var(--ease); }
.dept-tile a:hover .dept-arrow { transform: translateX(4px); }
.dept-count { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.dept-count .icon { width: 16px; height: 16px; }
.dept-tile--guest a { background: var(--navy-900) var(--lattice-light); background-size: auto, 56px 56px; border-color: var(--navy-900); color: #fff; }
.dept-tile--guest .dept-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.dept-tile--guest .dept-name { color: #fff; }
.dept-tile--guest .dept-desc { color: rgba(255, 255, 255, .75); }
.dept-tile--guest .dept-format, .dept-tile--guest .dept-arrow { color: #FFD68A; }
.dept-tile--guest a::before { background: #FFD68A; }
.dept-tile--guest { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .dept-tile--guest a { display: grid; grid-template-columns: 50px minmax(0, .9fr) minmax(0, 1.6fr) auto; align-items: center; gap: 8px 22px; }
  .dept-tile--guest .dept-icon { margin: 0; }
  .dept-tile--guest .dept-foot { margin: 0; padding: 0; gap: 16px; }
}
.dept-grid--compact .dept-tile a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 18px; }
.dept-grid--compact .dept-icon { margin: 0; width: 46px; height: 46px; }
.dept-grid--compact .dept-name { flex: 1 1 0; min-width: 0; font-size: 1.02rem; padding-right: 36px; }
.dept-grid--compact .dept-foot { flex: 1 1 100%; margin: 0; padding-top: 0; }

/* ---------- diagnostics bento ---------- */
.section--diag { background: var(--paper); }
.diag-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.diag-bento > * { min-width: 0; }
.diag-lead { grid-column: 1 / span 2; padding: 8px 12px 8px 0; align-self: center; }
.diag-lead p { color: var(--muted); margin-top: 12px; }
.diag-photo { grid-column: 3; grid-row: 1 / span 2; position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; }
.diag-photo img { width: 100%; height: 100%; object-fit: cover; }
.diag-photo figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(6, 19, 92, .86); color: #fff; font-size: .86rem; font-weight: 500; line-height: 1.35;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.diag-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--canvas);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.diag-tile:hover { border-color: var(--navy-200); background: var(--paper); box-shadow: var(--shadow); }
.diag-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy-800); color: #fff; margin-bottom: 6px; }
.diag-icon .icon { width: 24px; height: 24px; }
.diag-name { font-size: 1.1rem; }
.diag-name a { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.diag-desc { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.diag-links, .diag-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 8px; }
.diag-links .chip--link { position: relative; z-index: 1; }

/* ---------- guest doctors ---------- */
.section--guests { overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .82); }
.guests-lattice { position: absolute; inset: 0; background-image: var(--lattice-light); background-size: 56px 56px; opacity: .9; pointer-events: none; }
.guests-grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.section--guests .kicker { color: #FFD68A; }
.section--guests .kicker .badge { background: rgba(255, 214, 138, .14); color: #FFD68A; }
.section--guests .section-title { color: #fff; margin-bottom: 16px; }
.section--guests p { color: rgba(255, 255, 255, .8); }
.section--guests .link-arrow { color: #fff; }
.rail { position: relative; min-width: 0; }
.rail-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.rail-track {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 30%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0;
  padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  border-radius: var(--radius);
}
.rail-track:focus-visible { outline-color: #fff; }
.rail-card { scroll-snap-align: start; }
.rail-card a { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; }
.rail-photo { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .08); margin-bottom: 8px; }
.rail-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.rail-card a:hover .rail-photo img { transform: scale(1.04); }
.rail-name { font-weight: 600; line-height: 1.3; }
.rail-role { font-size: .84rem; color: rgba(255, 255, 255, .7); line-height: 1.4; }

/* ---------- patient journey ---------- */
.section--journey { background: var(--canvas); }
.journey { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.journey::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 2px;
  background-image: linear-gradient(90deg, var(--navy-200) 50%, transparent 50%);
  background-size: 14px 2px;
}
.journey-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.journey-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--canvas);
}
.journey-photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.journey-photo img { width: 100%; height: 100%; object-fit: cover; }
.journey-title { font-size: 1.08rem; margin-bottom: 6px; }
.journey-text { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- duo cards ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.duo-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); }
.duo-card > .list, .duo-card > p { align-self: stretch; }
.duo-card--home { background: linear-gradient(160deg, var(--live-bg), #fff 60%); }
.duo-card--home .kicker { color: var(--live-ink); }
.duo-card--home .kicker .badge { background: #fff; color: var(--live-ink); }
.duo-card--ins { background: linear-gradient(160deg, var(--navy-50), #fff 60%); }
.duo-card .card-title { font-size: 1.45rem; }
.duo-card .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- why ---------- */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-item { padding: 24px; border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.why-item:hover { background: var(--paper); border-color: var(--line); }
.why-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--paper); color: var(--navy-800); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.why-icon .icon { width: 25px; height: 25px; }
.why-title { font-size: 1.12rem; margin-bottom: 8px; }
.why-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- blog cards ---------- */
.section--blog { background: var(--canvas); }
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.post-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.post-card a:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); }
.post-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 55%, var(--navy-900)));
}
.post-cover::before { content: ""; position: absolute; inset: 0; background-image: var(--lattice-light); background-size: 56px 56px; }
.post-cover-icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); color: #fff; }
.post-cover-icon .icon { width: 32px; height: 32px; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1 1 auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .8rem; color: var(--muted); }
.post-cat { font-weight: 600; color: var(--tone); }
.post-time { display: inline-flex; align-items: center; gap: 5px; }
.post-time .icon { width: 15px; height: 15px; }
.post-title { font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.post-desc { font-size: .92rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.post-more .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.post-card a:hover .post-more .icon { transform: translateX(4px); }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.visit-card { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-xl); background: var(--canvas); border: 1px solid var(--line); }
.visit-card .section-title { margin-bottom: 22px; }
.visit-photo { margin: 0; border-radius: var(--radius-xl); overflow: hidden; min-height: 320px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-list { display: grid; gap: 12px; margin: 0 0 20px; }
.info-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.info-list dd { margin: 0; color: var(--ink); }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }

/* ---------- inner page head ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(26px, 3.4vw, 46px) 0 clamp(34px, 4vw, 56px);
  background: linear-gradient(180deg, var(--tone-bg), #fff 92%);
  border-bottom: 1px solid var(--line);
}
.page-head-lattice {
  position: absolute; inset: 0 0 0 auto; width: 55%;
  background-image: var(--lattice-dark); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.page-head-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.page-head--split .page-head-grid { grid-template-columns: minmax(0, 1fr) auto; }
.page-head-main { max-width: 820px; }
.page-title { font-size: clamp(2.05rem, 1.35rem + 2.3vw, 3.1rem); color: var(--navy-900); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.page-lead { margin-top: 16px; font-size: clamp(1.04rem, 1rem + .3vw, 1.17rem); color: var(--muted); }
.page-lead p:last-child { margin-bottom: 0; }
.page-lead strong { color: var(--ink); }
.lead-label { font-weight: 600; color: var(--ink); }
.lead-note { font-size: .95rem; }
.head-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.sign {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  width: 230px; padding: 22px 22px 22px 30px; overflow: hidden;
  border-radius: 22px; background: var(--navy-900) var(--lattice-light); background-size: auto, 56px 56px;
  color: #fff; box-shadow: var(--shadow-lg);
}
.sign::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--tone); }
.sign.tone-navy::before { background: #6F8BFF; }
.sign-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--tone); }
.sign.tone-navy .sign-icon { color: var(--navy-800); }
.sign-icon .icon { width: 34px; height: 34px; }
.sign-label { font-size: .92rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.sign-year { font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; }
.sign--year { gap: 10px; }

/* ---------- page layout with table of contents ---------- */
.page-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px);
}
.toc { position: relative; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 6px; }
.toc-title { margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px;
  color: var(--text); font-size: .9rem; line-height: 1.35; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: .75rem; font-weight: 600; color: var(--line-2); padding-top: 2px; min-width: 18px; }
.toc a:hover { background: var(--navy-50); color: var(--navy-900); }
.toc a.is-active { background: var(--tone-bg); color: var(--ink); font-weight: 600; }
.toc a.is-active::before { color: var(--tone); }
.page-main { min-width: 0; }
.page-single { max-width: 900px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- content blocks ---------- */
.block { margin-bottom: clamp(36px, 4vw, 52px); scroll-margin-top: calc(var(--header-h) + 20px); }
.block-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.32rem, 1.15rem + .6vw, 1.6rem); color: var(--navy-900); margin-bottom: 18px; }
.block p { max-width: 72ch; }
.subhead { font-size: 1.15rem; margin: 26px 0 12px; }
.sublabel { margin: 18px 0 10px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

.list { list-style: none; }
.list--bullets { display: grid; gap: 8px; margin: 0 0 18px; }
.list--bullets li { position: relative; padding-left: 22px; }
.list--bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--tone); transform: rotate(45deg); }
.list--checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 0 0 18px; }
.list--checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--canvas); border: 1px solid var(--line); line-height: 1.5; }
.li-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--tone); }
.list--tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.list--tags li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font-size: .95rem; line-height: 1.4; }
.list--prep, .list--steps { display: grid; gap: 12px; margin: 0 0 18px; }
.list--prep li, .list--steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.li-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--tone-bg); color: var(--tone); font-weight: 700; font-size: .95rem;
}
.list--steps .li-num { border-radius: 50%; background: var(--navy-800); color: #fff; }
.li-body { padding-top: 6px; }
.li-title { color: var(--ink); }
.list--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0 0 18px; }
.list--cards li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); line-height: 1.5; }
.list--cards .li-title { font-size: 1.02rem; line-height: 1.35; }
.list--cards .li-text { color: var(--muted); font-size: .95rem; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.table thead th { background: var(--navy-900); color: #fff; font-weight: 600; font-size: .88rem; }
.table tbody th { font-weight: 600; color: var(--ink); min-width: 170px; }
.table tbody tr:nth-child(even) > * { background: var(--canvas); }
.table tbody tr:last-child > * { border-bottom: 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 18px 0 22px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--ink);
}
.callout p { margin: 0; }
.callout-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--navy-700); flex: 0 0 auto; }
.callout-icon .icon { width: 20px; height: 20px; }
.callout--urgent { background: var(--alert-bg); border-color: rgba(191, 43, 58, .22); }
.callout--urgent .callout-icon { color: var(--alert); }

.qa-list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-margin-top: calc(var(--header-h) + 20px); transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); line-height: 1.4;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa-sign { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); flex: 0 0 auto; transition: transform .25s var(--ease), background-color .2s; }
.qa-sign .icon { width: 18px; height: 18px; }
.qa[open] .qa-sign { transform: rotate(45deg); background: var(--navy-800); color: #fff; }
.qa-a { padding: 0 18px 16px; color: var(--text); }
.qa-a p { margin: 0; max-width: 72ch; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

.figure { position: relative; margin: 0; }
.figure .zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--canvas); cursor: zoom-in; }
.figure .zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.figure .zoom:hover img { transform: scale(1.03); }
.zoom-icon { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy-800); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.zoom:hover .zoom-icon, .zoom:focus-visible .zoom-icon { opacity: 1; transform: none; }
.zoom-icon .icon { width: 19px; height: 19px; }
.figure figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.figure-row { display: grid; gap: 14px; margin: 0 0 clamp(36px, 4vw, 52px); }
.figure-row--1 { max-width: 620px; }
.figure-row--1 .zoom { aspect-ratio: 4 / 3; }
.figure-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figure-row--2 .zoom { aspect-ratio: 4 / 3; }

.panel { display: flex; gap: 16px; align-items: flex-start; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--canvas); }
.panel-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy-800); color: #fff; flex: 0 0 auto; }
.panel-icon .icon { width: 23px; height: 23px; }
.panel-body { min-width: 0; flex: 1 1 auto; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-title { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.panel--clinic { background: linear-gradient(135deg, var(--navy-50), #fff); border-color: var(--navy-100); }
.panel--clinic .list--checks { grid-template-columns: 1fr; }
.panel--clinic .list--checks li { background: rgba(255, 255, 255, .8); }
.panel--article { margin-bottom: 28px; }
.panel--article .panel-icon { background: var(--tone); }
.panel--visit { margin-top: 10px; }
.panel--visit .contact-icons { margin-top: 12px; }
.panel--card { flex-direction: column; background: var(--paper); }

.disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: clamp(28px, 3vw, 40px); padding: 16px 18px;
  border-radius: var(--radius); background: var(--canvas); border: 1px dashed var(--line-2);
  font-size: .9rem; color: var(--muted); line-height: 1.55;
}
.disclaimer .icon { width: 20px; height: 20px; color: var(--navy-700); margin-top: 1px; }
.disclaimer p { margin: 0; }

/* ---------- doctor cards ---------- */
.doc-mini-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 14px; }
.doc-mini {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 100%; padding: 12px 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
a.doc-mini:hover { border-color: var(--navy-200); box-shadow: var(--shadow); }
.avatar { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--navy-50); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.avatar--mono, .doc-card-photo--mono { display: grid; place-items: center; background: var(--navy-900) var(--lattice-light); background-size: auto, 56px 56px; color: #fff; font-weight: 600; letter-spacing: .04em; }
.doc-mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-mini-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.doc-mini-role { font-size: .87rem; color: var(--muted); line-height: 1.4; }
.doc-mini .chip--guest { position: absolute; top: -9px; right: 14px; font-size: .72rem; padding: 2px 9px; }
.doc-mini-arrow { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
a.doc-mini:hover .doc-mini-arrow { transform: translateX(3px); color: var(--navy-800); }

.doc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px 16px; }
.doc-card a { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; height: 100%; }
.doc-card-photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--navy-50); }
.doc-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform .5s var(--ease); }
.doc-card a:hover .doc-card-photo img { transform: scale(1.04); }
.doc-card-photo.doc-card-photo--mono { display: grid; place-items: center; background: var(--navy-900) var(--lattice-light); background-size: auto, 56px 56px; color: #fff; }
.doc-card-photo--mono span { font-size: 2.6rem; font-weight: 600; letter-spacing: .04em; }
.doc-card-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10, 28, 124, .08); pointer-events: none; }
.doc-card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.doc-card-body .chip { align-self: flex-start; margin-bottom: 2px; font-size: .72rem; padding: 2px 9px; }
.doc-card-name { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.doc-card a:hover .doc-card-name { color: var(--navy-700); }
.doc-card-role { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.doc-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

/* ---------- related links ---------- */
.section--related { background: var(--canvas); padding-block: clamp(44px, 5vw, 72px); }
.section--siblings { padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.pill-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links--gap { margin-bottom: 28px; }
.pill-links--head { margin-top: 18px; }
.pill-links--center { justify-content: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.pill-link .icon { width: 18px; height: 18px; color: var(--tone); }
.pill-link:hover { border-color: var(--tone); background: var(--tone-bg); color: var(--ink); }

/* ---------- departments hub ---------- */
.section--finder { padding-block: clamp(32px, 4vw, 52px) 0; }
.finder-wrap { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--canvas), #fff); }
.finder-wrap .section-title--sm { margin: 10px 0 0; }
.section--groups { padding-top: clamp(40px, 5vw, 64px); }
.dept-group { margin-bottom: clamp(30px, 4vw, 44px); }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; color: var(--ink); }
.group-title .dot { width: 12px; height: 12px; }
.section--others { padding-top: 0; }
.others { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--canvas); border: 1px solid var(--line); }

/* ---------- diagnostics hub ---------- */
.diag-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.diag-card a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.diag-card a:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.diag-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.diag-card .diag-icon { margin-bottom: 4px; }
.diag-card-name { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.diag-card-what { font-size: .94rem; color: var(--text); line-height: 1.5; }
.diag-card-note { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.diag-card-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--navy-700); }
.diag-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.diag-card-more .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.diag-card a:hover .diag-card-more .icon { transform: translateX(4px); }
.section--photos { padding-top: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.figure--strip .zoom { aspect-ratio: 1; }

/* ---------- service pages ---------- */
.package-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; margin-bottom: clamp(36px, 4vw, 52px); }
.package { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.package-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--navy-50); color: var(--navy-800); margin-bottom: 14px; }
.package-icon .icon { width: 26px; height: 26px; }
.package-title { font-size: 1.15rem; margin-bottom: 14px; }
.package .list--checks { grid-template-columns: 1fr; gap: 6px; }
.package .list--checks li { padding: 8px 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.package p { font-size: .93rem; color: var(--muted); margin: 10px 0 0; }
.svc-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.svc-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--canvas); }
.svc-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--navy-800); color: #fff; margin-bottom: 14px; }
.svc-icon .icon { width: 26px; height: 26px; }
.svc-title { font-size: 1.1rem; margin-bottom: 6px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 20px; }
.panel-grid .card-title { font-size: 1.15rem; margin: 6px 0 4px; }
.panel-grid .list--checks { grid-template-columns: 1fr; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.media-card { padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); }
.media-card .list--cards { grid-template-columns: 1fr; gap: 10px; }
.media-card .list--cards li { background: var(--canvas); border-color: transparent; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }
.rule-card--do { background: var(--live-bg); border-color: rgba(14, 159, 110, .2); }
.rule-card--dont { background: var(--alert-bg); border-color: rgba(191, 43, 58, .18); }
.rule-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; margin-bottom: 12px; }
.rule-card--do .rule-icon { color: var(--live-ink); }
.rule-card--dont .rule-icon { color: var(--alert); }
.rule-icon .icon { width: 22px; height: 22px; }
.rule-lead { font-weight: 600; color: var(--ink); }
.rule-card .list--bullets li::before { background: currentColor; opacity: .6; }

/* ---------- doctors directory ---------- */
.doctors-page { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
.doc-filter {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: clamp(26px, 3vw, 40px); padding: 12px;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); }
.seg-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.seg-btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; box-shadow: 0 6px 14px -8px rgba(10, 28, 124, .8); }
.seg-btn:hover:not([aria-pressed="true"]) { background: var(--navy-50); }
.doc-filter-fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 380px; }
.doc-filter select, .doc-search input {
  height: 48px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  padding: 0 16px; font-size: .95rem; min-width: 0;
}
.doc-filter select {
  flex: 1 1 200px; appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(10,28,124)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.doc-search { position: relative; display: flex; align-items: center; flex: 1 1 200px; }
.doc-search .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.doc-search input { width: 100%; padding-left: 42px; }
.doc-count { margin: 0; font-size: .86rem; color: var(--muted); flex: 1 1 100%; padding-left: 6px; }
.doc-count:empty { display: none; }
.doc-section { margin-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--header-h) + 90px); }
.doc-section-lead { max-width: 70ch; color: var(--muted); margin-bottom: 22px; }
.staff { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); }
.staff-title { font-size: 1.02rem; margin-bottom: 12px; }
.staff-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.staff-list li { display: flex; flex-direction: column; }
.staff-name { font-weight: 600; color: var(--ink); }
.staff-role { font-size: .88rem; color: var(--muted); }
.doc-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--canvas); color: var(--muted); }
.doc-empty .icon { width: 20px; height: 20px; color: var(--navy-700); }
.doc-index { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--paper); }
.index-list { display: grid; gap: 0; margin: 0; }
.index-list > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.index-list > div:last-child { border-bottom: 0; }
.index-list dt { font-weight: 600; color: var(--ink); }
.index-list dd { margin: 0; color: var(--text); }
.index-list a { color: var(--navy-700); }

/* ---------- doctor profile ---------- */
.doc-head { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 44px) 0; background: linear-gradient(180deg, var(--tone-bg), #fff 92%); border-bottom: 1px solid var(--line); }
.doc-head-grid { position: relative; display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.doc-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--navy-50); box-shadow: var(--shadow-lg); }
.doc-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.doc-portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10, 28, 124, .1); pointer-events: none; }
.doc-portrait-mono { display: grid; place-items: center; width: 100%; height: 100%; background: var(--navy-900) var(--lattice-light); background-size: auto, 56px 56px; color: #fff; font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 600; letter-spacing: .04em; }
.doc-plate { position: relative; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 34px) clamp(28px, 3.4vw, 42px); border-radius: 24px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.doc-plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--tone); }
.doc-role { margin: 12px 0 0; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); font-weight: 500; color: var(--tone); }
.doc-alias { margin: 6px 0 0; color: var(--muted); }
.doc-body { padding-top: clamp(32px, 4vw, 52px); }
.facts-list { display: grid; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.facts-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 600; color: var(--ink); }
.facts-list dd { margin: 0; line-height: 1.6; }

/* ---------- about ---------- */
.section--mosaic { padding-block: clamp(32px, 4vw, 52px) 0; }
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
.mosaic .zoom { height: 100%; }
.mosaic-a .zoom { aspect-ratio: 16 / 12; }
.mosaic-b .zoom, .mosaic-c .zoom { aspect-ratio: 3 / 4; }
.mosaic figcaption { display: none; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }
.offer-card--wide { grid-row: span 2; background: var(--canvas); }
.offer-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.offer-card .list--checks { grid-template-columns: 1fr; gap: 8px; }
.offer-card .list--checks li { background: var(--paper); }
.offer-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--navy-50); color: var(--navy-800); margin-bottom: 14px; }
.offer-icon .icon { width: 25px; height: 25px; }
.section--mission { overflow: hidden; background: var(--navy-900); }
.mission-lattice { position: absolute; inset: 0; background-image: var(--lattice-light); background-size: 56px 56px; }
.mission { position: relative; max-width: 980px; text-align: center; }
.mission .kicker { color: #FFD68A; justify-content: center; }
.mission .kicker .badge { background: rgba(255, 214, 138, .14); color: #FFD68A; }
.mission-text { margin: 0; }
.mission-text p { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); line-height: 1.4; font-weight: 500; color: #fff; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.values-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-card { padding: 24px; border-radius: var(--radius-lg); background: var(--canvas); }
.value-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.value-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--navy-800); color: #fff; margin-bottom: 16px; }
.value-icon .icon { width: 24px; height: 24px; }
.section--team { background: var(--canvas); }
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.team-copy p { font-size: 1.06rem; }
.team-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-photo .zoom { aspect-ratio: 4 / 5; }
.team-photo figcaption { display: none; }

/* ---------- FAQ, blog filter, article ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-nav .chip--link { padding: 7px 13px; font-size: .88rem; }
.page-layout--faq .chip-nav { display: none; }
.blog-page { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(48px, 6vw, 80px); }
.chip-nav--filter { margin-bottom: 26px; }
.article-body { max-width: 780px; }
.article-lead { font-size: 1.12rem; color: var(--text); margin-bottom: 28px; }
.article-lead .table-wrap { margin-top: 18px; }

/* ---------- gallery ---------- */
.gallery-page { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(48px, 6vw, 80px); }
.gallery { list-style: none; columns: 3 300px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; }
.figure--gallery figcaption { margin-top: 8px; }

/* ---------- contact & booking ---------- */
.contact-page, .booking-page { padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(48px, 6vw, 80px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact-card { padding: clamp(22px, 2.8vw, 32px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--paper); }
.contact-card .contact-icons { margin-bottom: 22px; }
.contact-card .info-list { margin-bottom: 4px; }
.contact-card--hours .status { margin-bottom: 18px; }
.contact-card--hours .table-wrap { margin-bottom: 14px; }
.contact-card--hours p { color: var(--muted); font-size: .92rem; margin: 0; }
.contact-map { grid-column: 1 / -1; margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.contact-map iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); border: 0; }
.contact-map figcaption { padding: 14px 18px; }
.form-section { margin-top: clamp(36px, 5vw, 60px); padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius-xl); background: var(--canvas); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-section-head p { color: var(--muted); max-width: 70ch; }
.booking-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.booking-info .callout { margin-top: 0; }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }

.booking-form { position: relative; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--alert); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper);
  font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(10,28,124)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 71, 204, .15); }
.field [aria-invalid="true"] { border-color: var(--alert); background-color: #FFFBFB; }
.field-error { margin: 0; font-size: .84rem; font-weight: 500; color: var(--alert); }
.field--check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy-800); }
.field--check label { font-weight: 400; color: var(--text); line-height: 1.5; }
.field--check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--alert-bg); color: var(--alert); font-weight: 500; }
.form-alert .icon { width: 20px; height: 20px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 22px -12px rgba(18, 140, 75, .8);
  transition: background-color .18s, transform .18s;
}
.btn-submit:hover { background: var(--wa-dark); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit .icon { width: 22px; height: 22px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-note { flex: 1 1 260px; margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- legal, search, sitemap, 404 ---------- */
.legal .block { margin-bottom: 30px; }
.legal .block-title { font-size: 1.25rem; }
.search-bar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.search-bar:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 71, 204, .14); }
.search-bar-icon { width: 22px; height: 22px; color: var(--navy-700); }
.search-bar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; font-size: 1.05rem; outline: none; }
.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.btn-search { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--navy-800); color: #fff; font-weight: 600; }
.btn-search:hover { background: var(--navy-700); }
.search-summary { margin: 20px 0 14px; color: var(--muted); }
.search-results { list-style: none; display: grid; gap: 10px; }
.search-result a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.search-result a:hover { border-color: var(--navy-200); box-shadow: var(--shadow); }
.search-type { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.search-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.search-snippet { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.search-empty { margin: 16px 0; padding: 18px; border-radius: var(--radius); background: var(--canvas); }
.search-browse { margin-top: 36px; }
.sitemap { max-width: var(--container); }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.sitemap-group { padding: 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.sitemap-group--wide { grid-column: 1 / -1; }
.sitemap-group ul { list-style: none; display: grid; gap: 6px; }
.sitemap-group a { color: var(--text); text-decoration: none; }
.sitemap-group a:hover { color: var(--navy-700); text-decoration: underline; }
.sitemap-cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 10px; }
.notfound { padding-block: clamp(60px, 9vw, 120px); background: linear-gradient(180deg, var(--navy-50), #fff); text-align: center; }
.notfound-inner { max-width: 760px; display: grid; gap: 18px; justify-items: center; }
.notfound-code { margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; color: var(--navy-100); letter-spacing: -.04em; }
.notfound .search-bar { width: 100%; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer-lattice { position: absolute; inset: 0; background-image: var(--lattice-light); background-size: 56px 56px; opacity: .7; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) repeat(3, minmax(0, .8fr)); gap: 32px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: 36px; }
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-sub { color: rgba(255, 255, 255, .6); }
.brand-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; flex: 0 0 auto; }
.brand-tile img { width: 44px; height: 44px; }
.brand-tile--lg { width: 80px; height: 80px; border-radius: 20px; }
.brand-tile--lg img { width: 72px; height: 72px; }
.footer-about { margin: 18px 0 10px; }
.footer-about strong { color: #fff; }
.footer-slogan { margin: 0 0 18px; font-style: italic; color: #FFD68A; }
.footer-brand .contact-icons { margin-bottom: 16px; }
.footer-h { margin-bottom: 14px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .footer-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.footer-more .icon { width: 15px; height: 15px; }
.footer-dl { display: grid; gap: 10px; margin: 0 0 16px; }
.footer-dl dt { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.footer-dl dd { margin: 0; color: #fff; line-height: 1.5; }
.status--footer { color: rgba(255, 255, 255, .85); font-size: .9rem; }
.footer-bottom { position: relative; display: grid; gap: 16px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .65); }
.footer-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: .86rem; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: rgba(255, 255, 255, .8); }
.legal-links a:hover { color: #fff; }
.copyright { margin: 0; color: rgba(255, 255, 255, .65); }
.copyright a { font-weight: 600; color: #fff; }
.sep { margin: 0 6px; }

/* ---------- dialogs ---------- */
.dlg {
  width: min(680px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 26px;
  background: var(--paper); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dlg::backdrop { background: rgba(4, 12, 61, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-inner { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 3vw, 30px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.dlg-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.dlg-lead { color: var(--muted); font-size: .95rem; }
.dlg-alt { display: flex; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.dlg--search { margin-top: min(12vh, 110px); }
.dlg--search .dlg-inner { padding: 14px; }
.dlg--search .search-bar { border-color: var(--line); background: var(--canvas); }
.search-live { display: grid; gap: 6px; margin-top: 10px; }
.search-live:empty { display: none; }
.live-hit a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; color: inherit; text-decoration: none; }
.live-hit a:hover, .live-hit a:focus-visible { background: var(--navy-50); }
.live-hit .search-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-all { display: flex; justify-content: flex-end; padding: 8px 6px 0; }
.live-none { padding: 12px 14px; color: var(--muted); }
.search-hint { padding: 14px 8px 4px; }
.search-hint-title { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search-hint-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.search-hint-links a { padding: 6px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy-800); font-size: .9rem; font-weight: 500; text-decoration: none; }
.search-hint-links a:hover { background: var(--navy-100); }
.dlg--card { width: min(460px, calc(100% - 24px)); }
.vcard { position: relative; }
.vcard-close { position: absolute; right: 16px; top: 16px; }
.vcard-top { display: flex; align-items: center; gap: 16px; margin: 6px 44px 20px 0; }
.vcard-name { font-size: 1.4rem; }
.vcard-role { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.vcard-list { display: grid; gap: 10px; margin: 0 0 18px; }
.vcard-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vcard-list dt { font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.vcard-list dd { margin: 0; color: var(--ink); font-size: .95rem; }
.vcard .contact-icons { margin-bottom: 18px; }
.vcard-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dlg--lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; background: rgba(3, 8, 36, .96); }
.dlg--lightbox[open] { display: grid; place-items: center; }
.dlg--lightbox::backdrop { background: rgba(3, 8, 36, .9); }
.lightbox { margin: 0; padding: 60px 16px 16px; display: grid; justify-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .92rem; text-align: center; max-width: 60ch; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--navy-900); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.dlg--lightbox.is-single .lb-prev, .dlg--lightbox.is-single .lb-next { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlgIn .28s var(--ease); }
  .drawer[open] { animation: drawerIn .3s var(--ease); }
  @keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* ---------- motion: reveal on scroll (gated by boot.js) ---------- */
html.m-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.m-on [data-reveal].in { opacity: 1; transform: none; }
html.m-on .dept-grid > [data-reveal]:nth-child(3n+2), html.m-on .why-grid > :nth-child(3n+2), html.m-on .post-grid > :nth-child(3n+2), html.m-on .journey > :nth-child(2), html.m-on .values-grid > :nth-child(2), html.m-on .diag-bento > :nth-child(3n+2), html.m-on .facts > :nth-child(2) { transition-delay: .07s; }
html.m-on .dept-grid > [data-reveal]:nth-child(3n), html.m-on .why-grid > :nth-child(3n), html.m-on .post-grid > :nth-child(3n), html.m-on .journey > :nth-child(3), html.m-on .values-grid > :nth-child(3), html.m-on .diag-bento > :nth-child(3n), html.m-on .facts > :nth-child(3) { transition-delay: .14s; }
html.m-on .journey > :nth-child(4), html.m-on .values-grid > :nth-child(4), html.m-on .facts > :nth-child(4) { transition-delay: .21s; }
html.m-on .journey > :nth-child(5) { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1099.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .directory { max-width: 680px; }
  .directory-photo { margin-left: 0; }
  .directory-board { margin-right: 6%; }
  .intro-grid, .guests-grid, .team, .booking-grid, .finder-wrap { grid-template-columns: minmax(0, 1fr); }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .page-layout--faq .chip-nav { display: flex; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .journey::before { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 640px; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: minmax(180px, 34%); }
}
@media (max-width: 899.98px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .diag-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag-lead { grid-column: 1 / -1; }
  .diag-photo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .duo, .visit, .contact-grid, .rules { grid-template-columns: minmax(0, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-card--wide { grid-row: auto; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-a { grid-column: 1 / -1; }
  .page-head--split .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head-side { display: none; }
  .doc-head-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-portrait { max-width: 340px; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list > div, .facts-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 767.98px) {
  body { font-size: 1.02rem; }
  .hero-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .directory-board { margin: -60px 10px 0; padding: 16px 16px 10px; }
  .dir-sub { white-space: normal; }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey-step { display: grid; grid-template-columns: 46px 96px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; }
  .journey-num { margin: 0; grid-row: span 2; }
  .journey-photo { grid-row: span 2; margin: 0; }
  .journey-title { align-self: end; }
  .why-grid, .values-grid, .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-col--info { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .figure-row--2 { grid-template-columns: minmax(0, 1fr); }
  .rail-track { grid-auto-columns: minmax(160px, 62%); }
  .doc-filter { position: static; }
  .doc-filter-fields, .doc-filter select, .doc-search { flex: 1 1 100%; min-width: 0; }
  .doc-filter select { width: 100%; }
  .seg { width: 100%; }
  .seg-btn { flex: 1 1 0; padding: 0 8px; font-size: .84rem; white-space: normal; line-height: 1.2; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table tbody tr:nth-child(even) > * { background: none; }
  .table tbody tr:nth-child(even) { background: var(--canvas); }
  .table th, .table td { padding: 3px 0; border: 0; }
  .table tbody th { min-width: 0; }
  .table td::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
  .info-list > div, .vcard-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dlg { border-radius: 22px; }
  .dlg--booking { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dlg--booking .dlg-inner { max-height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .notfound .search-bar { height: auto; flex-wrap: wrap; padding: 8px 8px 8px 16px; border-radius: 24px; }
  .notfound .search-bar input { height: 44px; }
  .search-bar--page .btn-search { padding: 0 16px; }
}
@media (max-width: 479.98px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .diag-bento { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .journey-step { grid-template-columns: 40px 76px minmax(0, 1fr); }
  .journey-num { width: 40px; height: 40px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .photo-strip { gap: 8px; }
  .list--prep li, .list--steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .li-num { width: 32px; height: 32px; }
  .doc-mini { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .avatar { width: 56px; height: 56px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .cta-slot, .drawer, .dlg, .site-footer .contact-icons, .toc, .rail-controls, .finder, .uwa-launch { display: none !important; }
  body { padding: 0; color: #000; }
  .page-head, .hero, .section--guests, .section--mission { background: none !important; color: #000; }
  a { color: #000; }
}
