/* =========================================================================
   Dr. İlqar Məmmədov — Revmatoloq
   Hand-written CSS. No framework, no build step.

   Colour architecture (§12): the COMPLETE light palette is defined on bare
   :root. Dark and contrast variants only REDEFINE tokens. No colour ever has
   its single definition inside a media query, so every mode is reachable.

   Reader preferences live on <html> as data attributes, all set before first
   paint by the inline script in <head>:
     data-theme    light | dark          (absent = follow the system)
     data-display  normal | grayscale | contrast
     data-text     normal | large | xlarge
     data-motion   full | reduced
     data-links    default | underlined
   ========================================================================= */

/* ---------- Fonts (§13) --------------------------------------------------
   IBM Plex Sans, self-hosted, variable weight 100-700, one file per subset.
   latin-ext carries U+0259 (ə) — the most common letter in Azerbaijani.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/plex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/plex-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/plex-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens: LIGHT / NORMAL (the base every mode inherits) -------- */
:root {
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Surfaces */
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eceff2;
  --surface-3: #dde4e8;

  /* Ink */
  --text: #101c26;
  --text-muted: #45596a;
  --text-faint: #5b6f80;

  /* Brand */
  --primary: #0d5f5f;
  --primary-hover: #094c4c;
  --primary-ink: #ffffff;
  --primary-soft: #e3efee;
  --primary-line: #0d5f5f;

  /* Accent — used for emphasis, never for a call to action */
  --accent: #8a4b12;
  --accent-soft: #fbf1e5;

  /* Structure */
  --border: #d3dde3;
  --border-soft: #e3eaee;
  --border-strong: #9cb0bc;
  --focus: #0d5f5f;
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--focus);

  /* Notices */
  --warn-bg: #fdf4e9;
  --warn-line: #8a4b12;
  --warn-ink: #66380e;

  /* Rhythm — a 4px scale used everywhere, no ad-hoc values */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 104px;
  --r-sm: 8px;  --r-md: 12px; --r-lg: 18px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 28, 38, .05);
  --shadow-md: 0 2px 4px rgba(16, 28, 38, .05), 0 10px 28px rgba(16, 28, 38, .07);

  --maxw: 1180px;
  --measure: 66ch;
  --header-h: 68px;

  /* Reader-adjustable base size. 100% = 17px. */
  --fs: 1;
  --ease: cubic-bezier(.32, .72, .28, 1);

  color-scheme: light;
}

/* ---------- Tokens: DARK ------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1319;
    --surface: #141e26;
    --surface-2: #1b2831;
    --surface-3: #24333d;
    --text: #e8eff3;
    --text-muted: #a5b7c3;
    --text-faint: #8ea3b1;
    --primary: #5cc6b8;
    --primary-hover: #7ed9cc;
    --primary-ink: #05231f;
    --primary-soft: #16302d;
    --primary-line: #5cc6b8;
    --accent: #e2a76f;
    --accent-soft: #291f14;
    --border: #2a3b47;
    --border-soft: #1f2d37;
    --border-strong: #486070;
    --focus: #7ed9cc;
    --warn-bg: #291f14;
    --warn-line: #e2a76f;
    --warn-ink: #f3dcc2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .34);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1319;
  --surface: #141e26;
  --surface-2: #1b2831;
  --surface-3: #24333d;
  --text: #e8eff3;
  --text-muted: #a5b7c3;
  --text-faint: #8ea3b1;
  --primary: #5cc6b8;
  --primary-hover: #7ed9cc;
  --primary-ink: #05231f;
  --primary-soft: #16302d;
  --primary-line: #5cc6b8;
  --accent: #e2a76f;
  --accent-soft: #291f14;
  --border: #2a3b47;
  --border-soft: #1f2d37;
  --border-strong: #486070;
  --focus: #7ed9cc;
  --warn-bg: #291f14;
  --warn-line: #e2a76f;
  --warn-ink: #f3dcc2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

/* ---------- Tokens: GREYSCALE -------------------------------------------
   Palette swapped to neutrals. The desaturation FILTER is applied to media
   only (see below) — never to html/body, which would create a containing
   block and break position:fixed on the header, the sticky bar and the
   accessibility button.
   ------------------------------------------------------------------------ */
