/*
  Alow App — лендинг. Облик снят с design-system.md: графит без оттенка, рамки 1px, плоско,
  пиксель как подпись (растр Байера, рябь, бабочка, поляна со светлячками). Тема одна: тёмная.
  Крем #f6f1e7 живёт только вне окна приложения: знак, заголовок первого экрана, главная кнопка.
*/

/* ---------------------------------------------------------------- шрифты */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../preview/fonts/inter-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;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../preview/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../preview/fonts/plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../preview/fonts/plex-mono-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../preview/fonts/plex-mono-latin-500.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: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../preview/fonts/plex-mono-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------------------------------------------------------------- токены */

:root {
  color-scheme: dark;

  --page: #111111;
  --surface: #141414;
  --chrome: #171717;
  --s1: #1c1c1c;
  --s2: #1f1f1f;
  --s3: #252525;
  --selected: #222222;

  --line-subtle: #232323;
  --line-page: #262626;
  --line: #303030;
  --line-strong: #444444;

  --text: #efefef;
  --text-2: #a6a6a6;
  --text-3: #8c8c8c;
  --text-off: #5c5c5c;

  --accent: #d4d4d4;
  --on-light: #141414;
  --cream: #f6f1e7;

  --success: #86d1b0;
  --success-soft: #162622;
  --warning: #cbb099;
  --danger: #d67a92;
  --danger-soft: #351922;
  --special: #dcc48f;
  --calm: #93d5e0;
  --info: #a3c8ec;
  --ultra: #b4a2f6;

  --firefly: #f1e9b4;
  --firefly-dim: #b3ab76;

  --font-ui: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-base: 150ms;
  --t-med: 180ms;
  --t-slow: 220ms;
  --t-status: 400ms;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --nav-h: 56px;

  /* рябь под указателем: эти значения читает attachRipple из набора превью */
  --dither-color: #b8b8b8;
  --dither-alpha: 0.19;
  --dither-strength: 1;
  --pixel-glow-on-inverse: #161616;
  --pixel-glow-on-inverse-alpha: 0.14;

  --window-shadow: 0 28px 80px rgb(0 0 0 / 0.53), 0 2px 8px rgb(0 0 0 / 0.3);
  --grain: none;
}

/* ---------------------------------------------------------------- основа */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  background: var(--page);
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/26px var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection {
  background: #4a4a4a;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
svg {
  display: block;
}
code,
.mono {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 7px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 100;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: var(--cream);
  color: var(--on-light);
  font-weight: 500;
  font-size: 14px;
}
.skip:focus-visible {
  top: 12px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo {
  fill: currentColor;
  shape-rendering: crispEdges;
}

/* Рябь: холст набора превью ложится под содержимое носителя. */
[data-glow] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    transform var(--t-fast) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-primary {
  background: var(--cream);
  color: var(--on-light);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--cream) 88%, var(--surface));
}
.btn-primary:active {
  background: color-mix(in srgb, var(--cream) 78%, var(--surface));
}
.btn-secondary {
  background: var(--s1);
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--s3);
  border-color: var(--line-strong);
}
.btn-quiet {
  padding: 0 12px;
  color: var(--text-2);
}
.btn-quiet:hover {
  color: var(--text);
  background: rgb(37 37 37 / 0.72);
}
.btn .ic {
  margin-inline: -2px;
}

/* Ссылка в тексте: подчёркивание проявляется слева направо. */
.link {
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease);
  padding-bottom: 2px;
}
.link:hover {
  background-size: 100% 1px;
}

