/* =========================================================
   Dr. Şirvan Zəkəriyəyev — endokrinoloq
   Warm paper, deep teal (#0E767A — the existing site colour), sage and amber data accents.
   Type: Lexend (headings, light and modest in size), Fira Sans (text), IBM Plex Mono (labels, data).
   All sizes in rem so the accessibility menu's text-size tool scales the page.
   ========================================================= */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE2;
  --paper-3: #E7E1D5;
  --card: #FFFFFF;
  --ink: #0F2321;
  --text: #2A3936;
  --muted: #586763;
  --line: #DCD5C8;
  --line-2: #E8E2D7;
  --teal: #0E767A;
  --teal-600: #0B6669;
  --teal-700: #095457;
  --teal-900: #07393B;
  --teal-950: #052A2C;
  --teal-200: #A9D3CF;
  --teal-100: #D5EAE7;
  --teal-50: #EAF4F2;
  --sage: #4E8A69;
  --sage-200: #BCD7C4;
  --sage-50: #EDF4EF;
  --amber: #C08A3E;
  --amber-200: #E8CF9E;
  --terra: #B5644E;
  --terra-200: #E6BBAE;
  --wa: #1D6B4E;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 33, .06);
  --shadow: 0 1px 2px rgba(15, 35, 33, .05), 0 12px 32px -18px rgba(15, 35, 33, .28);
  --shadow-lg: 0 2px 6px rgba(15, 35, 33, .06), 0 28px 60px -28px rgba(15, 35, 33, .38);
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Lexend", "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --dock-h: 0px;
}

