/* Zerno — сайт модели. Концепция «Росток»: design/site/README.md, токены: design/site/tokens.json */

/* ---------- Шрифты (OFL, файлы и лицензии в assets/fonts) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.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-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  color-scheme: dark;

  --soil: #0c1116;
  --soil-deep: #0a0e12;
  --band: #0e151a;
  --layer: #111a20;
  --layer-2: #121c22;
  --code-bg: #0f171c;
  --code-foot: #0d1418;
  --furrow: #1f2b33;
  --furrow-soft: #1c272e;
  --furrow-mid: #26343c;
  --furrow-strong: #2b3a42;
  --grain: #12b5a6;
  --grain-deep: #0e8f84;
  --sprout: #3fe0cb;
  --sprout-light: #8ff2e2;
  --teal-tint: #0f1c1e;
  --teal-tint-2: #0f1e1f;
  --teal-line: #23423f;
  --teal-icon-bg: #12302d;
  --arrow: #2f6e66;
  --cream: #f5f1e8;
  --mist-strong: #b5c1c5;
  --mist-code: #c9d3d6;
  --mist: #9aa8ae;
  --dust: #7f8e95;
  --bar-muted: #3d5058;
  --track: #18232a;
  --ear: #f0b455;
  --ear-tint: #2b2414;
  --on-grain: #04201c;

  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(80px, 10vw, 140px);
  --header-h: 72px;

  --r-chip: 999px;
  --r-btn: 14px;
  --r-tile: 14px;
  --r-card: 18px;
  --r-panel: 20px;
  --r-cta: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--soil);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soil);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ol,
ul,
figure,
pre {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--sprout);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sprout-light);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sprout);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(63, 224, 203, 0.32);
  color: var(--cream);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--grain);
  color: var(--on-grain);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-grain);
}

/* ---------- Общие элементы ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-gap);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sprout);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  color: var(--mist-strong);
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--sprout);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.3s ease;
}

.btn svg {
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.btn--primary {
  background: var(--grain);
  color: var(--on-grain);
}

.btn--primary:hover {
  background: #1cc8b8;
  color: var(--on-grain);
  box-shadow: 0 8px 28px -8px rgba(18, 181, 166, 0.6);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--secondary {
  border-color: var(--furrow-strong);
  color: var(--cream);
  padding: 0 24px;
}

.btn--secondary:hover {
  border-color: #3e535d;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
}

.btn--ghost-teal {
  border-color: #2e5a55;
  color: var(--cream);
  padding: 0 24px;
}

.btn--ghost-teal:hover {
  border-color: var(--grain);
  color: var(--cream);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
}

.btn:active {
  transform: translateY(1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.link-arrow svg {
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-chip);
  background: #0f1c1f;
  font-size: 13px;
  color: var(--mist-strong);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sprout);
  box-shadow: 0 0 0 4px rgba(63, 224, 203, 0.18);
}

.status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  font-size: 13px;
  font-weight: 600;
}

.status--candidate {
  background: var(--ear-tint);
  color: var(--ear);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.card {
  border: 1px solid var(--furrow);
  border-radius: var(--r-panel);
  background: var(--layer);
}

.card--teal {
  border-color: var(--teal-line);
  background: var(--teal-tint);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.card-meta {
  font-size: 13px;
  color: var(--dust);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--furrow-soft);
  background: rgba(12, 17, 22, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 17, 22, 0.86);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  min-height: 44px;
}

.brand:hover {
  color: var(--cream);
}

.brand__mark {
  width: 28px;
  height: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mist-strong);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--cream);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--grain);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* На десктопе эту роль играет кнопка «Инвесторам» в шапке. */
.nav a.nav__mobile-only {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--furrow-mid);
  border-radius: var(--r-chip);
  font-size: 13px;
  font-weight: 600;
}

.lang-switch button {
  min-height: 34px;
  min-width: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--cream);
}

.lang-switch button[aria-pressed="true"] {
  background: #1c2930;
  color: var(--cream);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--furrow-mid);
  border-radius: 12px;
  background: var(--layer-2);
  color: var(--cream);
  cursor: pointer;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  isolation: auto;
}

.neurons {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero__text {
  position: relative;
  z-index: 3;
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--mist-strong);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dust);
}

