/* Manrope (SIL OFL 1.1), переменный 200–800, локально — без внешних загрузок.
   Используются веса 400, 600 и 700; сверхжирные навык запрещает. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-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;
}

/* ─── Шкала: только шаги навыка landing-page-design ───────────
   Отступы — таблица Spacing, размеры шрифта — шкала Tailwind,
   радиусы — значения Tailwind, кривая движения — одна на сайт. */

:root {
  --s-25: 2px;  --s-50: 4px;  --s-75: 8px;  --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-move: 500ms;
  --t-tint: 300ms;

  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --measure: 680px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-900); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem; line-height: 1.5rem;          /* text-base */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
em, i, cite { font-style: normal; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 3px; transition: color var(--t-tint) var(--ease); }
a:hover { color: var(--fg); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem; line-height: 1.25rem;
  padding: var(--s-25) var(--s-50);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-md); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ─── Пропуск к содержанию ─────────────────────────────────── */

.skip {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-move) var(--ease);
}
.skip:focus { transform: none; }

/* ─── Сетка ────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-300); }
@media (max-width: 639px) { .wrap { padding: 0 var(--s-200); } }

/* ─── Кнопки ───────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-lg);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-tint) var(--ease), border-color var(--t-tint) var(--ease),
              color var(--t-tint) var(--ease), transform var(--t-move) var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg); }
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform var(--t-move) var(--ease); }
.btn:hover .icon--go { transform: translateX(var(--s-50)); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--fg); }

.btn--sm { font-size: 0.875rem; line-height: 1.25rem; }
.btn--wide { width: 100%; }

/* ─── Навигация: плавающая плашка ──────────────────────────── */

.nav {
  position: sticky; top: var(--s-100); z-index: 50;
  display: flex; justify-content: center;
  padding: var(--s-100) var(--s-200) 0;
  pointer-events: none;
}
.nav__bar {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50);
  border-radius: var(--r-full);
  pointer-events: auto;
}
/* Размытие — на подложке, а не на самой плашке: иначе она стала бы
   контейнером для fixed-панели мобильного меню. */
.nav__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.mark {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  color: var(--fg); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 700;
}
.mark:hover { color: var(--fg); }

.nav__links { display: flex; align-items: center; gap: var(--s-25); list-style: none; }
.nav__links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  transition: color var(--t-tint) var(--ease), background-color var(--t-tint) var(--ease);
}
.nav__links a:hover { color: var(--fg); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--fg); background: var(--surface-3); }

.nav__cta { border-radius: var(--r-full); }

.nav__toggle {
  display: none;
  position: relative; width: 40px; height: 40px;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--fg); cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 12px; width: 16px; height: 2px; border-radius: var(--r-full);
  background: currentColor;
  transition: transform var(--t-move) var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child  { top: 23px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__cta { display: none; }
  .js .nav__toggle { display: block; }
  .js .nav__bar { justify-content: space-between; min-width: min(100%, 360px); }

  /* Без скрипта ссылки остаются видимыми строкой. */
  .no-js .nav__bar { flex-wrap: wrap; justify-content: center; border-radius: var(--r-2xl); }
  .no-js .nav__links { flex-wrap: wrap; justify-content: center; }

  /* Со скриптом — панель во всю высоту. */
  .js .nav__links {
    position: fixed; inset: 0; z-index: -2;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-75);
    padding: var(--s-900) var(--s-300) var(--s-400);
    background: var(--panel);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-move) var(--ease), visibility 0s linear var(--t-move);
  }
  .js .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity var(--t-move) var(--ease); }
  .js .nav__links li { opacity: 0; transform: translateY(var(--s-300));
    transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease); }
  .js .nav.is-open .nav__links li { opacity: 1; transform: none; }
  .js .nav.is-open .nav__links li:nth-child(2) { transition-delay: 60ms; }
  .js .nav.is-open .nav__links li:nth-child(3) { transition-delay: 120ms; }
  .js .nav.is-open .nav__links li:nth-child(4) { transition-delay: 180ms; }
  .js .nav.is-open .nav__links li:nth-child(5) { transition-delay: 240ms; }
  .js .nav.is-open .nav__links li:nth-child(n+6) { transition-delay: 300ms; }
  .js .nav__links a {
    padding: var(--s-200) var(--s-200);
    border-radius: var(--r-xl);
    font-size: 1.5rem; line-height: 2rem; color: var(--fg);
  }
  .js .nav__links .nav__panel-cta { margin-top: var(--s-300); }
  .js .nav__links .nav__panel-cta a {
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: 1rem; line-height: 1.5rem; text-align: center;
  }
}
@media (min-width: 768px) { .nav__panel-cta { display: none; } }
body.menu-open { overflow: hidden; }

