/* ==========================================================================
   ONCO.SIGNAL — дизайн-система
   Шрифты: Montserrat (заголовки, логотип, кикеры) + Manrope (текст)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
  /* поверхности */
  --bg: #f9eef5;
  --bg-hero: #f5dfec;
  --bg-soft: #fbf4f8;
  --surface: #fffdfe;
  --surface-pink: #f3dfea;
  --line: #efdde7;
  --line-strong: #e4cbd8;

  /* текст */
  --ink: #2b1622;
  --ink-2: #4e3a45;
  --muted: #8c7682;
  --muted-2: #a8939f;

  /* бренд */
  --accent: #97456d;
  --accent-600: #82385d;
  --accent-300: #c98aa9;
  --accent-100: #f2dce8;
  --kicker: #8e5c77;
  --plum: #341e2b;
  --plum-2: #4a2539;
  --plum-grad: linear-gradient(135deg, #3c1c2e 0%, #5a2843 55%, #8a3c64 100%);

  /* статусы */
  --soon-bg: #fbeccf; --soon-ink: #6e4c17; --soon-dot: #c98a1c;
  --beta-bg: #ebe4fb; --beta-ink: #5a4598;
  --ok-bg: #e2f2e6; --ok-ink: #2d6b41;
  --warn-bg: #fbf2e4; --warn-line: #f1dcbc;
  --danger: #b4233f; --danger-bg: #fde8ec;

  /* геометрия */
  --r-xs: 10px; --r-sm: 14px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(80, 30, 55, .04), 0 2px 8px rgba(80, 30, 55, .04);
  --shadow-md: 0 6px 24px rgba(110, 40, 75, .08);
  --shadow-lg: 0 18px 50px rgba(110, 40, 75, .14);
  --shadow-btn: 0 10px 24px rgba(151, 69, 109, .32);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;

  --ff-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ff-text: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); color: var(--ink); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-100); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.no-scroll { overflow: hidden; }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section--soft { background: var(--bg-soft); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding-block: 80px; }
}
@media (min-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: 96px; }
}
.section.section--tight { padding-block: 32px; }
@media (min-width: 720px) { .section.section--tight { padding-block: 40px; } }