:root[data-display="grayscale"] {
  --primary: #32393d;
  --primary-hover: #1c2225;
  --primary-ink: #ffffff;
  --primary-soft: #e9ebec;
  --primary-line: #32393d;
  --accent: #494949;
  --accent-soft: #eeeeee;
  --focus: #1c2225;
  --warn-bg: #eeeeee;
  --warn-line: #494949;
  --warn-ink: #2a2a2a;
}
:root[data-theme="dark"][data-display="grayscale"],
:root[data-display="grayscale"]:not([data-theme="light"]) {
  --primary: #ccd4d8;
  --primary-hover: #e9eff1;
  --primary-ink: #0f161a;
  --primary-soft: #222b30;
  --primary-line: #ccd4d8;
  --accent: #bac2c6;
  --accent-soft: #21272a;
  --focus: #e9eff1;
  --warn-bg: #21272a;
  --warn-line: #bac2c6;
  --warn-ink: #e0e5e7;
}
:root[data-display="grayscale"] img,
:root[data-display="grayscale"] picture,
:root[data-display="grayscale"] video,
:root[data-display="grayscale"] iframe,
:root[data-display="grayscale"] [data-bg-image] {
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

/* ---------- Tokens: HIGH CONTRAST (>=7:1 body text) --------------------- */
:root[data-display="contrast"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4f5;
  --surface-3: #e6eaec;
  --text: #0a0a0a;
  --text-muted: #1f1f1f;
  --text-faint: #262626;
  --primary: #00453f;
  --primary-hover: #002e2a;
  --primary-ink: #ffffff;
  --primary-soft: #ffffff;
  --primary-line: #00453f;
  --accent: #5c2f00;
  --accent-soft: #ffffff;
  --border: #0a0a0a;
  --border-soft: #0a0a0a;
  --border-strong: #0a0a0a;
  --focus: #00453f;
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 7px var(--focus);
  --warn-bg: #ffffff;
  --warn-line: #5c2f00;
  --warn-ink: #3d1f00;
  --shadow-sm: none;
  --shadow-md: none;
}
:root[data-theme="dark"][data-display="contrast"],
:root[data-display="contrast"]:not([data-theme="light"]) {
  --bg: #000000;
  --surface: #000000;
  --surface-2: #0d0d0d;
  --surface-3: #171717;
  --text: #ffffff;
  --text-muted: #ededed;
  --text-faint: #e0e0e0;
  --primary: #7fe8da;
  --primary-hover: #a9f2e9;
  --primary-ink: #000000;
  --primary-soft: #000000;
  --primary-line: #7fe8da;
  --accent: #ffc98a;
  --accent-soft: #000000;
  --border: #ffffff;
  --border-soft: #ffffff;
  --border-strong: #ffffff;
  --focus: #7fe8da;
  --focus-ring: 0 0 0 3px #000000, 0 0 0 7px var(--focus);
  --warn-bg: #000000;
  --warn-line: #ffc98a;
  --warn-ink: #ffe3c2;
}
/* Visitors whose OS asks for more contrast get it by default; the on-page
   control still wins because [data-display] beats this media block. */
@media (prefers-contrast: more) {
  :root:not([data-display="normal"]):not([data-display="grayscale"]) {
    --text: #0a0a0a;
    --text-muted: #1f1f1f;
    --border: #0a0a0a;
    --primary: #00453f;
  }
}
:root[data-display="contrast"] .card,
:root[data-display="contrast"] .btn,
:root[data-display="contrast"] input,
:root[data-display="contrast"] select,
:root[data-display="contrast"] textarea,
:root[data-display="contrast"] .chip,
:root[data-display="contrast"] .faq-item,
:root[data-display="contrast"] .a11y-fab { border-width: 2px; }

/* ---------- Reader preferences ------------------------------------------ */
:root[data-text="large"]  { --fs: 1.13; }
:root[data-text="xlarge"] { --fs: 1.28; }
:root[data-links="underlined"] main a,
:root[data-links="underlined"] footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: calc(17px * var(--fs));
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 480px) { body { font-size: calc(16px * var(--fs)); } }

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

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.021em;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: calc(clamp(1.8rem, 1.15rem + 2.6vw, 2.85rem) * var(--fs)); letter-spacing: -0.028em; }
h2 { font-size: calc(clamp(1.42rem, 1.1rem + 1.4vw, 1.95rem) * var(--fs)); }
h3 { font-size: calc(clamp(1.1rem, 1rem + .55vw, 1.28rem) * var(--fs)); letter-spacing: -0.014em; }
h4 { font-size: calc(1rem * var(--fs)); font-weight: 600; letter-spacing: 0; }

