/* =========================================================
   CA-62 — статический сайт (RU / EN)
   Без фреймворков и внешних зависимостей.
   ========================================================= */

/* ---------- Шрифт (локальный, кириллица + латиница) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  --ink: #0E3B43;          /* основной тёмный: глубокий сине-зелёный вместо чёрного */
  --ink-soft: #3B5B61;     /* вторичный текст */
  --teal: #007A47;         /* фирменный акцент */
  --teal-deep: #005C35;
  --teal-tint: #E2F2EA;
  --stain: #C2245F;        /* только для порога 5000 Ед/мл */
  --paper: #FFFFFF;
  --surface: #EEF5F4;
  --line: #CBDDDA;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 14px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "lnum" 1, "tnum" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 650; }
h2 { font-size: var(--step-3); max-width: 22ch; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--surface); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.nw { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 700 var(--step-0)/1 var(--font);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 50px; width: auto; display: block; }
@media (max-width: 640px) { .brand img { height: 42px; } }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav a:hover { color: var(--teal); }
.header__tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a, .lang span {
  font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); line-height: 1;
}
.lang [aria-current="true"] { background: var(--ink); color: #fff; }
.header .btn { min-height: 42px; padding: 0 18px; font-size: .9rem; white-space: nowrap; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1120px) and (min-width: 961px) { .nav ul { gap: 14px; } .nav a { font-size: .85rem; } }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header .btn--cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--surface); }
  .header__tools { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.3rem); letter-spacing: -0.02em; max-width: 17ch; }
.hero .lead { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__reg { margin-top: 28px; font-size: var(--step--1); color: var(--ink-soft); }

/* Шкала уровня CA-62 — ключевой визуальный элемент */
.scale {
  margin: 0;
  background: var(--ink); color: #fff; border-radius: 22px;
  padding: clamp(24px, 3.5vw, 40px);
}
.scale__title { font-size: var(--step--1); color: #B5D3CE; font-weight: 600; }
.scale__value { white-space: nowrap; font-size: var(--step-2); font-weight: 750; margin-top: 4px; letter-spacing: -0.02em; }
.scale__track {
  position: relative; height: 18px; margin: 34px 0 14px;
  border-radius: 999px; background: #24545C; overflow: visible;
}
.scale__fill {
  position: absolute; inset: 0 auto 0 0; width: 62%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #2F9A5C, #8FD3A8);
  transform-origin: left center;
  animation: scale-fill 1.4s cubic-bezier(.2,.7,.2,1) .25s both;
}
.scale__threshold {
  position: absolute; left: 62%; top: -14px; bottom: -14px; width: 3px;
  background: var(--stain); border-radius: 2px;
}
.scale__threshold::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--stain); transform: translateX(-50%);
}
.scale__legend { display: grid; grid-template-columns: 62% 38%; font-size: var(--step--1); line-height: 1.4; }
.scale__legend div:last-child { padding-left: 14px; }
.scale__legend strong { display: block; color: #fff; font-size: var(--step-0); }
.scale__legend span { color: #B5D3CE; }
.scale__legend .is-alert strong { color: #FF8DB3; }
.scale__note { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2A5A62; font-size: var(--step--1); color: #B5D3CE; }
@keyframes scale-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
}

/* ---------- Ключевые цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 32px 28px 8px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact__num { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.75rem); font-weight: 780; letter-spacing: -0.04em; line-height: 1; color: var(--teal); }
.fact__text { margin-top: 12px; color: var(--ink-soft); max-width: 26ch; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

.cancers { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.cancers ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cancers li {
  padding: 10px 18px; border-radius: 999px; background: var(--teal-tint);
  color: var(--teal-deep); font-weight: 650;
}
@media (max-width: 760px) { .cancers { grid-template-columns: 1fr; } }

/* ---------- Как это работает ---------- */
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--teal); color: var(--teal); font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-soft); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 60px; }
  .steps li:not(:last-child)::after { top: 48px; bottom: -14px; left: 19px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
}