/* ---------------------------------------------------------------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.66;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* clip, unlike hidden, never turns <body> into a scroll container (keeps the sticky header sticky while a dialog locks the page) */
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); line-height: 1.2; margin: 0; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { 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; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.i--sm { width: 1em; height: 1em; vertical-align: -.15em; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.main { display: block; outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- shared atoms */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--teal-700); font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.kicker__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-50); color: var(--teal); border: 1px solid var(--teal-100); }
.kicker__icon .i { width: 17px; height: 17px; }
.kicker--practice { color: var(--teal-700); }
.kicker--general { color: #3D6E53; }
.kicker--general .kicker__icon { background: var(--sage-50); border-color: var(--sage-200); color: var(--sage); }
.kicker--light { color: var(--teal-100); }
.kicker--light .kicker__icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #DFF1EE; }
.kicker--plain { gap: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn .i { width: 20px; height: 20px; }
.btn--cta { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 118, 122, .7); }
.btn--cta:hover { background: var(--teal-700); color: #fff; }
.btn--cta:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--line { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--teal); color: var(--teal-700); }
.btn--text { background: transparent; color: var(--teal-700); padding-left: 10px; padding-right: 10px; }
.btn--text:hover { color: var(--teal-900); background: var(--teal-50); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #15563E; color: #fff; }

.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--teal-700); font-weight: 600; text-decoration: none; }
.more .i { transition: transform .2s var(--ease); }
.more:hover { color: var(--teal-900); }
.more:hover .i { transform: translateX(4px); }
.more--light { color: #CDEBE6; }
.more--light:hover { color: #fff; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal-700); }
.icon-btn .i { width: 20px; height: 20px; }

.cicons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.cicon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--card); color: var(--teal-700); border: 1px solid var(--line); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.cicon:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.cicon .i { width: 22px; height: 22px; }
.cicons--lg .cicon { width: 54px; height: 54px; border-radius: 16px; }
.cicons--lg .cicon .i { width: 25px; height: 25px; }
.cicons--xl { gap: 12px; }
.cicons--xl .cicon { width: 60px; height: 60px; border-radius: 18px; }
.cicons--xl .cicon .i { width: 27px; height: 27px; }
.cicons--mini .cicon, .cicons--loc .cicon, .cicons--facts .cicon { width: 42px; height: 42px; border-radius: 12px; }
.cicon--whatsapp { color: var(--wa); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; }
.chip span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.chip:hover { border-color: var(--teal); color: var(--teal-700); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(247, 245, 240, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.site-header.is-scrolled::before { border-bottom-color: var(--line-2); background: rgba(247, 245, 240, .94); }
.header__row { position: relative; display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--display); font-size: 1.08rem; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; }
.brand__role { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.brand:hover { color: var(--ink); }
.brand:hover .brand__name { color: var(--teal-900); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; padding: 10px 8px 10px 12px; border-radius: 10px; color: var(--ink); font-size: .96rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__item:not(.has-panel) .nav__link { padding-right: 12px; }
.nav__link:hover, .nav__link.is-current { color: var(--teal-700); }
.nav__link.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--teal-200); }
.nav__toggle { display: inline-grid; place-items: center; width: 26px; height: 32px; margin-left: -4px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.nav__toggle .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__item.is-open .nav__toggle .i { transform: rotate(180deg); }
.nav__panel { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 70; min-width: 300px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item.is-open > .nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
.panel-card { padding: 10px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); }
.panel-list { list-style: none; }
.panel-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: .96rem; font-weight: 500; text-decoration: none; }
.panel-list a .i { width: 20px; height: 20px; color: var(--teal); }
.panel-list a:hover, .panel-list a[aria-current] { background: var(--teal-50); color: var(--teal-900); }
.panel-foot { margin: 6px 4px 2px; padding: 8px 8px 2px; border-top: 1px solid var(--line-2); }
.panel-foot .more { margin-top: 0; font-size: .94rem; }
.nav__panel--mega { left: 50%; translate: -50% 0; min-width: 0; width: min(880px, calc(100vw - 48px)); }
.mega { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.mega__title { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.25; }
.mega__title .i { width: 20px; height: 20px; color: var(--teal); }
.mega__title:hover { background: var(--teal-50); color: var(--teal-900); }
.mega__list { list-style: none; margin: 2px 0 6px; }
.mega__list a { display: block; padding: 6px 8px 6px 36px; border-radius: 8px; color: var(--text); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.mega__list a:hover, .mega__list a[aria-current] { color: var(--teal-900); background: var(--teal-50); }
.mega__group--more { display: flex; flex-direction: column; gap: 4px; padding-left: 6px; border-left: 1px solid var(--line-2); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.cta-home { display: inline-flex; }
.burger { display: none; }
/* desktop: the name never shrinks into the menu; when the menu does not fit, site.js folds it into the drawer */
@media (min-width: 1200px) { .brand { flex-shrink: 0; } }

/* language menu: a dark rounded button with the current flag and a chevron; the menu lists the three languages */
.flag { position: relative; display: inline-block; flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; }
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 35, 33, .16); }
.lang { position: relative; display: inline-flex; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border: 1px solid #2F5F5B; border-radius: 9px; background: #1F4643; color: #CFE2DE; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: background-color .2s, border-color .2s, color .2s; }
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--teal-900); border-color: #3E7470; color: #fff; }
.lang__btn .flag { width: 26px; height: 17px; }
.lang__btn .flag::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lang__chev { width: 14px; height: 14px; stroke-width: 2; transition: transform .2s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 75; min-width: 200px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
html.no-js .lang:hover .lang__menu, html.no-js .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .96rem; font-weight: 500; line-height: 1.2; text-decoration: none; }
.lang__opt:hover, .lang__opt:focus-visible { background: var(--teal-50); color: var(--teal-900); }
.lang__opt[aria-current] { color: var(--teal-900); font-weight: 600; }
.lang__check { width: 18px; height: 18px; margin-left: auto; color: var(--teal); }
/* the same choice in the phone menu (the header button is hidden where it does not fit) */
.drawer__group--lang summary .flag { margin: 0 -1px; }

/* Lexend has no Cyrillic: Russian headings use Fira Sans */
html[lang="ru"] { --display: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* the videos are in Azerbaijani: a note on the Russian and English pages */
.vnote { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.vnote .i { flex: none; color: var(--teal); }

/* when the menu does not fit: the drawer takes over */
html.nav-collapse .nav { display: none; }
html.nav-collapse .burger { display: inline-grid; }
html.nav-collapse .header__actions { margin-left: auto; }

/* ---------------------------------------------------------------- dialogs */
html.dlg-open { overflow: hidden; }
.dlg { padding: 0; border: 0; color: var(--text); background: var(--card); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 32px); }
.dlg:focus, .dlg:focus-visible { outline: none; }
.dlg::backdrop { background: rgba(5, 30, 31, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dlg__title { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--display); font-size: 1.1rem; font-weight: 500; }
.badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--teal-50); color: var(--teal); }
.badge .i { width: 20px; height: 20px; }
.dlg__body { padding: 20px; overflow: auto; }
.dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--paper); }
.dlg__foot:has(.cta-slot:empty) .cta-slot { display: none; }
.dlg--drawer { width: min(420px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; border-radius: 0; }
.dlg--drawer[open] { animation: drawerIn .26s var(--ease); }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .4; } }
.drawer { flex: 1; overflow: auto; padding: 8px 12px; }
.drawer__group { border-bottom: 1px solid var(--line-2); }
.drawer__group summary, .drawer__link { display: flex; align-items: center; gap: 12px; padding: 16px 8px; color: var(--ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer; list-style: none; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary .i, .drawer__link .i { color: var(--teal); width: 22px; height: 22px; }
.drawer__chev { margin-left: auto; color: var(--muted) !important; transition: transform .2s; }
.drawer__group[open] .drawer__chev { transform: rotate(180deg); }
.drawer__group .panel-list { padding: 0 0 10px; }
.drawer__group .panel-list a { padding: 10px 12px; font-weight: 500; }
.dlg--search { width: min(720px, calc(100vw - 24px)); margin: 72px auto auto; border-radius: 22px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line-2); }
.search__icon { display: grid; color: var(--teal); }
.search__icon .i { width: 22px; height: 22px; }
.search__input { flex: 1; min-width: 0; height: 48px; padding: 0 4px; border: 0; background: transparent; font-size: 1.1rem; outline: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__body { padding: 16px 20px 20px; overflow: auto; }
.search__hint { margin: 0 0 10px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 14px; }
.search__chips button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; cursor: pointer; }
.search__chips button:hover { border-color: var(--teal); color: var(--teal-700); }
.search__count { margin: 6px 0 10px; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.results { list-style: none; display: grid; gap: 8px; }
.result__a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); text-decoration: none; background: var(--card); }
.result__a:hover { border-color: var(--teal-200); background: var(--teal-50); }
.result__kind { color: var(--teal-700); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.result__title { color: var(--ink); font-weight: 600; }
.result__text { color: var(--muted); font-size: .93rem; }
.result__text mark { background: var(--amber-200); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.search__empty p { margin-bottom: 12px; }
.dlg__foot--search { justify-content: flex-end; }
.search--page { border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin-bottom: 18px; }
.dlg--booking, .dlg--consent { width: min(640px, calc(100vw - 24px)); margin: auto; border-radius: 24px; }
.booking__lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px; border-radius: 16px; background: var(--teal-50); }
.booking__lead p { flex: 1 1 260px; font-size: .96rem; }

/* ---------------------------------------------------------------- forms */
.bform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full, .field--radio { grid-column: 1 / -1; }
.field label, .field legend { color: var(--ink); font-weight: 600; font-size: .95rem; padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 118, 122, .16); }
.field [aria-invalid="true"] { border-color: var(--terra); }
.field__hint { color: var(--muted); font-size: .88rem; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radio { position: relative; display: inline-flex; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: .95rem; font-weight: 500; }
.radio input:checked + span { border-color: var(--teal); background: var(--teal-50); color: var(--teal-900); }
.radio input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 0; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); }
.check input[aria-invalid="true"] { outline: 2px solid var(--terra); outline-offset: 2px; }
.bform__error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FBEDE8; color: #7A2E1D; font-size: .93rem; font-weight: 500; }
.bform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.bform__link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.bform__done { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sage-50); color: #234F38; font-size: .93rem; }