/* ─── Первый экран ─────────────────────────────────────────── */

.hero { padding: var(--s-800) 0 var(--s-900); }
.hero__grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  margin-bottom: var(--s-300);
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); }

.hero__title {
  max-width: var(--measure);
  font-size: 3rem; line-height: 1;                  /* text-5xl: две строки в колонке рядом с холстом */
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (max-width: 767px) { .hero__title { font-size: 2.25rem; line-height: 2.5rem; } }   /* text-4xl */

.hero__lede {
  max-width: var(--measure);
  margin-top: var(--s-300);
  color: var(--muted);
  font-size: 1.125rem; line-height: 1.75rem;         /* text-lg */
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-400); }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300);
  margin-top: var(--s-400);
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.hero__proof li { display: inline-flex; align-items: center; gap: var(--s-75); }
.hero__proof .icon { color: var(--accent-ink); }

/* Перенос строк в заголовке — только там, где его ставит разметка */
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* ─── Секции ───────────────────────────────────────────────── */

.block { padding: var(--s-900) 0; }
@media (max-width: 767px) { .block { padding: var(--s-700) 0; } }
.block--band { background: var(--surface); }

.block__head { max-width: var(--measure); margin-bottom: var(--s-600); }
.block__kicker {
  margin-bottom: var(--s-100);
  color: var(--accent-ink);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.block__title { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }   /* text-4xl */
@media (max-width: 767px) { .block__title { font-size: 1.875rem; line-height: 2.25rem; } }
.block__lede { margin-top: var(--s-200); color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }

/* ─── Карточки ─────────────────────────────────────────────── */

.grid { display: grid; gap: var(--s-200); list-style: none; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-200);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--card);
  transition: border-color var(--t-tint) var(--ease), background-color var(--t-tint) var(--ease),
              transform var(--t-move) var(--ease);
}
.card--link:hover { border-color: var(--line-strong); background: var(--card-hover); --ty: -2px; }
.card--link:active { --ty: 1px; }

/* Наклон за курсором: скрипт ставит --rx/--ry, подъём при наведении — --ty.
   Всё в одном transform, чтобы эффекты не перебивали друг друга. */
.card, .step, .station {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-xl);
  background: var(--chip); color: var(--accent-ink);
}
.card__no { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
            font-variant-numeric: tabular-nums; }
.card__title { font-size: 1.25rem; line-height: 1.75rem; }       /* text-xl */
.card__title a { color: var(--fg); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__text { color: var(--muted); }
.card__foot { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-75);
              color: var(--fg); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }

/* ─── Шаги ─────────────────────────────────────────────────── */

.steps { display: grid; gap: var(--s-200); list-style: none; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card);
        transition: transform var(--t-move) var(--ease); }
.step__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: var(--s-200);
  border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 700;
}
.step__title { font-size: 1.25rem; line-height: 1.75rem; }
.step__text { margin-top: var(--s-75); color: var(--muted); }

/* ─── Слоган: слова проявляются по одному ──────────────────── */

