/* ==========================================================================
   Dr. Günay Əhmədova — radioloq, sonoloq
   Visual language: the ultrasound scan field — depth ruler ticks, focus
   marker, caliper lines, the sector fan and the Doppler waveform.
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #13283b;
  --text: #22313f;
  --muted: #4f5e6c;
  --line: #dde4ea;
  --line-2: #ccd6de;
  --paper: #f4f7f9;
  --card: #ffffff;
  --gel: #08717b;
  --gel-600: #065d65;
  --gel-400: #0a8e9a;
  --gel-200: #9fd6db;
  --gel-100: #cfe9ec;
  --gel-050: #e8f5f6;
  --cyan: #5fd3de;
  --dop-red: #e4606d;
  --dop-blue: #6b9ff5;
  --danger: #b3261e;
  --danger-bg: #fdf1f1;
  --danger-line: #f1c8cb;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(11, 27, 43, .05), 0 6px 20px rgba(11, 27, 43, .06);
  --shadow-2: 0 18px 50px rgba(11, 27, 43, .14);
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--f-body);
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
dialog:not([open]) { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(1.95rem, 1.45rem + 2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--gel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gel-600); }
strong { font-weight: 600; color: var(--ink); }
mark { background: var(--gel-100); color: var(--ink); border-radius: 3px; padding: 0 2px; }
:focus-visible { outline: 3px solid var(--gel-400); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.inline-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; margin-left: .35em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 48px, 1200px); } }

/* ---------- Small components ---------- */
.badge { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 14px 14px 14px 5px; background: var(--gel-050); color: var(--gel); }
.badge .icon { width: 20px; height: 20px; }
.badge--sm { width: 30px; height: 30px; border-radius: 10px 10px 10px 4px; }
.badge--sm .icon { width: 16px; height: 16px; }
.badge--lg { width: 52px; height: 52px; border-radius: 17px 17px 17px 6px; }
.badge--lg .icon { width: 25px; height: 25px; }
.badge--dark { background: rgba(95, 211, 222, .14); color: var(--cyan); }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .8125rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gel); }
.kicker .badge { width: 30px; height: 30px; border-radius: 10px 10px 10px 4px; }
.kicker .badge .icon { width: 16px; height: 16px; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker--light { color: var(--cyan); }

.text-link { display: inline; font-weight: 600; text-decoration: none; color: var(--gel); width: fit-content; }
.text-link:hover { text-decoration: underline; }
.text-link .inline-icon { transition: translate .2s var(--ease); }
.text-link:hover .inline-icon { translate: 3px 0; }
.text-link--sm { font-size: .88rem; }
.text-link--light { color: var(--cyan); }
.text-link--light:hover { color: #9be7ee; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--gel-050); color: var(--gel-600); font: 600 .8rem/1.2 var(--f-body); width: fit-content; }
.chip .icon { width: 15px; height: 15px; }
.chip--prep { background: var(--paper); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .2s, translate .2s var(--ease); }
.icon-btn .icon { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--gel); border-color: var(--gel); color: #fff; }
.icon-btn--solid { background: var(--gel); border-color: var(--gel); color: #fff; }
.icon-btn--solid:hover { background: var(--gel-600); }

.link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink); font: 600 .88rem/1.2 var(--f-body); text-decoration: none; }
.link-btn .icon { width: 18px; height: 18px; color: var(--gel); }
.link-btn:hover { border-color: var(--gel); color: var(--gel); }

.contact-icons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.icon-btn--contact { border-radius: 14px 14px 14px 5px; }
.contact-icons--lg .icon-btn { width: 52px; height: 52px; }
.contact-icons--lg .icon-btn .icon { width: 23px; height: 23px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244, 247, 249, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled::before { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 27, 43, .06); }
.header-row { position: relative; display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font: 600 1.06rem/1.15 var(--f-head); letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; color: var(--muted); }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item.has-mega { position: static; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: 500 .95rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--gel-050); color: var(--gel-600); }
.nav-item.is-current > .nav-link { color: var(--gel); }
.nav-item.is-current > .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gel); }
.nav-chev { width: 16px; height: 16px; transition: rotate .2s var(--ease); }
.nav-item.is-open .nav-chev { rotate: 180deg; }

