/* =====================================================================
   Dr. Beyrək Abbaszadə — ürək-damar cərrahı
   Visual identity from the doctor's logo: cardiac red + navy, ECG line,
   stethoscope chestpiece. Fira Sans throughout.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --red: #E63828;
  --red-600: #CF2E1F;
  --red-700: #AF2415;
  --red-50: #FDF1EF;
  --red-100: #F9DCD7;
  --coral: #FF8375;
  --blue: #1A5188;
  --blue-700: #133E69;
  --blue-50: #EEF3F9;
  --blue-100: #D9E5F2;
  --sky: #A9C7E8;
  --ink: #0F2135;
  --ink-2: #16304C;
  --text: #2A3A4D;
  --muted: #5A6A7C;
  --paper: #F8F6F2;
  --paper-2: #F1EDE6;
  --card: #FFFFFF;
  --line: #E7E1D8;
  --line-2: #D6CEC2;
  --on-dark: #E9EFF6;
  --on-dark-muted: #A7B8CA;

  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-hero: clamp(2.3rem, 1.35rem + 3.3vw, 3.8rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.3vw, 3.1rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.35vw, 2.2rem);
  --fs-h3: clamp(1.12rem, 1.04rem + .3vw, 1.28rem);
  --fs-lead: clamp(1.05rem, .99rem + .28vw, 1.2rem);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-badge: 12px 12px 12px 4px;

  --shadow-sm: 0 1px 2px rgba(15, 33, 53, .06), 0 1px 1px rgba(15, 33, 53, .04);
  --shadow: 0 14px 34px -16px rgba(15, 33, 53, .22);
  --shadow-lg: 0 34px 70px -30px rgba(15, 33, 53, .38);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(3.5rem, 2.2rem + 4.5vw, 6.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grid-major: rgba(230, 56, 40, .075);
  --grid-minor: rgba(230, 56, 40, .035);

  interpolate-size: allow-keywords;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(26, 81, 136, .45); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red-100); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--ink); }
small { font-size: .82em; }
address { font-style: normal; }
.tnum { font-variant-numeric: tabular-nums; }

.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;
}
.skip {
  position: fixed;
  left: 12px; top: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; color: #fff; }
main:focus { outline: none; }

/* ---------- 3. Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--card); border-block: 1px solid var(--line); }
.section--blue { background: var(--blue-50); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: 1rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split > * { min-width: 0; }

/* ECG paper texture */
.ecg-paper {
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* ---------- 5. Kicker, badges, links, buttons, chips ---------- */
.badge {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: var(--r-badge);
  background: var(--red-50);
  color: var(--red-600);
  box-shadow: inset 0 0 0 1px var(--red-100);
}
.badge .icon { width: 1.3rem; height: 1.3rem; }
.badge--sm { width: 2.1rem; height: 2.1rem; }
.badge--sm .icon { width: 1.1rem; height: 1.1rem; }
.badge--lg { width: 3.4rem; height: 3.4rem; border-radius: 16px 16px 16px 5px; }
.badge--lg .icon { width: 1.7rem; height: 1.7rem; }
.badge--blue { background: var(--blue-50); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-100); }
.badge--ink { background: var(--ink); color: #fff; box-shadow: none; }
.badge--alert { background: #fff; color: var(--red-600); box-shadow: inset 0 0 0 1px var(--red-100); }

.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--blue);
}
.kicker .badge { width: 2.1rem; height: 2.1rem; }
.kicker .badge .icon { width: 1.1rem; height: 1.1rem; }
.kicker > span:last-child { min-width: 0; }