p  { margin: 0 0 var(--sp-4); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: 1.3em; max-width: var(--measure); }
li { margin-bottom: var(--sp-2); }
a { color: var(--primary); text-underline-offset: 3px; transition: color .15s var(--ease); }
a:hover { color: var(--primary-hover); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
@media (max-width: 480px) { .wrap { padding-inline: var(--sp-4); } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Icons -------------------------------------------------------
   One size, one stroke weight, aligned to the text they sit beside.
   ------------------------------------------------------------------------ */
.ico {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.22em;
}
.ico-sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.ico-lg { width: 1.6em; height: 1.6em; }

.eyebrow {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--sp-4);
}
.lede {
  font-size: calc(1.075rem * var(--fs));
  line-height: 1.6;
  color: var(--text-muted);
  max-width: var(--measure);
}

.section { padding-block: var(--sp-8); }
@media (max-width: 700px) { .section { padding-block: var(--sp-7); } }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-head { margin-bottom: var(--sp-6); }
.section-head h2 { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.section-head h2 .ico { color: var(--primary); }
.section-head .lede { margin-bottom: 0; }

.skip {
  position: absolute; left: var(--sp-3); top: -100px; z-index: 300;
  background: var(--primary); color: var(--primary-ink);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--sp-3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons (§9 CTA discipline) --------------------------------
   .btn-primary is the ONLY filled style. Everything else is quiet.
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 46px; padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: inherit; font-size: calc(15px * var(--fs)); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover); border-color: var(--primary-hover);
  color: var(--primary-ink); box-shadow: var(--shadow-md);
}
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary-hover); border-color: var(--primary-line); }
.btn-sm { min-height: 38px; padding: var(--sp-2) var(--sp-4); font-size: calc(14px * var(--fs)); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary);
  border: 1px solid var(--border-strong); cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--primary-line); }
.icon-btn .ico { width: 20px; height: 20px; vertical-align: 0; }

/* ---------- Header ------------------------------------------------------
   Drawer cut-off is 1080px, not the conventional 900: brand + nav + services
   dropdown + language + phone needs ~1066px of run.
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--surface); } }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }

.brand {
  display: flex; flex-direction: column; justify-content: center;
  text-decoration: none; color: var(--text);
  min-width: 0; flex: 0 1 auto; margin-inline-end: auto;
}
.brand-name { font-weight: 700; font-size: calc(16px * var(--fs)); letter-spacing: -0.018em; white-space: nowrap; }
.brand-role { font-size: calc(12px * var(--fs)); color: var(--text-muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px var(--sp-3); border-radius: var(--r-sm);
  font: inherit; font-size: calc(14px * var(--fs)); font-weight: 500;
  text-decoration: none; color: var(--text);
  background: none; border: 0; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.has-menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  min-width: 300px; padding: var(--sp-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  display: none; z-index: 110;
}
.menu-panel[data-open="true"] { display: block; animation: pop .16s var(--ease); }
.menu-panel a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-3); font-size: calc(14px * var(--fs)); border-radius: var(--r-sm);
}
.menu-panel a .ico { color: var(--primary); }
.menu-panel a:hover { background: var(--surface-2); }
.menu-caret { transition: transform .18s var(--ease); width: .9em; height: .9em; }
[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }

@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Language dropdown — right-aligned so it never runs off the viewport.
   It lives in .header-tools, OUTSIDE the .nav scope, so it needs its own
   styling: without it the browser's default button chrome shows through and
   it reads as a stray form control among the round icon buttons. */