.hero__visual {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 181, 166, 0.3) 0%, rgba(18, 181, 166, 0) 65%);
  animation: glow-breathe 6s ease-in-out infinite;
}

.hero__mark {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 70%, transparent 100%);
}

.fact-chip {
  position: absolute;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--teal-line);
  background: rgba(15, 24, 29, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.35;
}

.fact-chip__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cream);
}

.fact-chip__label {
  color: var(--mist);
}

.fact-chip--a {
  left: 0;
  top: 14%;
}

.fact-chip--b {
  right: 0;
  top: 46%;
}

.fact-chip--c {
  left: 6%;
  bottom: 8%;
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Полоса фактов ---------- */
.stats {
  border-top: 1px solid var(--furrow-soft);
  border-bottom: 1px solid var(--furrow-soft);
  background: var(--band);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 24px;
  border-left: 1px solid var(--furrow-soft);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat__label {
  font-size: 14px;
  color: var(--mist);
}

/* ---------- 01 Что делает ---------- */
/* Заголовок на всю ширину, под ним три типа в ряд и панель API: края колонок совпадают. */
.model {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.qtypes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.qtype {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--furrow);
  border-radius: 16px;
  background: var(--layer);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.qtype:hover {
  border-color: var(--teal-line);
  background: #121d22;
}

.qtype__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--teal-icon-bg);
  color: var(--sprout);
}

.qtype__title {
  font-weight: 600;
}

.qtype__kind {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--dust);
}

.qtype__desc {
  font-size: 15px;
  color: var(--mist);
}

.api {
  min-width: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.api-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.api-panel__code {
  min-width: 0;
  border-right: 1px solid var(--furrow-soft);
}

.api-panel {
  border: 1px solid #22313a;
  border-radius: var(--r-panel);
  background: var(--code-bg);
  overflow: hidden;
}

.api-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--furrow-soft);
  background: var(--layer-2);
}

.api-panel__endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist-code);
}

.method {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--teal-icon-bg);
  color: var(--sprout);
  font-weight: 600;
}

.api-panel__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tabs {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.tab,
.copy-btn {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover,
.copy-btn:hover {
  color: var(--cream);
}

.tab[aria-selected="true"] {
  background: #1c2930;
  color: var(--cream);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  border: 1px solid var(--furrow-mid);
}

.copy-btn.is-done {
  color: var(--sprout);
  border-color: var(--teal-line);
}

.code {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  tab-size: 2;
}

.code:focus-visible {
  outline-offset: -2px;
}

.code .k {
  color: var(--mist-code);
}

.code .s {
  color: var(--sprout);
}

.code .n {
  color: var(--ear);
}

.code .c {
  color: var(--dust);
}

.api-answer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: var(--code-foot);
}

.api-answer__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--furrow-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dust);
}

.api-answer .note {
  font-size: 12px;
}

.api-answer__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.api-answer__title {
  color: var(--mist-code);
  font-weight: 600;
}

.api-answer__meta {
  font-family: var(--font-mono);
  color: var(--dust);
}

.probs {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
}

.probs--wide {
  grid-template-columns: 128px minmax(0, 1fr) 48px;
  font-family: var(--font-body);
}

.probs--wide .probs__value {
  font-family: var(--font-mono);
}

.probs__value {
  text-align: right;
}

.probs .is-top {
  color: var(--cream);
}

.note {
  font-size: 13px;
  color: var(--dust);
}

/* Бары (общие для API и результатов) */
.bar {
  height: 14px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.bar--thin {
  height: 10px;
  background: #1a262d;
}

.bar--hair {
  height: 6px;
}

.bar__fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 99px;
  background: var(--bar-muted);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out);
}

.bar__fill--accent {
  background: var(--grain);
}

.js [data-animate]:not(.is-in) .bar__fill {
  transform: scaleX(0);
}

/* ---------- 02 Чем отличается ---------- */
.diff {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.compare {
  border: 1px solid var(--furrow);
  border-radius: var(--r-panel);
  background: var(--layer);
  overflow: hidden;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.compare__table th,
.compare__table td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--furrow);
}

.compare__table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 0;
  background: var(--layer-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--mist);
}