.sub { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 5; min-width: 330px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; translate: -50% 6px; transition: opacity .18s, visibility .18s, translate .18s var(--ease); }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open > .sub { opacity: 1; visibility: visible; translate: -50% 0; }
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-sub:hover > .sub { opacity: 1; visibility: visible; translate: -50% 0; }
  .nav-item.has-mega:hover > .sub--mega { translate: 0 0; }
}
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.sub-link:hover, .sub-link[aria-current="page"] { background: var(--paper); color: var(--ink); }
.sub-link:hover .badge { background: var(--gel); color: #fff; }
.sub-title { display: block; font-weight: 600; font-size: .95rem; }
.sub-desc { display: block; font-size: .82rem; color: var(--muted); }

.sub--mega { left: 0; right: 0; translate: 0 6px; padding: 22px; }
.nav-item.has-mega.is-open > .sub--mega { translate: 0 0; }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mega-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 .78rem/1.3 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--gel); }
.mega-head .icon { width: 16px; height: 16px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; 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(--paper); color: var(--ink); }
.mega-link:hover .badge { background: var(--gel); color: #fff; }
.mega-all { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; width: fit-content; }
.mega-all:hover { color: var(--gel); }
.mega-all .arrow { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav + .header-actions { margin-left: 8px; }
.cta { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 18px; border-radius: 999px; background: var(--gel); color: #fff; font: 600 .95rem/1.2 var(--f-body); text-decoration: none; white-space: nowrap; box-shadow: 0 8px 22px rgba(8, 113, 123, .28); transition: background .2s, box-shadow .2s, translate .2s var(--ease); }
.cta:hover { background: var(--gel-600); color: #fff; translate: 0 -1px; box-shadow: 0 12px 28px rgba(8, 113, 123, .32); }
.cta .cta-icon { width: 19px; height: 19px; }
.cta .cta-arrow { width: 17px; height: 17px; transition: translate .2s var(--ease); }
.cta:hover .cta-arrow { translate: 3px 0; }
.burger { display: none; }

/* Drawer */
.drawer { margin: 0 0 0 auto; padding: 0; width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; border: 0; background: var(--paper); color: var(--text); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer::backdrop { background: rgba(7, 17, 29, .5); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer-nav { min-height: 0; overflow-y: auto; padding: 12px 16px 20px; display: grid; align-content: start; gap: 8px; }
.drawer-group { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.drawer-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font: 600 1rem/1.2 var(--f-head); color: var(--ink); list-style: none; cursor: pointer; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary .icon { width: 18px; height: 18px; transition: rotate .2s; }
.drawer-group[open] summary .icon { rotate: 180deg; }
.drawer-group ul { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.drawer-group a, .drawer-link { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.drawer-link { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-family: var(--f-head); font-weight: 600; }
.drawer-group a:hover, .drawer-group a[aria-current="page"], .drawer-link[aria-current="page"] { background: var(--gel-050); color: var(--gel-600); }
.drawer-foot { display: grid; gap: 14px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.drawer-foot .cta { width: 100%; justify-content: center; }
.contact-icons--drawer { gap: 8px; }
.contact-icons--drawer .icon-btn { width: 42px; height: 42px; }
.drawer-foot .cta-slot:empty { display: none; }

@media (max-width: 1179.98px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
html.a11y-fs-2 .nav, html.a11y-fs-3 .nav { display: none; }
html.a11y-fs-2 .burger, html.a11y-fs-3 .burger { display: inline-grid; }
html.a11y-fs-2 .header-actions, html.a11y-fs-3 .header-actions { margin-left: auto; }

/* Mobile: the page's single CTA docks to the bottom and stays visible. */
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .header-row { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { width: 42px; height: 42px; }
  .header-actions .cta-slot { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; }
  .header-actions .cta { width: 100%; justify-content: center; min-height: 54px; font-size: 1rem; box-shadow: 0 10px 30px rgba(8, 113, 123, .38), 0 0 0 4px rgba(244, 247, 249, .9); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 379.98px) {
  .brand-sub { display: none; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); rotate: 45deg; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gel); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: 36px 0 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head .section-lead { margin: 12px 0 0; max-width: 62ch; color: var(--muted); }
.section-head--stack { flex-direction: column; align-items: flex-start; }
.two-col { display: grid; gap: 48px; }
/* Grid children must be allowed to shrink (long words, scrollable chip rows). */
.hero-grid > *, .page-hero-grid > *, .two-col > *, .intro-grid > *, .career-grid > *, .faq-grid > *, .doc-grid > *, .bio-grid > *, .organ-tabs > *, .contact-grid > *, .form-grid > *, .monitor > *, .footer-grid > *, .notfound-grid > *, .tl-year > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* ---------- Home hero: the scan field ---------- */
.hero { position: relative; padding: 36px 0 84px; overflow: hidden; overflow: clip; }
.hero-fan { position: absolute; z-index: 0; top: -140px; left: 62%; width: 1100px; height: 1000px; translate: -50% 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 0, rgba(8, 113, 123, .12) 0 1px, transparent 1.5px 38px);
  -webkit-mask: conic-gradient(from 146deg at 50% 0, #000 0 68deg, transparent 68deg); mask: conic-gradient(from 146deg at 50% 0, #000 0 68deg, transparent 68deg); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; } }
.hero-title { font-size: clamp(2.45rem, 1.6rem + 3.1vw, 3.7rem); line-height: 1.03; letter-spacing: -.025em; margin: 0 0 12px; }
.hero-sub { margin: 0 0 18px; font: 500 clamp(1.08rem, .98rem + .4vw, 1.3rem)/1.35 var(--f-head); color: var(--gel); }
.hero-lead { max-width: 58ch; font-size: 1.06rem; color: var(--text); margin-bottom: 26px; }
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; background: var(--card); font-size: .9rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.fact > span:last-child { min-width: 0; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 60px; z-index: 0; }
.hero-wave path, .footer-wave path { fill: none; stroke: var(--gel-200); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

.hero-visual { position: relative; }
.scan { position: relative; isolation: isolate; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 70px rgba(11, 27, 43, .25), 0 0 0 1px rgba(11, 27, 43, .06); }
@media (min-width: 900px) { .scan { margin-right: 0; } }
.scan-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.scan-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 29, .6) 0%, rgba(7, 17, 29, 0) 26%, rgba(7, 17, 29, 0) 66%, rgba(7, 17, 29, .66) 100%); }
.scan-line { position: absolute; left: 0; right: 0; top: -50%; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, transparent 47%, rgba(95, 211, 222, .1) 49.4%, rgba(95, 211, 222, .95) 50%, rgba(95, 211, 222, .1) 50.6%, transparent 53%); }
.scan-ruler { position: absolute; right: 16px; top: 16%; bottom: 16%; width: 13px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .78) 0 1px, transparent 1px 14px) right top / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .95) 0 2px, transparent 2px 70px) right top / 13px 100% no-repeat; }
.scan-focus { position: absolute; right: 34px; top: 47%; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 9px solid var(--cyan); }
.scan-corners { position: absolute; inset: 14px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(#fff, #fff) left top / 24px 2px, linear-gradient(#fff, #fff) left top / 2px 24px,
    linear-gradient(#fff, #fff) right top / 24px 2px, linear-gradient(#fff, #fff) right top / 2px 24px,
    linear-gradient(#fff, #fff) left bottom / 24px 2px, linear-gradient(#fff, #fff) left bottom / 2px 24px,
    linear-gradient(#fff, #fff) right bottom / 24px 2px, linear-gradient(#fff, #fff) right bottom / 2px 24px;
  background-repeat: no-repeat; }
.scan-label { position: absolute; top: 26px; left: 28px; right: 70px; margin: 0; display: grid; gap: 2px; color: rgba(255, 255, 255, .94); font: 600 .68rem/1.35 var(--f-body); letter-spacing: .13em; text-transform: uppercase; }
.scan-label span:last-child { color: var(--cyan); }
.scan-caliper { position: absolute; left: 30px; right: 66px; bottom: 30px; margin: 0; display: flex; align-items: center; color: #fff; }
.cal-mark { position: relative; width: 12px; height: 12px; flex: none; }
.cal-mark::before, .cal-mark::after { content: ""; position: absolute; background: var(--cyan); }
.cal-mark::before { left: 5px; top: 0; width: 2px; height: 12px; }
.cal-mark::after { top: 5px; left: 0; width: 12px; height: 2px; }
.cal-line { flex: 1; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .85); margin: 0 4px; }
.cal-label { position: absolute; left: 0; bottom: 18px; padding: 5px 9px; border-radius: 8px; background: rgba(7, 17, 29, .62); font: 600 .72rem/1.2 var(--f-body); letter-spacing: .05em; white-space: nowrap; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.intro-text p { font-size: 1.05rem; max-width: 62ch; }
.intro-quote .callout--quote { margin: 0; }

/* ---------- Callouts ---------- */
.callout { position: relative; margin: 22px 0; padding: 18px 20px 18px 56px; border-radius: 18px; border: 1px solid var(--gel-100); background: var(--gel-050); color: var(--ink); }
.callout > :last-child { margin-bottom: 0; }
.callout::before { content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; background: var(--gel); -webkit-mask: var(--mi) center / contain no-repeat; mask: var(--mi) center / contain no-repeat;
  --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 11v5.2M12 7.8h.01'/%3E%3C/svg%3E"); }
.callout ul { margin: .4em 0 0; }
.callout--alert { background: var(--danger-bg); border-color: var(--danger-line); }
.callout--alert::before { background: var(--danger); --mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.4 4.6 3 17.6A1.8 1.8 0 0 0 4.6 20.3h14.8a1.8 1.8 0 0 0 1.6-2.7L13.6 4.6a1.8 1.8 0 0 0-3.2 0z'/%3E%3Cpath d='M12 9.5v4.3M12 16.9h.01'/%3E%3C/svg%3E"); }
.callout--alert strong { color: #7a1c16; }
.callout--quote { padding: 34px 32px 30px; border: 0; background: var(--card); box-shadow: var(--shadow-1); border-radius: 26px 26px 26px 8px; }
.callout--quote::before { left: 30px; top: -18px; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--gel); -webkit-mask: none; mask: none; }
.callout--quote::after { content: ""; position: absolute; left: 41px; top: -7px; width: 22px; height: 22px; background: #fff; -webkit-mask: var(--qi) center / contain no-repeat; mask: var(--qi) center / contain no-repeat;
  --qi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 6.2c-3.1.9-4.8 3.4-4.8 7.2v4.2h5.4v-5.4H7.6c0-2.1.9-3.5 2.6-4.2zM18.8 6.2c-3.1.9-4.8 3.4-4.8 7.2v4.2h5.4v-5.4h-2.6c0-2.1.9-3.5 2.6-4.2z'/%3E%3C/svg%3E"); }
.callout--quote p:first-child { font: 500 clamp(1.2rem, 1rem + .9vw, 1.6rem)/1.4 var(--f-head); color: var(--ink); letter-spacing: -.01em; margin-bottom: .8em; }
.callout--quote p:last-child { font-size: .9rem; color: var(--muted); }
.callout--wide { padding-left: 20px; }
.callout--wide::before { display: none; }
.callout--wide p { display: flex; align-items: flex-start; gap: 12px; }
.callout-icon { width: 22px; height: 22px; color: var(--gel); margin-top: 2px; }

/* ---------- Exam finder / cards ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.no-js .filter { display: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 .9rem/1.2 var(--f-body); transition: background .2s, color .2s, border-color .2s; }
.filter-btn .icon { width: 17px; height: 17px; color: var(--gel); }
.filter-btn:hover { border-color: var(--gel-200); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn[aria-pressed="true"] .icon { color: var(--cyan); }

.exam-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.exam-card { min-width: 0; }
.exam-link { position: relative; display: grid; align-content: start; gap: 12px; height: 100%; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s, translate .25s var(--ease); }
.exam-link:hover { color: var(--text); border-color: var(--gel-200); box-shadow: var(--shadow-1); translate: 0 -3px; }
.exam-link:hover .badge { background: var(--gel); color: #fff; }
.exam-name { padding-right: 26px; font: 600 1.08rem/1.3 var(--f-head); color: var(--ink); }
.exam-text { font-size: .92rem; color: var(--muted); }
.exam-arrow { position: absolute; top: 24px; right: 22px; width: 20px; height: 20px; color: var(--line-2); transition: color .2s, translate .2s var(--ease); }
.exam-link:hover .exam-arrow { color: var(--gel); translate: 3px 0; }
.exam-card.is-filtered { display: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; padding: 26px 24px 22px; border-radius: 22px 22px 22px 8px; background: var(--card); border: 1px solid var(--line); }
.step h3 { margin: 16px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-depth { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gel-200); color: var(--gel); font: 600 .9rem/1 var(--f-head); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 39px; right: -21px; width: 22px; border-top: 1.5px dashed var(--gel-200); }
}

/* ---------- Monitor (dark band) ---------- */
.section--monitor { position: relative; background: var(--ink); color: #d8e3ec; overflow: hidden; overflow: clip; }
.section--monitor::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(900px 380px at 85% -10%, rgba(95, 211, 222, .16), transparent 60%), radial-gradient(700px 300px at 0% 110%, rgba(107, 159, 245, .1), transparent 60%); }
.section--monitor .container { position: relative; }
.section--monitor h2 { color: #fff; }
.section-head--light .section-lead { color: #b9c7d3; }
.monitor { display: grid; gap: 22px; }
@media (min-width: 900px) { .monitor { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: stretch; } }
.monitor-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 .8rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.monitor-label .icon { width: 18px; height: 18px; }
.prep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prep-chip { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: #dde7ef; font: 500 .86rem/1.25 var(--f-body); text-align: left; transition: background .2s, color .2s, border-color .2s; }
.prep-chip:hover { border-color: rgba(95, 211, 222, .6); color: #fff; }
.prep-chip[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 600; }
.monitor-screen { position: relative; min-height: 300px; padding: 34px 58px 30px 32px; border-radius: 24px; border: 1px solid rgba(95, 211, 222, .28); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(95, 211, 222, .05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(95, 211, 222, .05) 0 1px, transparent 1px 34px),
    radial-gradient(120% 90% at 50% 0%, #0f2a3d 0%, #07121f 70%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
.monitor-ruler { position: absolute; right: 18px; top: 26px; bottom: 26px; width: 13px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 12px) right top / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .8) 0 2px, transparent 2px 60px) right top / 13px 100% no-repeat; }
.prep-panel { position: relative; }
.js .prep-panel[data-inactive] { display: none; }
.no-js .prep-panel + .prep-panel { margin-top: 26px; padding-top: 26px; border-top: 1px dashed rgba(255, 255, 255, .15); }
.prep-panel.is-shown { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
.prep-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 19px 19px 19px 6px; background: rgba(95, 211, 222, .14); color: var(--cyan); }
.prep-icon .icon { width: 28px; height: 28px; }
.prep-icon--clock { background: rgba(228, 96, 109, .16); color: #ff9aa4; }
.prep-icon--droplet { background: rgba(107, 159, 245, .16); color: #a4c4ff; }
.prep-icon--calendar, .prep-icon--clipboard { background: rgba(255, 255, 255, .1); color: #fff; }
.prep-exam { margin: 20px 0 10px; color: #fff; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.prep-text { margin: 0; font-size: 1.08rem; line-height: 1.6; color: #d8e3ec; max-width: 46ch; }
.monitor-foot { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #a9b8c5; }
.monitor-foot .icon { width: 17px; height: 17px; color: var(--cyan); }
.section--monitor-page { padding: 48px 0; }

/* ---------- Frames (photos with scan corners) ---------- */
.frame { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-2); }
.frame-img { width: 100%; height: 100%; object-fit: cover; }
.frame .scan-corners { inset: 12px; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--hero { aspect-ratio: 4 / 5; max-width: 420px; margin-inline: auto; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame-cap { position: absolute; left: 22px; bottom: 20px; right: 22px; margin: 0; padding: 6px 10px; width: fit-content; border-radius: 8px; background: rgba(7, 17, 29, .66); color: #fff; font: 600 .76rem/1.3 var(--f-body); letter-spacing: .04em; }

/* ---------- Career / ruler timeline ---------- */
.career-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .career-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.career-photo { max-width: 400px; width: 100%; margin-inline: auto; }
.ruler { position: relative; list-style: none; margin: 8px 0 22px; padding: 0 0 0 34px; }
.ruler::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--gel-100); }
.ruler::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 8px; background: repeating-linear-gradient(180deg, var(--gel-200) 0 1px, transparent 1px 12px); }
.ruler li { position: relative; display: grid; gap: 4px 20px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ruler li:last-child { border-bottom: 0; }
@media (min-width: 640px) { .ruler li { grid-template-columns: 128px minmax(0, 1fr); } }
.ruler li::before { content: ""; position: absolute; left: -31px; top: 19px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gel); background: var(--card); }
.ruler li.is-now::before { background: var(--gel); box-shadow: 0 0 0 5px var(--gel-050); }
.ruler-year { font: 600 .95rem/1.4 var(--f-head); color: var(--gel); font-variant-numeric: tabular-nums; }
.ruler-text { min-width: 0; color: var(--text); }
.ruler--compact li { padding: 12px 0; }
@media (min-width: 640px) { .ruler--compact li { grid-template-columns: 150px minmax(0, 1fr); } }

/* ---------- Talks ---------- */
.talk-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.talk-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; background: var(--card); overflow: hidden; }
.talk-img { margin: 0; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.talk-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: scale .5s var(--ease); }
.talk-card:hover .talk-img img { scale: 1.04; }
.talk-body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.talk-date { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; font-weight: 600; color: var(--gel); font-variant-numeric: tabular-nums; }
.talk-date .icon { width: 16px; height: 16px; }
.talk-title { margin: 0; font-size: 1.06rem; line-height: 1.35; }

/* ---------- Videos (click-to-load) ---------- */
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.video { display: flex; flex-direction: column; height: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; background: var(--card); overflow: hidden; }
.video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); overflow: hidden; }
.video-screen { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(95, 211, 222, .06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(95, 211, 222, .06) 0 1px, transparent 1px 26px),
    radial-gradient(110% 90% at 50% 10%, #12324a 0%, #07121f 72%); }
.video-scan { position: absolute; left: 0; right: 0; top: -50%; height: 100%; background: linear-gradient(180deg, transparent 48%, rgba(95, 211, 222, .45) 50%, transparent 52%); opacity: .6; }
.video-wave { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 34%; }
.video-wave path { fill: none; stroke: rgba(95, 211, 222, .7); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.video-btn { position: absolute; left: 50%; top: 44%; display: grid; place-items: center; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%; background: #fff; color: var(--gel); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: scale .25s var(--ease); }
.video-btn .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-play:hover .video-btn, .video-play:focus-visible .video-btn { scale: 1.08; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { display: grid; gap: 8px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.video-src { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .8rem; color: var(--muted); }
.video-src .icon { width: 16px; height: 16px; color: var(--gel); }
.video-title { margin: 0; font-size: 1.02rem; line-height: 1.35; }

/* ---------- Accordions ---------- */
.acc-list { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.acc[open] { border-color: var(--gel-200); box-shadow: var(--shadow-1); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; list-style: none; cursor: pointer; font: 600 1.02rem/1.4 var(--f-head); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--gel-600); }
.acc-icon { width: 22px; height: 22px; padding: 3px; border-radius: 8px; background: var(--gel-050); color: var(--gel); transition: rotate .25s var(--ease), background .2s; }
.acc[open] .acc-icon { rotate: 45deg; background: var(--gel); color: #fff; }
.acc-body { padding: 0 20px 18px; color: var(--text); }
.acc-body > :last-child { margin-bottom: 0; }
.acc-body ul, .acc-body ol { padding-left: 1.2em; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .acc::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .acc[open]::details-content { block-size: auto; }
}
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }

/* ---------- Visit strip ---------- */
.section--visit { padding-top: 0; }
.visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; padding: 28px; border-radius: 26px 26px 26px 8px; background: var(--card); border: 1px solid var(--line); }
.visit-text { display: flex; align-items: center; gap: 16px; min-width: 0; }
.visit h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); margin: 0 0 4px; }
.visit p { margin: 0; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; overflow: clip; padding: 22px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; z-index: 0; top: -60px; right: -140px; width: 620px; height: 560px; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 0, rgba(8, 113, 123, .1) 0 1px, transparent 1.5px 34px);
  -webkit-mask: conic-gradient(from 150deg at 50% 0, #000 0 60deg, transparent 60deg); mask: conic-gradient(from 150deg at 50% 0, #000 0 60deg, transparent 60deg); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; max-width: 24ch; }
.page-lead { max-width: 64ch; font-size: 1.08rem; color: var(--text); margin-bottom: 0; }
.page-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 48px; } }
@media (min-width: 960px) { .page-hero-grid--media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.jump { display: grid; gap: 8px; }
.jump-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none; transition: border-color .2s, color .2s; }
.jump-link:hover { border-color: var(--gel-200); color: var(--gel-600); }
@media (max-width: 959.98px) {
  .jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .jump-link { flex: none; }
}
.page-hero--legal .container { max-width: 900px; }

/* Exam hero prep card */
.prep-card { position: relative; display: grid; gap: 8px; justify-items: start; padding: 26px 58px 24px 26px; border-radius: 24px 24px 24px 8px; background: var(--ink); color: #d8e3ec; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, rgba(95, 211, 222, .05) 0 1px, transparent 1px 30px), repeating-linear-gradient(90deg, rgba(95, 211, 222, .05) 0 1px, transparent 1px 30px); }
.prep-card-ruler { position: absolute; right: 16px; top: 22px; bottom: 22px; width: 12px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 12px) right top / 6px 100% no-repeat, repeating-linear-gradient(180deg, rgba(255, 255, 255, .8) 0 2px, transparent 2px 60px) right top / 12px 100% no-repeat; }
.prep-card .prep-icon { width: 50px; height: 50px; }
.prep-card .prep-icon .icon { width: 24px; height: 24px; }
.prep-card-label { margin: 8px 0 0; font: 600 .76rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.prep-card-text { margin: 0 0 6px; font: 500 1.15rem/1.4 var(--f-head); color: #fff; }

/* ---------- Document layout (exam, article) ---------- */
.doc-grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 72px; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 1023.98px) { .toc { display: none; } }
.toc-title { margin: 0 0 10px; font: 600 .76rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 6px 0 6px 6px; color: var(--muted); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.toc a::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { background: var(--gel); }
.doc { min-width: 0; max-width: 820px; }
.doc-section { padding-bottom: 12px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section:last-of-type { border-bottom: 0; }
.doc-h { display: flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 18px; }

/* Prose */
.prose { color: var(--text); }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: none; margin: 0 0 1.1em; padding: 0; display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 3px 3px 3px 1px; background: var(--gel-400); }
.prose ul ul { margin: 8px 0 4px; }
.prose ul ul > li::before { background: var(--gel-200); }
.prose ol { margin: 0 0 1.1em; padding: 0; list-style: none; counter-reset: ol; display: grid; gap: 10px; }
.prose ol > li { position: relative; padding-left: 38px; counter-increment: ol; }
.prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px 8px 8px 3px; background: var(--gel-050); color: var(--gel); font: 600 .82rem/1 var(--f-head); }
.prose h2 { margin: 1.6em 0 .6em; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin: 1.4em 0 .5em; }
.prose a:not(.text-link) { font-weight: 500; }
.prose a.ref { font-weight: 600; }
.prose--lg { font-size: 1.04rem; }
.article-lead { font: 400 clamp(1.1rem, 1.02rem + .35vw, 1.25rem)/1.6 var(--f-body); color: var(--ink); }
.prose--article > h2:first-of-type { margin-top: 1.2em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--paper); font: 600 .78rem/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--ink); }
@media (max-width: 639.98px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
  .table th, .table td { border-bottom: 1px dashed var(--line); }
  .table tr > :last-child { border-bottom: 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 600 .72rem/1.3 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
}
.prep-mini { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; vertical-align: middle; border-radius: 8px 8px 8px 3px; background: var(--gel-050); color: var(--gel); }
.prep-mini .icon { width: 15px; height: 15px; }
.prep-mini.prep-icon--clock { background: #fdecee; color: #b3303e; }
.prep-mini.prep-icon--droplet { background: #eaf1fe; color: #2e5fbf; }

/* Summary (articles) */
.summary { margin: 36px 0 22px; padding: 26px 26px 20px; border-radius: 24px 24px 24px 8px; background: var(--gel-050); border: 1px solid var(--gel-100); }
.summary h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.summary li { position: relative; padding-left: 30px; }
.summary li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: var(--gel); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat;
  --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2 8.8-9.2'/%3E%3C/svg%3E"); }
.article-source { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 26px; font-size: .9rem; color: var(--muted); }
.article-source .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gel); }
.article-head { max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .icon { width: 17px; height: 17px; color: var(--gel); }

/* Related / pager */
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rel-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s, translate .2s var(--ease); }
.rel-card > span:nth-child(2) { flex: 1; min-width: 0; }
.rel-card:hover { border-color: var(--gel-200); color: var(--ink); translate: 0 -2px; }
.rel-title { display: block; font: 600 1rem/1.35 var(--f-head); }
.rel-meta { display: block; font-size: .82rem; color: var(--muted); }
.rel-arrow { width: 20px; height: 20px; color: var(--gel); }
.rel-card--exam { margin-bottom: 26px; }
.pager { display: grid; gap: 12px; margin-top: 30px; }
@media (min-width: 640px) { .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.pager-link:hover { border-color: var(--gel-200); color: var(--ink); }
.pager-link .icon { width: 20px; height: 20px; color: var(--gel); flex: none; }
.pager-link > span { min-width: 0; }
.pager-link--next { justify-content: space-between; text-align: right; }
@media (min-width: 640px) { .pager-link--next:only-child { grid-column: 2; } }
.pager-label { display: block; font-size: .78rem; color: var(--muted); }
.pager-title { display: block; font: 600 .98rem/1.35 var(--f-head); }

/* ---------- Exams hub ---------- */
.section--group { padding: 44px 0 8px; }
.section--group + .section--group { border-top: 1px solid var(--line); }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.group-head h2 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.group-count { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.section--group:last-of-type { padding-bottom: 44px; }

/* ---------- About ---------- */
.bio-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .bio-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; } }
.facts-card { padding: 22px; border-radius: 24px 24px 24px 8px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 1024px) { .facts-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.facts-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .8rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gel); }
.facts-card-title .icon { width: 20px; height: 20px; }
.facts-card dl { margin: 0; display: grid; gap: 12px; }
.facts-card dl > div { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.facts-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-card dt { font-size: .78rem; color: var(--muted); }
.facts-card dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.section--principles { background: var(--card); border-block: 1px solid var(--line); }
.principles-quote { max-width: 860px; margin: 0 0 30px; }
.principles-quote .callout--quote { background: var(--paper); box-shadow: none; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.principle { padding: 24px; border-radius: 22px 22px 22px 8px; border: 1px solid var(--line); background: var(--paper); }
.principle h3 { margin: 16px 0 8px; }
.principle p { margin: 0; color: var(--muted); font-size: .95rem; }
.award-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.award-photos .zoom { aspect-ratio: 4 / 5; }
.course-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.course { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 22px 22px 22px 8px; border: 1px solid var(--line); background: var(--card); }
.course-year { width: fit-content; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .82rem/1.2 var(--f-head); font-variant-numeric: tabular-nums; }
.course-title { margin: 0; color: var(--ink); font-weight: 500; }
.course-place { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .88rem; color: var(--muted); }
.course-place .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--gel); }
.membership { display: flex; align-items: flex-start; gap: 18px; padding: 26px; border-radius: 24px 24px 24px 8px; border: 1px solid var(--line); background: var(--card); }
.membership h2 { font-size: 1.3rem; margin: 6px 0 8px; }
.membership ul { list-style: none; margin: 0; padding: 0; }

/* Zoomable images */
.zoom { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--ink); }
.zoom-img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease), opacity .3s; }
.zoom:hover .zoom-img { scale: 1.04; }
.zoom-icon { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; translate: 0 6px; transition: opacity .2s, translate .2s var(--ease); }
.zoom-icon .icon { width: 19px; height: 19px; }
.zoom:hover .zoom-icon, .zoom:focus-visible .zoom-icon { opacity: 1; translate: 0 0; }
@media (hover: none) { .zoom-icon { opacity: 1; translate: 0 0; } }

/* ---------- Events ---------- */
.timeline { display: grid; gap: 10px; }
.tl-year { display: grid; gap: 12px; }
@media (min-width: 900px) { .tl-year { grid-template-columns: 140px minmax(0, 1fr); gap: 28px; } }
.tl-year-label { margin: 0; font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1 var(--f-head); color: var(--gel-200); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tl-year-label { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: 18px; } }
.tl-list { position: relative; list-style: none; margin: 0 0 20px; padding: 0 0 0 30px; display: grid; gap: 16px; }
.tl-list::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--gel-100); }
.tl-item { position: relative; padding: 20px 22px; border-radius: 22px 22px 22px 8px; border: 1px solid var(--line); background: var(--card); }
.tl-dot { position: absolute; left: -29px; top: 26px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gel); background: var(--paper); }
.tl-date { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .86rem; font-weight: 600; color: var(--gel); font-variant-numeric: tabular-nums; }
.tl-date .icon { width: 16px; height: 16px; }
.tl-title { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.4; }
.tl-role { margin: 0; color: var(--muted); }
.tl-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: .93rem; }
.tl-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 16px; }
.tl-media .zoom { aspect-ratio: 4 / 3; border-radius: 14px; }
.tl-media .zoom-img { object-position: 50% 15%; }
.moments { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; } .moments .zoom:nth-child(1), .moments .zoom:nth-child(2) { grid-row: span 2; } .moments .zoom:nth-child(3), .moments .zoom:nth-child(4) { grid-column: span 2; } }
.moments .zoom { min-height: 200px; }
.moments .zoom-img { object-position: 50% 25%; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gallery-item { margin: 0; display: grid; gap: 10px; align-content: start; }
.gallery-item .zoom { aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--line); }
.gallery-item .zoom-img { object-fit: contain; }
.gallery-item figcaption { font-size: .86rem; color: var(--muted); }

/* ---------- Media ---------- */
.archive { margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.archive summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font: 600 1rem/1.3 var(--f-head); color: var(--ink); }
.archive summary::-webkit-details-marker { display: none; }
.archive-chev { width: 20px; height: 20px; margin-left: auto; transition: rotate .2s; }
.archive[open] .archive-chev { rotate: 180deg; }
.archive-note { margin: 0 18px 16px; color: var(--muted); }
.archive .video-grid { padding: 0 18px 18px; }
.section--press { background: var(--card); border-block: 1px solid var(--line); }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.press-item a { display: grid; gap: 4px 18px; align-items: center; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s; }
@media (min-width: 760px) { .press-item a { grid-template-columns: 150px minmax(0, 1fr) auto auto; } }
.press-item a:hover { border-color: var(--gel-200); color: var(--ink); }
.press-outlet { font: 600 .85rem/1.3 var(--f-body); color: var(--gel); }
.press-title { font-weight: 500; }
.press-date { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.press-date .icon { width: 15px; height: 15px; }
.press-arrow { width: 18px; height: 18px; color: var(--gel); }
.post-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.post-list a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.post-list a:hover { border-color: var(--gel-200); color: var(--ink); }
.post-date { font-size: .8rem; color: var(--muted); }
.post-topic { font-weight: 600; }
.post-platform { font-size: .85rem; color: var(--gel); }
.bios { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.bio-card { margin: 0; display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 22px 22px 22px 8px; border: 1px solid var(--line); background: var(--card); }
.bio-label { font: 600 .8rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gel); }
.bio-text { margin: 0; color: var(--text); }
.bio-text p { margin: 0; }
.bio-card .link-btn { width: fit-content; }

/* ---------- FAQ page ---------- */
.faq-page { max-width: 900px; padding-top: 40px; padding-bottom: 72px; }
.faq-group { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.acc { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Blog ---------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.post-card a { display: grid; gap: 12px; align-content: start; height: 100%; padding: 24px; border-radius: 24px 24px 24px 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s, translate .25s var(--ease); }
.post-card a:hover { border-color: var(--gel-200); box-shadow: var(--shadow-1); translate: 0 -3px; color: var(--text); }
.post-top { display: flex; align-items: center; gap: 10px; }
.post-topic-label { font: 600 .78rem/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--gel); }
.post-card-title { font: 600 1.18rem/1.32 var(--f-head); color: var(--ink); }
.post-card-text { color: var(--muted); font-size: .94rem; }
.post-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.post-card-meta .icon { width: 16px; height: 16px; color: var(--gel); }
.post-arrow { margin-left: auto; width: 20px !important; height: 20px !important; transition: translate .2s var(--ease); }
.post-card a:hover .post-arrow { translate: 3px 0; }

/* ---------- Conditions (tabs) ---------- */
.organ-tabs { display: grid; gap: 22px; }
@media (min-width: 960px) { .organ-tabs { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; } }
.organ-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 960px) { .organ-list { position: sticky; top: calc(var(--header-h) + 24px); flex-direction: column; overflow: visible; padding: 0; } }
.no-js .organ-list { display: none; }
.organ-tab { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 .93rem/1.25 var(--f-body); text-align: left; transition: border-color .2s, background .2s, color .2s; }
.organ-tab:hover { border-color: var(--gel-200); }
.organ-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.organ-tab[aria-selected="true"] .badge { background: rgba(95, 211, 222, .16); color: var(--cyan); }
.js .organ-panel[data-inactive] { display: none; }
.organ-panel { padding: 28px; border-radius: 26px 26px 26px 8px; border: 1px solid var(--line); background: var(--card); }
.no-js .organ-panel + .organ-panel { margin-top: 18px; }
.organ-panel.is-shown { animation: panel-in .4s var(--ease); }
.cond-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; }
.cond { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cond:last-child { border-bottom: 0; }
.cond-name { margin: 0 0 4px; font: 600 1.02rem/1.35 var(--f-head); color: var(--ink); }
.cond-text { margin: 0; color: var(--text); }
.cond-text a.ref { display: inline-flex; margin-top: 4px; }

/* ---------- Preparation page ---------- */
.hero-video { display: grid; gap: 10px; }
.hero-video-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
.hero-video-label .icon { width: 18px; height: 18px; color: var(--gel); }
.bring { align-self: start; padding: 26px; border-radius: 26px 26px 26px 8px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 900px) { .bring { position: sticky; top: calc(var(--header-h) + 24px); } }
.bring h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist .icon { width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 7px; background: var(--gel-050); color: var(--gel); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.contact-card { display: grid; gap: 22px; padding: 28px; border-radius: 26px 26px 26px 8px; background: var(--card); border: 1px solid var(--line); }
.contact-place { display: flex; align-items: center; gap: 16px; }
.contact-place h2 { margin: 0 0 4px; font-size: 1.35rem; }
.contact-place p { margin: 0; color: var(--muted); }
.contact-info h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-size: 1.02rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info h3 .icon { width: 19px; height: 19px; color: var(--gel); }
.contact-info p { margin: 0 0 8px; }
.contact-info ul { margin: 0; padding-left: 1.2em; }
.contact-map { display: grid; gap: 14px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: 26px 26px 26px 8px; overflow: hidden; border: 1px solid var(--line); background: #eaf1f4; }
.map-grid { position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(8, 113, 123, .07) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(8, 113, 123, .07) 0 1px, transparent 1px 28px), radial-gradient(60% 60% at 50% 50%, rgba(95, 211, 222, .25), transparent 70%); }
.map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border: 0; background: none; color: var(--ink); }
.map-load .badge { background: var(--gel); color: #fff; box-shadow: 0 0 0 10px rgba(8, 113, 123, .12), 0 0 0 22px rgba(8, 113, 123, .06); margin-bottom: 14px; }
.map-load-text { font: 600 1.05rem/1.2 var(--f-head); }
.map-load-sub { font-size: .85rem; color: var(--muted); }
.map-load:hover .map-load-text { color: var(--gel); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-map .callout { margin: 4px 0 0; }
.section--form { background: var(--card); border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.form-intro p { color: var(--text); }
.mini-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.mini-steps span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px 10px 10px 4px; background: var(--gel-050); color: var(--gel); font: 600 .9rem/1 var(--f-head); }
.form-card { padding: clamp(20px, 3vw, 32px); border-radius: 26px 26px 26px 8px; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Form ---------- */
.booking-form { display: grid; gap: 16px 18px; }
@media (min-width: 640px) { .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gel); box-shadow: 0 0 0 4px rgba(8, 113, 123, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--gel); pointer-events: none; }
.field--check { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gel); }
.field--check label { font-weight: 400; font-size: .92rem; }
.field--check .field-err { grid-column: 1 / -1; }
.field-err { margin: 0; color: var(--danger); font-size: .85rem; font-weight: 500; }
.form-alert { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--danger-bg); border: 1px solid var(--danger-line); color: #7a1c16; font-weight: 500; }
.form-alert .icon { width: 20px; height: 20px; }
@media (min-width: 640px) { .form-alert { grid-column: 1 / -1; } }
.form-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: .86rem; color: var(--muted); }
.form-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gel); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 600 1rem/1.2 var(--f-body); transition: background .2s, color .2s; }
.btn-submit .icon { width: 20px; height: 20px; color: var(--gel); }
.btn-submit:hover { background: var(--ink); color: #fff; }
.btn-submit:hover .icon { color: var(--cyan); }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: .92rem; font-weight: 500; color: var(--gel-600); }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dialogs ---------- */
.dlg { padding: 0; border: 0; border-radius: 26px; background: var(--card); color: var(--text); width: min(640px, 100vw - 24px); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-2); overflow: auto; overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(7, 17, 29, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg-inner { padding: 24px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dlg-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.35rem; }
.dlg-lead { color: var(--muted); }
.dlg-alt { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.dlg--search { margin-top: 9vh; width: min(720px, 100vw - 24px); }
.dlg--booking { width: min(760px, 100vw - 24px); }
.dlg--booking .dlg-inner { background: var(--paper); }
@media (max-width: 639.98px) {
  .dlg--booking, .dlg--search { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .dlg--booking .dlg-inner { min-height: 100%; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
.search-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line-2); border-radius: 18px; background: var(--card); }
.search-bar:focus-within { border-color: var(--gel); box-shadow: 0 0 0 4px rgba(8, 113, 123, .12); }
.search-bar-icon { width: 22px; height: 22px; color: var(--gel); }
.search-bar input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: none; font-size: 1.1rem; color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar--page { margin-top: 18px; max-width: 680px; }
.search-live { display: grid; gap: 6px; margin-top: 14px; }
.search-live:empty { display: none; }
.search-live a, .result a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.search-live a:hover, .search-live a.is-active, .result a:hover { border-color: var(--gel-200); background: var(--gel-050); color: var(--ink); }
.result-type, .search-live .r-type { font: 600 .72rem/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gel); }
.result-title, .search-live .r-title { font: 600 1rem/1.35 var(--f-head); }
.result-snippet, .search-live .r-snip { font-size: .88rem; color: var(--muted); }
.search-hint { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.search-hint a { display: inline-block; margin: 4px 4px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--gel-050); text-decoration: none; font-weight: 500; }
.search-empty { margin: 4px 2px; color: var(--muted); }
.search-page { max-width: 900px; }
.search-count { font-weight: 600; color: var(--ink); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.a11y-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.a11y-label .icon { width: 20px; height: 20px; color: var(--gel); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: none; font-weight: 600; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.a11y-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; text-align: left; }
.a11y-tile .icon { width: 24px; height: 24px; color: var(--gel); }
.a11y-tile[aria-pressed="true"] { border-color: var(--gel); background: var(--gel-050); }
.a11y-tile--reset { border-style: dashed; }
@media (max-width: 419.98px) { .a11y-grid { grid-template-columns: 1fr; } }

.dlg--card { width: min(460px, 100vw - 24px); }
.vcard { position: relative; display: grid; gap: 18px; }
.vcard-close { position: absolute; top: 16px; right: 16px; }
.vcard-top { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.vcard-photo { width: 84px; height: 84px; flex: none; border-radius: 26px 26px 26px 8px; overflow: hidden; background: var(--ink); }
.vcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.vcard-name { margin: 0 0 4px; font-size: 1.3rem; }
.vcard-role { margin: 0; color: var(--muted); font-size: .92rem; }
.vcard-list { margin: 0; display: grid; gap: 10px; }
.vcard-list > div { display: flex; align-items: flex-start; gap: 12px; }
.vcard-list dt .icon { width: 20px; height: 20px; color: var(--gel); margin-top: 2px; }
.vcard-list dd { margin: 0; color: var(--ink); }
.vcard-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

.dlg--lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: rgba(7, 17, 29, .94); display: grid; place-items: center; overflow: hidden; }
.dlg--lightbox::backdrop { background: rgba(7, 17, 29, .9); }
.lightbox { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 60px 16px 24px; max-width: 100%; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 78dvh; width: auto; height: auto; border-radius: 14px; background: #fff; }
.lightbox figcaption { max-width: 70ch; text-align: center; color: #d8e3ec; font-size: .92rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gel); border-color: var(--gel); }

/* ---------- Legal / sitemap / 404 ---------- */
.legal { max-width: 900px; }
.legal-date { margin-top: 28px; color: var(--muted); font-size: .9rem; }
.sitemap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sitemap-col h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sitemap-col a { text-decoration: none; font-weight: 500; }
.sitemap-col a:hover { text-decoration: underline; }
.notfound-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .notfound-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.notfound-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: radial-gradient(110% 90% at 50% 0%, #12324a 0%, #07121f 72%); }
.notfound-screen .scan-ruler { top: 14%; bottom: 14%; }
.notfound-wave { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 60px; translate: 0 -50%; }
.notfound-wave path { stroke: rgba(95, 211, 222, .7); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.notfound-code { position: absolute; left: 28px; bottom: 22px; font: 600 min(6rem, 22vw)/1 var(--f-head); color: rgba(255, 255, 255, .9); letter-spacing: -.03em; }
.notfound-links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .notfound-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 0; padding-top: 30px; background: var(--card); border-top: 1px solid var(--line); }
.footer-wave { position: absolute; left: 0; right: 0; top: -21px; height: 40px; pointer-events: none; }
.footer-wave svg { width: 100%; height: 100%; }
.footer-grid { display: grid; gap: 32px; padding: 30px 0 34px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-about { margin: 0; color: var(--muted); max-width: 46ch; }
.footer-address { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-weight: 500; }
.footer-address .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gel); }
.footer-brand .link-btn { width: fit-content; }
.footer-brand .contact-icons { gap: 8px; }
.footer-brand .icon-btn--contact { width: 42px; height: 42px; }
.footer-h { margin: 0 0 12px; font-size: .95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--gel); text-decoration: underline; }
.footer-bottom { display: grid; gap: 14px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); }
.footer-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--gel); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.legal-links a { color: var(--muted); }
.copyright { margin: 0; color: var(--muted); }
.copyright a { font-weight: 600; }

/* ---------- Motion ---------- */
.m-on [data-reveal] { transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--m-d, 0ms); }
.m-on [data-reveal]:not(.is-in) { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html:not(.a11y-pause) .scan-line { animation: sweep 7s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  html:not(.a11y-pause) .video-scan { animation: sweep 5.5s ease-in-out infinite alternate; }
  html:not(.a11y-pause) .notfound-screen .scan-line { animation-duration: 4s; }
  html:not(.a11y-pause) .hero-wave path { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s .3s var(--ease) forwards; }
  html:not(.a11y-pause) .scan-focus { animation: blink 2.8s ease-in-out infinite; }
}
@keyframes sweep { from { translate: 0 0; } to { translate: 0 100%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .35; } }
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation: none !important; transition: none !important; }
html.a11y-pause::view-transition-group(*), html.a11y-pause::view-transition-old(*), html.a11y-pause::view-transition-new(*) { animation: none !important; }
html.a11y-pause { scroll-behavior: auto; }

/* ---------- Accessibility modes ---------- */
html.a11y-fs-1 { font-size: 112.5%; }
html.a11y-fs-2 { font-size: 125%; }
html.a11y-fs-3 { font-size: 137.5%; }
html.a11y-fs-2 .hero-title, html.a11y-fs-3 .hero-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
html.a11y-fs-2 .sub--mega, html.a11y-fs-3 .sub--mega { display: none; }
html.a11y-spacing body { letter-spacing: .05em; word-spacing: .14em; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd { line-height: 1.95; }
html.a11y-links a:not(.cta):not(.icon-btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links a:focus-visible, html.a11y-links a:hover { outline: 3px solid #ffb703; outline-offset: 2px; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-contrast {
  --ink: #ffffff; --ink-2: #ffffff; --text: #ffffff; --muted: #f0f0f0; --line: #ffffff; --line-2: #ffffff;
  --paper: #000000; --card: #000000; --gel: #ffe14d; --gel-600: #fff08f; --gel-400: #ffe14d; --gel-200: #ffe14d; --gel-100: #3a3a00; --gel-050: #1c1c00; --cyan: #ffe14d;
  --danger: #ff8a80; --danger-bg: #000; --danger-line: #ff8a80; color-scheme: dark;
}
html.a11y-contrast body, html.a11y-contrast .section--monitor, html.a11y-contrast .monitor-screen, html.a11y-contrast .prep-card, html.a11y-contrast .video-play, html.a11y-contrast .notfound-screen { background: #000 !important; }
html.a11y-contrast .site-header::before { background: #000; border-bottom-color: #fff; }
html.a11y-contrast .hero-fan, html.a11y-contrast .page-hero::after, html.a11y-contrast .map-grid { display: none; }
html.a11y-contrast .cta, html.a11y-contrast .filter-btn[aria-pressed="true"], html.a11y-contrast .organ-tab[aria-selected="true"], html.a11y-contrast .seg button[aria-pressed="true"], html.a11y-contrast .course-year, html.a11y-contrast .prep-chip[aria-selected="true"] { background: #ffe14d !important; color: #000 !important; border-color: #ffe14d !important; }
html.a11y-contrast .cta .icon { color: #000; }
html.a11y-contrast a { color: #ffe14d; }
html.a11y-contrast .badge { background: #000; color: #ffe14d; border: 1px solid #ffe14d; }
html.a11y-contrast .brand-mark rect { fill: #000; stroke: #fff; }
html.a11y-contrast .callout--quote::after { background: #000; }
html.a11y-contrast .scan-shade { background: rgba(0, 0, 0, .35); }
html.a11y-contrast .map { background: #000; }
html.a11y-contrast .icon-btn:hover, html.a11y-contrast .icon-btn:focus-visible { background: #ffe14d; color: #000; }
html.a11y-contrast .video-btn { background: #ffe14d; color: #000; }
@media (max-width: 767.98px) {
  html.a11y-fs-2 .brand-sub, html.a11y-fs-3 .brand-sub { display: none; }
  html.a11y-fs-3 .brand-name { font-size: .9rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .drawer, .dlg, .cta-slot, .toc, .filter, .video-play { display: none !important; }
  body { background: #fff; padding: 0; }
  .m-on [data-reveal]:not(.is-in) { opacity: 1; translate: none; }
}