.lang-menu { inset-inline-start: auto; inset-inline-end: 0; min-width: 210px; }
.lang-menu a[aria-current="true"] { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  height: 44px; padding: 0 var(--sp-3);
  background: var(--surface-2); color: var(--primary);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font: inherit; font-size: calc(14px * var(--fs)); font-weight: 600;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.lang-trigger:hover { background: var(--surface-3); border-color: var(--primary-line); }
.lang-trigger .ico { width: 18px; height: 18px; vertical-align: 0; }
.lang-trigger .menu-caret { width: 14px; height: 14px; opacity: .7; }
.lang-code { letter-spacing: .04em; }

.header-tools { display: flex; align-items: center; gap: var(--sp-2); }

.drawer-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .drawer-toggle { display: inline-flex; }
}
@media (max-width: 400px) {
  .brand-role { display: none; }
  .brand-name { font-size: calc(15px * var(--fs)); }
  .header-inner { gap: var(--sp-2); }
}

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--surface); overflow-y: auto;
  display: none; padding: var(--sp-4) 0 var(--sp-8);
}
.drawer[data-open="true"] { display: block; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.drawer nav { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-4); }
.drawer nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--r-sm);
  text-decoration: none; color: var(--text); font-weight: 500;
  font-size: calc(16px * var(--fs));
}
.drawer nav a .ico { color: var(--primary); }
.drawer nav a:hover { background: var(--surface-2); }
.drawer .drawer-group-label {
  font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-muted);
  padding: var(--sp-5) var(--sp-3) var(--sp-2);
}

/* ---------- Accessibility panel ----------------------------------------
   A fixed control on the left edge, opening a real dialog. It replaces the
   theme and display controls that used to sit at the bottom of the footer,
   where a reader who needs them had to scroll the entire page to reach them.
   ---------------------------------------------------------------------- */
.a11y-fab {
  position: fixed; inset-inline-start: var(--sp-4); top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease);
}
.a11y-fab:hover { background: var(--primary-soft); border-color: var(--primary-line); transform: translateY(-50%) scale(1.06); }
.a11y-fab .ico { width: 24px; height: 24px; vertical-align: 0; }
@media (max-width: 860px) {
  .a11y-fab { top: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .a11y-fab:hover { transform: scale(1.06); }
}

.a11y-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(8, 16, 22, .5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
}
.a11y-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

.a11y-panel {
  position: fixed; z-index: 200;
  inset-block: 0; inset-inline-start: 0;
  width: min(380px, 92vw);
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform .26s var(--ease);
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
}
.a11y-panel[data-open="true"] { transform: none; }
.a11y-panel[hidden] { display: block; }        /* animated, not display-toggled */

.a11y-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-2);
}
.a11y-head h2 { display: flex; align-items: center; gap: var(--sp-3); font-size: calc(1.2rem * var(--fs)); margin: 0; }
.a11y-head h2 .ico { color: var(--primary); }
.a11y-intro { font-size: calc(14px * var(--fs)); color: var(--text-muted); margin-bottom: var(--sp-5); }

.a11y-group { margin-bottom: var(--sp-5); }
.a11y-group > legend,
.a11y-group > .group-title {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-3); padding: 0;
}
.a11y-group { border: 0; padding: 0; margin-inline: 0; }