.compare__table thead th.compare__zerno {
  background: #10282a;
  color: var(--sprout);
}

.compare__table tbody th {
  width: 22%;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist-strong);
}

.compare__table td {
  width: 39%;
  color: var(--mist);
}

.compare__table td:last-child {
  background: rgba(18, 181, 166, 0.06);
  color: var(--cream);
}

.jepa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
  padding: clamp(24px, 4vw, 40px);
}

.jepa__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--mist-strong);
}

.jepa__text .link-arrow {
  align-self: flex-start;
}

.jepa__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.jepa__diagram {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--teal-line);
  border-radius: 16px;
  background: var(--teal-tint-2);
}

.lane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lane__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dust);
}

/* Узлы растягиваются на всю ширину дорожки, поэтому ŝ и s стоят друг под другом. */
.lane__flow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--furrow-mid);
  border-radius: 10px;
  background: var(--layer-2);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--cream);
}

.node--teal {
  border-color: var(--teal-line);
  background: var(--teal-icon-bg);
}

.node--out {
  flex: 0 0 48px;
  border-color: transparent;
  background: var(--grain);
  color: var(--on-grain);
  font-family: var(--font-mono);
  font-weight: 700;
}

.lane__arrow {
  flex: none;
  color: var(--arrow);
}

.jepa__loss {
  padding-top: 14px;
  border-top: 1px dashed var(--teal-line);
  font-size: 14px;
  color: var(--mist-strong);
}

.theory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.theory__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--furrow);
  border-radius: var(--r-card);
  background: var(--layer);
}

.theory__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.theory__text {
  font-size: 15px;
  color: var(--mist);
}

/* ---------- 07 Инвесторам и фондам ---------- */
.cta__box.invest {
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}

.invest__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 940px;
}

.invest .cta__title {
  font-size: clamp(30px, 3.6vw, 46px);
  text-wrap: balance;
}

.invest__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.invest__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-card);
  background: rgba(12, 17, 22, 0.55);
}

.invest__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.invest__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--mist);
}

.invest__list li {
  position: relative;
  padding-left: 18px;
}

.invest__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grain);
}

.invest__text {
  font-size: 15px;
  color: var(--mist);
}

.invest__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invest__actions .btn {
  padding: 0 16px;
}

.invest__actions .link-arrow {
  align-self: flex-start;
}

/* ---------- Поддержать проект ---------- */
.donate {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.donate__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.donate__lead {
  font-size: 17px;
  color: var(--mist-strong);
}

.donate__warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ear-tint);
  color: var(--ear);
  font-size: 14px;
}

.donate__warn svg {
  flex: none;
  margin-top: 1px;
}

.donate__note {
  font-size: 13px;
  color: var(--dust);
}

.donate__wallet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-card);
  background: var(--teal-tint);
}

.donate__tabs {
  align-self: flex-start;
  padding: 3px;
  border: 1px solid var(--teal-line);
  border-radius: 10px;
  background: var(--code-bg);
}

.donate__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate__row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.donate__qr {
  flex: none;
  width: 176px;
  height: 176px;
  border-radius: 10px;
}

.donate__addr-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate__net {
  display: flex;
  gap: 6px;
}

.chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--teal-icon-bg);
  color: var(--sprout);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.donate__label {
  font-size: 13px;
  color: var(--dust);
}

.donate__addr {
  padding: 10px 12px;
  border: 1px solid var(--furrow);
  border-radius: 10px;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream);
  word-break: break-all;
  user-select: all;
}

.donate__copy {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.donate__copy.is-done {
  border-color: var(--teal-line);
  color: var(--sprout);
}

/* ---------- 03 Как работает ---------- */
.how {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.step {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--furrow);
  border-radius: var(--r-card);
  background: var(--layer);
}

.step--accent {
  border-color: var(--teal-line);
  background: var(--teal-tint-2);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dust);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.step__desc {
  flex: 1;
  font-size: 15px;
  color: var(--mist);
}

.step__spec {
  padding-top: 12px;
  border-top: 1px solid var(--furrow);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sprout);
}

.step--accent .step__spec {
  border-top-color: var(--teal-line);
}

.flow-arrow {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--arrow);
}

.arch {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--furrow);
  border-radius: var(--r-panel);
  background: #0e161b;
}

