/* ==========================================================================
   «Реанимация: ABCD» — лендинг. ИГРОВОЙ стиль (редакция 2, 06.11.2026).
   Тёмный HUD-постер: почти чёрный фон, неон-циан #38BDF8, свечения, скан-линии,
   тонкие сетки, моно-метки; Inter 700–900 + JetBrains Mono. Без CDN и картинок.
   Каркас — канон РКС (ТЗ-03/ТЗ-05): контейнер 1200, поля 24/16, шапка 64/56,
   CTA 44/8, подвал v8 (правила в конце файла — без изменений).
   Медиазапросы: 1440 / 1024 / 768 / 414 / 375 / 360.
   ========================================================================== */

/* ---------- Inter self-host (эталон v8) ---------- */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- JetBrains Mono self-host (эталон Акселя) ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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;
}

/* ---------- Токены (игровая палитра) ---------- */
:root {
  --bg: #05080F;            /* почти чёрный */
  --bg-soft: #070C17;       /* чередующийся фон секций */
  --panel: #0A1120;         /* карточки */
  --panel-2: #0E1830;       /* вложенные плашки */
  --line: rgba(56, 189, 248, 0.14);
  --line-2: rgba(56, 189, 248, 0.38);

  --text: #E9F3FF;
  --muted: #8CA3BF;
  --accent: #38BDF8;
  --accent-bright: #7DD3FC;
  --accent-ink: #04121D;
  --glow: rgba(56, 189, 248, 0.45);
  --glow-soft: rgba(56, 189, 248, 0.16);

  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;

  --focus: rgba(56, 189, 248, 0.65);

  --radius: 2px;            /* HUD: острые углы */
  --radius-btn: 2px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --shadow-soft: 0 4px 24px rgba(2, 6, 14, 0.5);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 18px 60px -18px var(--glow);

  --font: 'Inter var', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  hyphens: none;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 2000;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--accent-bright);
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- HUD-рамка (уголки) ---------- */
.hud-frame { position: relative; }
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--accent);
  pointer-events: none;
  z-index: 2;
}
.hud-frame::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud-frame::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Шапка: sticky 64/56 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 15, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}
@media (min-width: 768px) {
  .header-inner { height: 64px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
}

.site-nav { display: flex; align-items: center; gap: 22px; }

.nav-link {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.16s ease, text-shadow 0.16s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent-bright); text-decoration: none; text-shadow: 0 0 12px var(--glow); }
.nav-link[aria-current="page"] { color: var(--accent-bright); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  background: rgba(56, 189, 248, 0.10);
  color: var(--accent-bright);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18), inset 0 0 18px rgba(56, 189, 248, 0.08);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
  box-shadow: 0 0 8px var(--glow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Меню до 1024 — панель под шапкой (6 пунктов в строку не влезают) */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(2, 6, 14, 0.75);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav .nav-link { padding: 14px 4px; font-size: 13px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 14px; width: 100%; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .site-nav { top: 64px; }
}

/* ---------- Кнопки: HUD, 48 px ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font: 700 13px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"],
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(180deg, #62CDFB 0%, #38BDF8 100%);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55), 0 0 28px rgba(56, 189, 248, 0.35);
}
.btn--primary:hover {
  filter: brightness(1.07);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.8), 0 0 40px rgba(56, 189, 248, 0.55);
}

.btn--ghost {
  background: rgba(56, 189, 248, 0.06);
  color: var(--accent-bright);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  text-decoration: none;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.22), inset 0 0 18px rgba(56, 189, 248, 0.10);
}

.btn--block { width: 100%; }

/* ---------- Hero: игровой постер, без видео ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(56, 189, 248, 0.20), transparent 62%),
    radial-gradient(760px 420px at -8% 112%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, #060B16 0%, var(--bg) 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(233, 243, 255, 0.022) 0 1px, transparent 1px 4px);
  background-size: 56px 56px, 56px 56px, 100% 4px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
}

.hero-bg-word {
  position: absolute;
  right: -1.5vw;
  bottom: -4vw;
  z-index: 0;
  font-size: clamp(140px, 24vw, 420px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.12);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { min-height: 620px; }
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}
@media (min-width: 1440px) {
  .hero { padding: 72px 0 80px; }
  .hero-content { max-width: 660px; }
}

.hero-content { min-width: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2.05rem, 5vw, 4.3rem);
  line-height: 1.0;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 15em;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(56, 189, 248, 0.22);
}

/* Позиционирование (подзаголовок hero): «Оказание медицинской помощи
   квалифицированными специалистами в нестандартных ситуациях». */
.hero-positioning {
  margin-top: 18px;
  font: 500 clamp(0.95rem, 1.3vw, 1.08rem) / 1.45 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  max-width: 30em;
  text-wrap: pretty;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.05);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.hero-meta__chip::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44em;
}