.opts { display: grid; gap: var(--sp-2); }
.opts-row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.opt {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 48px; padding: var(--sp-2) var(--sp-4);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font: inherit; font-size: calc(15px * var(--fs)); font-weight: 500;
  text-align: start; cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.opt .ico { color: var(--text-muted); transition: color .16s var(--ease); }
.opt:hover { background: var(--surface-2); border-color: var(--border-strong); }
.opt[aria-pressed="true"] {
  background: var(--primary-soft); border-color: var(--primary-line);
  color: var(--primary); font-weight: 600;
}
.opt[aria-pressed="true"] .ico { color: var(--primary); }
.opt-check { margin-inline-start: auto; opacity: 0; color: var(--primary); }
.opt[aria-pressed="true"] .opt-check { opacity: 1; }
.opts-row .opt { justify-content: center; padding-inline: var(--sp-2); }
.opts-row .opt-check { display: none; }

.a11y-reset { width: 100%; justify-content: center; margin-top: var(--sp-2); }

/* ---------- Hero -------------------------------------------------------- */
.hero { padding-block: var(--sp-8) var(--sp-7); }
.hero-grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lede { font-size: calc(1.12rem * var(--fs)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); align-items: center; }
.hero-jump {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; font-size: calc(15px * var(--fs)); text-decoration: none;
}
.hero-jump:hover { text-decoration: underline; }

.factstrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; margin: 0;
}
.factstrip div { background: var(--surface); padding: var(--sp-4) var(--sp-5); }
/* A build gate can delete a cell, leaving an odd count. Let the last one span
   the row so a removed fact never shows as an empty grey box. */
.factstrip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.factstrip dt {
  display: flex; align-items: center; gap: 6px;
  font-size: calc(11px * var(--fs)); font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.factstrip dt .ico { width: 1.05em; height: 1.05em; }
.factstrip dd { margin: 0; font-size: calc(15px * var(--fs)); font-weight: 600; }

/* ---------- Complaint chooser (the most important nav element) ---------- */
.chooser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(248px, 100%), 1fr)); gap: var(--sp-3); }
.chip {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 60px; padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: var(--text);
  font-weight: 500; font-size: calc(15px * var(--fs)); line-height: 1.4;
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.chip > .ico:first-child { color: var(--primary); }
.chip:hover {
  border-color: var(--primary-line); background: var(--primary-soft); color: var(--text);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.chip-arrow { margin-inline-start: auto; color: var(--text-faint); width: 1em; height: 1em; transition: transform .18s var(--ease); }
.chip:hover .chip-arrow { transform: translateX(3px); color: var(--primary); }

/* ---------- Cards ------------------------------------------------------- */
/* min() caps the track floor at the container width. Without it a 300px
   minimum overflows a 320px viewport by 12px once the 16px gutters are
   taken -- the grid refuses to shrink below its declared minimum. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--sp-4); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: var(--sp-4);
}
.card-ico .ico { width: 22px; height: 22px; vertical-align: 0; }
.card h3 { margin-bottom: var(--sp-2); }
.card h3 a { text-decoration: none; color: var(--text); }
.card h3 a:hover { color: var(--primary); }
.card p { color: var(--text-muted); font-size: calc(15px * var(--fs)); margin-bottom: var(--sp-4); }
.card .card-more { margin-top: auto; margin-bottom: 0; font-size: calc(14px * var(--fs)); font-weight: 600; }
.card .card-more a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.card .card-more a:hover { text-decoration: underline; }
.card .card-more .ico { width: .95em; height: .95em; transition: transform .18s var(--ease); }
.card:hover .card-more .ico { transform: translateX(3px); }

/* Numbered step cards */
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  font-size: calc(15px * var(--fs)); font-weight: 700; margin-bottom: var(--sp-4);
}

/* ---------- 5W1H blocks ------------------------------------------------- */
.w-block { padding-top: var(--sp-7); scroll-margin-top: calc(var(--header-h) + 16px); }
.w-block + .w-block { border-top: 1px solid var(--border-soft); }
.w-block h2 { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.w-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary); flex: none;
}
.w-ico .ico { width: 20px; height: 20px; vertical-align: 0; }