/* switch (cookie preferences) */
.pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.pref__name { display: block; color: var(--ink); font-weight: 600; }
.pref__desc { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #B9C2BF; transition: background-color .2s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch__input:checked + .switch__track { background: var(--teal); }
.switch__input:checked + .switch__track .switch__knob { transform: translateX(22px); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--teal); outline-offset: 3px; }
.switch.is-locked .switch__track { opacity: .55; }
.consent-prefs > p:first-child { margin-bottom: 8px; color: var(--muted); font-size: .94rem; }
.consent-prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- home: hero (calm: the photo whole and uncovered, one faint hormone-rhythm line behind) */
.hero { position: relative; isolation: isolate; padding: clamp(28px, 4.5vw, 64px) 0 clamp(36px, 5vw, 64px); overflow: hidden; overflow: clip; }
/* behind everything in the hero (its own stacking context): never over the text, the photo or the card below */
.hero__curve { position: absolute; z-index: -1; left: calc(50% - 50vw); bottom: -24px; width: 100vw; max-width: none; height: clamp(100px, 12vw, 170px); pointer-events: none; }
.hero__rhythm { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; opacity: .18; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__title { display: grid; gap: 8px; margin: 0 0 18px; }
.hero__role { color: var(--teal-700); font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem); font-weight: 400; letter-spacing: 0; }
.hero__name { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.05rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.hero__sub { max-width: 36ch; color: var(--text); font-size: clamp(1.06rem, 1rem + .25vw, 1.2rem); line-height: 1.55; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; max-width: 600px; margin: 30px 0 0; list-style: none; }
.hero__facts li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.hero__fact-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); color: var(--teal); }
.hero__fact-icon .i { width: 18px; height: 18px; }
.hero__facts li > span:last-child { min-width: 0; padding-top: 6px; }
.hero__links { margin-top: 26px; }
.more--hero { margin-top: 0; }
.hero__photo { position: relative; margin: 0; }
.hero__img { width: 100%; height: auto; border-radius: 24px; background: var(--paper-3); box-shadow: var(--shadow-lg); }