/* ---------- типографика ---------- */
.kicker {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: 14px;
}
.display {
  font-weight: 800;
  font-size: clamp(42px, 9vw, 84px);
  line-height: 1;
  letter-spacing: -.02em;
}
.display .dot { color: var(--accent); }
.h1 { font-weight: 800; font-size: clamp(32px, 6vw, 56px); line-height: 1.08; }
.h2 { font-weight: 700; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.14; }
.h3 { font-weight: 700; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; }
.h4 { font-weight: 700; font-size: 17px; line-height: 1.3; }
.h1, .h2, .h3 { overflow-wrap: break-word; }
@media (max-width: 480px) { .h1, .h2 { hyphens: auto; -webkit-hyphens: auto; } .h1 { font-size: clamp(28px, 8.4vw, 34px); } }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.tiny { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h3 { margin: 28px 0 10px; font-size: 20px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .lead { margin-top: 14px; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent-600); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--ff-text); font-weight: 600; font-size: 17px; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 14px 30px rgba(151, 69, 109, .38); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--accent-300); }
.btn--dark { background: var(--plum); color: #fff; }
.btn--dark:hover { background: var(--plum-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) {
  .btn { min-height: 50px; padding: 0 16px; font-size: 15.5px; gap: 8px; }
  .btn-row { gap: 10px; }
  .hint-pill { font-size: 12.5px; padding: 9px 14px; white-space: nowrap; }
}

.icon-btn {
  width: 48px; height: 48px; flex: none;
  display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--accent-300); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- метки ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.3;
  background: var(--accent-100); color: var(--accent-600);
}
.tag--soon { background: var(--soon-bg); color: var(--soon-ink); }
.tag--soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--soon-dot); }
.tag--beta, .tag--prep { background: var(--beta-bg); color: var(--beta-ink); }
.tag--ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag--dark { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- шапка ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), #c66a95);
  transform-origin: 0 50%; transform: scaleX(0);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 243, 248, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.logo svg { width: 28px; height: 28px; color: #c66a95; flex: none; }
.logo .dot { color: var(--accent); }
.site-header .search-btn { margin-left: 4px; }
.site-header .burger { margin-left: auto; }
.main-nav { display: none; }
@media (max-width: 380px) { .logo { font-size: 19px; } .logo svg { width: 24px; height: 24px; } }

@media (min-width: 1000px) {
  .site-header .burger { display: none; }
  .main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .site-header .search-btn { order: 3; margin-left: 8px; }
  .nav-top, .nav-group__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 12px; border: 0; background: none;
    font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
    transition: background .2s, color .2s;
  }
  .nav-top:hover, .nav-group__btn:hover { color: var(--accent); }
  .nav-top.is-active, .nav-group.is-current > .nav-group__btn { background: var(--accent-100); color: var(--accent-600); font-weight: 600; }
  .nav-group { position: relative; }
  .nav-group__btn svg { width: 16px; height: 16px; transition: transform .2s; }
  .nav-group.is-open > .nav-group__btn svg { transform: rotate(180deg); }
  .nav-group__menu {
    position: absolute; left: 50%; top: calc(100% + 10px); width: 360px;
    transform: translate(-50%, -6px); opacity: 0; visibility: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 8px; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav-group__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-group.is-open .nav-group__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
  .nav-item:hover, .nav-item:focus-visible { background: var(--bg-soft); }
  .nav-item.is-active { background: var(--accent-100); }
  .nav-item b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
  .nav-item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
  .nav-item .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
  .nav-item .icon-tile svg { width: 20px; height: 20px; }
  .nav-cta { margin-left: 6px; min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; box-shadow: none; }
  .nav-cta.is-active { background: var(--plum); }
}

/* полноэкранное меню (мобильное) */
.menu-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 45;
  background: var(--bg-soft);
  overflow-y: auto; padding: 8px 0 48px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.menu-panel a {
  display: block; padding: 15px 2px; font-size: 17.5px; font-weight: 500;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.menu-panel a.is-active { color: var(--accent); font-weight: 700; }
.menu-panel__group { margin-top: 22px; }
.menu-panel__group h5 { margin: 0 0 2px; font-family: var(--ff-display); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--kicker); }
.menu-panel .btn { margin-top: 22px; width: 100%; border-bottom: 0; color: #fff; font-size: 16px; padding: 0 20px; }
.menu-panel__sos { margin-top: 28px; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.menu-panel__sos b { color: var(--danger); }

/* поиск */
.search-panel {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(43, 22, 34, .38); backdrop-filter: blur(4px);
  padding: 12px;
}
.search-panel.is-open { display: block; }
.search-panel__box {
  max-width: 680px; margin: 8vh auto 0; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-panel__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-panel__field svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-panel__field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); background: none; min-width: 0; }
.search-panel__results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-panel__results a { display: block; padding: 12px 14px; border-radius: 12px; }
.search-panel__results a:hover, .search-panel__results a.is-focus { background: var(--bg-soft); }
.search-panel__results b { display: block; font-size: 16px; }
.search-panel__results span { font-size: 13.5px; color: var(--muted); }
.search-panel__empty { padding: 20px 14px; color: var(--muted); }

/* ---------- ЭКГ-линия ---------- */
.ecg { position: relative; height: 70px; overflow: hidden; color: var(--line-strong); }
.ecg svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ecg .ecg__pulse { stroke: var(--accent); stroke-dasharray: 90 1400; animation: ecg-run 5.5s linear infinite; }
@keyframes ecg-run { from { stroke-dashoffset: 1490; } to { stroke-dashoffset: 0; } }

/* ---------- герой главной ---------- */
.hero { background: linear-gradient(180deg, var(--bg-hero) 0%, #f7e6f0 75%, var(--bg) 100%); padding-top: 48px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__lead { margin-top: 24px; max-width: 560px; }
.hero .btn-row { margin-top: 32px; }
.hero__art { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 0; align-items: center; position: relative; }
.hero__art .figure img { -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(120% 100% at 50% 50%, #000 62%, transparent 100%); }
.hero__art .divider { position: absolute; left: 36%; top: 6%; bottom: 6%; width: 1px; background: rgba(151, 69, 109, .12); }
.hero__hint { display: flex; justify-content: center; margin-top: 18px; }
@media (min-width: 980px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1fr 1.15fr; gap: 40px; }
  .hero .display { font-size: clamp(56px, 6.4vw, 88px); }
}

.hint-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14.5px; font-weight: 600; color: var(--accent-600);
}
.hint-pill svg { width: 18px; height: 18px; }

/* ---------- интерактивные схемы ---------- */
.figure { position: relative; border-radius: var(--r-md); overflow: hidden; background: #f6e3ee; }
.figure img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.figure .hint-pill { position: absolute; left: 12px; top: 12px; z-index: 3; font-size: 13px; padding: 7px 14px; }
.hotspot {
  position: absolute; z-index: 2;
  width: clamp(30px, 11%, 46px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid #fff; padding: 0;
  background: radial-gradient(circle, #fff 0 17%, var(--accent) 19% 100%);
  box-shadow: 0 4px 12px rgba(80, 20, 50, .28);
  transition: transform .2s var(--ease), background .2s;
}
.hotspot::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(151, 69, 109, .35);
  animation: hotspot-pulse 2.2s ease-out infinite;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.08); }
.hotspot.is-active { background: radial-gradient(circle, #fff 0 17%, var(--plum) 19% 100%); }
.hotspot.is-active::after { inset: -18px; border-color: rgba(52, 30, 43, .45); }
@keyframes hotspot-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot::after, .ecg .ecg__pulse { animation: none; } }

.hotspot-info {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--surface-pink); color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
}
.hotspot-info b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.hotspot-info a { color: var(--accent); font-weight: 600; }
.figure-caption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- карточки ---------- */
.card {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: 28px; }
.card--dashed { border: 1.5px dashed var(--line-strong); background: rgba(255,255,255,.6); box-shadow: none; }
.card--pink { background: var(--surface-pink); border-color: transparent; box-shadow: none; }
.card--accent { border-left: 4px solid var(--accent); }
a.card, .card--link { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card p { color: var(--ink-2); }

.icon-tile {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center;
  border-radius: 18px; background: var(--accent-100); color: var(--accent);
}
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 13px; }
.icon-tile--sm svg { width: 22px; height: 22px; }

/* карточка раздела (главная) */
.section-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 24px 22px; min-height: 100%; }
.section-card h3 { font-size: 19px; margin-bottom: 8px; }
.section-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.section-card .tag { margin-top: 12px; }
.section-card__arrow { grid-column: 2; justify-self: end; align-self: end; margin-top: 10px; color: var(--ink); }
.section-card__arrow svg { width: 24px; height: 24px; transition: transform .25s var(--ease); }
@media (min-width: 1100px) {
  .grid-4 > .section-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 18px; padding: 26px 24px 22px; }
  .grid-4 > .section-card .section-card__arrow { grid-column: 1; }
}
.section-card:hover .section-card__arrow svg { transform: translateX(4px); }

/* числовая карточка */
.stat { padding: 28px; }
.stat__num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(40px, 6vw, 52px); line-height: 1; color: var(--accent-600); }
.stat__unit { font-family: var(--ff-display); font-weight: 700; font-size: 19px; color: var(--accent); margin-top: 6px; }
.stat__text { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.stat__src { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* тёмный CTA */
.cta-dark {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: 36px 26px; color: #fff;
  background: var(--plum-grad);
}
.cta-dark .kicker { color: rgba(255,255,255,.72); }
.cta-dark h2, .cta-dark h3 { color: #fff; }
.cta-dark p { color: rgba(255,255,255,.82); }
.cta-dark .wave { position: absolute; right: -40px; bottom: -10px; width: 70%; max-width: 520px; height: 75%; z-index: -1; color: rgba(255,255,255,.22); }
@media (min-width: 900px) { .cta-dark { padding: 56px; } }

/* горизонтальная лента чипов (бегущая строка) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; padding-block: 6px; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } }
.signal-chip {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 16.5px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
}
.signal-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- элементы разделов ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg) 100%); padding: 28px 0 8px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -220px; top: -40px; width: 760px; height: 424px;
  background: url(../img/decor/dna.webp) no-repeat center / contain; opacity: .32;
}
@media (max-width: 719px) { .page-hero::before { width: 460px; height: 257px; right: -230px; top: -20px; opacity: .22; } }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero .h1 { max-width: 900px; }
.page-hero .lead { margin-top: 18px; max-width: 760px; }
.page-hero .ecg { margin-top: 18px; }

/* выбор (сегменты) */
.seg-label { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg button {
  min-height: 50px; padding: 0 22px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 16px;
  transition: background .2s, color .2s, border-color .2s;
}
.seg button:hover { border-color: var(--accent-300); }
.seg button.is-active, .seg button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-btn); }

/* таблетки-переключатели (тёмная активная) */
.pills { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.pill__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-100); color: var(--accent); }
.pill__ico svg { width: 18px; height: 18px; }
.pill.is-active, .pill[aria-selected="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.pill.is-active .pill__ico, .pill[aria-selected="true"] .pill__ico { background: rgba(255,255,255,.12); color: #fff; }

/* вкладки (подчёркнутые) */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: 14px 16px; border: 0; background: none; font-size: 16px; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--accent); }
.tabs button.is-active, .tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { padding-top: 24px; }
.tab-panel[hidden] { display: none; }
@media (min-width: 720px) { .tabs, .pills { margin-inline: 0; padding-inline: 0; } }

/* карточка с акцентной полосой и нумерованная */
.info-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: 18px 22px; }
.info-card h4 { font-size: 17px; margin-bottom: 6px; }
.info-card p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.num-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; }
.num-card__n { font-family: var(--ff-display); font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 6px; }
.num-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* заметка / предупреждение */
.note { padding: 18px 22px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink-2); font-size: 15.5px; }
.note b { color: var(--ink); }
.note--pink { background: var(--surface-pink); border-color: transparent; }
.note--danger { background: var(--danger-bg); border-color: #f6c4ce; }
.note--danger b { color: var(--danger); }

/* миф или правда */
.myth { border-radius: var(--r-lg); padding: 24px; background: #fff; border: 1px solid var(--line); }
.myth__q { font-style: italic; font-size: 18px; color: var(--ink); margin: 10px 0 14px; }
.myth__a b { color: var(--accent-600); }

/* аккордеон */
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc + .acc { margin-top: 14px; }
.acc__head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; background: none; border: 0; text-align: left; }
.acc__title { font-family: var(--ff-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.acc__sub { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.acc__plus { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.acc__plus svg { width: 16px; height: 16px; }
.acc.is-open .acc__plus { transform: rotate(45deg); background: var(--accent-100); }
.acc.is-open .acc__sub { display: none; }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content { padding: 0 20px 22px; color: var(--ink-2); }

/* чек-лист */
.checklist { display: grid; gap: 10px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-soft); cursor: pointer; transition: background .2s; }
.check:hover { background: var(--surface-pink); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--muted-2); border-radius: 7px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }

/* навигация назад/дальше */
.pager { display: grid; gap: 14px; }
.pager a { display: block; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.pager a:hover { border-color: var(--accent-300); transform: translateY(-2px); }
.pager small { display: block; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pager b { font-family: var(--ff-display); font-size: 18px; }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } .pager a:last-child:not(:first-child) { text-align: right; } }

/* видео-заглушка */
.video-ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10;
  background: radial-gradient(120% 90% at 50% 30%, #6b2d4f 0%, #3a1a2c 55%, #241018 100%);
  display: grid; place-items: center; color: #fff; text-align: center; isolation: isolate;
}
.video-ph__play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); }
.video-ph__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-ph__meta { position: absolute; left: 0; right: 0; bottom: 22px; display: grid; justify-items: center; gap: 10px; padding: 0 20px; }
.video-ph__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); }

/* таблица */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.table th { text-align: left; font-family: var(--ff-display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--surface-pink); padding: 16px; }
.table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table td:first-child { font-weight: 700; color: var(--ink); }

/* список с цифрами-кружками */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; display: block; min-height: 30px; padding-left: 44px; padding-top: 3px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600); font-weight: 700; font-size: 14px; }

/* список с точками */
.dots { list-style: none; display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 22px; color: var(--ink-2); }
.dots li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- подвал ---------- */
.site-footer { background: var(--plum); color: rgba(255,255,255,.78); padding: 56px 0 36px; margin-top: 40px; font-size: 15px; }
.site-footer .logo { color: #fff; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--ff-display); font-size: 18px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer__sos b { color: #fff; }
.site-footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.55); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