.w-block ol { counter-reset: step; list-style: none; padding-inline-start: 0; }
.w-block ol > li {
  counter-increment: step; position: relative;
  padding-inline-start: 42px; margin-bottom: var(--sp-4);
}
.w-block ol > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 1px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50%; font-size: calc(13px * var(--fs)); font-weight: 700;
}

/* Symptom list — "Nə vaxt müraciət etməli?" */
.symptoms { list-style: none; padding-inline-start: 0; display: grid; gap: var(--sp-3); }
.symptoms li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.symptoms li .ico { color: var(--primary); margin-top: .18em; width: 1.05em; height: 1.05em; }

/* ---------- Notices ----------------------------------------------------- */
.notice {
  border: 1px solid var(--border); border-inline-start: 4px solid var(--primary-line);
  background: var(--surface); border-radius: var(--r-md);
  padding: var(--sp-5); margin-block: var(--sp-5);
}
.notice p:last-child { margin-bottom: 0; }
.notice h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: calc(1rem * var(--fs)); margin-bottom: var(--sp-3); }
.notice-risk { border-inline-start-color: var(--warn-line); background: var(--warn-bg); }
.notice-risk, .notice-risk h3 { color: var(--warn-ink); }
.notice-emergency {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  border-inline-start-color: var(--warn-line); background: var(--warn-bg);
  color: var(--warn-ink); font-weight: 600;
}
.notice-emergency .ico { color: var(--warn-line); margin-top: .15em; }
.notice-emergency a { color: inherit; }

.updated {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: calc(13px * var(--fs)); color: var(--text-faint);
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft);
}

/* ---------- Breadcrumb -------------------------------------------------- */
.breadcrumb { padding-block: var(--sp-4) 0; font-size: calc(13px * var(--fs)); color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; max-width: none; }
.breadcrumb li { margin: 0; display: flex; gap: var(--sp-2); align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--text-faint); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Accordion FAQ ---------------------------------------------- */
.faq { display: grid; gap: var(--sp-2); max-width: 880px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color .18s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); min-height: 60px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: calc(16px * var(--fs)); font-weight: 600;
  color: var(--text); text-align: start;
}
.faq-q:hover { background: var(--surface-2); }
.faq-icon { flex: none; margin-inline-start: auto; transition: transform .22s var(--ease); color: var(--text-muted); }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-a { padding: 0 var(--sp-5) var(--sp-5); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Appointment form ------------------------------------------- */
.form { max-width: 640px; }
.field { margin-bottom: var(--sp-5); }
.field > label, .group-label {
  display: block; font-weight: 600; font-size: calc(15px * var(--fs)); margin-bottom: var(--sp-2);
}
/* Optional fields are marked; required ones are simply the default. Marking
   the exception rather than the rule removes a column of asterisks from a
   form where nearly everything is required. */
.opt-tag {
  font-weight: 400; font-size: calc(13px * var(--fs)); color: var(--text-faint);
  margin-inline-start: var(--sp-2);
}
.hint { font-size: calc(13px * var(--fs)); color: var(--text-muted); margin: var(--sp-2) 0 0; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px var(--sp-4);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: inherit; font-size: calc(16px * var(--fs));
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--primary-line); }
textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--focus-ring); }

.phone-row { display: grid; grid-template-columns: auto 96px 1fr; gap: var(--sp-2); align-items: stretch; }
.phone-cc {
  display: flex; align-items: center; padding-inline: var(--sp-4);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); font-weight: 600; font-size: calc(16px * var(--fs));
  color: var(--text); white-space: nowrap;
}