.tagline { padding: var(--s-900) 0; }
.tagline__text {
  max-width: var(--measure);
  font-size: 3rem; line-height: 1;                  /* text-5xl */
  font-weight: 700; letter-spacing: -0.025em;
}
@media (max-width: 767px) { .tagline__text { font-size: 2.25rem; line-height: 2.5rem; } }
.tagline__text .w { opacity: 0.3; transition: opacity var(--t-move) var(--ease); }
.tagline__text .w.is-on { opacity: 1; }

/* ─── Вопросы ──────────────────────────────────────────────── */

.faq { display: grid; gap: var(--s-100); max-width: 800px; list-style: none; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  cursor: pointer; list-style: none;
  font-size: 1.125rem; line-height: 1.75rem; font-weight: 600;
  border-radius: var(--r-xl);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform var(--t-move) var(--ease); color: var(--muted); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--fg); }
.faq__answer { padding: 0 var(--s-300) var(--s-300); color: var(--muted); }
.faq__answer p + p { margin-top: var(--s-100); }

/* ─── Финальный призыв ─────────────────────────────────────── */

.final {
  display: grid; gap: var(--s-300); justify-items: start;
  padding: var(--s-600);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface);
}
@media (max-width: 639px) { .final { padding: var(--s-300); } }
.final__title { max-width: var(--measure); font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
@media (max-width: 767px) { .final__title { font-size: 1.875rem; line-height: 2.25rem; } }
.final__text { max-width: var(--measure); color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }

/* ─── Внутренние страницы ──────────────────────────────────── */

.page-head { padding: var(--s-800) 0 var(--s-600); max-width: var(--measure); }
.page-head__no {
  margin-bottom: var(--s-200);
  color: var(--accent-ink);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.page-title { font-size: 3rem; line-height: 1; letter-spacing: -0.025em; }        /* text-5xl */
@media (max-width: 767px) { .page-title { font-size: 2.25rem; line-height: 2.5rem; } }
.lede { margin-top: var(--s-300); color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }

.section { padding-bottom: var(--s-700); }
.section__title { max-width: var(--measure); margin-bottom: var(--s-300);
                  font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }   /* text-3xl */
.section + .section { padding-top: var(--s-200); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-200); }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.75rem; }
.prose h3 { margin-top: var(--s-400); font-size: 1.25rem; line-height: 1.75rem; }
.prose ul, .prose ol { padding-left: var(--s-300); }
.prose li + li { margin-top: var(--s-75); }
.prose strong { color: var(--fg); }
@media (max-width: 639px) { .prose p, .prose li { font-size: 1rem; line-height: 1.5rem; } }

.mt { margin-top: var(--s-400); }

/* ─── Подвал ───────────────────────────────────────────────── */