/* ---------------------------------------------------------------- шапка */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-slow) var(--ease),
    border-color var(--t-slow) var(--ease);
}
.nav[data-stuck] {
  background: var(--page);
  border-bottom-color: var(--line-page);
}
.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 40px;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-slow) var(--ease),
    visibility 0s linear var(--t-slow);
}
.nav[data-stuck] .nav-brand {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.nav-brand .logo {
  height: 21px;
  width: 68px;
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a,
.nav-ghost {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-2);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.nav-links a:hover,
.nav-ghost:hover {
  color: var(--text);
  background: var(--s1);
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-actions .btn {
  margin-left: 8px;
}
.nav-menu {
  display: none;
  justify-self: start;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border-radius: 7px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-menu .ic {
  width: 20px;
  height: 20px;
}
.sheet {
  display: none;
}

/* ---------------------------------------------------------------- пиксельная сцена */

.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #10110f;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.scene canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  image-rendering: pixelated;
  transform-origin: 0 0;
}

/* ---------------------------------------------------------------- первый экран */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(24px, 4.5vh, 44px));
  padding-bottom: clamp(88px, 11vw, 152px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-mark {
  position: relative;
  width: 204px;
  height: 63px;
  color: var(--cream);
}
.hero-mark .logo {
  width: 100%;
  height: 100%;
}
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -0.046em;
  color: var(--cream);
}
.hero h1 span {
  display: block;
}
.hero h1 .dim {
  color: color-mix(in srgb, var(--cream) 58%, #1a1c16);
}
.hero-sub {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 27px;
  color: #b9b6ad;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-meta {
  margin-top: 16px;
  font-size: 13px;
  line-height: 20px;
  color: #8f8c84;
}
.hero-window {
  position: relative;
  width: 100%;
  margin-top: clamp(36px, 5.5vh, 56px);
  border-radius: 12px;
  box-shadow: var(--window-shadow);
  text-align: left;
}
.hero-window alow-preview {
  display: block;
  --alow-preview-height: clamp(560px, 76vh, 760px);
  --alow-preview-height-phone: 600px;
}
.hero-hint {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #8f8c84;
}
.hero-hint .ic {
  width: 12px;
  height: 12px;
}

/*
  Появление первого экрана. Знак собирается из светлячков (site.js), заголовок проявляется через
  растр Байера шагами, окно поднимается на 12px. Без скрипта всё видно сразу.
*/
.js .hero[data-enter] .hero-mark .logo {
  opacity: 0;
}
.js .hero[data-enter="done"] .hero-mark .logo,
.js .hero[data-enter="still"] .hero-mark .logo {
  opacity: 1;
}
.js .hero[data-enter="wait"] :is(h1, .hero-sub, .hero-actions, .hero-meta, .hero-window) {
  opacity: 0;
}
.js .hero[data-enter="run"] h1,
.js .hero[data-enter="done"] h1 {
  animation: dither-in 420ms steps(1, end) 260ms both;
}
.js .hero[data-enter="run"] :is(.hero-sub, .hero-actions, .hero-meta),
.js .hero[data-enter="done"] :is(.hero-sub, .hero-actions, .hero-meta) {
  animation: rise var(--t-status) var(--ease-out) both;
}
.js .hero[data-enter] .hero-sub {
  animation-delay: 520ms;
}
.js .hero[data-enter] .hero-actions {
  animation-delay: 600ms;
}
.js .hero[data-enter] .hero-meta {
  animation-delay: 680ms;
}
.js .hero[data-enter="run"] .hero-window,
.js .hero[data-enter="done"] .hero-window {
  animation: window-in 400ms var(--ease-pop) 420ms both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Маски с порогами Байера готовит site.js: --dm-1 … --dm-6, клетка 2px. */
@keyframes dither-in {
  0% {
    opacity: 0;
    -webkit-mask-image: var(--dm-1);
    mask-image: var(--dm-1);
  }
  4% {
    opacity: 1;
    -webkit-mask-image: var(--dm-1);
    mask-image: var(--dm-1);
  }
  20% {
    opacity: 1;
    -webkit-mask-image: var(--dm-2);
    mask-image: var(--dm-2);
  }
  36% {
    opacity: 1;
    -webkit-mask-image: var(--dm-3);
    mask-image: var(--dm-3);
  }
  52% {
    opacity: 1;
    -webkit-mask-image: var(--dm-4);
    mask-image: var(--dm-4);
  }
  68% {
    opacity: 1;
    -webkit-mask-image: var(--dm-5);
    mask-image: var(--dm-5);
  }
  84% {
    opacity: 1;
    -webkit-mask-image: var(--dm-6);
    mask-image: var(--dm-6);
  }
  100% {
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.dither {
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}
.dither-swap {
  animation: dither-in 360ms steps(1, end) both;
}

/* ---------------------------------------------------------------- разделы */

.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.lead {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- возможности: главы */

.chapters {
  display: grid;
  gap: 16px;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  border: 1px solid var(--line-page);
  border-radius: 20px;
  background: var(--chrome) var(--grain);
  overflow: hidden;
}
.chapter:nth-child(even) {
  grid-template-columns: minmax(0, 9fr) minmax(0, 5fr);
}
.chapter:nth-child(even) .chapter-text {
  order: 2;
}
.chapter-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(24px, 3.2vw, 44px);
}
.chapter-text h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.chapter-text p {
  color: var(--text-2);
  text-wrap: pretty;
}
.try {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.try .ic {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.chapter-visual {
  position: relative;
  isolation: isolate;
  margin: 8px;
  min-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(16px, 3vw, 40px);
}
.chapter-visual alow-preview {
  display: block;
  border-radius: 12px;
  box-shadow: var(--window-shadow);
  --alow-preview-height: 520px;
  --alow-preview-height-phone: 520px;
}
/* Место под окно, пока оно не смонтировано: высота та же, скачка нет. */
.chapter-visual alow-preview:not(:defined),
.how-stage alow-preview:not(:defined) {
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- возможности: малые блоки */

.minis {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.mini {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-page);
  border-radius: 20px;
  background: var(--chrome) var(--grain);
  overflow: hidden;
}
.mini:nth-child(4n + 2),
.mini:nth-child(4n + 3) {
  grid-column: span 5;
}
.mini-visual {
  position: relative;
  margin: 8px 8px 0;
  /* 288: список из пяти строк в «Несколько задач сразу» встаёт с полем сверху и снизу. */
  height: 288px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: var(--surface);
  overflow: hidden;
}
.mini-visual > .frag {
  position: absolute;
  inset: 0;
  display: block;
}
.mini-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px clamp(20px, 2.4vw, 32px) clamp(24px, 2.6vw, 32px);
}
.mini-text h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.026em;
}
.mini-text p {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- возможности: «Ещё» */

.more {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(24px, 4vw, 64px);
}
.more h3 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.038em;
}
.more-list {
  columns: 2;
  column-gap: clamp(24px, 3vw, 48px);
}
.more-list li {
  break-inside: avoid;
  padding: 14px 0;
  border-top: 1px solid var(--line-subtle);
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.more-list b {
  font-weight: 500;
  color: var(--text);
}
.critters {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 6px;
}
.critter {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-subtle);
  background: var(--surface);
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
/* Спрайт 16×16 увеличен ровно втрое: клетки остаются целыми. */
.critter svg {
  width: 48px;
  height: 48px;
}
.critter:hover,
.critter:focus-visible {
  border-color: var(--line-strong);
  background: var(--s1);
}
.critter-name {
  grid-column: 1 / -1;
  margin-top: 6px;
  min-height: 40px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- призыв в середине */

.band {
  border-block: 1px solid var(--line-page);
  background: var(--chrome) var(--grain);
}
.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-block: clamp(40px, 5vw, 64px);
}
.band h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}
.band p {
  margin-top: 8px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- как это работает */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.how-head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  z-index: 2;
  padding-bottom: 24px;
  background: var(--page);
}
/* Закрывает зазор между шапкой и заголовком, иначе в нём виден уезжающий шаг. */
.how-head::before {
  content: "";
  position: absolute;
  inset: auto 0 100% 0;
  height: 32px;
  background: var(--page);
  pointer-events: none;
}
/* Шаги уходят под заголовок не обрезом, а мягко. */
.how-head::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto 0;
  height: 40px;
  background: linear-gradient(var(--page), rgb(17 17 17 / 0));
  pointer-events: none;
}
/* Шкала шагов плана из приложения: готовые отрезки акцентом, текущий шахматкой, ждущие #252525. */
.meter {
  margin-top: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  height: 8px;
}
.meter i {
  background: var(--s3);
}
.meter i.on {
  background: var(--accent);
}
.meter i.cur {
  background: conic-gradient(var(--accent) 25%, var(--s3) 0 50%, var(--accent) 0 75%, var(--s3) 0) 0 0 / 8px 8px;
}
.steps {
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  min-height: 42vh;
  padding-block: 20px;
  border-top: 1px solid var(--line-subtle);
  color: var(--text-3);
  transition: color var(--t-status) var(--ease);
}
.step::before {
  content: counter(step);
  font: 400 13px/26px var(--font-code);
  color: var(--text-3);
}
.step h3 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 650;
  letter-spacing: -0.026em;
  color: var(--text-3);
  transition: color var(--t-status) var(--ease);
}
.step p {
  grid-column: 2;
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
}
.step[data-on] {
  color: var(--text-2);
}
.step[data-on] h3 {
  color: var(--text);
}
.how-stage {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-page);
}
.how-stage alow-preview {
  display: block;
  --alow-preview-height: min(620px, calc(100vh - var(--nav-h) - 80px));
  --alow-preview-height-phone: 560px;
}

/* ---------------------------------------------------------------- приватность */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.6fr);
  align-items: stretch;
  border: 1px solid var(--line-page);
  border-radius: 20px;
  background: var(--chrome) var(--grain);
  overflow: hidden;
}
.flow-side {
  padding: clamp(20px, 2.6vw, 32px);
}
.flow-cap {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.flow-title {
  margin-top: 2px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.flow-items {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--s2);
  font-size: 13px;
  color: var(--text);
}
.chip .ic {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}
.flow-wire {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-inline: 1px solid var(--line-page);
  background: var(--surface);
  padding: 24px 0;
}
.wire {
  position: relative;
  height: 20px;
}
.wire::before {
  content: "";
  position: absolute;
  inset: 9px 0 auto 0;
  height: 2px;
  background: var(--s3);
}
.wire span {
  position: absolute;
  left: 50%;
  top: -18px;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
}
/* Клетки 2px бегут по проводу шагами: уходит только то, что названо над проводом. */
.wire i {
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow:
    -8px 0 0 -1px rgb(212 212 212 / 0.55),
    -16px 0 0 -2px rgb(212 212 212 / 0.3);
  animation: wire 2.8s steps(48, end) infinite;
  animation-play-state: paused;
  opacity: 0;
}
.wire:nth-child(2) i {
  animation-delay: 1.4s;
}
.flow[data-live] .wire i {
  animation-play-state: running;
}
@keyframes wire {
  0% {
    left: 0;
    opacity: 1;
  }
  96% {
    left: calc(100% - 6px);
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
.flow-model {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.facts {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.fact {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line-subtle);
}
.fact h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.fact p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- тарифы */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-page);
  border-radius: 20px;
  background: var(--chrome) var(--grain);
  overflow: hidden;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
}
.plan + .plan {
  border-left: 1px solid var(--line-page);
}
.plan h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.plan-price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
}
.plan-price b {
  font-size: 32px;
  line-height: 36px;
  font-weight: 680;
  letter-spacing: -0.046em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
/* Знак валюты: в наборе шрифтов страницы его нет, поэтому он тише и чуть меньше числа. */
.plan-cur {
  margin-left: -4px;
  font-style: normal;
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: var(--text-2);
}
.plan-cur:empty {
  display: none;
}
/* Пунктир из дизайн-системы: «не задано». Цена подставляется при выкладке. */
.plan-price b:empty {
  width: 96px;
  height: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  align-self: center;
}
.plan-for {
  margin-top: 12px;
  min-height: 72px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.limit {
  margin-top: 20px;
}
.limit-cap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.limit-cap b {
  font: 500 13px/20px var(--font-code);
  color: var(--text);
}
.limit .meter {
  margin-top: 8px;
}
.plan ul {
  margin: 24px 0 28px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}
.plan li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}
.plan li .ic {
  margin-top: 3px;
  color: var(--text-3);
}
.plan .btn {
  margin-top: auto;
}
.plans-note {
  margin-top: 20px;
  max-width: 72ch;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- вопросы */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: start;
}
.faq-grid h2 {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.faq {
  border-bottom: 1px solid var(--line-subtle);
  interpolate-size: allow-keywords;
}
.faq details {
  border-top: 1px solid var(--line-subtle);
}
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 12px;
  margin-inline: -12px;
  border-radius: 7px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.011em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .ic {
  color: var(--text-3);
  transition: rotate var(--t-base) var(--ease);
}
.faq details[open] summary .ic {
  rotate: 45deg;
}
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size var(--t-slow) var(--ease),
    content-visibility var(--t-slow) allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq-a {
  padding: 0 0 24px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- финал */

.final {
  position: relative;
  isolation: isolate;
  padding-block: clamp(96px, 12vw, 168px) clamp(72px, 9vw, 120px);
}
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.final h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -0.046em;
  color: var(--cream);
}
.final .lead {
  color: #b9b6ad;
}
.final-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.final-actions .link {
  font-size: 14px;
  color: #cfcbc1;
}
/* Пропуск Alow: бабочка аккаунта на тёмной плитке. */
.pass {
  justify-self: end;
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--chrome) var(--grain);
  box-shadow: var(--window-shadow);
  overflow: hidden;
}
.pass-tile {
  position: relative;
  height: 208px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pass-moth {
  position: relative;
  width: 144px;
  height: 126px;
}
.pass-moth svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pass-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.pass-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.pass-row b {
  font: 500 13px/20px var(--font-code);
  color: var(--text);
}
.pass-text {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
}
.pass .btn {
  width: 100%;
}

/* ---------------------------------------------------------------- подвал */

.footer {
  border-top: 1px solid var(--line-page);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: 14px;
  line-height: 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr));
  gap: 32px 24px;
}
.footer-brand {
  color: var(--cream);
}
.footer-brand .logo {
  width: 136px;
  height: 42px;
}
.footer h3 {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-3);
}
.footer ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.footer li a {
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease);
}
.footer li a:hover {
  color: var(--text);
}
.footer-end {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.lang {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--s1);
}
.lang button {
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text-2);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.lang button:hover {
  color: var(--text);
}
.lang button[aria-pressed="true"] {
  background: var(--s3);
  color: var(--text);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.03);
}