.err {
  display: none; align-items: center; gap: var(--sp-2);
  font-size: calc(14px * var(--fs)); font-weight: 600;
  color: var(--warn-ink); margin-top: var(--sp-2);
}
[data-invalid="true"] .err { display: flex; }
[data-invalid="true"] input, [data-invalid="true"] select { border-color: var(--warn-line); border-width: 2px; }

.form-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  font-size: calc(14px * var(--fs)); color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
}
.form-note .ico { color: var(--text-faint); margin-top: .2em; }
.form-note p { margin: 0; }
.form-note p + p { margin-top: var(--sp-3); }

.alt-contact { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); }
.alt-contact .hint { margin: 0; width: 100%; }

/* ---------- Map facade -------------------------------------------------- */
.map-facade {
  display: grid; place-items: center; gap: var(--sp-3);
  min-height: 280px; padding: var(--sp-6); height: 100%;
  background: var(--surface-2); border-radius: var(--r-lg); text-align: center;
}
.map-facade .ico-lg { color: var(--primary); }
.map-embed { width: 100%; aspect-ratio: 16 / 9; min-height: 300px; border: 0; border-radius: var(--r-lg); }

.contact-lines { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: 0; list-style: none; max-width: none; }
.contact-lines li { display: flex; align-items: center; gap: var(--sp-3); margin: 0; font-size: calc(15px * var(--fs)); }
.contact-lines .ico { color: var(--primary); }
.contact-lines .k { color: var(--text-muted); }

/* ---------- Sticky mobile CTA bar (§9) ---------------------------------
   Mobile primary. Hides while an in-page primary CTA is on screen.
   ---------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
@supports not (backdrop-filter: blur(1px)) { .sticky-cta { background: var(--surface); } }
.sticky-cta .btn-primary { flex: 1; }
.sticky-cta[data-hidden="true"] { opacity: 0; transform: translateY(100%); pointer-events: none; }
@media (min-width: 861px) { .sticky-cta { display: none; } }
@media (max-width: 860px) { body { padding-bottom: 88px; } }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--sp-7); }
.footer-grid > div { min-width: 0; }
.footer-grid h2 {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4);
}
.footer-grid h2 .ico { color: var(--text-faint); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--sp-3); }
.footer-grid a { font-size: calc(15px * var(--fs)); text-decoration: none; color: var(--text); }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.footer-grid address { font-style: normal; font-size: calc(15px * var(--fs)); color: var(--text-muted); line-height: 1.8; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  font-size: calc(13px * var(--fs)); color: var(--text-muted); align-items: center;
}
.footer-bottom a { color: var(--text-muted); }
.footer-legal { font-size: calc(13px * var(--fs)); color: var(--text-muted); max-width: 78ch; margin-top: var(--sp-5); }

/* ---------- Motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
/* The same, chosen explicitly in the accessibility panel. */
:root[data-motion="reduced"] { scroll-behavior: auto; }
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* ---------- Windows High Contrast --------------------------------------- */
@media (forced-colors: active) {
  .btn-primary { background: ButtonFace; color: ButtonText; border: 2px solid ButtonText; }
  .btn-ghost, .icon-btn, .card, .chip, .faq-item, .notice, .a11y-fab, .opt { border: 1px solid CanvasText; }
  .ico { stroke: CanvasText; }
  .card-ico, .w-ico, .step-n { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; outline-offset: 2px; box-shadow: none; }
  .opt[aria-pressed="true"] { background: Highlight; color: HighlightText; }
  .opt[aria-pressed="true"] .ico { stroke: HighlightText; }
}