/* HUD-панель «монитор» — CSS-визуал, без картинок */
.hero-panel {
  position: relative;
  min-width: 0;
  padding: 20px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(56, 189, 248, 0.10), transparent 62%),
    linear-gradient(180deg, #081020 0%, #050B16 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(2, 6, 14, 0.6), 0 30px 80px -30px rgba(56, 189, 248, 0.35),
    inset 0 0 70px rgba(56, 189, 248, 0.035);
}

.hero-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-panel__status { display: inline-flex; align-items: center; gap: 8px; }
.hero-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16), 0 0 12px rgba(52, 211, 153, 0.7);
  animation: hud-pulse 2.6s ease-in-out infinite;
}

.vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.vital {
  min-width: 0;
  padding: 10px 12px;
  background: rgba(14, 24, 48, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.vital__label {
  display: block;
  margin-bottom: 4px;
  font: 400 9.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.vital__value {
  font: 500 19px/1.1 var(--font-mono);
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}
.vital__unit { font-size: 10px; color: var(--muted); margin-left: 2px; text-shadow: none; }

.ecg { width: 100%; height: auto; margin-top: 2px; }
.ecg__base {
  fill: none;
  stroke: rgba(56, 189, 248, 0.30);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ecg__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60 1400;
  animation: ecg-sweep 3.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
}
.ecg__grid { stroke: rgba(56, 189, 248, 0.10); stroke-width: 1; }

.hero-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.hero-panel__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
@media (min-width: 768px) { .section { padding: 76px 0; } }
@media (min-width: 1024px) { .section { padding: 92px 0; } }

.section--soft {
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 820px; margin-bottom: 34px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 44px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 0 26px rgba(56, 189, 248, 0.14);
}

.section-lead {
  margin-top: 14px;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48em;
  text-wrap: pretty;
}

/* ---------- Проблема: HUD-карточки с крупными номерами ---------- */
.problem-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 768px) {
  .problem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

.problem-item {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.95), rgba(7, 12, 23, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.problem-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  opacity: 0.5;
}
.problem-num {
  display: block;
  margin-bottom: 14px;
  font: 700 clamp(2rem, 4vw, 3rem)/1 var(--font-mono);
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.4);
  letter-spacing: 0.02em;
}
.problem-title {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
.problem-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.95), rgba(7, 12, 23, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
  opacity: 0.35;
  transition: opacity 0.18s ease;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.14), 0 0 18px rgba(56, 189, 248, 0.10);
}

.card-title {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Как устроено: «миссия» + механики ---------- */
.how-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
  }
}