.arch__id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dust);
}

.arch__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.arch__col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch__box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--furrow-mid);
  background: var(--layer-2);
}

.arch__box--teal {
  border-color: var(--teal-line);
  background: var(--teal-tint-2);
}

.arch__box strong {
  color: var(--cream);
  font-weight: 600;
}

.arch__box span {
  color: var(--dust);
}

.arch__scorer {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch__scorer code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.arch__out {
  flex: 0 1 150px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--grain);
  color: var(--on-grain);
  font-weight: 700;
  text-align: center;
}

/* ---------- 03 Результаты ---------- */
.results {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.results__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.result-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
}

.result-card--wide {
  flex: 1.4 1 520px;
}

.result-card--narrow {
  flex: 1 1 380px;
  gap: 22px;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--mist-strong);
}

.metric__value {
  font-family: var(--font-mono);
}

.metric--best .metric__head {
  color: var(--cream);
  font-weight: 600;
}

.metric--best .metric__value {
  color: var(--sprout);
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--furrow);
}

.card--teal .kpis {
  border-top-color: var(--teal-line);
}

.kpi {
  flex: 1 1 180px;
}

.kpi__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi__label {
  font-size: 14px;
  color: var(--mist);
}

.latency {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
}

.latency__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--furrow-soft);
  border-radius: var(--r-tile);
  background: #0e161b;
}

.lat__label {
  font-size: 13px;
  color: var(--mist);
}

.lat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
}

.lat__unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
}

.lat__p95 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dust);
}

.lat .bar__fill {
  background: var(--grain);
}

.footnote {
  max-width: 820px;
  font-size: 14px;
  color: var(--dust);
}

/* ---------- 04 Принципы ---------- */
.principles {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--furrow);
  border-radius: var(--r-card);
  background: var(--layer);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.principle:hover {
  border-color: var(--teal-line);
  transform: translateY(-2px);
}

.principle__icon {
  color: var(--sprout);
}

.principle__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.principle__desc {
  font-size: 15px;
  color: var(--mist);
}

/* ---------- 05 Журнал ---------- */
.journal {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.journal__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: #23323a;
}

.tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 32px;
}

.tl-item__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--grain);
  background: var(--soil);
}

.tl-item--now .tl-item__dot {
  border: 0;
  background: var(--sprout);
  box-shadow: 0 0 0 5px rgba(63, 224, 203, 0.18);
  animation: now-pulse 2.6s ease-in-out infinite;
}

.tl-item--next .tl-item__dot {
  border: 2px dashed #5a6a71;
}

.tl-item__round {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dust);
}

.tl-item--now .tl-item__round {
  color: var(--sprout);
}

.tl-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.tl-item--next .tl-item__title {
  color: var(--mist-strong);
}

.tl-item__desc {
  font-size: 15px;
  color: var(--mist);
}

@keyframes now-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(63, 224, 203, 0.18);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(63, 224, 203, 0.06);
  }
}

.rounds {
  border: 1px solid var(--furrow);
  border-radius: var(--r-panel);
  background: var(--layer);
}

.rounds summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 24px;
  font-weight: 600;
  color: var(--sprout);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-panel);
}

.rounds summary::-webkit-details-marker {
  display: none;
}

.rounds summary:hover {
  color: var(--sprout-light);
}

.rounds__chev {
  transition: transform 0.3s var(--ease-out);
}

.rounds[open] .rounds__chev {
  transform: rotate(180deg);
}

.rounds__list {
  display: flex;
  flex-direction: column;
  padding: 0 24px 12px;
}

.round {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--furrow);
}

.round__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dust);
  padding-top: 2px;
}

.round__title {
  font-weight: 600;
}

.round__desc {
  font-size: 15px;
  color: var(--mist);
}

.round__flag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--r-chip);
  background: var(--ear-tint);
  color: var(--ear);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

/* ---------- Призыв ---------- */
.cta {
  padding-block: var(--section-gap);
}

.cta__box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-cta);
  background: var(--teal-tint);
}