.profile { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 48px; margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.profile__text .prose p { font-size: 1.08rem; }
.profile__areas { display: grid; gap: 0; list-style: none; align-content: start; }
.profile__areas li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: .98rem; line-height: 1.45; }
.profile__areas li:last-child { border-bottom: 0; }
.profile__areas .i { margin-top: 3px; color: var(--teal); }
.answer__label { margin: 0 0 8px; color: var(--teal-700); font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ---------------------------------------------------------------- home: sections */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 40px); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.section__head--row .more { margin-top: 0; }
.section__head--row p { margin-top: 10px; color: var(--muted); }
.section__title { font-size: clamp(1.55rem, 1.3rem + .85vw, 2.1rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }

.approach { background: var(--paper-2); }
.approach__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.approach__head { position: sticky; top: calc(var(--header-h) + 32px); }
.approach__plate { max-width: 440px; margin-top: 28px; }
.path { position: relative; display: grid; gap: 14px; list-style: none; }
.path::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--teal-200), var(--sage-200)); transform-origin: top; }
.path__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 20px 22px 20px 0; }
.path__no { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card); border: 2px solid var(--teal); color: var(--teal-700); font-family: var(--mono); font-weight: 500; font-size: 1rem; }
.path__body { padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.path__title { margin-bottom: 8px; font-size: 1.1rem; }
.path__body p { color: var(--text); }

.areas__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; list-style: none; }
.area { grid-column: span 3; }
.area:nth-child(n+5) { grid-column: span 4; }
.area__a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 20px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.area__a:hover { border-color: var(--teal-200); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.area__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.area__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal); }
.area__icon .i { width: 26px; height: 26px; }
.area__no { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.area__title { color: var(--ink); font-family: var(--display); font-size: 1.1rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.area__text { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.area__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--teal-700); font-weight: 600; font-size: .95rem; }
.area__a:hover .area__go .i { transform: translateX(4px); }
.area__go .i { transition: transform .2s var(--ease); }

.procs { position: relative; background: linear-gradient(160deg, var(--teal-900), var(--teal-950)); color: #D7E9E6; overflow: hidden; }
.procs::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.procs__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.procs .section__title { color: #fff; }
.procs__list { display: grid; gap: 0; margin-top: 28px; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.procs__list li { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.procs__name { margin-bottom: 8px; color: #fff; font-size: 1.1rem; }
.procs__list p { color: #C8DFDB; }
.procs__list .more { margin-top: 10px; }
.procs__plate .plate { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.procs__plate .plate__title { color: #fff; }
.procs__plate .plate__kicker { color: var(--teal-200); }
.procs__plate .plate__foot { color: #9EC0BB; }

.about-short__grid { display: grid; grid-template-columns: minmax(0, 447px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-short__photo { margin: 0; }
.about-short__img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.about-short__text .prose { margin-top: 18px; }

.sci { background: var(--paper-2); }
.sci__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sci__list { display: grid; gap: 0; margin-top: 24px; list-style: none; }
.sci__list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.sci__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--teal); background: var(--paper-2); }
.sci__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.sci__photo { margin: 0; }
.sci__img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.sci__photo figcaption, .gallery__item figcaption, .portrait figcaption { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; }

.qlinks { display: grid; gap: 10px; list-style: none; }
.qlinks a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.qlinks a:hover { border-color: var(--teal-200); background: var(--teal-50); color: var(--teal-900); }
.qlinks__q { font-family: var(--display); font-size: clamp(1rem, .96rem + .2vw, 1.12rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.qlinks .i { flex: none; color: var(--teal); }
.qlinks--compact a { padding: 16px 18px; }
.qlinks--compact .qlinks__q { font-size: 1.02rem; }

.places__grid, .locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.locs--one { grid-template-columns: minmax(0, 1fr); }


/* ---------------------------------------------------------------- videos: the videos' own YouTube covers, unaltered (nothing drawn over them); YouTube loads on click */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.vgrid--home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vgrid--doc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 220px)); }
.video { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .25s var(--ease); }
.video:hover { border-color: var(--teal-200); box-shadow: var(--shadow); }
.video__media { position: relative; aspect-ratio: 9 / 16; background: var(--paper-3); }
.video__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__img { width: 100%; height: 100%; object-fit: cover; }
.video__play:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 17px 17px 0 0; }
.video.is-playing .video__play, .video.is-playing .video__go { display: none; }
.video__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 12px 12px 14px; }
.video__info { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; color: var(--muted); font-family: var(--mono); font-size: .74rem; line-height: 1.4; }
.video__info .i { color: var(--teal); }
.video__title { color: var(--ink); font-family: var(--display); font-size: .95rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
/* the topic page of the video: a plain text link at the foot of the card (narrow cards have no room for an arrow) */
.video__rel { align-self: flex-start; max-width: 100%; margin-top: auto; padding-top: 4px; color: var(--teal-700); font-size: .86rem; font-weight: 500; line-height: 1.4; text-decoration: underline; text-decoration-color: var(--teal-200); text-underline-offset: 3px; overflow-wrap: anywhere; }
.video__rel:hover { text-decoration-color: currentColor; }
.video__rel .i { display: inline-block; width: 15px; height: 15px; margin-left: 4px; vertical-align: -.2em; }
html:is([data-uwa-text], [data-uwa-spacing]) .nowrap { white-space: normal; }
.video__yt { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line-2); }
.video__yt:hover { color: var(--teal-700); border-color: var(--teal-200); }
.video__yt .i { width: 16px; height: 16px; }
/* a video without a picture (its cover prints a phone number) */
.vlist { display: grid; gap: 12px; }
.vgrid + .vlist { margin-top: 16px; }
.video--row { max-width: 760px; }
.video__row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.video__badge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal); }
.video__badge .i { width: 26px; height: 26px; }
.video__text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.video__kicker { color: var(--teal-700); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.video--row .video__title { font-size: 1.05rem; }
.video__acts { display: flex; align-items: center; gap: 8px; flex: none; }
.video__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color .2s, color .2s; }
.video__go:hover { border-color: var(--teal); color: var(--teal-700); }
.video__go .i { width: 18px; height: 18px; color: var(--teal); }
.video--row .video__media { display: none; aspect-ratio: 16 / 9; margin: 0 18px 18px; border-radius: 14px; overflow: hidden; background: var(--teal-950); }
.video--row.video--short .video__media { aspect-ratio: 9 / 16; width: min(calc(100% - 36px), 320px); }
.video--row.is-playing .video__media { display: block; }

/* ---------------------------------------------------------------- BMI calculator (in the page head of /bki-kalkulyatoru/) and its link card */
html:not(.js) .bmi { display: none; }
.phead--tool .phead__plate { padding-top: 6px; }
.bmi { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.bmi__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bmi__input { position: relative; display: block; }
.bmi .field input { padding-right: 48px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.bmi__u { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-family: var(--mono); font-size: .85rem; pointer-events: none; }
.bmi .field__hint { margin-top: 8px; }
.bmi__err { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FBEDE8; color: #7A2E1D; font-size: .9rem; font-weight: 500; }
.bmi__out { --zone: var(--line); margin-top: 18px; padding: 16px 16px 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper); }
.bmi__label { color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.bmi__value { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; color: var(--ink); font-family: var(--display); font-size: clamp(2.2rem, 1.9rem + 1vw, 2.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bmi__unit { color: var(--muted); font-family: var(--mono); font-size: .8rem; letter-spacing: 0; }
.bmi__cat { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); }
.bmi__out.has-value .bmi__cat { color: var(--ink); font-weight: 600; }
.bmi__out.has-value .bmi__cat::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--zone); }
.bmi--under { --zone: var(--teal-200); }
.bmi--normal { --zone: var(--sage-200); }
.bmi--over { --zone: var(--amber-200); }
.bmi--ob1 { --zone: #E9C58F; }
.bmi--ob2 { --zone: var(--terra-200); }
.bmi--ob3 { --zone: #D99A86; }
.bmi__scale { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
/* x = 10 + (BKİ − 15) ÷ 30 × 580 of the 600-unit drawing */
.bmi__ticks { position: relative; height: 1.3em; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: .72rem; line-height: 1.3; }
.bmi__tick { position: absolute; top: 0; translate: -50% 0; }
.bmi__tick--1 { left: 12.94%; }
.bmi__tick--2 { left: 33.89%; }
.bmi__tick--3 { left: 50%; }
.bmi__tick--4 { left: 66.11%; }
.bmi__tick--5 { left: 82.22%; }
.bmi__marker { fill: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.bmi__marker circle { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.bmi__marker.is-empty { opacity: 0; }
.bmi__msg { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--ink); font-size: .95rem; font-weight: 500; }
.bmi__privacy { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.bmi__privacy .i { margin-top: 2px; color: var(--teal); }
.bmi__noscript { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.tool-teaser { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--teal-100); border-radius: 20px; background: var(--teal-50); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease); }
.tool-teaser:hover { border-color: var(--teal-200); box-shadow: var(--shadow); color: var(--ink); }
.tool-teaser__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--card); color: var(--teal); border: 1px solid var(--teal-100); }
.tool-teaser__icon .i { width: 24px; height: 24px; }
.tool-teaser__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tool-teaser__title { font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.tool-teaser__sub { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.tool-teaser__go { flex: none; color: var(--teal); transition: transform .2s var(--ease); }
.tool-teaser:hover .tool-teaser__go { transform: translateX(4px); }
.tool-teaser--doc { margin-top: clamp(28px, 4vw, 40px); }

/* ---------------------------------------------------------------- location cards and maps */
.loc { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 24px; background: var(--card); overflow: hidden; }
.locs .loc:has(.mapcard), .locs--one .loc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.loc__body { display: grid; gap: 10px; align-content: start; padding: 24px; }
.loc__city { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.loc__city .i { width: 18px; height: 18px; }
.loc__name { font-size: 1.18rem; line-height: 1.3; }
.loc__name a { color: var(--ink); text-decoration: none; }
.loc__name a:hover { color: var(--teal-700); }
.loc__branch { color: var(--muted); font-weight: 400; }
.loc__addr { color: var(--text); }
.loc__time, .loc__note { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: .95rem; }
.loc__time .i, .loc__note .i { margin-top: 3px; color: var(--teal); width: 18px; height: 18px; }
.loc .cicons { margin-top: 8px; }
.mapcard { position: relative; margin: 0; min-height: 280px; border-left: 1px solid var(--line-2); background: var(--paper-2); }
.mapcard__frame { position: absolute; inset: 0; }
.mapcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapcard__gate { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--paper-2); }
.mapcard__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(14, 118, 122, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 118, 122, .07) 1px, transparent 1px); background-size: 28px 28px; }
.mapcard__pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--teal); box-shadow: var(--shadow); }
.mapcard__pin .i { width: 26px; height: 26px; }
.mapcard__text { position: relative; max-width: 30ch; color: var(--muted); font-size: .92rem; }
.mapcard__gate .btn { position: relative; }
.mapcard.is-loaded .mapcard__gate { display: none; }
.mapcard__cap { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--muted); font-family: var(--mono); font-size: .72rem; pointer-events: none; }

/* ---------------------------------------------------------------- page head */
.phead { position: relative; padding: clamp(18px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.phead--plate .phead__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); }
.phead--portrait .phead__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 420px); }
.phead__text { min-width: 0; }
.phead__title { max-width: 26ch; margin: 2px 0 20px; font-size: clamp(1.8rem, 1.45rem + 1.1vw, 2.45rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.14; }
.phead__plate { min-width: 0; padding-top: 28px; }
.crumbs { margin-bottom: clamp(16px, 2.4vw, 28px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; color: var(--muted); font-size: .86rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.answer { max-width: 760px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.answer__body p + p, .answer__body p + ul, .answer__body ul + p { margin-top: .7em; }
.answer__body { font-size: 1.04rem; }
.byline { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .94rem; }
.portrait { margin: 0; }
.portrait__img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------------- plates (schematic figures) */
.plate { margin: 0; padding: 18px 18px 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.plate__head { display: grid; gap: 3px; margin-bottom: 12px; }
.plate__kicker { color: var(--teal-700); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.plate__title { color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.plate__fig .pl { display: block; width: 100%; height: auto; overflow: visible; }
.plate__foot { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: .7rem; line-height: 1.45; }
.pl text { font-family: var(--mono); }
.pl-lab { fill: var(--ink); font-size: 11.5px; font-weight: 500; font-family: var(--font) !important; }
.pl-num { fill: var(--muted); font-size: 10.5px; }
.pl-em { fill: var(--teal-700); font-weight: 500; }
.pl-name { fill: var(--ink); font-size: 12.5px; font-weight: 600; font-family: var(--font) !important; }
.pl-name--sm { font-size: 11px; }
.pl-in { fill: #fff; font-weight: 500; }
.pl-track { fill: var(--paper-2); }
.z-ok { fill: var(--sage-200); }
.z-mid { fill: var(--amber-200); }
.z-warm { fill: #E9C58F; }
.z-high { fill: var(--terra-200); }
.z-deep { fill: #D99A86; }
.z-teal { fill: var(--teal-200); }
.pl-tick { stroke: var(--ink); stroke-width: 1.2; }
.pl-axis { stroke: var(--line); stroke-width: 2; fill: none; }
.pl-grid { stroke: var(--line-2); stroke-width: 1; fill: none; }
.pl-line { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-band { fill: var(--teal-50); stroke: var(--teal-100); }
.pl-low { fill: rgba(181, 100, 78, .1); }
.pl-limit { stroke: var(--terra); stroke-width: 1.4; stroke-dasharray: 5 4; }
.pl-call { stroke: var(--teal-700); stroke-width: 1.4; stroke-dasharray: 3 3; }
.pl-dot { fill: var(--card); stroke: var(--teal); stroke-width: 2.4; }
.pl-dot--soft { stroke: var(--teal-200); }
.pl-dot--warn { fill: var(--terra); stroke: var(--card); stroke-width: 2.4; }
.pl-chip { fill: var(--paper); stroke: var(--line); }
.pl-node { fill: var(--card); stroke: var(--teal-200); stroke-width: 1.6; }
.pl-node--key { fill: var(--teal-50); stroke: var(--teal); }
.pl-checkmark { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-arrow { stroke: var(--teal); stroke-width: 1.8; fill: none; }
.pl-arrowhead { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-loop { fill: none; stroke: var(--teal-200); stroke-width: 1.8; stroke-dasharray: 4 5; }
.pl-flow { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; }
.pl-sign { fill: var(--card); stroke: var(--teal-200); stroke-width: 1.6; }
.pl-sign-m { stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.pl-legend rect { stroke: none; }
/* ultrasound sector */
.usm-fan { fill: #0B1D1C; }
.usm-spk { opacity: .55; }
.usm-spk--a circle { fill: #8FC2BD; }
.usm-spk--b circle { fill: #C9E4E0; }
.usm-spk--b { opacity: .38; }
.usm-band { fill: rgba(169, 211, 207, .16); }
.usm-nod { fill: #061211; opacity: .92; }
.usm-halo { fill: none; stroke: rgba(201, 228, 224, .55); stroke-width: 2.4; }
.usm-cyst { fill: #020707; }
.usm-enh { fill: rgba(201, 228, 224, .2); }
.usm-edge { fill: none; stroke: var(--teal-700); stroke-width: 1.2; opacity: .7; }
.usm-tick { stroke: var(--muted); stroke-width: 1.2; }
.usm-cal { stroke: #E8CF9E; stroke-width: 1.4; stroke-dasharray: 4 3; }
.usm-plus { stroke: #E8CF9E; stroke-width: 1.6; stroke-linecap: round; }
.usm-needle { fill: none; stroke: #F4EFE4; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.usm-tip { fill: #E8CF9E; }
.usm-sweep { opacity: .9; }
.plate--usm .plate__fig { border-radius: 14px; }

/* ---------------------------------------------------------------- document layout */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.doc--wide { grid-template-columns: minmax(0, 1fr); }
.doc--article { grid-template-columns: minmax(0, 780px); justify-content: center; }
.doc__main { min-width: 0; max-width: 820px; }
.doc--wide .doc__main { max-width: none; }
.doc__aside { position: relative; min-width: 0; }
.doc__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.toc { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc__icon { display: grid; color: var(--teal); }
.toc__chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.toc[open] .toc__chev { transform: rotate(180deg); }
.toc ol { display: grid; gap: 2px; padding: 0 10px 12px; list-style: none; counter-reset: toc; }
.toc li a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.toc li a:hover { color: var(--teal-900); background: var(--teal-50); }
.toc li a.is-active { color: var(--teal-900); background: var(--teal-50); font-weight: 500; }
.mini { padding: 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.mini__title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mini__title .i { color: var(--teal); }
.mini__text { margin: 6px 0 12px; color: var(--muted); font-size: .88rem; }
.mini .more { margin-top: 12px; font-size: .9rem; }

.sec { margin-top: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc__main > .sec:first-child, .doc__main > .sec--body:first-child { margin-top: 0; }
.sec__title { margin-bottom: 16px; font-size: clamp(1.3rem, 1.18rem + .4vw, 1.55rem); letter-spacing: -.02em; }
.sec__title--badge { display: flex; align-items: center; gap: 14px; }
.sec__badge { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal); border: 1px solid var(--teal-100); }
.sec__badge .i { width: 21px; height: 21px; }
.sec__note { margin: -6px 0 14px; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.sec__video { margin: -4px 0 14px; }
.sec--practice { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--teal-100); border-radius: 24px; background: linear-gradient(160deg, var(--teal-50), #F4FAF9 70%); }
.sec--practice .sec__badge { background: var(--card); }
.sec--general .sec__badge { background: var(--sage-50); border-color: var(--sage-200); color: var(--sage); }
.sec--body { margin-top: 0; }
.sub { margin-top: 28px; scroll-margin-top: calc(var(--header-h) + 20px); }
.sub__title { margin-bottom: 10px; font-size: 1.1rem; }
.vlink { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal-900); font-size: .88rem; font-weight: 500; text-decoration: none; border: 1px solid var(--teal-100); }
.vlink:hover { background: var(--teal-100); color: var(--teal-900); }
.vlink .i { color: var(--teal); }

.prose { color: var(--text); }
.prose > * + * { margin-top: .85em; }
.prose p { line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; line-height: 1.6; }
.prose li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.prose ul ul > li::before { background: transparent; border: 1.5px solid var(--teal); width: 6px; height: 6px; }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; padding-left: 34px; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font-family: var(--mono); font-size: .78rem; font-weight: 500; line-height: 1; }
.prose li > ul, .prose li > ol, .prose li > p { margin-top: .45em; }
.prose a.vref { display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal-900); font-size: .84em; font-weight: 500; text-decoration: none; border: 1px solid var(--teal-100); }
.prose a.vref::before { content: "▶"; margin-right: 5px; font-size: .7em; color: var(--teal); }
.prose a.vref:hover { background: var(--teal-100); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.table-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.tbl thead th { position: sticky; top: 0; background: var(--paper-2); color: var(--ink); font-size: .82rem; font-family: var(--mono); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.tbl tbody th { color: var(--ink); font-weight: 600; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:hover > * { background: #FBFAF7; }

/* questions first, answers folded */
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); scroll-margin-top: calc(var(--header-h) + 20px); transition: border-color .2s; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--ink); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--teal-900); }
.qa summary:hover .qa__icon { background: var(--teal-100); }
.qa__q { min-width: 0; font-family: var(--display); font-size: 1.04rem; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.qa__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-50); color: var(--teal); transition: transform .2s var(--ease), background-color .2s; }
.qa__icon .i { width: 18px; height: 18px; }
.qa[open] { border-color: var(--teal-100); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--teal); color: #fff; }
.qa__a { padding: 0 20px 22px; }
.qa__ctx { color: var(--muted); font-style: italic; }
.qa:target { border-color: var(--teal-200); box-shadow: 0 0 0 4px var(--teal-50); }
.faq--page { gap: 12px; }
.faq--page .qa summary { padding: 22px 24px; }
.faq--page .qa__q { font-size: clamp(1.08rem, 1.02rem + .25vw, 1.22rem); }
.faq--page .qa__a { padding: 0 24px 26px; }
/* the answer as a video: links to YouTube / Instagram (two classes: .prose a must not restyle them) */
.qa__a .qa__watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; line-height: 1.4; }
.qa__watch-label { color: var(--muted); font-size: .9rem; }
.qa__watch .qa__vid { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s; }
.qa__watch .qa__vid:hover { border-color: var(--teal); color: var(--teal-700); }
.qa__watch .qa__vid .i { width: 18px; height: 18px; color: var(--teal); }
.doc--wide .doc__main--faq { max-width: 860px; }

.disclaimer { display: flex; gap: 14px; align-items: flex-start; margin-top: clamp(36px, 5vw, 56px); padding: 18px 20px; border-radius: 18px; background: var(--paper-2); color: var(--muted); font-size: .92rem; }
.disclaimer__icon { display: grid; color: var(--teal); padding-top: 2px; }
.author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: clamp(36px, 5vw, 56px); padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.author__img { width: 96px; height: auto; border-radius: 16px; }
.author__name { margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.author p:not(.author__name) { color: var(--muted); font-size: .95rem; }
.author .more { margin-top: 10px; }

.doc__rel { display: grid; gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.rel { padding: 18px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); }
.rel__title { margin-bottom: 8px; color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.rel ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 4px 12px; list-style: none; }
.rel a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: .96rem; line-height: 1.3; text-decoration: none; }
.rel a:hover { background: var(--teal-50); color: var(--teal-900); }
.rel__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-50); color: var(--teal); }
.rel__icon .i { width: 18px; height: 18px; }
.rel__go { margin-left: auto; color: var(--teal); width: 18px; height: 18px; }
.rel a > span:not(.rel__icon) { min-width: 0; overflow-wrap: anywhere; }
.rel__go { flex: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; list-style: none; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--wide { grid-template-columns: minmax(0, 1fr); }
.cards--wide .card__a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "top title go" "top text go"; align-items: center; column-gap: 18px; }
.cards--wide .card__top { grid-area: top; margin: 0; }
.cards--wide .card__no { display: none; }
.cards--wide .card__title { grid-area: title; }
.cards--wide .card__text { grid-area: text; }
.cards--wide .card__go { grid-area: go; margin: 0; padding: 0; }
.card__a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.card__a:hover { border-color: var(--teal-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal); }
.card__icon .i { width: 22px; height: 22px; }
.card__no { color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.card__title { color: var(--ink); font-family: var(--display); font-size: 1.04rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.card__go { margin-top: auto; padding-top: 6px; color: var(--teal); }

/* ---------------------------------------------------------------- about, career, science, media */
.facts { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--card); }
.facts__list { margin: 0; }
.facts__row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--muted); font-family: var(--mono); font-size: .8rem; letter-spacing: .03em; padding-top: 3px; }
.facts__row dd { margin: 0; color: var(--ink); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery__item { margin: 0; }
.gallery__img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-sm); }

.tline { position: relative; display: grid; gap: 12px; list-style: none; }
.tline__item { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px 24px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.tline__when { color: var(--teal-700); font-family: var(--mono); font-size: .88rem; font-weight: 500; padding-top: 2px; }
.tline__what { color: var(--ink); font-weight: 600; }
.tline__sub { color: var(--muted); }

.talks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; list-style: none; }
.talk { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); }
.talk__topic { color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.talk__event { color: var(--teal-700); font-size: .95rem; }
.talk__note { color: var(--muted); font-size: .92rem; }
.events { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.events__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.events__name { color: var(--ink); font-weight: 500; }
.events__when { color: var(--muted); font-family: var(--mono); font-size: .86rem; }

.mlist { display: grid; gap: 12px; list-style: none; }
.mlist__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.mlist__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal); }
.mlist__name { color: var(--ink); font-weight: 600; }
.mlist__fmt { color: var(--muted); font-weight: 400; }
.mlist__topic { color: var(--text); }
.mlist__extra { margin-top: 4px; color: var(--muted); font-size: .92rem; }

.hubs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; list-style: none; }
.hubs__item { grid-column: span 3; }
.hubs__item:nth-child(n+5) { grid-column: span 4; }
.hubs__item { padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.hubs__head { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.hubs__head:hover { color: var(--teal-900); }
.hubs__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-50); color: var(--teal); }
.hubs__icon .i { width: 24px; height: 24px; }
.hubs__title { font-family: var(--display); font-size: 1.1rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.hubs__go { margin-left: auto; color: var(--teal); }
.hubs__text { margin-top: 12px; color: var(--muted); font-size: .94rem; }
.hubs__list { display: grid; gap: 2px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); list-style: none; }
.hubs__list a { display: block; padding: 6px 0; color: var(--teal-700); font-weight: 500; text-decoration: none; }
.hubs__list a:hover { color: var(--teal-900); text-decoration: underline; }

.posts { display: grid; gap: 16px; list-style: none; }
.post__a { display: grid; gap: 10px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s; }
.post__a:hover { border-color: var(--teal-200); box-shadow: var(--shadow); color: var(--text); }
.post__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.post__title { color: var(--ink); font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.post__text { color: var(--muted); }
.post__go { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-weight: 600; }

.note-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--muted); }

/* ---------------------------------------------------------------- contact, vizitkart, legal, sitemap, 404 */
.contact { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.contact__form, .contact__direct { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 26px; background: var(--card); scroll-margin-top: calc(var(--header-h) + 20px); outline: none; }
.contact__intro { margin: -4px 0 20px; color: var(--muted); }
.contact__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text); }
.contact__note .i { color: var(--teal); }
.footer__vcard { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; border: 1px solid currentColor; font-weight: 500; text-decoration: none; }
.contact__vcard { color: var(--teal-700); }

.vcard-page { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.vcard { max-width: 560px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: 30px; background: var(--card); box-shadow: var(--shadow-lg); }
.vcard__top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 24px; }
.vcard__img { width: 112px; border-radius: 20px; }
.vcard__name { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.vcard__role { margin-top: 4px; color: var(--teal-700); font-family: var(--mono); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; }
.vcard__places { display: grid; gap: 14px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); list-style: none; }
.vcard__places li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.vcard__pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal); }
.vcard__city { color: var(--teal-700); font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.vcard__places a { color: var(--ink); font-weight: 600; text-decoration: none; }
.vcard__small { color: var(--muted); font-size: .92rem; }
.vcard__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); }
.vcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal__date { margin-top: 2em; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.legal .table-wrap { margin-top: 1em; }

.smap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.smap__group { padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.smap__group--wide { grid-row: span 2; }
.smap h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.08rem; }
.smap h2 .i { color: var(--teal); }
.smap ul { list-style: none; display: grid; gap: 4px; }
.smap ul ul { margin: 4px 0 8px 14px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.smap a { color: var(--teal-700); text-decoration: none; font-weight: 500; line-height: 1.45; }
.smap a:hover { text-decoration: underline; }

.nf { padding: clamp(48px, 8vw, 120px) 0; }
.nf__box { max-width: 720px; text-align: center; }
.nf__code { color: var(--teal-200); font-family: var(--mono); font-size: clamp(4rem, 3rem + 6vw, 7.5rem); line-height: 1; letter-spacing: -.04em; }
.nf__title { margin: 14px 0 12px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 400; }
.nf__text { margin-bottom: 24px; color: var(--muted); }
.nf .search--page { text-align: left; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; list-style: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 calc(28px + var(--dock-h)); background: var(--teal-950); color: #C9DEDA; }
.site-footer a { color: #E6F2F0; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.brand--footer .brand__name { color: #fff; font-size: 1.3rem; }
.brand--footer .brand__role { color: var(--teal-200); }
.footer__places { display: grid; gap: 10px; margin: 20px 0 18px; list-style: none; font-size: .94rem; }
.footer__places li { display: flex; gap: 10px; align-items: flex-start; }
.footer__places .i { margin-top: 4px; color: var(--teal-200); }
.footer__places strong { color: #fff; font-weight: 600; }
.cicons--footer .cicon { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #E6F2F0; }
.cicons--footer .cicon:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.site-footer .footer__vcard { color: #E6F2F0; border-color: rgba(255, 255, 255, .22); }
.footer__title { margin-bottom: 12px; color: #fff; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer__col ul { display: grid; gap: 7px; list-style: none; }
.footer__col a { text-decoration: none; font-size: .94rem; line-height: 1.4; }
.footer__col a:hover { text-decoration: underline; }
.footer__note { margin-top: 36px; }
.footer__note p { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: .9rem; }
.footer__note .i { margin-top: 4px; color: var(--teal-200); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.footer__otx a { font-weight: 600; }

/* ---------------------------------------------------------------- cookie banner */
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: min(560px, calc(100vw - 32px)); }
.consent__box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg); }
.consent__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-200); color: #6B4A16; }
.consent__title { margin-bottom: 6px; font-size: 1.05rem; }
.consent__text p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.consent__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- motion (only with html.m-on; final state without it) */
@keyframes rvIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes plDraw { from { stroke-dashoffset: 1; } }
@keyframes plGrow { from { transform: scaleX(0); } }
@keyframes plPop { from { opacity: 0; transform: scale(.92); } }
@keyframes plSlide { from { opacity: 0; transform: translateX(-60px); } }
@keyframes plFlow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes plFlowOnce { 0% { stroke-dashoffset: 1; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes usmSweep { from { transform: translateY(0); } to { transform: translateY(290px); } }
@keyframes pathGrow { from { transform: scaleY(0); } }

html.m-on [data-rv]:not(.is-in) { opacity: 0; }
html.m-on [data-rv].is-in { animation: rvIn .7s var(--ease) backwards; animation-delay: var(--m-d, 0s); }

html.m-on [data-plate]:not(.is-in) .pl-draw { stroke-dashoffset: 1; }
html.m-on [data-plate]:not(.is-in) :is(.pl-pop, .pl-grow, .pl-slide) { opacity: 0; }
html.m-on [data-plate].is-in .pl-draw { animation: plDraw 1.6s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-grow { transform-box: fill-box; transform-origin: left center; animation: plGrow .9s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-pop { transform-box: fill-box; transform-origin: center; animation: plPop .6s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-slide { animation: plSlide 1.2s var(--ease) backwards; }
html.m-on [data-plate].is-in .pl-d1 { animation-delay: .1s; }
html.m-on [data-plate].is-in .pl-d2 { animation-delay: .25s; }
html.m-on [data-plate].is-in .pl-d3 { animation-delay: .4s; }
html.m-on [data-plate].is-in .pl-d4 { animation-delay: .55s; }
html.m-on [data-plate].is-in .pl-d5 { animation-delay: .7s; }
html.m-on [data-plate].is-in .pl-d6 { animation-delay: .85s; }
html.m-on [data-plate].is-in .pl-d7 { animation-delay: 1s; }
html.m-on [data-plate].is-in .pl-d8 { animation-delay: 1.15s; }
/* the hormonal signal travels the feedback loop (slow, continuous; stops with "Animasiyalara fasilə ver") */
html.m-on [data-plate].is-in .pl-flow { opacity: .95; animation: plFlow 7s linear 1s infinite; }
html.m-on [data-plate].is-in .pl-flow--once { animation: plFlowOnce 2.6s var(--ease) .6s 1 both; }
/* ultrasound frame: a slow sweep through the sector */
html.m-on [data-plate].is-in .usm-sweep { animation: usmSweep 6.5s linear .4s infinite; }
html:not(.m-on) .usm-sweep { display: none; }

/* hero: the text settles, the photo fades in (nothing passes over it), the hormone-rhythm line draws once */
html.m-on .hero__photo { animation: fadeIn .9s var(--ease) .1s backwards; }
html.m-on .hero__rhythm { animation: plDraw 2.6s var(--ease) .3s backwards; }
html.m-on .hero__text > * { animation: rvIn .8s var(--ease) backwards; }
html.m-on .hero__text > :nth-child(2) { animation-delay: .08s; }
html.m-on .hero__text > :nth-child(3) { animation-delay: .16s; }
html.m-on .hero__text > :nth-child(4) { animation-delay: .24s; }
html.m-on [data-path]:not(.is-in)::before { transform: scaleY(0); }
html.m-on [data-path].is-in::before { animation: pathGrow 1.4s var(--ease) backwards; }

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

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1279px) {
  .mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__group--more { grid-column: span 3; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--line-2); padding: 8px 0 0; }
}
@media (max-width: 1199px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .doc { grid-template-columns: 220px minmax(0, 1fr); }
  .area, .area:nth-child(n+5), .hubs__item, .hubs__item:nth-child(n+5) { grid-column: span 6; }
  .area:last-child, .hubs__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); }
  .hero__curve { display: none; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .approach__grid, .procs__grid, .sci__grid, .about-short__grid { grid-template-columns: minmax(0, 1fr); }
  .approach__head { position: static; }
  .about-short__photo { max-width: 447px; }
  .sci__photo { max-width: 460px; }
  .phead--plate .phead__grid, .phead--portrait .phead__grid { grid-template-columns: minmax(0, 1fr); }
  .phead__plate { max-width: 560px; padding-top: 0; }
  .phead--portrait .phead__plate { max-width: 380px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__sticky { position: static; }
  .doc__aside .mini { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .vgrid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; --dock-h: 84px; }
  body { font-size: 1rem; padding-bottom: 0; }
  .brand__name { font-size: 1rem; }
  .header__actions { gap: 8px; }
  /* the page's single CTA is docked to the bottom of the screen */
  .cta-home { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; }
  .cta-home .btn--cta { flex: 1; min-height: 56px; font-size: 1.05rem; box-shadow: 0 14px 34px -14px rgba(7, 57, 59, .65), 0 0 0 4px rgba(247, 245, 240, .9); }
  /* phone hero: name, line, photo, facts */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__text { display: contents; }
  .hero__title { order: 1; }
  .hero__sub { order: 2; }
  .hero__photo { order: 3; width: min(100%, 420px); margin-top: 24px; }
  .hero__facts { order: 4; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .hero__links { order: 5; }
  .area, .area:nth-child(n+5), .area:last-child, .hubs__item, .hubs__item:nth-child(n+5), .hubs__item:last-child { grid-column: 1 / -1; }
  .cards--wide .card__a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top go" "title title" "text text"; row-gap: 8px; }
  .places__grid, .locs { grid-template-columns: minmax(0, 1fr); }
  .locs .loc:has(.mapcard), .locs--one .loc { grid-template-columns: minmax(0, 1fr); }
  .mapcard { min-height: 240px; border-left: 0; border-top: 1px solid var(--line-2); }
  .vgrid--home, .vgrid--doc, .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video__body { padding: 10px 10px 12px 12px; }
  .video__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
  .video__acts { grid-column: 1 / -1; }
  .cards--2, .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tline__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
  .bform__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { padding: 4px 0; border: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
  .tbl td:empty { display: none; }
  .consent { left: 12px; right: 12px; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); width: auto; }
  .consent__box { padding: 16px; grid-template-columns: minmax(0, 1fr); }
  .consent__icon { display: none; }
  .dlg--search { margin-top: 12px; border-radius: 18px; }
  .author { grid-template-columns: 72px minmax(0, 1fr); }
  .author__img { width: 72px; }
  .vcard__top { grid-template-columns: 88px minmax(0, 1fr); }
  .vcard__img { width: 88px; }
  .qlinks a { padding: 18px; }
}
@media (max-width: 479px) {
  .header__actions .lang { display: none; }
}
@media (max-width: 420px) {
  .brand__role { letter-spacing: .1em; }
}

@media print {
  .site-header, .site-footer, .consent, .doc__aside, .dlg, .cta-home, .hero__curve, .video__media, .mapcard { display: none !important; }
  body { background: #fff; }
}