/* ---------- Достижения ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 30px 26px; }
.stat__num { font-size: var(--step-3); font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.stat__text { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }
.center-cta { margin-top: 40px; }

/* ---------- Применение ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px); }
.use { border-top: 3px solid var(--ink); padding-top: 22px; }
.use h3 { margin-bottom: 12px; }
.use p { color: var(--ink-soft); }
.use p + p { margin-top: 10px; }
.use__icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--teal); }
@media (max-width: 860px) { .uses { grid-template-columns: 1fr; } }

/* ---------- Технология и исследование ---------- */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.reg {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.reg dt { font-size: var(--step--1); color: var(--ink-soft); }
.reg dd { margin: 4px 0 0; font-weight: 750; font-size: var(--step-1); }
.study { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.study__cohort { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.study__cohort b { display: block; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.05; }
.study__cohort span { color: var(--ink-soft); font-size: .95rem; }
.study__src { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); }
.study__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.study__metrics b { display: block; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.05; color: var(--teal); }
.study__metrics span { color: var(--ink-soft); font-size: .95rem; }
.study .btn { margin-top: 28px; width: 100%; }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr; } }

/* ---------- Сравнение ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare caption { text-align: left; color: var(--ink-soft); font-size: var(--step--1); padding-bottom: 14px; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th[scope="rowgroup"] {
  font-size: var(--step-0); font-weight: 750; padding-top: 26px; border-bottom: 1px solid var(--line);
  width: 26%;
}
.compare tbody th[scope="row"] { font-weight: 500; }
.compare td { font-weight: 650; white-space: nowrap; }
.compare tr.is-ca62 th[scope="row"], .compare tr.is-ca62 td { color: var(--teal-deep); font-weight: 800; background: var(--teal-tint); }
.compare small { font-weight: 500; color: var(--ink-soft); }
@media (max-width: 600px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: grid; grid-template-columns: 1fr auto; }
  .compare tbody th[scope="rowgroup"] { grid-column: 1 / -1; width: auto; padding: 24px 0 10px; border-bottom: 2px solid var(--ink); }
  .compare th, .compare td { padding: 12px 12px; }
  .compare td { text-align: right; }
}
.compare-note { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); max-width: 80ch; }

/* ---------- Где сдать ---------- */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.labs { display: grid; gap: 14px; margin-top: 28px; }
.lab {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.lab:hover { border-color: var(--teal); color: var(--ink); }
.lab b { font-size: var(--step-1); }
.lab span { color: var(--ink-soft); font-size: .95rem; }
.lab svg { flex: none; color: var(--teal); }
.interp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.interp h3 { margin-bottom: 18px; }
.ranges { display: grid; gap: 12px; margin-bottom: 20px; }
.range { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: baseline; }
.range b { font-size: 1.05rem; white-space: nowrap; }
.range--alert b { color: var(--stain); }
.range span { color: var(--ink-soft); }
.interp__key { font-weight: 700; padding: 14px 16px; border-left: 3px solid var(--stain); background: #FBF0F4; border-radius: 0 8px 8px 0; }
.interp details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.interp summary { cursor: pointer; font-weight: 700; color: var(--teal); list-style: none; display: flex; align-items: center; gap: 8px; }
.interp summary::-webkit-details-marker { display: none; }
.interp summary::before { content: "+"; font-size: 1.2rem; width: 18px; }
.interp details[open] summary::before { content: "−"; }
.interp details p { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .range { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #CFE3E0; padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #8FD3A8; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: var(--step-2); color: #fff; max-width: none; }
.footer h3 { color: #fff; font-size: var(--step-0); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .phone { font-size: var(--step-1); font-weight: 750; }
.footer__bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid #2A5A62;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: #9BB8B3;
}
.footer .brand { color: #fff; margin-bottom: 18px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Доступность / печать ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scale__fill { animation: none; }
}
@media print {
  .header, .menu-toggle, .hero__actions, .center-cta { display: none !important; }
  .scale, .footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Врачам ---------- */
.spec { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 750; }
.spec dd { margin: 0; color: var(--ink-soft); }
.spec__more { margin-top: 20px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }
.interp__more { margin-top: 18px; font-weight: 700; }

/* ---------- Вопросы и ответы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.1rem; line-height: 1.35; font-weight: 700; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-size: 1.6rem; line-height: 1; color: var(--teal); font-weight: 500;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 40px 22px 0; color: var(--ink-soft); max-width: 70ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 18px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin: 56px 0 16px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 92px; }
@media (max-width: 960px) { .page-grid { grid-template-columns: 1fr; } .aside { position: static; } }
.decision { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: d; }
.decision li { counter-increment: d; position: relative; padding: 0 0 22px 52px; margin: 0; }
.decision li::before {
  content: counter(d); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem;
}
.decision li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.decision b { display: block; color: var(--ink); margin-bottom: 4px; }
.causes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; }
.causes li { background: var(--surface); border-radius: 10px; padding: 14px 16px; margin: 0; color: var(--ink); }
@media (max-width: 560px) { .causes { grid-template-columns: 1fr; } }
.fact sup { font-size: .7em; } .fact sup a { text-decoration: none; }

/* ---------- Цена и сноска NPV ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 22px 0 0; }
.price b { font-size: var(--step-2); letter-spacing: -0.02em; color: var(--ink); }
.price span { color: var(--ink-soft); font-size: var(--step--1); }
.aside .price { margin: 0 0 18px; }
.prose .npv-note { font-size: var(--step--1); border-left: 2px solid var(--line); padding-left: 14px; }

/* ---------- Уведомление о cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  background: var(--ink); color: #DCEBE8; border-radius: 16px; padding: 16px 18px 16px 22px;
  box-shadow: 0 10px 30px rgba(18, 35, 63, .25); font-size: var(--step--1); line-height: 1.5;
}
.cookie p { flex: 1 1 320px; }
.cookie .btn { min-height: 42px; padding: 0 22px; font-size: .95rem; flex: none; }
@media print { .cookie { display: none !important; } }

/* =========================================================
   Врачебный калькулятор
   ========================================================= */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .calc__grid { grid-template-columns: minmax(0, 1fr); } }
.calc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); }
.calc-card h2 { font-size: var(--step-1); max-width: none; }
.calc-sub { margin-top: 6px; font-size: .95rem; }
.calc-field { margin-top: 22px; }
.calc-field label, .calc-labelrow label { display: block; font-weight: 700; margin-bottom: 8px; }
.calc-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-req { color: var(--stain); }
.calc-textbtn { background: none; border: 0; padding: 0; font: 700 .9rem var(--font); color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.calc-amount { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.calc-amount:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.calc-amount input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: 600 1.15rem var(--font); color: var(--ink); background: transparent; }
.calc-amount input:focus { outline: none; }
.calc-amount span { display: flex; align-items: center; padding: 0 16px; background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.calc-field input[type="date"] { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; font: 600 1.05rem var(--font); color: var(--ink); background: #fff; }
.calc-field input[type="date"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.calc-field [aria-invalid="true"], .calc-amount:has([aria-invalid="true"]) { border-color: var(--stain); }
.calc-hint { margin-top: 6px; font-size: var(--step--1); color: var(--ink-soft); }
.calc-error { margin-top: 6px; font-size: var(--step--1); color: var(--stain); font-weight: 600; }
.calc-crp { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--surface); }
.calc-crp .calc-field { margin-top: 16px; }
.calc-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.calc-switch strong { display: block; }
.calc-switch small { color: var(--ink-soft); font-size: var(--step--1); }
.calc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-switch__track { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #C3D5D2; position: relative; transition: background .15s; }
.calc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(18,35,63,.3); }
.calc-switch input:checked + .calc-switch__track { background: var(--teal); }
.calc-switch input:checked + .calc-switch__track::after { transform: translateX(20px); }
.calc-switch input:focus-visible + .calc-switch__track { outline: 3px solid var(--teal); outline-offset: 2px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.calc-actions .btn--primary { flex: 1 1 220px; }
.calc-privacy { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); }

.calc-out { border-top: 6px solid var(--line); }
.calc-out[data-zone="green"] { border-top-color: #2E8B57; }
.calc-out[data-zone="yellow"] { border-top-color: #C98A12; }
.calc-out[data-zone="high"] { border-top-color: var(--stain); }
.calc-empty { margin-top: 18px; }
.calc-empty__title { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.calc-scale { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 4.5fr 1fr 2fr; gap: 4px; }
.calc-scale li { border-top: 8px solid; padding-top: 8px; font-size: var(--step--1); line-height: 1.35; }
.calc-scale b { display: block; }
.calc-scale span { color: var(--ink-soft); }
.calc-scale__z0 { border-color: #2E8B57 !important; }
.calc-scale__z1 { border-color: #C98A12 !important; }
.calc-scale__z2 { border-color: var(--stain) !important; }

#result { margin-top: 18px; }
.calc-zone { display: inline-block; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .9rem; background: var(--surface); }
.calc-out[data-zone="green"] .calc-zone { background: #E3F3EA; color: #1F6B41; }
.calc-out[data-zone="yellow"] .calc-zone { background: #FBF0D9; color: #8A5B00; }
.calc-out[data-zone="high"] .calc-zone { background: #FBE7EE; color: #9E1A4C; }
.calc-value { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.calc-value strong { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }
.calc-value span { color: var(--ink-soft); font-weight: 600; }
.calc-sample { margin-top: 8px; font-size: var(--step--1); color: var(--ink-soft); }
.calc-route { margin-top: 20px; font-size: var(--step-2); }
.calc-desc { margin-top: 10px; color: var(--ink-soft); }
.calc-callout { margin-top: 18px; padding: 14px 16px; border-left: 3px solid #C98A12; background: #FDF6E7; border-radius: 0 10px 10px 0; }
.calc-callout.is-urgent { border-left-color: var(--stain); background: #FBF0F4; }
.calc-callout strong { display: block; margin-bottom: 6px; }
.calc-callout p { font-size: .95rem; color: var(--ink-soft); }
.calc-callout p + p { margin-top: 8px; }
.calc-date { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.calc-date__label { font-size: var(--step--1); color: #B5D3CE; }
.calc-date strong { display: block; font-size: var(--step-1); margin-top: 4px; }
.calc-date__period { margin-top: 4px; font-size: var(--step--1); color: #B5D3CE; }
.calc-date__timing { margin-top: 10px; padding-top: 10px; border-top: 1px solid #2A5A62; font-size: .95rem; color: #DCEBE8; }
.calc-caveat { margin-top: 16px; font-size: var(--step--1); color: var(--ink-soft); }
.calc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.calc-tools .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.calc-status { font-size: var(--step--1); color: var(--teal-deep); font-weight: 600; }
.calc-note { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--surface); color: var(--ink-soft); max-width: 90ch; }
.calc-note strong { color: var(--ink); }
.calc-algo { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }

/* Подтверждение «Я медицинский работник» */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(18, 35, 63, .72); backdrop-filter: blur(4px); }
.gate[hidden] { display: none; }
.gate__box { max-width: 520px; width: 100%; background: var(--paper); border-radius: 20px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 20px 60px rgba(18, 35, 63, .35); }
.gate__box h2 { font-size: var(--step-2); max-width: none; }
.gate__box p { margin-top: 14px; color: var(--ink-soft); }
.gate__small { font-size: var(--step--1); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gate__actions .btn--primary { flex: 1 1 240px; }
body.has-gate { overflow: hidden; }
.footer--short { padding: 0 0 28px; }
.footer--short .footer__bottom { margin-top: 0; }

@media print {
  .gate, .calc-actions, .calc-tools, .calc-privacy, .header, .skip, .crumbs { display: none !important; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc-card:first-child { display: none; }
  .calc-date { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .calc-date * { color: #000 !important; }
}

/* ---------- Выживаемость по стадиям ---------- */
.surv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .surv { grid-template-columns: minmax(0, 1fr); } }
.surv__fig { margin: 0; }
.surv__title { font-weight: 750; font-size: var(--step-1); }
.surv__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.surv__legend span { display: inline-flex; align-items: center; gap: 8px; }
.surv__key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.surv__key--early { background: var(--teal); }
.surv__key--late { background: #9DB2AF; }
.surv__list { list-style: none; padding: 0; margin: 18px 0 0; }
.surv__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 44px; padding-top: 12px; }
.surv h2 { font-size: var(--step-2); max-width: 20ch; }
.surv__name { font-weight: 650; font-size: .95rem; line-height: 1.2; }
.surv__track { position: relative; height: 2px; background: var(--line); margin-right: 22px; }
.surv__span { position: absolute; top: -1px; height: 4px; background: linear-gradient(90deg, #C8D9D6, var(--teal-tint)); border-radius: 2px; }
.surv__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.surv__dot b { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: .8rem; white-space: nowrap; line-height: 1; }
.surv__dot--early { background: var(--teal); }
.surv__dot--early b { color: var(--teal-deep); font-weight: 800; }
.surv__dot--late { background: #9DB2AF; }
.surv__dot--late b { color: var(--ink-soft); font-weight: 600; }
.surv__note { margin-top: 16px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 420px) { .surv__row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } .surv__name { font-size: .85rem; } }

/* =========================================================
   Раздел для врачей, схемы, «О компании»
   ========================================================= */
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
@media (max-width: 860px) { .doc-cards { grid-template-columns: minmax(0, 1fr); } }
.doc-card { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s; }
.doc-card:hover { border-color: var(--teal); color: var(--ink); }
.doc-card b { display: block; font-size: var(--step-1); color: var(--teal-deep); }
.doc-card span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }

.pubs-wrap { overflow-x: auto; }
.pubs { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); }
.pubs th, .pubs td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pubs thead th { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
.pubs td:first-child { white-space: nowrap; font-weight: 650; }
.pubs td b { font-weight: 700; line-height: 1.35; }
.pubs td .muted { font-size: var(--step--1); }
.pubs td a { white-space: nowrap; }
@media (max-width: 760px) {
  .pubs thead { display: none; }
  .pubs tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .pubs td { display: block; border: 0; padding: 4px 16px; }
  .pubs td::before { content: attr(data-label); display: block; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
  .pubs td:first-child::before, .pubs td:nth-child(2)::before { display: inline; content: ""; }
  .pubs td:nth-child(2) { color: var(--ink-soft); font-size: var(--step--1); }
}

.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.fig { min-width: 0; }
.fig { margin: 0; }
.fig h2 { font-size: var(--step-2); max-width: none; margin-bottom: 18px; }
.fig__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 12px; }
.fig__scroll svg { display: block; width: 100%; min-width: 600px; height: auto; }
.fig__scroll svg text { font-family: var(--font); }
.fig figcaption { margin-top: 16px; color: var(--ink-soft); max-width: 75ch; }

.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
@media (max-width: 760px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }
.co-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); }
.co-card h3 { font-size: var(--step-1); margin-bottom: 12px; }
.co-card p { color: var(--ink-soft); }
.co-card p + p { margin-top: 10px; }
.co-dl { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; }
.co-dl dt { color: var(--ink-soft); }
.co-dl dd { margin: 0; font-weight: 650; }
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.faq__more { margin-top: 28px; }
.doc-chat { align-self: end; padding: 18px 20px; border-radius: var(--radius); background: var(--teal-tint); color: var(--ink-soft); }
.doc-chat b { color: var(--ink); }

/* ---------- Выживаемость: «рано / поздно», из 10 ---------- */
.surv-sec .wrap { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.surv2__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.surv2__intro h2 { font-size: var(--step-3); max-width: 15ch; }
@media (max-width: 860px) { .surv2__intro { grid-template-columns: minmax(0, 1fr); } }
.surv2 { margin: clamp(28px, 4vw, 44px) 0 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; }
.surv2__cap { font-weight: 750; font-size: var(--step-1); margin-bottom: 18px; }
.surv2__head, .surv2__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.surv2__head { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.surv2__col b { display: block; font-size: 1.05rem; }
.surv2__col small { display: block; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.35; }
.surv2__col em { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: var(--teal); color: #fff; font-style: normal; font-weight: 700; font-size: .78rem; }
.surv2__col--early b { color: var(--teal-deep); }
.surv2__col--late b { color: var(--ink-soft); }
.surv2__list { list-style: none; margin: 0; padding: 0; }
.surv2__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.surv2__name { font-weight: 650; }
.surv2__cell { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.surv2__cell b { font-size: .95rem; white-space: nowrap; }
.surv2__cell--early b { color: var(--teal-deep); }
.surv2__cell--late b { color: var(--ink-soft); }
.surv2__dots { display: inline-grid; grid-template-columns: repeat(10, 10px); gap: 3px; }
.surv2__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.surv2__cell--early .surv2__dots i.on { background: var(--teal); }
.surv2__cell--late .surv2__dots i.on { background: #8BA19D; }
.surv2__bridge { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--teal-tint); color: var(--ink); font-size: 1.05rem; }
.surv2__bridge b { color: var(--teal-deep); }
@media (max-width: 640px) {
  .surv2__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .surv2__head > span:first-child { display: none; }
  .surv2__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; }
  .surv2__name { grid-column: 1 / -1; }
  .surv2__dots { grid-template-columns: repeat(10, 8px); gap: 2px; }
  .surv2__dots i { width: 8px; height: 8px; }
}
.surv2__head { align-items: end; }
.surv2__col em { white-space: nowrap; }

/* ---------- MCED: проспективные данные под таблицей ---------- */
.mced { margin-top: 40px; max-width: 80ch; }
.mced h3 { font-size: var(--step-1); margin: 0 0 12px; }
.mced p { margin: 0 0 14px; }
.mced__list { list-style: none; margin: 8px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.mced__list li { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mced__num { font-size: var(--step-2); font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mced__ca62 { padding-left: 14px; border-left: 3px solid var(--teal); }
@media (max-width: 480px) { .mced__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Маршрут онкопоиска (route.js, прототип) ---------- */
.route-wrap { margin-top: 20px; }
.rt { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.rt[open] { border-color: var(--teal); }
.rt__sum { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 20px clamp(22px, 3vw, 34px); position: relative; padding-right: 64px; }
.rt__sum::-webkit-details-marker { display: none; }
.rt__sum::after { content: "+"; position: absolute; right: clamp(22px, 3vw, 34px); top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; }
.rt[open] > .rt__sum::after { content: "−"; }
.rt__sum span { font-size: var(--step-1); }
.rt__sum small { color: var(--ink-soft); font-size: var(--step--1); }
.rt__sum:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 18px; }
.rt__body { padding: 0 clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px); }
.rt__disclaimer { margin: 0 0 18px; padding: 12px 14px; background: var(--surface); border-radius: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.rt__disclaimer b { color: var(--ink); }
.rt__step0 { margin-bottom: 22px; }
.rt__step0 h3, .rt__out h3 { font-size: var(--step-1); margin: 0 0 10px; }
.rt__step0 ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.rt__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "req out" "opt out"; column-gap: clamp(20px, 3vw, 36px); align-items: start; }
.rt__req { grid-area: req; } .rt__opt { grid-area: opt; } .rt__out { grid-area: out; }

.rt__f { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.rt__f legend, .rt__age label { font-weight: 700; font-size: .95rem; margin-bottom: 8px; display: block; padding: 0; }
.rt__f .rt-opt { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 14px 8px 0; font-size: .95rem; cursor: pointer; }
.rt__f .rt-opt input { width: 18px; height: 18px; accent-color: var(--teal); margin: 2px 0 0; flex: none; }
.rt__age input { width: 9rem; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.rt__age input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.rt__need { margin: -4px 0 16px; font-size: var(--step--1); color: var(--ink-soft); }
.rt__out { position: sticky; top: 90px; background: var(--surface); border-radius: 14px; padding: 20px; }
.rt__empty { margin: 0; color: var(--ink-soft); }
.rt__steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.rt__st { counter-increment: st; background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.rt__st-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rt__st-h b::before { content: counter(st) ". "; color: var(--teal-deep); }
.rt__pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-deep); }
.rt__bar { height: 6px; background: var(--teal-tint); border-radius: 3px; margin: 8px 0; overflow: hidden; }
.rt__bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.rt__st p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.rt__st--opt { opacity: .78; padding-top: 10px; padding-bottom: 10px; }
.rt__st p.rt__must { margin-top: 6px; color: var(--ink); font-weight: 600; }
.rt__cum { margin: 14px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.rt__rest { margin-top: 12px; font-size: var(--step--1); }
.rt__rest summary { cursor: pointer; color: var(--teal-deep); font-weight: 600; }
.rt__rest ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.rt__src { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); line-height: 1.55; }
.rt__src h4 { margin: 0 0 8px; font-size: .95rem; color: var(--ink); }
.rt__src ol { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
.rt__src p { margin: 0; }
.rt__part { font-size: var(--step-1); margin: 0 0 14px; }
.rt__opt { padding-top: 6px; }
.rt__hint { margin: -6px 0 14px; font-size: var(--step--1); color: var(--ink-soft); }
.rt__f .rt__hint { margin: -2px 0 10px; }
.rt__basis { margin: -4px 0 14px; font-size: var(--step--1); color: var(--ink-soft); }
.rt__mv { display: inline-block; margin-left: 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.rt__mv--up { color: var(--teal-deep); }
.rt__mv--down { color: #8A5B00; }
.rt__st p.rt__tag { margin-top: 6px; font-size: .82rem; color: #8A5B00; font-weight: 600; }
@keyframes rt-flash { from { box-shadow: 0 0 0 3px var(--teal); } to { box-shadow: 0 0 0 0 transparent; } }
.rt__st--flash { animation: rt-flash 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .rt__st--flash { animation: none; } }
.test-banner { background: #FFF4D6; border: 1px solid #E8C766; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: var(--step--1); }
@media (max-width: 860px) { .rt__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "req" "opt" "out"; } .rt__out { position: static; } }
@media print { .rt__form, .rt__sum::after { display: none !important; } }

/* ---------- Закреплённая кнопка на телефоне ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(14, 59, 67, .12);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  }
  .mbar__txt { min-width: 0; line-height: 1.3; }
  .mbar__txt b { display: block; font-size: .95rem; }
  .mbar__txt span { display: block; font-size: .8rem; color: var(--ink-soft); }
  .mbar__btn { flex: none; min-height: 46px; padding: 0 20px; }
  body.has-mbar { padding-bottom: 76px; }
}
@media print { .mbar { display: none !important; } }
@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .hero .lead { font-size: 1.0625rem; margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
}
.rt-next { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--teal-tint); border: 1px solid #B9DCC8; }
.rt-next p { margin: 0 0 12px; font-size: var(--step--1); }
.rt-next__btn { width: 100%; min-height: 48px; }
@media print { .rt-next { display: none !important; } }

/* ---------- Пояснения ⓘ ---------- */
.info-i { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; padding: 0; vertical-align: middle;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: var(--teal-deep); font: 700 15px/1 var(--font); cursor: pointer; }
.info-i:hover { background: var(--teal-tint); }
.info-i:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.calc-output .info-i, .calc-date .info-i { color: inherit; }
dialog.pop { border: 0; border-radius: 16px; padding: 0; max-width: min(560px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 20px 60px rgba(14, 59, 67, .25); }
dialog.pop::backdrop { background: rgba(14, 59, 67, .45); }
.pop__in { padding: 22px 24px; }
.pop__h { font-size: var(--step-1); margin: 0 0 10px; }
.pop__b { font-size: .98rem; line-height: 1.6; }
.pop__b p { margin: 0 0 10px; }
.pop__x { margin-top: 8px; min-height: 44px; }
@media print { .info-i { display: none; } }

.rt__sub { margin: -6px 0 10px; color: var(--ink-soft); font-size: var(--step--1); }
.rt__st p.rt__scr { margin-top: 6px; font-size: .85rem; color: var(--ink); }
.rt__scr .info-i { width: 22px; height: 22px; font-size: 13px; }
.rt__note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--paper); border-radius: 0 8px 8px 0; font-size: var(--step--1); }
/* справочные инструменты не печатаются */
@media print { #result, #route-block, .rt-next, .calc-output { display: none !important; } }
.calc-emph { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--teal-tint); border-left: 4px solid var(--teal); font-weight: 650; color: var(--ink); }
.rt-ref { font-size: .8em; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rt-ref:hover { text-decoration: underline; }
.rt__src li:target { background: var(--teal-tint); border-radius: 6px; }

/* ---------- Смартфоны ---------- */
@media screen and (max-width: 960px) {
  .wrap {
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }
  .header { padding-top: env(safe-area-inset-top); }
  .header__row { gap: 12px; min-height: 60px; }
  .header__tools { gap: 8px; }
  .lang a, .lang span { display: grid; place-items: center; min-width: 40px; min-height: 38px; padding: 4px; }
  .nav {
    max-height: calc(100dvh - 61px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 12px 24px rgba(14, 59, 67, .12);
  }
  .nav ul { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
  .nav a { min-height: 48px; white-space: normal; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  html { scroll-padding-top: calc(72px + env(safe-area-inset-top)); }
}
@media screen and (max-width: 860px) {
  .mbar:not([hidden]) {
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header:has(.nav.is-open) { z-index: 70; }
  .header:has(.nav.is-open) ~ .mbar { visibility: hidden; }
}
@media screen and (max-width: 640px) {
  :root { --section: 48px; }
  .hero, .page-hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1, .page-hero h1 { max-width: none; text-wrap: balance; }
  .hero h1 { font-size: clamp(1.75rem, 5.9vw + .55rem, 2.6rem); }
  .hero__reg { margin-top: 18px; }
  .hero__actions, .calc-actions { display: grid; gap: 8px; }
  .section__head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .lead, .section__head h2, .footer { overflow-wrap: anywhere; }
  .scale { padding: 18px; }
  .scale__value { white-space: normal; font-size: clamp(1.2rem, 5.75vw, 1.625rem); }
  .scale__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scale__legend div:last-child { padding-left: 0; }
  .surv2__col em { white-space: normal; }
  .btn { min-height: 48px; padding: 10px 16px; line-height: 1.25; text-align: center; }
  .mbar__btn { padding-inline: 12px; }
  .mbar__txt b, .mbar__txt span { font-size: .875rem; }
  .tech, .where, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .study { padding: 16px; }
  .study__cohort, .study__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .study__cohort span, .study__metrics span { overflow-wrap: anywhere; }
  .co-dl { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .co-dl dd { margin-bottom: 8px; overflow-wrap: anywhere; }
  .lab { padding: 14px 16px; min-height: 60px; }
  .pubs td a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
  .calc-card, .calc-crp, .gate__box { padding: 16px; }
  .calc-labelrow { align-items: center; }
  .calc-textbtn { min-height: 44px; padding-inline: 6px; }
  .calc-field input[type="date"] { display: block; min-width: 0; min-height: 48px; }
  .calc-amount input, .calc-field input[type="date"] { padding-inline: 10px; }
  .calc-amount span { padding-inline: 8px; white-space: nowrap; }
  .calc-switch { min-height: 44px; }
  .calc-scale { display: flex; flex-direction: column; gap: 10px; }
  .calc-scale li { border-top: 0; border-left: 4px solid; padding: 4px 0 4px 10px; }
  .gate {
    place-items: safe center;
    overflow-y: auto;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .gate__actions { display: grid; }
  .footer { padding-top: 36px; }
  .footer__bottom { margin-top: 32px; }
}
@media screen and (max-width: 360px) {
  .mbar__txt span { display: none; }
}