.foot { padding: var(--s-700) 0 var(--s-600); background: var(--surface); }
.foot__inner { display: grid; gap: var(--s-400); }
@media (min-width: 900px) { .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); list-style: none; }
.foot__links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.foot__links a:hover, .foot__links a[aria-current="page"] { color: var(--fg); }
.foot__meta { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.foot__meta p + p { margin-top: var(--s-100); }
.foot__top { display: inline-flex; align-items: center; gap: var(--s-75); }

/* ─── Появление секций при прокрутке ───────────────────────── */

.js .reveal { opacity: 0; transform: translateY(var(--s-400));
              transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Карточки внутри секции выезжают по очереди. Сдвиг — свойством translate,
   чтобы не спорить с transform наклона. Шаг 60 мс, вся очередь не дольше 400 мс. */
.js .reveal :is(.grid, .steps, .faq, .servers, .stations, .tokens) > * {
  opacity: 0; translate: 0 var(--s-300);
  transition-property: opacity, translate, transform, border-color, background-color;
  transition-duration: 600ms, 600ms, var(--t-move), var(--t-tint), var(--t-tint);
  transition-timing-function: var(--ease);
}
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > * { opacity: 1; translate: none; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(2) { transition-delay: 60ms, 60ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(3) { transition-delay: 120ms, 120ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(4) { transition-delay: 180ms, 180ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(5) { transition-delay: 240ms, 240ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(6) { transition-delay: 300ms, 300ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(7) { transition-delay: 360ms, 360ms, 0s, 0s, 0s; }
.js .reveal.is-in :is(.grid, .steps, .faq, .servers, .stations, .tokens) > :nth-child(n+8) { transition-delay: 400ms, 400ms, 0s, 0s, 0s; }

/* ─── Переходы между страницами ────────────────────────────── */
/* Браузеры без поддержки просто открывают страницу, как раньше. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 400ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 400ms var(--ease); }
  .js .reveal :is(.grid, .steps, .faq, .servers, .stations, .tokens) > * { translate: none; }
  .js .nav__links li { transform: none; }
  .card, .step, .station { transform: none; }
  .btn:active { transform: none; }
  .btn:hover .icon--go { transform: none; }
  .skip { transition: none; }
}

/* ─── Ai-helper.space: тёмная тема ─────────────────────────────
   «Тёплый сумрак» с 29.10.2026 (выбор владельца): тёплые тёмные фоны вместо чёрных из списка навыка,
   текст #e7e1da, акцент #e2a77c вместо лаймового. Контраст проверен скриптом сборки. */

:root {
  color-scheme: dark;
  --bg: #1d1a18;
  --surface: #252220;
  --surface-2: #2b2725;
  --surface-3: #332e2b;
  --card: #252220;
  --card-hover: #2b2725;
  --chip: #332e2b;
  --line: #37322f;
  --line-strong: #423c38;
  --glass: rgba(37, 34, 32, 0.72);
  --panel: rgba(29, 26, 24, 0.94);

  --fg: #e7e1da;
  --muted: #b0a69c;
  --link: #e2a77c;
  --accent: #e2a77c;
  --accent-ink: #e2a77c;
  --ring: #e2a77c;

  --btn-bg: #e2a77c;
  --btn-bg-hover: #e9ba97;
  --btn-fg: #1d1a18;

  --hero-from: #e7e1da;
  --hero-to: #e2a77c;
}

/* ─── Холст с мозгом ───────────────────────────────────────── */

.hero__field { position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; }
.hero__field canvas, .hero__field img { width: 100%; height: 100%; }
#brain { --fg: var(--fg); --accent: var(--accent); }
@media (max-width: 959px) { .hero__field { max-width: 360px; margin: 0 auto; aspect-ratio: 1 / 1; } }

/* ─── Станции и шаги (внутренние страницы) ─────────────────── */

.stations { display: grid; gap: var(--s-200); list-style: none; }
@media (min-width: 640px) { .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.station {
  position: relative;
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--card);
}
.block--band .station, .plasma .station { background: var(--bg); }
.station__head { display: flex; align-items: baseline; gap: var(--s-100); margin-bottom: var(--s-100); }
.station__no { color: var(--accent-ink); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700;
               font-variant-numeric: tabular-nums; }
.station__name { font-size: 1.25rem; line-height: 1.75rem; }
.station__name a { color: var(--fg); text-decoration: none; }
.station__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.station { transition: border-color var(--t-tint) var(--ease), transform var(--t-move) var(--ease); }
.station:has(a):hover { border-color: var(--line-strong); --ty: -2px; }
.station__body { color: var(--muted); }

/* Полоса — плоская, без градиента */
.plasma { padding: var(--s-800) 0; background: var(--surface); }
.plasma__lede { max-width: var(--measure); margin-bottom: var(--s-400);
                font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }

/* ─── Каталог моделей ──────────────────────────────────────── */

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75);
          margin: 0 0 var(--s-200); padding: 0; border: 0; }
.filter__legend { float: left; margin-right: var(--s-100); padding: 0;
                  color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.chip {
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: transparent; color: var(--fg);
  font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-tint) var(--ease), color var(--t-tint) var(--ease),
              border-color var(--t-tint) var(--ease), transform var(--t-move) var(--ease);
}
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.98); }
.chip[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

#filter-count { margin-bottom: var(--s-400); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

.group__title { margin: var(--s-600) 0 var(--s-300); font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }

.models { display: grid; gap: var(--s-200); list-style: none; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model {
  display: flex; flex-direction: column; gap: var(--s-200);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--card);
}
.block--band .model, .plasma .model { background: var(--bg); }
.model__name { font-size: 1.25rem; line-height: 1.75rem; }
.model__meta { display: grid; grid-template-columns: auto 1fr; gap: var(--s-50) var(--s-200); margin: var(--s-100) 0 0;
               color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.model__meta dt { color: var(--muted); }
.model__meta dd { margin: 0; color: var(--fg); font-weight: 600; }
.model__text { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: auto; list-style: none; }
.links a {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--fg); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  transition: background-color var(--t-tint) var(--ease), border-color var(--t-tint) var(--ease);
}
.links a:hover { background: var(--surface-2); border-color: var(--accent); }
.links a[target="_blank"]::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--ext) center / contain no-repeat; mask: var(--ext) center / contain no-repeat;
}
:root { --ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E"); }

.empty { margin-top: var(--s-300); padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl);
         background: var(--card); color: var(--muted); }

/* ─── Словарь ──────────────────────────────────────────────── */

.terms { display: grid; gap: var(--s-200); margin: 0 0 var(--s-700); }
@media (min-width: 900px) { .terms { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 0; } }
.terms dt { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.terms dd { margin: 0 0 var(--s-300); color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; max-width: var(--measure); }
@media (min-width: 900px) {
  .terms dt, .terms dd { padding: var(--s-300) 0; }
  .terms dt { padding-right: var(--s-400); }
  .terms dd { margin: 0; }
  .terms dt:not(:first-of-type), .terms dt:not(:first-of-type) + dd { border-top: 1px solid var(--line); }
}
@media (max-width: 639px) { .terms dd { font-size: 1rem; line-height: 1.5rem; } }

/* ─── «Следующая станция» ──────────────────────────────────── */

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200);
  margin: var(--s-400) 0 var(--s-700);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--card);
}
.next--band { margin: 0; background: var(--bg); }
.next__label { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.next__link { color: var(--fg); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; text-decoration: none; }
.next__link:hover { color: var(--accent); }
.next__go { margin-top: var(--s-300); }
.prose .next__link, .station__body .next__link { font-size: inherit; line-height: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--link); }

/* ─── Наглядный токен (словарь) ────────────────────────────── */

.tokens-demo {
  margin: 0;
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--card);
}
.tokens { display: flex; flex-wrap: wrap; gap: var(--s-50); list-style: none; }
.tokens li {
  padding: var(--s-50) var(--s-75);
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem; line-height: 1.5rem;
  white-space: pre;
}
.tokens li:nth-child(even) { background: var(--accent); color: var(--btn-fg); }
.tokens-demo__note { margin-top: var(--s-200); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.terms dd .tokens-demo { margin: var(--s-200) 0 0; }

/* ─── Подсказки терминов (каталог) ─────────────────────────── */

.term {
  display: inline; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: help;
  text-decoration: underline dotted; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: color var(--t-tint) var(--ease);
}
.term:hover { color: var(--fg); }

.pop {
  width: min(420px, calc(100vw - 32px));
  padding: var(--s-300);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  background: var(--surface-2); color: var(--fg);
  opacity: 0; transform: translateY(var(--s-200));
  transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease),
              overlay var(--t-move) allow-discrete, display var(--t-move) allow-discrete;
}
.pop:popover-open { opacity: 1; transform: none; }
@starting-style { .pop:popover-open { opacity: 0; transform: translateY(var(--s-200)); } }
.pop::backdrop { background: rgba(29, 26, 24, 0.7); }
.pop__title { font-size: 1.25rem; line-height: 1.75rem; }
.pop__text { margin-top: var(--s-100); color: var(--muted); }
.pop__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200);
             margin-top: var(--s-300); }