/* ---------- Print ------------------------------------------------------- */
@media print {
  .site-header, .sticky-cta, .drawer, .map-facade, .a11y-fab,
  .a11y-panel, .a11y-backdrop { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .card, .faq-item, .notice { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

/* ---------- Articles (Tibbi Yazılar) ------------------------------------ */
.a-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(13px * var(--fs)); color: var(--text-faint);
  margin: 0 0 var(--sp-5);
}
.card-article .card-more { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.card-article .card-more .a-meta { margin: 0; }
.card-article .card-more a { margin-inline-start: auto; }
.a-block { padding-top: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 16px); }
.a-block + .a-block { border-top: 1px solid var(--border-soft); }
.a-block h2 { margin-bottom: var(--sp-4); }
.a-video { margin-top: var(--sp-6); }

/* ---------- Press (Mətbuatda Həkim) ------------------------------------- */
.press-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); max-width: none; }
.press-item {
  display: flex; gap: var(--sp-5); margin: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.press-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.press-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none; border-radius: var(--r-md);
  background: var(--primary-soft); color: var(--primary);
}
.press-ico .ico { width: 24px; height: 24px; vertical-align: 0; }
.press-body { min-width: 0; }
.press-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  margin: 0 0 var(--sp-2); max-width: none;
}
.press-outlet { font-weight: 700; font-size: calc(14px * var(--fs)); letter-spacing: .01em; }
.press-date { font-size: calc(13px * var(--fs)); color: var(--text-faint); }
.press-title { font-size: calc(1.12rem * var(--fs)); margin-bottom: var(--sp-3); }
.press-body p { font-size: calc(15px * var(--fs)); color: var(--text-muted); }
.press-link { margin-bottom: 0; }
.press-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: calc(14px * var(--fs)); text-decoration: none; }
.press-link a:hover { text-decoration: underline; }

/* A badge that says how well the claim is sourced. The distinction is the
   point of the page: an item confirmed by a newsroom is not the same as one
   the doctor reported himself, and the reader is told which is which. */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px var(--sp-3); border-radius: var(--r-pill);
  font-size: calc(12px * var(--fs)); font-weight: 600; line-height: 1.5;
  border: 1px solid transparent;
}
.badge-ok { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.badge-self { background: var(--surface-2); color: var(--text-muted); border-color: var(--border-strong); }
@media (max-width: 560px) {
  .press-item { flex-direction: column; gap: var(--sp-4); }
}

/* ---------- Digital business card (Vizitkart) --------------------------- */
.vcard-section { padding-block: var(--sp-7) var(--sp-8); }
.vcard {
  max-width: 460px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
}
.vcard-head { text-align: center; margin-bottom: var(--sp-6); }
.vcard-photo {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto var(--sp-4);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}
.vcard-monogram {
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink);
  font-size: 46px; font-weight: 700; letter-spacing: .02em;
}
.vcard-name { font-size: calc(1.5rem * var(--fs)); font-weight: 700; letter-spacing: -0.022em; margin: 0 0 4px; max-width: none; }
h1.vcard-name { line-height: 1.25; }
.vcard-role { color: var(--primary); font-weight: 600; margin: 0 0 var(--sp-3); max-width: none; }
.vcard-clinic {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  font-size: calc(15px * var(--fs)); color: var(--text-muted); margin: 0; max-width: none;
}
.vcard-actions { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.vcard-actions .btn { width: 100%; }
.vcard-lines { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-3); max-width: none; }
.vcard-lines li { display: flex; align-items: center; gap: var(--sp-3); margin: 0; font-size: calc(15px * var(--fs)); min-width: 0; }
.vcard-lines .ico { color: var(--primary); flex: none; }
.vcard-lines a, .vcard-lines span { overflow-wrap: anywhere; }
.vcard-group-label {
  font-size: calc(12px * var(--fs)); font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 var(--sp-3); padding-top: var(--sp-4);
  border-top: 1px solid var(--border-soft); max-width: none;
}
.vcard-foot { padding-top: var(--sp-5); border-top: 1px solid var(--border-soft); display: grid; gap: var(--sp-3); }
.vcard-foot .btn { width: 100%; }
.vcard-foot .hint { text-align: center; margin: 0; }