.linkarrow {
  display: inline;
  width: fit-content;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.linkarrow span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.linkarrow .icon { display: inline-block; width: 1.05em; height: 1.05em; margin-left: .35em; transition: transform .25s var(--ease); vertical-align: -.15em; }
.linkarrow:hover { color: var(--red-600); }
.linkarrow:hover span { text-decoration-color: currentColor; }
.linkarrow:hover .icon { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 1.15rem; height: 1.15rem; }
.btn--cta {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(207, 46, 31, .7);
}
.btn--cta:hover { background: var(--red-700); color: #fff; transform: translateY(-1px); }
.btn--cta:hover .btn__icon { animation: nudge .5s var(--ease); }
.btn--navy { background: var(--ink); color: #fff; }
.btn--navy:hover { background: var(--blue-700); color: #fff; }
@keyframes nudge { 40% { transform: translateX(3px) rotate(-6deg); } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  padding: .45rem .95rem;
  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, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
button.chip { cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .icon { width: 1.05rem; height: 1.05rem; }

.fineprint {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  font-size: .88rem;
  color: var(--muted);
}
.fineprint .icon { color: var(--blue); margin-top: .15em; width: 1.1rem; height: 1.1rem; }

.updated {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--muted);
}
.updated .icon { width: 1.05rem; height: 1.05rem; color: var(--blue); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(248, 246, 242, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 33, 53, .35); }
.header__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: auto; height: 38px; }
.brand__text { display: grid; min-width: 0; line-height: 1.15; }
.brand__name { font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em; }
.brand__role { font-size: .8rem; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--blue-50); color: var(--blue); }
.nav__link.is-active { color: var(--blue); font-weight: 500; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--red);
}
.nav__chev { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  width: 360px;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub--wide .submenu { width: 660px; }
.has-sub--wide .submenu__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .15rem .4rem; }
.nav__link[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s;
  }
  .has-sub:hover > .nav__link { background: var(--blue-50); color: var(--blue); }
}
.submenu__list { list-style: none; margin: 0; padding: 0; }
.submenu__link {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .65rem;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s;
}
.submenu__link:hover { background: var(--paper); color: var(--ink); }
.submenu__link[aria-current="page"] { background: var(--blue-50); }
.submenu__text { display: grid; min-width: 0; line-height: 1.3; }
.submenu__label { font-weight: 500; font-size: .96rem; }
.submenu__desc { font-size: .82rem; color: var(--muted); }
.submenu__link:hover .badge { background: var(--red-600); color: #fff; box-shadow: none; }
.submenu .badge { transition: background-color .2s, color .2s; }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.nav + .header__actions { margin-left: .75rem; }
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.iconbtn:hover { background: var(--blue-50); color: var(--blue); }
.iconbtn .icon { width: 1.35rem; height: 1.35rem; }
.iconbtn--menu { display: none; border-color: var(--line); background: #fff; }

/* ---------- 7. Drawer (mobile navigation) ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.drawer::backdrop { background: rgba(15, 33, 53, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.drawer[open] .drawer__panel { animation: drawerIn .3s var(--ease); }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .5; } }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand--sm .brand__mark { height: 30px; }
.brand--sm .brand__name { font-size: .98rem; }
.drawer__nav { min-height: 0; overflow-y: auto; padding: .75rem var(--gutter) 1.25rem; overscroll-behavior: contain; }
.drawer__list, .drawer__sub { list-style: none; margin: 0; padding: 0; }
.drawer__list > li + li { border-top: 1px solid var(--line); }
.drawer__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 52px;
  padding: .55rem .25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.drawer__link[aria-current="page"] { color: var(--blue); }
.drawer__link--top { font-size: 1.05rem; }
.drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: .55rem .25rem;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
}
.drawer__summary::-webkit-details-marker { display: none; }
.drawer__chev { width: 1.2rem; height: 1.2rem; transition: transform .25s var(--ease); }
.drawer__group[open] .drawer__chev { transform: rotate(180deg); }
.drawer__sub { padding: 0 0 .6rem .25rem; }
.drawer__sub .drawer__link { min-height: 46px; font-weight: 400; }
.drawer__foot { padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.drawer__cta:empty { display: none; }
.drawer__cta { margin-bottom: .9rem; }
.drawer .cta { position: static; display: flex; width: 100%; min-height: 54px; box-shadow: none; }
.drawer__foot .cicons { flex-wrap: nowrap; justify-content: space-between; gap: .4rem; }
.drawer__foot .cicon { flex: 1 1 0; width: auto; max-width: 52px; height: auto; aspect-ratio: 1; }
html.is-locked { overflow: hidden; }

/* ---------- 8. Search dialog ---------- */
.finder {
  width: min(720px, calc(100% - 24px));
  max-width: 100%;
  max-height: min(78vh, 720px);
  margin: 9vh auto auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: transparent;
  overflow: visible;
}
.finder::backdrop { background: rgba(15, 33, 53, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.finder__panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(78vh, 720px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.finder[open] .finder__panel { animation: finderIn .25s var(--ease); }
@keyframes finderIn { from { transform: translateY(-10px) scale(.985); opacity: 0; } }
.finder__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .25rem 1.4rem; }
.finder__title { font-size: 1.05rem; font-weight: 600; }
.finder__form {
  position: relative;
  display: flex;
  align-items: center;
  margin: .5rem 1.1rem .75rem;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.finder__form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 81, 136, .12); }
.finder__glass { position: absolute; left: 14px; width: 1.3rem; height: 1.3rem; color: var(--muted); pointer-events: none; }
.finder__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: .6rem .5rem .6rem 2.8rem;
  border: 0;
  background: transparent;
  font-size: 1.08rem;
  color: var(--ink);
}
.finder__input:focus { outline: none; }
.finder__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.finder__go { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 5px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; }
.finder__go .icon { width: 1.2rem; height: 1.2rem; }
.finder__body { min-height: 0; overflow-y: auto; padding: 0 1.1rem 1.25rem; overscroll-behavior: contain; }
.finder__status { margin: .25rem .3rem .75rem; font-size: .9rem; color: var(--muted); }
.finder__results { list-style: none; margin: 0; padding: 0; }
.finder__results a {
  display: block;
  padding: .8rem .9rem;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.finder__results a:hover, .finder__results a.is-focus { background: var(--blue-50); }
.finder__rtitle { display: block; color: var(--ink); font-weight: 600; }
.finder__rsec { display: block; font-size: .78rem; color: var(--blue); margin-bottom: .1rem; }
.finder__rsnip { display: block; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.finder__all a { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); margin-top: .35rem; }
.finder__all .finder__rtitle { color: var(--blue); font-weight: 500; }
mark { background: var(--red-100); color: var(--ink); border-radius: 3px; padding: 0 .1em; }
.finder__quick-title { margin: 0 .3rem .6rem; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* ---------- 9. Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0 clamp(2.25rem, 1.5rem + 3vw, 4rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  -webkit-mask-image: radial-gradient(90% 80% at 75% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 80% at 75% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.hero__copy { position: relative; z-index: 3; padding-top: clamp(1rem, 4.2vw, 4rem); }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.025em; }
.hero__title .hero__role {
  display: block;
  margin-bottom: .55rem;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--red-600);
}
.hero__lead { margin-top: 1.25rem; max-width: 36em; font-size: var(--fs-lead); color: var(--text); }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.hero__facts li { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); }
.hero__facts .icon { width: 1.1rem; height: 1.1rem; color: var(--blue); }

.hero__visual { position: relative; z-index: 2; padding: 3rem 0 8.5rem; }
.scope { position: relative; width: min(100%, 430px); margin-inline: auto; aspect-ratio: 1; }
.scope__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(120% 110% at 28% 22%, rgba(169, 199, 232, .28), transparent 55%),
    radial-gradient(100% 100% at 50% 50%, #1D5690 0%, #133E69 58%, #0F2135 100%);
  box-shadow: 0 0 0 10px #fff, var(--shadow-lg);
}
.scope__disc::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed rgba(169, 199, 232, .28);
}
.hero__ecg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero__ecg path, .hero__ecg circle { fill: none; stroke: var(--red); stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.hero__ecg .ecg-narrow { display: none; }
.scope__photo {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: 88%;
  height: auto;
  z-index: 2;
  /* Inside the disc, plus the head rising above its rim. */
  -webkit-mask-image:
    radial-gradient(ellipse 56.82% 45.17% at 50% 54.83%, #000 99.4%, transparent 100%),
    linear-gradient(#000, #000);
  -webkit-mask-size: 100% 100%, 100% 21%;
  -webkit-mask-position: 0 0, 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    radial-gradient(ellipse 56.82% 45.17% at 50% 54.83%, #000 99.4%, transparent 100%),
    linear-gradient(#000, #000);
  mask-size: 100% 100%, 100% 21%;
  mask-position: 0 0, 0 0;
  mask-repeat: no-repeat;
}
.scope__tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: 250px;
  padding: .65rem .9rem .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  font-size: .86rem;
  line-height: 1.3;
  color: var(--ink);
}
.scope__tag small { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.scope__tag strong { display: block; font-weight: 600; }
.scope__tag--now { top: 6%; right: -8%; }
.scope__tag--first { bottom: 2%; right: -12%; }
.scope__tag .badge { width: 2.2rem; height: 2.2rem; }
.scope__tag .badge .icon { width: 1.15rem; height: 1.15rem; }
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(230, 56, 40, .5);
}
html.m-on .pulse-dot::after { animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(230, 56, 40, 0); } }

/* Focus strip under the hero */
.focusbar { position: relative; z-index: 2; }
.focusbar__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.focusbar__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.focusbar__link > span:not(.badge) { flex: 1 1 auto; min-width: 0; }
.focusbar__link > .icon { width: 1.1rem; height: 1.1rem; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.focusbar__link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.focusbar__link:hover > .icon { transform: translateX(3px); color: var(--red-600); }

/* ---------- 10. Inner page head ---------- */
.pagehead {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(1.25rem, .9rem + 1.5vw, 2rem) 0 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  pointer-events: none;
}
.pagehead__inner { position: relative; z-index: 1; }
.pagehead__title { max-width: 22em; }
.pagehead__lead { margin-top: 1rem; max-width: 44em; font-size: var(--fs-lead); }
.pagehead__ecg {
  position: absolute;
  right: var(--gutter);
  bottom: 8px;
  z-index: 0;
  width: clamp(170px, 22vw, 300px);
  opacity: .5;
}
.pagehead--service .pagehead__ecg { display: none; }
.ecg { display: block; overflow: visible; aspect-ratio: 5 / 1; height: auto; }
.ecg--wide { aspect-ratio: 10 / 1; }
.ecg path { fill: none; stroke: var(--red); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.pagehead__ecg { height: auto; }

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

/* ---------- 11. Section heads ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); }
.section-head__lead { margin-top: .9rem; font-size: var(--fs-lead); color: var(--text); }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}
.section-head--row > div { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* ---------- 12. Cards and tiles ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bento > li { min-width: 0; display: flex; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--text); font-size: .98rem; }
.tile__more { margin-top: auto; padding-top: .35rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--blue); }
.tile__more .icon { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--text); }
a.tile:hover .tile__more { color: var(--red-600); }
a.tile:hover .tile__more .icon { transform: translateX(4px); }
a.tile:hover .badge { background: var(--red-600); color: #fff; box-shadow: none; }
.tile .badge { transition: background-color .25s, color .25s; }
.tile--lead { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tile--lead h3 { color: #fff; }
.tile--lead p { color: var(--on-dark); }
.tile--lead .tile__more { color: #fff; }
.tile--lead .badge { background: rgba(255, 255, 255, .08); color: var(--coral); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
a.tile--lead:hover { border-color: var(--ink); }
a.tile--lead:hover .tile__more { color: var(--coral); }
.tile__trace { position: absolute; right: 1.2rem; top: 1.4rem; width: 120px; height: 36px; opacity: .8; }
.tile__trace path { stroke: var(--coral); }

.card {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card > * + * { margin-top: .8rem; }
.card--tint { background: var(--blue-50); border-color: var(--blue-100); box-shadow: none; }
.card__head { display: flex; align-items: center; gap: .8rem; }
.card__head h3 { font-size: 1.15rem; }

/* ---------- 13. Rhythm strip (career milestones) ---------- */
.rhythm {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 2.2rem 0 0;
}
.rhythm::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-100), var(--red) 18%, var(--red) 82%, var(--red-100));
}
.rhythm__item { position: relative; min-width: 0; padding-top: 1.4rem; }
.rhythm__mark {
  position: absolute;
  top: -2.2rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--red-600);
  box-shadow: 0 0 0 2px var(--red), var(--shadow-sm);
}
.rhythm__mark .icon { width: 1.2rem; height: 1.2rem; }
.rhythm__item.is-now .rhythm__mark { background: var(--red-600); color: #fff; }
.rhythm__year { display: block; font-size: .85rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.rhythm__label { display: block; margin-top: .2rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rhythm__sub { display: block; margin-top: .2rem; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* Vertical timeline (about page) */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.6rem; }
.timeline::before { content: ""; position: absolute; left: 1.05rem; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--red), var(--red-100)); }
.timeline__item { position: relative; padding-bottom: 1.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__mark {
  position: absolute;
  left: -2.6rem;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--red-600);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline__mark .icon { width: 1.1rem; height: 1.1rem; }
.timeline__item.is-now .timeline__mark { background: var(--red-600); color: #fff; }
.timeline__when { display: block; font-size: .88rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.timeline__what { display: block; margin-top: .15rem; font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.timeline__note { display: block; margin-top: .2rem; color: var(--muted); }

/* ---------- 14. Monitor-style case cards ---------- */
.monitors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.monitors > li { min-width: 0; display: flex; }
.monitor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: 100%;
  overflow: hidden;
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--on-dark);
  isolation: isolate;
}
.monitor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 131, 117, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 131, 117, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.monitor__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8rem; color: var(--on-dark-muted); }
.monitor__head > span { display: inline-flex; align-items: center; gap: .5rem; }
.monitor__head .pulse-dot { width: 8px; height: 8px; background: var(--coral); }
.monitor__num { font-variant-numeric: tabular-nums; }
.monitor h3 { color: #fff; font-size: 1.14rem; }
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.readout {
  min-width: 0;
  padding: .6rem .75rem .55rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.readout dt { font-size: .74rem; line-height: 1.3; color: var(--on-dark-muted); }
.readout dd { margin: .1rem 0 0; font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.readout dd small { margin-left: .15em; font-size: .7rem; font-weight: 500; color: var(--on-dark-muted); }
.readout--wide { grid-column: 1 / -1; }
.monitor__trace { width: 100%; height: 34px; }
.monitor__trace path { stroke: var(--coral); stroke-width: 1.6; }
.monitor p { color: #C9D6E4; font-size: .95rem; }
.monitor .linkarrow { color: #fff; margin-top: auto; }
.monitor .linkarrow:hover { color: var(--coral); }

/* Light case chips used inside service pages */
.practice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.practice > li {
  display: flex;
  gap: .8rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--r);
  background: #fff;
}
.practice > li .badge { width: 2.2rem; height: 2.2rem; }
.practice strong { display: block; color: var(--ink); }
.practice p { margin: .15rem 0 0; font-size: .95rem; }

/* ---------- 15. Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  min-width: 0;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step__num { font-size: .9rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.step p { font-size: .96rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  right: -1rem;
  width: 1rem;
  height: 2px;
  background: var(--red);
}

/* ---------- 16. FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q > span { min-width: 0; }
.faq__icon {
  width: 2rem;
  height: 2rem;
  padding: .45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-600);
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--red-600); color: #fff; }
.faq__a { padding: 0 1.2rem 1.2rem; color: var(--text); }
.faq__a p + p { margin-top: .75rem; }
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group__title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: 1.3rem; }

/* ---------- 17. Prose and content blocks ---------- */
.prose { font-size: 1.04rem; color: var(--text); }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose li { max-width: 70ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .85rem; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 0; list-style: none; }
.prose ul:not([class]) > li, .prose ol:not([class]) > li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) > li + li, .prose ol:not([class]) > li + li { margin-top: .55rem; }
.prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.prose ol:not([class]) { counter-reset: item; }
.prose ol:not([class]) > li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: .12em;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
}
.prose a:not([class]) { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(26, 81, 136, .35); }
.prose a:not([class]):hover { color: var(--red-600); text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }

.block { scroll-margin-top: calc(var(--header-h) + 20px); }
.block + .block { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.block__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.block__head h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.block > * + * { margin-top: 1rem; }
.block__head + * { margin-top: 0; }
.answer {
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.checklist { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; max-width: 70ch; }
.checklist .icon { width: 1.25rem; height: 1.25rem; margin-top: .15em; color: var(--red-600); }
.checklist--blue .icon { color: var(--blue); }
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; }
.checklist--cols li { min-width: 0; }

.note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--r);
  background: var(--blue-50);
}
.note p { margin: 0; color: var(--ink); }
.note .badge { width: 2.3rem; height: 2.3rem; }
.note--alert { border-color: var(--red-100); background: var(--red-50); }

.t-wrap { margin-top: 1.25rem; }
.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  font-size: .97rem;
}
.t th, .t td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.t tr:last-child > * { border-bottom: 0; }
.t thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .9rem; }
.t tbody th { color: var(--ink); font-weight: 600; }
.t td { color: var(--text); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-lg); }
.figure figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.figure--wide img { aspect-ratio: 16 / 8; object-fit: cover; }

/* Two-column document layout with a sticky contents list */
.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.doc__aside { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.doc__main { min-width: 0; }
.toc { padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.toc__title { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.toc__title .icon { width: 1.05rem; height: 1.05rem; color: var(--blue); }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.toc__list a {
  display: block;
  padding: .42rem .6rem;
  border-radius: 10px;
  color: var(--text);
  font-size: .93rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.toc__list a:hover { background: var(--paper); color: var(--blue); }
.toc__list a.is-current { background: var(--blue-50); color: var(--blue); font-weight: 500; }
.doc__aside .aside-note { margin-top: 1rem; }

.related { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.related__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.05rem; }
.related__list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }

/* ---------- 18. Video, map and portrait frames ---------- */
.videocard {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.videocard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.videocard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 53, 0) 35%, rgba(15, 33, 53, .82));
}
.videocard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-600);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .22);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.videocard__play .icon { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; stroke: none; }
.videocard__cap { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem; z-index: 2; font-size: .92rem; line-height: 1.4; color: #fff; }
.videocard__cap strong { display: block; color: #fff; font-size: 1.02rem; }
.videocard:hover img { transform: scale(1.03); }
.videocard:hover .videocard__play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .25); }
.videocard.is-playing::after { display: none; }
.videocard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.mapcard { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper-2); }
.mapcard iframe { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; }

.frame-round { overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--red-100), var(--shadow); }
.frame-round img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- 19. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 500; color: var(--ink); font-size: .95rem; }
.field label .req { color: var(--red-600); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem .95rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 81, 136, .13); }
.field__hint { font-size: .84rem; color: var(--muted); }
.field__error { font-size: .86rem; color: var(--red-700); font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(207, 46, 31, .12); }
.form__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.form__consent { flex-basis: 100%; font-size: .86rem; color: var(--muted); }
.form__alert { padding: .8rem 1rem; border-radius: 12px; background: var(--red-50); color: var(--red-700); font-weight: 500; }