.pop__close { font-size: 0.875rem; line-height: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .pop { transform: none; } }

/* Браузер без всплывающих окон: определения не вываливаются в конец страницы, словарь остаётся по ссылке. */
@supports not selector(:popover-open) { .pop { display: none; } .term { cursor: text; text-decoration: none; } }

/* ─── Таблицы (страница «Какой нужен компьютер») ───────────── */

.table-wrap { max-width: 800px; margin: var(--s-300) 0; overflow-x: auto;
              border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.calc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc caption { padding: var(--s-200) var(--s-300) 0; text-align: left; color: var(--muted);
                font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.calc th, .calc td { padding: var(--s-100) var(--s-300); text-align: left; vertical-align: top; }
.calc thead th { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.calc tbody tr + tr > * { border-top: 1px solid var(--line); }
.calc tbody th { font-weight: 600; white-space: nowrap; }
.calc td { color: var(--fg); }
.calc--text td { color: var(--muted); }
@media (max-width: 639px) { .calc th, .calc td { padding: var(--s-75) var(--s-200); } }

/* ─── Код в тексте ─────────────────────────────────────────── */

.prose pre {
  margin: 0; padding: var(--s-200);
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface-2);
}
.prose pre code { padding: 0; border: 0; background: none; font-size: 0.875rem; line-height: 1.5rem; white-space: pre; }

/* ─── Переход по группам справочника ───────────────────────── */

.toolnav { display: flex; flex-wrap: wrap; gap: var(--s-75); margin: var(--s-600) 0 0; }
.toolnav a {
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  color: var(--fg); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  transition: background-color var(--t-tint) var(--ease), border-color var(--t-tint) var(--ease);
}
.toolnav a:hover { background: var(--surface-2); border-color: var(--accent); }

/* Секция сразу после полосы — отступ сверху, чтобы заголовок не прилипал к полосе */
.plasma + .wrap { padding-top: var(--s-700); }

/* ─── Шкала времени моделей (страница «Модели») ────────────── */
/* Дорожки — компании, точки — выпуски. Широкий экран — шкала, узкий — список по годам.
   Анимируются только transform и opacity; при reduced-motion движения нет. */

.tl__lede { max-width: var(--measure); margin-bottom: var(--s-300); color: var(--muted); }
.tl__legend { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin: 0 0 var(--s-200); list-style: none;
              color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.tl__legend li { display: flex; align-items: center; gap: var(--s-75); }
.tl__note { max-width: var(--measure); margin-top: var(--s-300); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.tl-pop .model__meta { margin-bottom: var(--s-100); }

.tl__dot--open    { --c: var(--accent); --fill: var(--accent); }
.tl__dot--closed  { --c: var(--fg);     --fill: var(--bg); }
.tl__dot--unknown { --c: var(--muted);  --fill: var(--bg); --bs: dashed; }
.tl__mark { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: var(--r-full);
            border: 2px var(--bs, solid) var(--c); background: var(--fill); }

/* Шкала */
.tl__chart { position: relative; margin-top: var(--s-300); padding-top: var(--s-400); overflow-x: clip; }
.tl__years, .tl__grid { position: absolute; left: 160px; right: 0; }
.tl__years { top: 0; height: var(--s-400); list-style: none; color: var(--muted); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.tl__years li { position: absolute; left: var(--x); padding-left: var(--s-75); }
.tl__grid { top: var(--s-400); bottom: 0; width: calc(100% - 160px); height: calc(100% - var(--s-400)); overflow: visible; }
.tl__grid line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.tl__lanes { list-style: none; }
.tl__lane { display: grid; grid-template-columns: 160px 1fr; align-items: center; border-top: 1px solid var(--line); }
.tl__lane:last-child { border-bottom: 1px solid var(--line); }
.tl__company { padding-right: var(--s-200); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.tl__track { position: relative; height: var(--s-600); }
.tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }

/* Точка — прозрачная кнопка 24 px, кружок и подпись — псевдоэлементы, чтобы увеличение не растягивало подпись. */
.tl__dot { position: absolute; left: var(--x); top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0;
           border: 0; border-radius: var(--r-full); background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.tl__dot::before { content: ""; position: absolute; inset: 4px; border-radius: var(--r-full);
                   border: 2px var(--bs, solid) var(--c); background: var(--fill);
                   transition: transform var(--t-move) var(--ease), opacity var(--t-tint) var(--ease); }
.tl__dot::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
                  padding: var(--s-25) var(--s-75); border-radius: var(--r-md); background: var(--surface-3); white-space: nowrap;
                  font-size: 0.75rem; line-height: 1rem; font-weight: 600; opacity: 0; pointer-events: none;
                  transition: opacity var(--t-tint) var(--ease); z-index: 1; }
.tl__dot:hover::before, .tl__dot:focus-visible::before { transform: scale(1.35); }
.tl__dot:hover::after, .tl__dot:focus-visible::after { opacity: 1; }
.tl__dot:disabled { cursor: default; }
.tl__dot:disabled::before { opacity: 0.15; transform: none; }
.tl__dot:disabled::after { opacity: 0; }

/* Точки выезжают по очереди дат, когда шкала входит в экран (шаг 50 мс). */
.js .tl__chart .tl__dot { opacity: 0; translate: calc(-1 * var(--s-300)) 0;
                          transition: opacity 500ms var(--ease), translate 500ms var(--ease);
                          transition-delay: calc(var(--i) * 50ms); }
.js .tl__chart.is-in .tl__dot { opacity: 1; translate: none; }

/* Список (узкий экран): вертикальная линия, годы — вехи */
.tl__list { position: relative; margin-top: var(--s-200); list-style: none; }
.tl__list::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.tl__year { position: relative; padding: var(--s-200) 0 var(--s-75) var(--s-400);
            color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; }
.tl__item { position: relative; display: grid; grid-template-columns: 24px 1fr; column-gap: var(--s-75); width: 100%;
            padding: var(--s-75) 0; border: 0; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.tl__item .tl__mark { grid-row: span 2; justify-self: center; margin-top: var(--s-50); }
.tl__name { font-weight: 600; transition: color var(--t-tint) var(--ease); }
.tl__item:hover .tl__name { color: var(--link); }
.tl__sub { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.js .tl__list [data-tl-item] { opacity: 0; translate: 0 var(--s-200);
                               transition: opacity 500ms var(--ease), translate 500ms var(--ease);
                               transition-delay: calc(min(var(--i), 10) * 40ms); }
.js .tl__list.is-in [data-tl-item] { opacity: 1; translate: none; }

@media (max-width: 959px) { .tl__chart { display: none; } }
@media (min-width: 960px) { .tl__list { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .tl .reveal, .js .tl__chart .tl__dot, .js .tl__list [data-tl-item] { opacity: 1; transform: none; translate: none; transition: none; }
  .tl__dot::before, .tl__dot::after, .tl__name { transition: none; }
  .tl__dot:hover::before, .tl__dot:focus-visible::before { transform: none; }
}

/* ─── Путь вопроса («Основы») ──────────────────────────────── */
/* Шаги загораются по очереди, линия между ними дорисовывается (scaleY). Без чисел: путь, а не замер. */

.route__lede { max-width: var(--measure); margin-bottom: var(--s-300); color: var(--muted); }
.routes { display: grid; gap: var(--s-200); }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.route { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.route__title { margin-bottom: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.route__steps { list-style: none; }
.route__steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s-200);
                   padding-bottom: var(--s-300); }
.route__steps li:last-child { padding-bottom: 0; }
.route__steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px;
                                            border-radius: var(--r-full); background: var(--line-strong); transform-origin: top; }
.route__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
               background: var(--surface-3); color: var(--fg); }
.route__icon .icon { width: 20px; height: 20px; }
.route--local .route__icon { background: var(--accent); color: var(--btn-fg); }
.route__body { padding-top: var(--s-75); color: var(--muted); }
.route__body strong { color: var(--fg); }
.route__note { margin-top: var(--s-300); padding-top: var(--s-200); border-top: 1px solid var(--line);
               color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

.js .route .route__steps li { opacity: 0; translate: 0 var(--s-200);
                              transition: opacity 500ms var(--ease), translate 500ms var(--ease);
                              transition-delay: calc(var(--i) * 220ms + 150ms); }
.js .route .route__steps li::before { transform: scaleY(0); transition: transform 400ms var(--ease);
                                      transition-delay: calc(var(--i) * 220ms + 400ms); }
.js .route.is-in .route__steps li { opacity: 1; translate: none; }
.js .route.is-in .route__steps li::before { transform: none; }

/* ─── Окно внимания (термин «Контекстное окно») ────────────── */

.ctx { margin: var(--s-200) 0 0; padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.ctx__win { margin-bottom: var(--s-200); }
.ctx__tokens { display: flex; flex-wrap: wrap; gap: var(--s-50); list-style: none; }
.ctx__tok {
  padding: var(--s-50) var(--s-75);
  border: 2px solid transparent; border-radius: var(--r-md);
  background: var(--accent); color: var(--btn-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; line-height: 1.5rem;
  white-space: pre; cursor: pointer;
  transition: opacity var(--t-tint) var(--ease), transform var(--t-move) var(--ease);
}
.ctx__tok:disabled { cursor: default; }
.ctx__tok:not(:disabled):active { transform: scale(0.96); }
.ctx__tok--next, .ctx__tok[data-mode="now"] { border-color: var(--accent); background: transparent; color: var(--fg); }
.ctx__tok[data-mode="seen"] { border-color: transparent; background: var(--accent); color: var(--btn-fg); }
.ctx__tok[data-mode="out"] { border-color: var(--line-strong); border-style: dashed; background: transparent; color: var(--muted); }
.ctx__tok[data-mode="later"] { border-color: transparent; background: var(--surface-3); color: var(--fg); opacity: 0.4; }
.ctx__legend { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin-top: var(--s-200); list-style: none;
               color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.ctx__legend li { display: flex; align-items: center; gap: var(--s-75); }
.ctx__key { width: 12px; height: 12px; border-radius: var(--r-md); border: 2px solid transparent; }
.ctx__key--seen { background: var(--accent); }
.ctx__key--now { border-color: var(--accent); }
.ctx__key--out { border-color: var(--muted); border-style: dashed; }
.ctx__key--later { background: var(--surface-3); opacity: 0.6; }
.ctx__say { margin-top: var(--s-200); color: var(--fg); font-size: 1rem; line-height: 1.5rem; font-weight: 600; }

/* ─── Калькулятор размера модели («Какой нужен компьютер») ─── */

.calc-live { max-width: 800px; margin: var(--s-300) 0; padding: var(--s-300);
             border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--card); }
.calc-live__title { margin-bottom: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.calc-live__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-100); }
.calc-live__num { width: 96px; padding: var(--s-50) var(--s-100); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
                  background: var(--surface-2); color: var(--fg); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-live__range { width: 100%; margin: var(--s-100) 0 var(--s-300); accent-color: var(--accent); }
.calc-live__result { margin-top: var(--s-100); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700;
                     letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-live__formula { margin-left: var(--s-100); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0; }
.calc-live__bars { display: grid; gap: var(--s-75); margin-top: var(--s-200); }
.calc-live__bar { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: var(--s-100);
                  color: var(--muted); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.calc-live__bar[hidden] { display: none; }
.calc-live__bar i { display: block; height: 12px; border-radius: var(--r-full); background: var(--accent);
                    transform-origin: left; transition: transform var(--t-move) var(--ease); }
.calc-live__bar--vram i { background: var(--fg); }
[data-fit="no"] .calc-live__bar:not(.calc-live__bar--vram) i { background: var(--muted); }
.calc-live__verdict { margin-top: var(--s-200); max-width: var(--measure); color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .js .route .route__steps li, .js .route .route__steps li::before { opacity: 1; translate: none; transform: none; transition: none; }
  .ctx__tok, .calc-live__bar i { transition: none; }
}