.scenario {
  min-width: 0;
  padding: 26px;
  background:
    radial-gradient(460px 240px at 100% 0%, rgba(56, 189, 248, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.97), rgba(7, 12, 23, 0.97));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(2, 6, 14, 0.5), 0 24px 70px -30px rgba(56, 189, 248, 0.30);
}
.scenario__label {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.scenario__title {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.scenario__text {
  margin-top: 12px;
  font-size: 0.99rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.scenario__steps {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-left: 6px;
}
.scenario__steps::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.scenario__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.scenario__step b {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent-bright);
  font: 500 11px/1 var(--font-mono);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.scenario__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.mechanics { display: grid; gap: 16px; }

/* ---------- Кому подходит ---------- */
.audience-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
@media (min-width: 640px) {
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

.audience-item {
  position: relative;
  min-width: 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.95), rgba(7, 12, 23, 0.95));
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.audience-item:hover {
  border-color: var(--line-2);
  border-left-color: var(--accent);
  box-shadow: 0 0 30px -12px var(--glow);
}
.audience-role {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.audience-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Команда ---------- */
.team-card {
  max-width: 860px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.95), rgba(7, 12, 23, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-text {
  font-size: 1.01rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.team-note {
  margin-top: 14px;
  font: 400 11.5px/1.5 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Доступ ---------- */
.access-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .access-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
}

.access-text {
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.access-text + .access-text { margin-top: 14px; }

.access-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(56, 189, 248, 0.16), transparent 62%),
    linear-gradient(180deg, #081120, #060C18);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(2, 6, 14, 0.6), 0 24px 70px -28px rgba(56, 189, 248, 0.35);
}
.access-card__label {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.access-card__title {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.access-card__text {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

.contact-text {
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40em;
  text-wrap: pretty;
}

.contact-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.95), rgba(7, 12, 23, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list { display: grid; gap: 14px; }
.contact-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font: 500 1.02rem/1.3 var(--font-mono);
  color: var(--text);
  transition: color 0.16s ease, text-shadow 0.16s ease;
}
.contact-link:hover { color: var(--accent-bright); text-decoration: none; text-shadow: 0 0 14px var(--glow); }
.contact-link__label {
  flex: none;
  min-width: 86px;
  font: 400 10px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-actions { margin-top: 20px; }

/* ---------- Анимации HUD ---------- */
@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes ecg-sweep {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1460; }
}

/* ---------- Медиа: 1440 / 1024 / 768 / 414 / 375 / 360 ---------- */
@media (max-width: 1023px) {
  .hero-panel { max-width: 640px; }
  .hero { min-height: 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .hero { padding: 40px 0 52px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .team-card, .access-card, .contact-card, .scenario { padding: 20px; }
}

@media (max-width: 479px) {
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-lead { font-size: 1rem; }
  .hero-bg-word { display: none; }
  .hero-kicker { font-size: 10px; letter-spacing: 0.12em; }
}

@media (max-width: 375px) {
  body { font-size: 15.5px; }
}

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

/* ---------- Подвал RKS — канон v8 (03.11.2026) ---------- */
/* Вставляется Кодом последним в <body>; разметка — footer.html из
   `_эталон-подвала-RKSWeb`; правила ниже скопированы из канона без изменений. */
.site-footer{background:#123F7A; color:#FFFFFF; font-size:14px; line-height:1.55}
.footer-inner{max-width:1200px; margin:0 auto; padding:40px 40px}
.footer-cols{display:grid; grid-template-columns:5fr 3fr 4fr; gap:40px; align-items:baseline}
.footer-col-contacts{justify-self:center}
.footer-col{min-width:0}
.footer-brand{display:inline-block; font-size:21px; font-weight:700; letter-spacing:.3px; color:#FFFFFF; text-decoration:none}
.footer-brand:hover{color:#C9D8EC; text-decoration:none}
.footer-brand span{color:#7FB2E8}
.footer-brand-link{margin:0; font-size:13px; line-height:22px}
.footer-brand-link a{color:#C9D8EC}
.footer-requisites{font-style:normal; margin:8px 0 0; font-size:12px; line-height:22px; color:#C9D8EC}
.footer-requisites span{display:block}
.footer-h{font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; color:#FFFFFF; margin:0 0 8px}
.footer-list{list-style:none; margin:0; padding:0; display:grid; gap:0}
.footer-list li{line-height:22px}
.footer-list a{color:#C9D8EC}
.footer-project{margin:0; line-height:22px; color:#C9D8EC}
.footer-legal{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:6px; padding-top:8px; font-size:13px; color:#C9D8EC}
.footer-legal a{color:#FFFFFF}
.footer-legal p{margin:0}
.footer-top{display:inline-flex; align-items:center; min-height:44px; padding:0 4px; white-space:nowrap; color:#FFFFFF}
.site-footer a:focus-visible{outline:3px solid #9FB8D6; outline-offset:2px; border-radius:4px}

/* Ссылки подвала: без постоянного подчёркивания; активные — цвет + 2px линия */
.footer-list a,
.footer-legal a,
.footer-top,
.footer-brand-link a { text-decoration: none; }
.footer-list a:hover,
.footer-list a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-top:hover,
.footer-top:focus-visible,
.footer-brand-link a:hover,
.footer-brand-link a:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: #7FB2E8;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-list a:active,
.footer-legal a:active,
.footer-top:active { color: #7FB2E8; }

/* Подвал на планшете/мобильном (≤767) — по образцу «Мойдодыра» */
@media (max-width:767px){
  .footer-inner{padding:16px 20px}
  .footer-cols{grid-template-columns:1fr; gap:24px}
  .footer-col-contacts{justify-self:stretch}
  .footer-legal{flex-direction:column; align-items:flex-start; gap:4px}
}

/* ===== Канон подвала v8 (RKS.Web, ТЗ-05): блок footer.css целиком, без изменений ===== */
/* Подвал RKS — канон v8 (03.11.2026): реквизиты — адрес двумя строками + ИНН третьей, единый ритм строк 22 px.
   Вырезано из site\styles\main.css. Вставлять в main.css проекта целиком, порядок правил сохранять. */
/* Эталон: Z:\DSH_RKS\Moydodyr\landing\styles\main.css, правила .footer-*.
   Замер эталона 1440: inner max-width 1200 + padding 40; колонки 5/3/4 gap 40
   → 433 / 260 / 347; wordmark 21 px / 700; фон #123F7A; «Наверх» 44 px.
   Отличие rks.plus: точка wordmark — акцент бренда #7FB2E8 (у образца #2FB3A3),
   правила .footer-status нет — статусной строки у rks.plus не бывает. */
.site-footer{background:#123F7A; color:#FFFFFF; font-size:14px; line-height:1.55}
.footer-inner{max-width:1200px; margin:0 auto; padding:40px 40px}
.footer-cols{display:grid; grid-template-columns:5fr 3fr 4fr; gap:40px; align-items:baseline}
.footer-col-contacts{justify-self:center}
.footer-col{min-width:0}
.footer-brand{display:inline-block; font-size:21px; font-weight:700; letter-spacing:.3px; color:#FFFFFF; text-decoration:none}
.footer-brand:hover{color:#C9D8EC; text-decoration:none}
.footer-brand span{color:#7FB2E8}
.footer-brand-link{margin:0; font-size:13px; line-height:22px}
.footer-brand-link a{color:#C9D8EC}
.footer-requisites{font-style:normal; margin:8px 0 0; font-size:12px; line-height:22px; color:#C9D8EC}
.footer-requisites span{display:block}
.footer-h{font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; color:#FFFFFF; margin:0 0 8px}
.footer-list{list-style:none; margin:0; padding:0; display:grid; gap:0}
.footer-list li{line-height:22px}
.footer-list a{color:#C9D8EC}
.footer-project{margin:0; line-height:22px; color:#C9D8EC}
.footer-legal{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:6px; padding-top:8px; font-size:13px; color:#C9D8EC}
.footer-legal a{color:#FFFFFF}
.footer-legal p{margin:0}
.footer-top{display:inline-flex; align-items:center; min-height:44px; padding:0 4px; white-space:nowrap; color:#FFFFFF}
.site-footer a:focus-visible{outline:3px solid #9FB8D6; outline-offset:2px; border-radius:4px}

/* Ссылки подвала: без постоянного подчёркивания; активные — цвет + 2px линия */
.footer-list a,
.footer-legal a,
.footer-top,
.footer-brand-link a { text-decoration: none; }
.footer-list a:hover,
.footer-list a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-top:hover,
.footer-top:focus-visible,
.footer-brand-link a:hover,
.footer-brand-link a:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: #7FB2E8;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-list a:active,
.footer-legal a:active,
.footer-top:active { color: #7FB2E8; }

/* Подвал на планшете/мобильном (≤767) — по образцу «Мойдодыра» */
@media (max-width:767px){
  .footer-inner{padding:16px 20px}
  .footer-cols{grid-template-columns:1fr; gap:24px}
.footer-col-contacts{justify-self:stretch}
  .footer-legal{flex-direction:column; align-items:flex-start; gap:4px}
}
/* ===== Типографика (Доктрина v2.5): мера строки <=75 знаков, вдовы/сироты = 0 ===== */
.section-lead, .team-text { max-width: 62ch; }
main p, main li, footer p, footer li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.scenario__step span { text-wrap: pretty; }
.footer-legal p { text-wrap: balance; }
.scenario__step, .scenario__step span { text-wrap: balance; }
/* h1 в одну строку на десктопе (мера/вдовы); абзацы — мера <=75 знаков */
.hero-title { font-size: clamp(2.05rem, 4.3vw, 4rem); }
.scenario__text, .access-text { max-width: 62ch; }

/* ===== Страницы prices/privacy: читаемая вёрстка на базовых токенах ===== */
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; }
.legal h2 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 10px 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal .legal-meta { font-size: 0.9rem; margin-bottom: 24px; }
.legal .legal-note { font-size: 0.9rem; margin-top: 24px; }
.prices-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.prices-grid .card { padding: 22px; }
.prices-grid .card-title { margin-bottom: 10px; }
@media (max-width: 767px) { .prices-grid { grid-template-columns: 1fr; } }

/* Юридические страницы: мера строки <=75 знаков */
.legal { max-width: 600px; }
.legal p, .legal li { max-width: 60ch; }
@media (max-width: 767px) { .legal h1 { font-size: clamp(1.3rem, 5.6vw, 2.4rem); } }
.legal li { text-wrap: balance; }

/* ===== Секция «Сценарии»: HUD-карточки, 3 / 2 / 1 колонки ===== */
.scenarios-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
@media (min-width: 640px) { .scenarios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .scenarios-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scenario-card { display: flex; flex-direction: column; gap: 10px; }
.scenario-card .card-title { margin-bottom: 0; }
.scenario-card .card-text { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright); background: rgba(56, 189, 248, 0.08); }
.chip--wip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Медэкспертиза: сноска источников и компактная панель hero */
.scenarios-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); max-width: 60ch; }
.hero-panel__foot { flex-wrap: wrap; gap: 4px 14px; }