.cta__glow {
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 181, 166, 0.22) 0%, rgba(18, 181, 166, 0) 65%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta__lead {
  max-width: 640px;
  font-size: 18px;
  color: var(--mist-strong);
}

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--furrow-soft);
  background: var(--soil-deep);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__about {
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__tagline {
  font-size: 15px;
  color: var(--mist);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  font-size: 15px;
}

.footer-nav__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav__title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dust);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--mist-code);
}

.footer-nav a:hover {
  color: var(--cream);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--furrow-soft);
  font-size: 13px;
  color: var(--dust);
}

.site-footer__author {
  color: var(--mist-code);
}

.site-footer__author:hover {
  color: var(--cream);
}

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--furrow-soft);
  }

  .principles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latency__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 32px;
  }

  .timeline::before {
    display: none;
  }

  .flow-arrow {
    display: none;
  }

  .nav {
    gap: 22px;
  }

  .jepa,
  .invest__grid,
  .donate {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Меню сворачивается раньше остальной вёрстки: шесть пунктов, переключатель и кнопка
   перестают помещаться в одну строку около 950 px. Порог совпадает с MENU_QUERY в main.js. */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--furrow-soft);
    /* Непрозрачный фон: внутри шапки с backdrop-filter полупрозрачный пропускает первый экран. */
    background: var(--soil);
    box-shadow: 0 28px 40px -24px rgba(0, 0, 0, 0.7);
    font-size: 17px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0s;
  }

  .nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--furrow-soft);
  }

  .nav a::after {
    display: none;
  }

  .nav a.nav__mobile-only {
    display: inline-flex;
    color: var(--sprout);
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .qtypes,
  .api-panel__body,
  .theory {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-panel__code {
    border-right: 0;
  }

  .api-answer {
    border-top: 1px solid var(--furrow-soft);
  }

  .hero__visual {
    min-height: 0;
  }

  .hero__mark {
    width: min(86%, 400px);
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-left: 28px;
    border-left: 1px solid #23323a;
    margin-left: 7px;
  }

  .tl-item {
    padding-top: 0;
  }

  .tl-item__dot {
    left: -36px;
    top: 2px;
  }
}

@media (max-width: 560px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .stat {
    padding: 22px 12px;
  }

  .stat__value {
    font-size: 32px;
  }

  .stat__label {
    font-size: 13px;
  }

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

  .fact-chip {
    padding: 8px 12px;
    font-size: 12px;
  }

  .fact-chip--a {
    top: 6%;
  }

  .fact-chip--c {
    display: none;
  }

  .probs {
    grid-template-columns: 80px minmax(0, 1fr) 40px;
    gap: 10px;
    font-size: 12px;
  }

  .probs--wide {
    grid-template-columns: 112px minmax(0, 1fr) 40px;
  }

  .round {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rounds summary,
  .rounds__list {
    padding-inline: 18px;
  }

  .api-panel__bar {
    padding-left: 12px;
  }

  .lane__flow {
    flex-direction: column;
    align-items: stretch;
  }

  .lane__arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .node--out {
    flex-basis: auto;
  }

  .jepa__diagram {
    padding: 18px;
  }

  .invest__card {
    padding: 20px;
  }

  .donate__row {
    flex-direction: column;
    align-items: stretch;
  }

  .donate__qr {
    align-self: center;
    width: 200px;
    height: 200px;
  }

  .donate__copy {
    align-self: stretch;
  }
}

/* Таблица сравнения на узком экране: каждая строка — карточка с подписями колонок. */
@media (max-width: 640px) {
  .compare__table,
  .compare__table tbody,
  .compare__table tr,
  .compare__table th,
  .compare__table td {
    display: block;
    width: auto;
  }

  .compare__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare__table tr {
    padding: 16px 18px;
    border-top: 1px solid var(--furrow);
  }

  .compare__table tbody tr:first-child {
    border-top: 0;
  }

  .compare__table tbody th,
  .compare__table td {
    width: auto;
    padding: 0;
    border-top: 0;
  }

  .compare__table td {
    padding-top: 10px;
  }

  .compare__table td:last-child {
    background: none;
  }

  .compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: var(--dust);
  }

  .compare__table td:last-child::before {
    color: var(--sprout);
  }
}

/* ---------- Без анимаций по запросу системы ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js [data-animate]:not(.is-in) .bar__fill {
    transform: none;
  }
}