/* ---------- 20. Contact icons ---------- */
.cicons { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.cicon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 5px;
  background: #fff;
  color: var(--blue);
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.cicon .icon { width: 1.35rem; height: 1.35rem; }
.cicon:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.cicon--whatsapp:hover { background: #128C4B; border-color: #128C4B; }
.cicon--phone:hover, .cicon--hospital:hover { background: var(--red-600); border-color: var(--red-600); }
.cicons--lg .cicon { width: 58px; height: 58px; border-radius: 18px 18px 18px 6px; }
.cicons--lg .cicon .icon { width: 1.55rem; height: 1.55rem; }
.cicons--center { justify-content: center; }

/* ---------- 21. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  padding-top: clamp(3rem, 2.4rem + 3vw, 4.5rem);
  background: var(--ink);
  color: var(--on-dark-muted);
}
.footer__pulse { position: absolute; left: 0; right: 0; top: -30px; height: 60px; pointer-events: none; }
.footer__pulse svg { width: 100%; height: 100%; overflow: visible; }
.footer__pulse path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.footer__grid > * { min-width: 0; }
.brand--footer { color: #fff; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand__mark { height: 40px; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #fff; box-sizing: content-box; }
.brand--footer .brand__role { color: var(--on-dark-muted); }
.footer__about { margin: 1.1rem 0 1.25rem; max-width: 34ch; color: var(--on-dark-muted); }
.site-footer .footer__title { margin: 0 0 1rem; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.site-footer .footer__title--gap { margin-top: 1.75rem; }
.footer__links { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.site-footer .footer__links a { color: var(--on-dark); text-decoration: none; }
.site-footer .footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__address { color: var(--on-dark); }
.footer__line { display: flex; gap: .65rem; align-items: flex-start; }
.footer__line .icon { color: var(--coral); margin-top: .2em; }
.footer__line strong { color: #fff; }
.footer__hours { display: grid; gap: .4rem; list-style: none; margin: 1rem 0 1.1rem; padding: 0; color: var(--on-dark); }
.footer__hours li { display: flex; gap: .65rem; align-items: flex-start; }
.footer__hours .icon { color: var(--coral); margin-top: .2em; }
.footer__hours .tnum { white-space: nowrap; }
.cicons--footer { gap: .5rem; }
.site-footer .cicons--footer .cicon { width: 44px; height: 44px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.site-footer .cicons--footer .cicon:hover { background: #fff; border-color: #fff; color: var(--ink); }
.site-footer .footer__vcard {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.1rem;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.site-footer .footer__vcard .icon { color: var(--coral); }
.site-footer .footer__vcard:hover span { text-decoration: underline; }
/* Bottom padding keeps the last row clear of the fixed accessibility button. */
.footer__bottom {
  padding-block: 1.5rem calc(4.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}
.footer__disclaimer { max-width: 90ch; color: var(--on-dark-muted); }
.footer__disclaimer strong { color: var(--on-dark); }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer .footer__legal a { color: var(--on-dark); text-decoration: none; }
.site-footer .footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__copy { margin-left: auto; }
.site-footer .footer__credit a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer .footer__credit a:hover { color: var(--coral); }

/* ---------- 22. Page-specific ---------- */
/* Home: who is */
.who {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.who__media { position: relative; min-width: 0; }
.who__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.who__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem .55rem .65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.who__badge .icon { color: var(--red-600); width: 1.15rem; height: 1.15rem; }
.who__copy { min-width: 0; }
.who__copy p + p { margin-top: 1rem; }
.who__copy .linkarrow { display: inline-block; margin-top: 1.25rem; }
.who__rhythm { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* Home: press feature */
.feature {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature > * { min-width: 0; }
.datechip {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin: 1.1rem 0 1rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.datechip__y { color: var(--coral); font-variant-numeric: tabular-nums; }
.sources { display: grid; gap: .55rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.sources a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; text-decoration: none; }
.sources a .icon { width: 1.15rem; height: 1.15rem; }
.sources a:hover span { text-decoration: underline; }

/* Home: bring your results */
.bring {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bring h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.bring p { margin-top: .5rem; max-width: 60ch; }
.bring__side { display: grid; gap: .75rem; justify-items: start; }

/* Services overview */
.svc-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.svc-hero img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 30%; }
.svc-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.svc-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 1.1rem 1.4rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc-row__num { font-size: .9rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-row h2 { font-size: 1.2rem; }
.svc-row p { margin-top: .25rem; color: var(--text); font-size: .98rem; }
.svc-row__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.svc-row__go .icon { width: 1.2rem; height: 1.2rem; }
.svc-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--text); }
.svc-row:hover .svc-row__go { background: var(--red-600); color: #fff; transform: translateX(3px); }
.svc-row:hover .badge { background: var(--red-600); color: #fff; box-shadow: none; }
.svc-row .badge { transition: background-color .25s, color .25s; }

/* Service page hero art */
.pagehead--service .pagehead__inner { padding-right: clamp(0px, 24vw, 360px); }
.svc-art::before {
  content: "";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 130px;
  height: 26px;
  margin-top: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 26'%3E%3Cpath d='M0 16h40l3-3 3 3h6l4-13 5 21 4-12 3 4h14l4-4 4 4h40' fill='none' stroke='%23E63828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.svc-art {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 30% 25%, #245D97, #0F2135);
  color: #fff;
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--red), var(--shadow);
  transform: translateY(-50%);
}
.svc-art .icon { width: 44%; height: 44%; stroke-width: 1.4; }

/* Klinik hallar filter */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.no-js .filterbar { display: none; }
.filterbar__label { display: inline-flex; align-items: center; gap: .45rem; margin-right: .25rem; font-size: .9rem; font-weight: 500; color: var(--muted); }
.filterbar__label .icon { width: 1.05rem; height: 1.05rem; }
.cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-steps { display: grid; gap: .55rem; margin: 0; }
.case-steps div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
.case-steps dt { font-size: .8rem; color: var(--on-dark-muted); padding-top: .15rem; }
.case-steps dd { margin: 0; color: #DCE5EF; font-size: .95rem; }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.posts > li { min-width: 0; display: flex; }
.postcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.postcard__cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.postcard__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 131, 117, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 131, 117, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.postcard__cover .icon { position: relative; width: 58px; height: 58px; stroke-width: 1.3; color: #fff; }
.postcard__cover .ecg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 40px; }
.postcard__cover .ecg path { stroke: var(--coral); opacity: .9; }
.postcard--blue .postcard__cover { background: var(--blue); }
.postcard--red .postcard__cover { background: var(--red-600); }
.postcard--red .postcard__cover .ecg path { stroke: #fff; opacity: .55; }
.postcard--paper .postcard__cover { background: var(--paper-2); color: var(--ink); }
.postcard--paper .postcard__cover .icon { color: var(--red-600); }
.postcard--paper .postcard__cover::before {
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
}
.postcard--paper .postcard__cover .ecg path { stroke: var(--red); }
.postcard__body { display: flex; flex-direction: column; gap: .6rem; flex: 1 1 auto; padding: 1.25rem 1.3rem 1.4rem; }
.postcard__tag { font-size: .8rem; font-weight: 600; color: var(--red-600); }
.postcard__body h2, .postcard__body h3 { font-size: 1.15rem; }
.postcard__body p { font-size: .95rem; }
.postcard__more { margin-top: auto; padding-top: .3rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--blue); }
.postcard__more .icon { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
.postcard:hover .postcard__more .icon { transform: translateX(4px); }

/* Article pages */
.article { max-width: 760px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.1rem; }
.article__tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--red-600); }
.article__tag .icon { width: 1.05rem; height: 1.05rem; }

/* Tests table rows with icons */
.t__name { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); }
.t__name .badge { width: 2rem; height: 2rem; }
.t__name .badge .icon { width: 1.05rem; height: 1.05rem; }

/* Process journey */
.journey { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.journey__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.journey__side { display: grid; justify-items: center; align-content: start; gap: .5rem; }
.journey__num { font-size: .82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.journey__body { min-width: 0; }
.journey__body h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-bottom: .6rem; }
.journey__body > h2:first-child { display: flex; align-items: center; min-height: 3.4rem; }
.journey__body > * + * { margin-top: .75rem; }
.journey__item--alert { border-color: var(--red-100); background: var(--red-50); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.formcard { padding: clamp(1.4rem, 1rem + 2vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.formcard h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.formcard > p { margin: .6rem 0 1.5rem; color: var(--text); }
.infocol { display: grid; gap: 1rem; }
.hospital__name { display: flex; align-items: center; gap: .8rem; }
.hospital__name h2 { font-size: 1.2rem; }
.hours { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-2); }
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.infocol .cicons { margin-top: .25rem; }

/* Vizitkart */
.vcard {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.vcard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 130px;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.vcard__mark { position: relative; height: 34px; width: auto; margin: 0 auto 1.25rem; }
.vcard__photo { position: relative; width: 150px; margin: 0 auto 1.25rem; }
.vcard__name { position: relative; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem); }
.vcard__role { margin-top: .3rem; font-size: 1.05rem; font-weight: 500; color: var(--red-600); }
.vcard__focus { margin-top: .9rem; color: var(--text); }
.vcard__place { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.vcard__place .icon { color: var(--blue); width: 1.1rem; height: 1.1rem; }
.vcard .cicons { display: grid; grid-template-columns: repeat(4, 58px); justify-content: center; margin-top: 1.5rem; }

/* Search results page */
.results { display: grid; gap: .75rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.results a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.results a:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.results__sec { display: block; font-size: .8rem; font-weight: 500; color: var(--blue); }
.results__title { display: block; margin-top: .15rem; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.results__snip { display: block; margin-top: .3rem; font-size: .95rem; color: var(--muted); }
.searchform { display: flex; gap: .6rem; max-width: 640px; }
.searchform input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: .7rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  font-size: 1.05rem;
  color: var(--ink);
}
.searchform input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 81, 136, .13); }
.searchform button { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border: 0; border-radius: 14px; background: var(--ink); color: #fff; }
.searchform button .icon { width: 1.3rem; height: 1.3rem; }

/* Sitemap */
.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.smap > * { min-width: 0; }
.smap h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; margin-bottom: .8rem; }
.smap ul { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.smap a { text-decoration: none; }
.smap a:hover { text-decoration: underline; }

/* 404 */
.lost { max-width: 640px; margin-inline: auto; text-align: center; }
.lost__code { display: block; font-size: min(clamp(4.5rem, 3rem + 7vw, 8rem), 28vw); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.lost .ecg { display: block; width: 100%; height: 56px; margin: .5rem 0 1rem; }
.lost .searchform { margin: 1.75rem auto 0; }
.lost .chips { justify-content: center; margin-top: 1.5rem; }

/* Legal pages */
.legal .prose h2 { font-size: 1.35rem; }

/* ---------- 23. Motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes scan { to { stroke-dashoffset: -2; } }
@keyframes pop { from { opacity: 0; scale: .92; } }

html.m-on .reveal:not(.is-in) { opacity: 0; }
html.m-on .reveal.is-in { animation: rise .75s var(--ease) backwards; animation-delay: var(--d, 0ms); }

html.m-on .hero__ecg .ecg-wide,
html.m-on .hero__ecg .ecg-narrow,
html.m-on .hero__ecg .ecg-ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) .25s forwards;
}
html.m-on .hero__ecg .ecg-ring { animation-duration: 1.2s; animation-delay: 2.2s; }
html.m-on .scope__tag { animation: pop .6s var(--ease) backwards; }
html.m-on .scope__tag--now { animation-delay: 1.1s; }
html.m-on .scope__tag--first { animation-delay: 1.5s; }
html.m-on .pagehead__ecg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s ease .2s forwards; }
html.m-on .monitor__trace path { stroke-dasharray: 1 1; animation: scan 3.2s linear infinite; }
html.m-on .footer__pulse path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.m-on .footer__pulse.is-in path { animation: draw 2.2s ease forwards; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
html.uwa-pause::view-transition-group(*),
html.uwa-pause::view-transition-old(*),
html.uwa-pause::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 24. Responsive ---------- */
@media (max-width: 1239.98px) {
  .nav__link { padding-inline: .7rem; }
  .scope__tag--now { right: -2%; }
  .scope__tag--first { right: -4%; }
}

/* Tablet: drawer navigation, header CTA stays next to the menu button */
@media (max-width: 1159.98px) {
  .nav { display: none; }
  .iconbtn--menu { display: inline-grid; }
  .header__actions, .nav + .header__actions { margin-left: auto; }
  .monitors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
  .rhythm { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.8rem; }
  .rhythm::before { display: none; }
  .rhythm__item { border-top: 2px solid var(--red-100); }
  .rhythm__mark { top: -1.2rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023.98px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .hero__visual { order: -1; padding: 2.5rem 0 4.75rem; }
  .scope { width: min(78vw, 360px); }
  .hero__copy { padding-top: 0; }
  .hero__ecg path, .hero__ecg circle { stroke-width: .85; }
  .hero__ecg .ecg-wide { display: none; }
  .hero__ecg .ecg-narrow { display: inline; }
  .scope__tag--now { top: 4%; left: -14%; right: auto; }
  .scope__tag--first { bottom: -4%; right: -16%; }
  .focusbar { margin-top: 2rem; }
  .focusbar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts { margin-top: 1.25rem; }
  .who, .feature, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bring { grid-template-columns: minmax(0, 1fr); }
  .pagehead--service .pagehead__inner { padding-right: 0; }
  .svc-art { display: none; }
  .cases { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: the header CTA becomes a docked bottom bar */
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header__row { gap: .5rem; }
  .brand { gap: .6rem; }
  .brand__mark { height: 28px; }
  .brand__name { font-size: .95rem; }
  .brand__role { font-size: .74rem; }
  .cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 105;
    min-height: 56px;
    font-size: 1.05rem;
    box-shadow: 0 16px 34px -12px rgba(207, 46, 31, .75), 0 0 0 4px rgba(248, 246, 242, .9);
  }
  .monitors, .steps, .bento, .posts, .smap { grid-template-columns: minmax(0, 1fr); }
  .rhythm { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 2.6rem; row-gap: 1.4rem; }
  .rhythm__item { border-top: 0; padding-top: 0; }
  .rhythm::before { display: block; left: 1.05rem; right: auto; top: .6rem; bottom: .6rem; width: 2px; height: auto; background: linear-gradient(var(--red), var(--red-100)); }
  .rhythm__mark { top: 0; left: -2.6rem; }
  .practice, .checklist--cols, .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__copy { margin-left: 0; }
  .site-footer .cicons--footer .cicon { width: 48px; height: 48px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .svc-row { grid-template-columns: auto minmax(0, 1fr); padding: 1.1rem; }
  .svc-row__num { display: none; }
  .svc-row__go { display: none; }
  .journey__item { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .journey__side { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: .75rem; }
  .journey__body > h2:first-child { min-height: 0; }
  .t--stack thead { display: none; }
  .t--stack, .t--stack tbody, .t--stack tr, .t--stack td, .t--stack th { display: block; width: 100%; }
  .t--stack tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .t--stack tr:last-child { border-bottom: 0; }
  .t--stack td, .t--stack tbody th { padding: .35rem 1rem; border: 0; }
  .t--stack td[data-label]::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 600; color: var(--muted); }
  .scope__tag { font-size: .8rem; max-width: 205px; padding: .5rem .7rem .5rem .55rem; }
  .scope__tag .badge { width: 1.9rem; height: 1.9rem; }
  .scope__tag--now { display: none; }
  .scope__tag--first { right: -10%; bottom: -8%; }
  .case-steps div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .pagehead__ecg { width: 60%; opacity: .35; bottom: 8%; }
}

@media (max-width: 479.98px) {
  .focusbar__list { grid-template-columns: minmax(0, 1fr); }
  .readouts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scope__tag--first { right: -4%; }
  .iconbtn { width: 42px; height: 42px; }
}

@media (max-width: 359.98px) {
  .brand__role { display: none; }
  .brand__mark { height: 24px; }
}

/* ---------- 25. Print ---------- */
@media print {
  .site-header, .site-footer .cicons, .drawer, .finder, .cta, .footer__pulse, .toc, .videocard__play { display: none !important; }
  body { background: #fff; padding: 0; }
  .site-footer { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- 26. Page components ---------- */
.muted { color: var(--muted); }
.card__title { font-size: 1.18rem; }
.card .linkarrow { display: inline-block; }

/* About: profile */
.profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.profile > * { min-width: 0; }
.profile__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.profile__photo { width: min(100%, 260px); margin-inline: auto; }
.profile__main h2 { font-size: var(--fs-h2); }
.profile__main .updated { margin-top: 1.25rem; }
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: .4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.facts > div { padding: .75rem 0; border-bottom: 1px dashed var(--line-2); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 500; color: var(--muted); }
.facts dt .icon { width: 1rem; height: 1rem; color: var(--red-600); }
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--ink); line-height: 1.35; }

.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.areas > li { min-width: 0; display: flex; }
.areas a {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.areas a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.areas a:hover .badge { background: var(--red-600); color: #fff; box-shadow: none; }
.areas .badge { transition: background-color .25s, color .25s; }

.congress { display: grid; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.congress li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-2); }
.congress li:last-child { border-bottom: 0; }
.congress__when { font-size: .88rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.congress__what { color: var(--ink); }

/* Definition lists written as <ul class="defs"> */
.defs { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.prose .defs > li { max-width: none; padding-left: 1rem; }
.prose .defs > li::before { display: none; }
.defs > li { padding: .85rem 1rem; border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; background: #fff; }
.defs strong { display: block; color: var(--ink); }
.defs span { display: block; margin-top: .15rem; color: var(--text); }
.defs--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .75rem; }
.defs--cards > li { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 14px; }

.t-note { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.t--tests th[scope="row"] { min-width: 13rem; }

.figure--inline { margin-top: 1.5rem; }
.figure--inline img { max-height: 420px; object-fit: cover; }
.figure--sm { max-width: 440px; }
.figure--portrait { max-width: 260px; margin-top: 1.5rem; }
.figure--portrait img { border-radius: var(--r-xl); }

.practice--one { grid-template-columns: minmax(0, 1fr); }

/* Monitor variants */
.monitor--flat { box-shadow: var(--shadow); }
.monitor .monitor__title { color: #fff; font-size: 1.14rem; }
.readouts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.casestack { display: grid; gap: 1rem; }

.doclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.doclist li {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  line-height: 1.4;
}
.doclist .icon { width: 1.3rem; height: 1.3rem; color: var(--red-600); }

/* Conditions */
.condition {
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
}
.condition > h3 { margin: 1.25rem 0 .75rem; }
.condition .answer { box-shadow: none; background: var(--paper); }
.condition .prose h3 { margin-top: 1.5rem; }
.note--list { margin-top: 1rem; }
.note--list h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.note--list .checklist .icon { color: var(--red-600); }
.linkrow { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Science */
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.papers > * { min-width: 0; }
.paper {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.paper__year { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.paper__title { margin-top: 1rem; font-size: 1.2rem; line-height: 1.35; }
.paper__az { margin-top: .5rem; color: var(--muted); }
.paper__meta { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.paper__meta > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; }
.paper__meta dt { font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: .1rem; }
.paper__meta dd { margin: 0; font-size: .95rem; color: var(--text); }
.topics { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.topics li { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); line-height: 1.4; }
.topics .icon { width: 1.4rem; height: 1.4rem; color: var(--red-600); }
.edu-link { margin-top: 1.25rem; }

/* Articles */
.pagehead--article .pagehead__title { max-width: none; }
.article { margin-top: 0; }
.myths { display: grid; gap: .75rem; }
.myth { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.myth p { max-width: none; }
.myth__claim { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; font-weight: 600; color: var(--ink); }
.myth__claim .icon { width: 1.3rem; height: 1.3rem; color: var(--red-600); margin-top: .1em; }
.casepair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.casepair__item { padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--ink); color: #C9D6E4; }
.casepair__item p { max-width: none; }
.casepair__age { margin-bottom: .4rem; font-size: 1.3rem; font-weight: 600; color: #fff; }
.container--narrow > .note, .container--narrow > .related { margin-top: 2rem; }

/* Contact */
.form__status { font-size: .92rem; color: var(--blue); font-weight: 500; min-height: 1.4em; }
.field--date input { max-width: 260px; }
.formcard .note { margin-top: 1.5rem; }
.hospital__name { margin-bottom: .75rem; }
.hospital__name p { margin: .1rem 0 0; }

/* Search page */
.results__count { margin-top: 1.25rem; color: var(--muted); }
.results__empty { margin-top: 1.5rem; }

/* Vizitkart */
.section--card { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section--card .crumbs { margin-bottom: 1.5rem; }

@media (max-width: 1023.98px) {
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile__aside { position: static; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; }
  .papers { grid-template-columns: minmax(0, 1fr); }
  .readouts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .profile__aside { grid-template-columns: minmax(0, 1fr); }
  .areas, .doclist, .casepair { grid-template-columns: minmax(0, 1fr); }
  .congress li, .paper__meta > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .t--tests th[scope="row"] { min-width: 0; }
}

.nowrap { white-space: nowrap; }