/* Полоса загрузки на телефоне. */
.bar {
  display: none;
}

/* ---------------------------------------------------------------- планшет */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .nav {
    grid-template-columns: auto 1fr auto;
  }
  .nav-menu {
    display: inline-flex;
  }
  .nav-brand {
    justify-self: start;
  }
  .sheet {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px var(--gutter) 32px;
    background: var(--page);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--t-med) var(--ease),
      visibility 0s linear var(--t-med);
  }
  .sheet[data-open] {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .sheet a {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.026em;
  }
  .sheet .btn {
    margin-top: 24px;
    min-height: 48px;
    border-bottom: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .chapter,
  .chapter:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter:nth-child(even) .chapter-text {
    order: 0;
  }
  .chapter-visual {
    min-height: 0;
    margin: 0 8px 8px;
  }
  .mini,
  .mini:nth-child(4n + 2),
  .mini:nth-child(4n + 3) {
    grid-column: span 6;
  }
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .how-head,
  .how-stage,
  .faq-grid h2 {
    position: static;
  }
  /* Шаги здесь лежат обычным списком: шкала и затухание под заголовком не нужны. */
  .how-head .meter,
  .how-head::before,
  .how-head::after {
    display: none;
  }
  .step {
    min-height: 0;
    padding-block: 20px 24px;
    color: var(--text-2);
  }
  .step h3 {
    color: var(--text);
  }
  .how-stage {
    margin-top: 16px;
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-wire {
    border-inline: 0;
    border-block: 1px solid var(--line-page);
    padding: 40px clamp(20px, 2.6vw, 32px) 24px;
  }
  .more,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- телефон */

@media (max-width: 720px) {
  .nav-ghost[data-hide-phone] {
    display: none;
  }
  .hero-mark {
    width: 136px;
    height: 42px;
  }
  .hero h1 {
    margin-top: 24px;
  }
  .hero-sub {
    font-size: 16px;
    line-height: 26px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
  .hero-hint {
    position: static;
    margin-bottom: 10px;
  }
  .hero-window {
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .hero-window alow-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--window-shadow);
  }
  .chapter-visual {
    padding: 12px;
  }
  .mini,
  .mini:nth-child(4n + 2),
  .mini:nth-child(4n + 3) {
    grid-column: 1 / -1;
  }
  .more-list {
    columns: 1;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line-page);
  }
  .plan-for {
    min-height: 0;
  }
  .band .btn,
  .final-actions .btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
  .final-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pass {
    justify-self: stretch;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer ul {
    gap: 0;
  }
  .faq summary {
    min-height: 56px;
    font-size: 16px;
  }
  body {
    padding-bottom: 64px;
  }
  .bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 58;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding: 0 var(--gutter);
    border-top: 1px solid var(--line-page);
    background: var(--page);
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
    translate: 0 100%;
    transition: translate var(--t-slow) var(--ease);
  }
  .bar[data-on] {
    translate: 0 0;
  }
  .bar b {
    display: block;
    font-weight: 500;
    color: var(--text);
  }
  .bar .btn {
    height: 44px;
  }
}

/* ---------------------------------------------------------------- отдельные страницы: закрытый тест и документы */

/* На этих страницах нет полосы загрузки, место под неё внизу не нужно. */
:root[data-page] body {
  padding-bottom: 0;
}
/* Значение из CONFIG ещё не вписано: пунктир, как у тарифа без цены. */
.unset {
  padding: 1px 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  color: var(--text-3);
}

/* Закрытый тест: лес во весь экран, знак и одно сообщение. Подвал в одну строку, без линии. */
:root[data-page="beta"] body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
:root[data-page="beta"] main {
  flex: 1;
  display: grid;
}
.hero.gate {
  display: grid;
  align-items: center;
  padding-block: calc(var(--nav-h) + 40px) clamp(88px, 14vh, 152px);
}
.gate h1 {
  margin-top: 32px;
  text-wrap: balance;
}
.gate .hero-sub {
  max-width: 52ch;
}
/* Здесь подпись лежит на лесу, а не на затемнённом верхе, как на главной: ей нужен цвет светлее. */
.gate .hero-meta {
  color: #b9b6ad;
}
.footer.slim {
  border-top: 0;
  padding-block: 0 24px;
}
.footer.slim .footer-end {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.footer-links a {
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease);
}
.footer-links a:hover {
  color: var(--text);
}

/* Документы: слева оглавление, справа текст. Номера разделов и пунктов стоят в поле слева от текста. */
html[lang="en"] [data-l="ru"],
html:not([lang="en"]) [data-l="en"] {
  display: none;
}
.doc-page {
  padding-block: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) clamp(72px, 9vw, 120px);
}
.doc-tabs {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--s1);
}
.doc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-2);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.doc-tabs a:hover {
  color: var(--text);
}
.doc-tabs a[aria-current="page"] {
  background: var(--s3);
  color: var(--text);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.03);
}
.doc-head {
  margin-top: 32px;
  padding-bottom: clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line-page);
}
.doc-head h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -0.046em;
  color: var(--cream);
  text-wrap: balance;
}
.doc-meta {
  margin-top: 16px;
  font: 400 13px/20px var(--font-code);
  color: var(--text-3);
}
.doc-head .lead {
  max-width: 64ch;
}
.doc-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 720px);
  gap: clamp(40px, 7vw, 104px);
  padding-top: clamp(32px, 4.5vw, 56px);
}
.doc-aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 64px);
  overflow-y: auto;
}
.doc-toc {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 20px;
}
.doc-toc a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 4px 0;
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease);
}
.doc-toc a span {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
  color: var(--text-off);
  transition: color var(--t-fast) var(--ease);
}
.doc-toc a:hover,
.doc-toc a[data-current] {
  color: var(--text);
}
.doc-toc a[data-current] span {
  color: var(--cream);
}
.doc-body {
  --doc-gutter: 56px;
  counter-reset: sec;
  color: var(--text-2);
}
.doc-sec {
  counter-increment: sec;
  counter-reset: item;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-sec + .doc-sec {
  margin-top: 56px;
}
.doc-sec h2 {
  position: relative;
  padding-left: var(--doc-gutter);
  font-size: 22px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.026em;
  color: var(--text);
}
.doc-sec h2::before {
  content: counter(sec);
  position: absolute;
  left: 0;
  top: 0;
  font: 400 13px/28px var(--font-code);
  letter-spacing: 0;
  color: var(--text-3);
}
.doc-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.doc-list > li {
  position: relative;
  padding-left: var(--doc-gutter);
  counter-increment: item;
  text-wrap: pretty;
}
.doc-list > li::before {
  content: counter(sec) "." counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font: 400 13px/26px var(--font-code);
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.doc-list b {
  font-weight: 500;
  color: var(--text);
}
.doc-list ul {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.doc-list ul li {
  position: relative;
  padding-left: 18px;
}
/* Маркер списка: клетка 4px, как пиксель в знаке. */
.doc-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  background: var(--text-3);
}
.doc-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.doc-body a:hover {
  text-decoration-color: currentColor;
}
@media (max-width: 1100px) {
  .doc-grid {
    grid-template-columns: minmax(0, 720px);
  }
  .doc-aside {
    display: none;
  }
}
@media (max-width: 720px) {
  .doc-tabs {
    display: flex;
  }
  .doc-tabs a {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 10px;
  }
  .doc-body {
    --doc-gutter: 44px;
  }
  .doc-sec + .doc-sec {
    margin-top: 44px;
  }
  .doc-sec h2 {
    font-size: 20px;
    line-height: 26px;
  }
  .doc-sec h2::before {
    line-height: 26px;
  }
  .footer.slim {
    padding-bottom: 16px;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------- меньше движения */

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
    scroll-behavior: auto;
  }
  :root:not([data-motion="full"]) *,
  :root:not([data-motion="full"]) *::before,
  :root:not([data-motion="full"]) *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  :root:not([data-motion="full"]) .wire i {
    animation: none;
    opacity: 1;
    left: 50%;
  }
  :root:not([data-motion="full"]) .btn:active {
    transform: none;
  }
}
/* ?motion=reduce в адресе: то же самое без настройки системы. */
:root[data-motion="reduce"] {
  scroll-behavior: auto;
}
:root[data-motion="reduce"] *,
:root[data-motion="reduce"] *::before,
:root[data-motion="reduce"] *::after {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}
:root[data-motion="reduce"] .wire i {
  animation: none;
  opacity: 1;
  left: 50%;
}
