/* Стоп-кран: сайт. Один файл стилей, без сборки.
   Скругления: кнопки и поля 12px, плашки 8px, панели 20px, сцены 24px.
   Цвета состояний те же, что в окне программы (src/Ui.cs, src/Logo.cs). */

/* ---------- шрифты ---------- */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Onest";
  src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* Запасной шрифт той же ширины, что Onest: пока тот грузится, строки почти не перестраиваются. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Segoe UI");
  font-weight: 100 500;
  size-adjust: 104.9%;
  ascent-override: 92.5%;
  descent-override: 29.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Onest Fallback";
  src: local("Segoe UI Bold");
  font-weight: 501 900;
  size-adjust: 100.5%;
  ascent-override: 96.5%;
  descent-override: 30.3%;
  line-gap-override: 0%;
}

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

  --bg: #17181b;
  --bg-2: #1b1c20;
  --surface: #212327;
  --surface-2: #2a2c31;
  --rule: #34373d;
  --rule-soft: #292b30;
  --ink: #e9ebee;
  --ink-2: #bcc2cb;
  --muted: #9198a3;

  --go: #48bb6e;
  --go-hi: #5fcb82;
  --go-ink: #0a1a10;
  --go-text: #5fcb82;
  --go-tint: #1b3024;
  --stop: #f2665c;
  --stop-tint: #3a1f1f;
  --wait: #e0a846;
  --wait-tint: #3a3120;
  --frost: #8cc4ff;
  --frost-tint: #1c2b3f;
  --rest: #8a8f98;

  --disc-go: #2e9e4f;
  --disc-stop: #d93025;
  --disc-wait: #e0a100;
  --disc-rest: #8a8f98;

  --shadow: 0 32px 80px -44px rgb(0 0 0 / 0.75);

  --sans: "Onest", "Onest Fallback", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 24px;
  --nav-h: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f8fa;
  --bg-2: #eceff3;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --rule: #d9dde3;
  --rule-soft: #d8dce3;
  --ink: #1f2328;
  --ink-2: #3d444d;
  --muted: #5f6670;

  --go: #1f7a3a;
  --go-hi: #1a6c33;
  --go-ink: #ffffff;
  --go-text: #1f7a3a;
  --go-tint: #e6f5eb;
  --stop: #c62a20;
  --stop-tint: #fdecea;
  --wait: #8f5b00;
  --wait-tint: #fdf4dc;
  --frost: #1f5fd0;
  --frost-tint: #e6eefc;
  --rest: #737983;

  --shadow: 0 28px 70px -46px rgb(31 35 40 / 0.4);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.no-motion) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

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

::selection { background: color-mix(in srgb, var(--go) 35%, transparent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: block; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1160px);
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 6.5vw, 88px); }
.section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.head h2 {
  font: 620 clamp(1.75rem, 1.1rem + 2.5vw, 2.75rem)/1.1 var(--sans);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.head p {
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 41rem;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }

.tlink {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .tlink:hover { text-decoration-color: currentColor; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.6; }
.btn[aria-disabled="true"]:active { transform: none; }

.btn--go { background: var(--go); color: var(--go-ink); }
.btn--line { background: transparent; border-color: color-mix(in srgb, var(--muted) 75%, transparent); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--go:hover { background: var(--go-hi); }
  .btn--line:hover { background: var(--surface-2); border-color: var(--muted); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
}

/* ---------- рычаг (логотип) ---------- */
.lever { display: block; flex: none; }
.lever__disc { fill: var(--disc-go); transition: fill 320ms ease; }
.lever__arm { transform: rotate(32deg); transition: transform 460ms var(--ease-in-out); }
.lever__arm line { stroke: #fff; stroke-width: 11; stroke-linecap: round; }
.lever__arm circle, .lever__base { fill: #fff; }

.lever[data-pose="pulled"] .lever__disc { fill: var(--disc-stop); }
.lever[data-pose="pulled"] .lever__arm { transform: rotate(-38deg); }
.lever[data-pose="moving"] .lever__disc { fill: var(--disc-wait); }
.lever[data-pose="moving"] .lever__arm { transform: rotate(0deg); }
.lever[data-pose="rest"] .lever__disc { fill: var(--disc-rest); }
.lever[data-pose="rest"] .lever__arm { transform: rotate(0deg); }

/* ---------- шапка ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-stuck { border-bottom-color: var(--rule-soft); }
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav__in {
  min-height: var(--nav-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .lever { width: 28px; height: 28px; }
.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); background: var(--surface-2); }
}
.nav__side { display: flex; align-items: center; gap: 8px; }
.theme-toggle .icon, .motion-toggle .icon { width: 20px; height: 20px; }
.motion-toggle .i-play, .no-motion .motion-toggle .i-pause { display: none; }
.no-motion .motion-toggle .i-play { display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__side { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav .btn--sm .btn__long { display: none; }
  .nav__side { gap: 4px; }
}
@media (max-width: 440px) {
  .nav .btn--sm { width: 44px; padding: 0; }
  .nav .btn--sm > span { display: none; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px);
}
.hero__sky {
  position: absolute;
  inset: calc(-1 * var(--nav-h)) 0 0 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}
.hero__sky i {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero__sky .sky-go { background: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--go) 13%, transparent), transparent 70%); }
.hero__sky .sky-stop { background: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--stop) 14%, transparent), transparent 70%); }
.hero__sky .sky-wait { background: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--wait) 12%, transparent), transparent 70%); }
.hero[data-sky="go"] .sky-go,
.hero[data-sky="stop"] .sky-stop,
.hero[data-sky="wait"] .sky-wait { opacity: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero__text { display: grid; gap: 24px; justify-items: start; }
.hero h1 {
  font: 660 clamp(2.375rem, 4.15vw, 3.25rem)/1.05 var(--sans);
  letter-spacing: -0.032em;
}
.hero h1 span { display: block; }
.hero h1 .calm { color: var(--go-text); }
.hero__sub {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.55;
  max-width: 31rem;
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .hero__cta { display: grid; width: 100%; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(1.75rem, 8.1vw, 3.25rem); }
  .hero__sub { max-width: 36rem; }
}

/* ---------- схема обрыва ---------- */
.sim {
  --row: 62px;
  container: sim / inline-size;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sim__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}
.sim__bar::before, .sim__bar::after, .sim__bar .tint-wait {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.sim__bar::before { background: var(--go-tint); }
.sim__bar::after { background: var(--stop-tint); }
.sim__bar .tint-wait { background: var(--wait-tint); }
.sim[data-vpn="up"] .sim__bar::before { opacity: 1; }
.sim[data-vpn="down"] .sim__bar::after { opacity: 1; }
.sim[data-vpn="checking"] .sim__bar .tint-wait { opacity: 1; }
.sim__bar > * { position: relative; z-index: 1; }
.sim__bar .tint-wait { position: absolute; z-index: 0; }
.sim__bar .lever { width: 38px; height: 38px; }
.sim__status { display: grid; gap: 1px; min-width: 0; }
.sim__state { font-weight: 640; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.01em; }
.sim__detail { color: var(--ink-2); font-size: 0.875rem; line-height: 1.35; }
.sim__timer {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--ink);
  font: 500 0.8125rem/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.sim[data-clock="on"] .sim__timer { opacity: 1; transform: none; }

.sim__scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(var(--row), auto));
  gap: 10px 0;
  padding: 16px;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  background: var(--bg-2);
}

/* программа */
.tile {
  grid-column: 1;
  grid-row: var(--n);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, color-mix(in srgb, var(--frost) 16%, transparent) 46%, transparent 54%),
    var(--frost-tint);
  opacity: 0;
  transition: opacity 320ms ease;
  transition-delay: calc((var(--n) - 1) * 70ms);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--frost);
  opacity: 0;
  transition: opacity 320ms ease;
  transition-delay: calc((var(--n) - 1) * 70ms);
}
.tile > * { position: relative; z-index: 1; }
.tile__icon { width: 22px; height: 22px; color: var(--muted); flex: none; transition: color 320ms ease; transition-delay: calc((var(--n) - 1) * 70ms); }
.tile__text { display: grid; min-width: 0; line-height: 1.25; }
.tile__name { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__states { display: grid; font-size: 0.78rem; }
.tile__states > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 100ms ease;
}
.tile__states .s-run { color: var(--muted); }
.tile__states .s-ice { color: var(--frost); }
.tile__states .s-on { color: var(--ink-2); }
.tile__states .icon { width: 13px; height: 13px; }
.tile__procs { margin-left: auto; display: grid; grid-auto-flow: column; gap: 4px; }
.tile__procs i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--go);
  transition: background-color 320ms ease;
  transition-delay: calc((var(--n) - 1) * 70ms);
}

.sim[data-frozen="no"] .tile:not(.tile--plain) .s-run,
.sim[data-frozen="yes"] .tile:not(.tile--plain) .s-ice,
.sim[data-vpn="up"] .tile--plain .s-run,
.sim:not([data-vpn="up"]) .tile--plain .s-on { opacity: 1; transition: opacity 180ms ease 100ms; }
.sim[data-frozen="yes"] .tile:not(.tile--plain)::before,
.sim[data-frozen="yes"] .tile:not(.tile--plain)::after { opacity: 1; }
.sim[data-frozen="yes"] .tile:not(.tile--plain) .tile__icon { color: var(--frost); }
.sim[data-frozen="yes"] .tile__procs i { background: var(--frost); }

/* то, чего нет в списке: Стоп-кран его не трогает */
.tile--plain { border-style: dashed; background: transparent; }

/* провод от программы к интернету */
.lane {
  grid-column: 2;
  grid-row: var(--n);
  align-self: center;
  position: relative;
  height: 2px;
  background: var(--rule);
  overflow-x: clip;
  transition: background-color 320ms ease;
}
.lane__dots {
  position: absolute;
  inset: 0;
  color: var(--go);
  transition: color 240ms ease;
  transition-delay: calc((var(--n) - 1) * 70ms);
}
.lane__dots span {
  position: absolute;
  inset: 0;
  animation: lane-x 1.9s linear infinite both;
  animation-delay: calc(var(--i) * -0.633s + var(--n) * -0.21s);
}
.lane__dots span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: currentColor;
}
@keyframes lane-x {
  0% { transform: translateX(0); opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes lane-y {
  0% { transform: translateY(0); opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
/* При заморозке запросы встают на месте и синеют, чуть позже гаснут. После возврата VPN скрипт выпускает их из программы заново. */
.sim[data-frozen="yes"] .lane:not(.lane--plain) .lane__dots { color: var(--frost); }
.sim[data-frozen="yes"] .lane:not(.lane--plain) .lane__dots span { animation-play-state: paused; }
.sim[data-dots="gone"] .lane:not(.lane--plain) .lane__dots { opacity: 0; transition: opacity 380ms ease, color 240ms ease; }
.lane--plain .lane__dots { color: var(--muted); }

/* труба VPN: две половины, которые расходятся при обрыве */
.casing {
  grid-column: 2;
  grid-row: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  margin: -6px 19%;
  --shift-x: 9px;
  --shift-y: 0px;
  pointer-events: none;
}
.casing__half {
  flex: 1;
  border: 1.5px solid color-mix(in srgb, var(--go) 60%, transparent);
  background: color-mix(in srgb, var(--go) 9%, transparent);
  transition: transform 420ms var(--ease-in-out), border-color 320ms ease, background-color 320ms ease;
}
.casing__half:first-child { border-right: 0; border-radius: 12px 0 0 12px; --dir: -1; }
.casing__half:last-child { border-left: 0; border-radius: 0 12px 12px 0; --dir: 1; }
.casing__tag {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: grid;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--bg-2);
  font: 600 0.75rem/1.3 var(--sans);
  white-space: nowrap;
}
.casing__tag span { grid-area: 1 / 1; text-align: center; opacity: 0; transition: opacity 100ms ease; }
.casing__tag .t-up { color: var(--go-text); }
.casing__tag .t-down { color: var(--stop); }
.casing__tag .t-check { color: var(--wait); }
.sim[data-vpn="up"] .casing__tag .t-up,
.sim[data-vpn="down"] .casing__tag .t-down,
.sim[data-vpn="checking"] .casing__tag .t-check { opacity: 1; transition: opacity 180ms ease 100ms; }

.sim[data-vpn="down"] .casing__half {
  transform: translate(calc(var(--dir) * var(--shift-x)), calc(var(--dir) * var(--shift-y)));
  border-color: color-mix(in srgb, var(--stop) 70%, transparent);
  border-style: dashed;
  background: color-mix(in srgb, var(--stop) 8%, transparent);
}
.sim[data-vpn="checking"] .casing__half {
  border-color: color-mix(in srgb, var(--wait) 70%, transparent);
  background: color-mix(in srgb, var(--wait) 8%, transparent);
}

/* собственная проверка Стоп-крана: одна жёлтая точка через трубу */
.probe {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  position: relative;
  z-index: 3;
  height: 2px;
  opacity: 0;
  overflow-x: clip;
  pointer-events: none;
}
.probe span { position: absolute; inset: 0; }
.probe span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--wait);
}
.sim[data-vpn="checking"] .probe { opacity: 1; }
.sim[data-vpn="checking"] .probe span { animation: lane-x 0.62s linear 2; }

/* интернет */
.net {
  grid-column: 3;
  grid-row: 1 / -1;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.net__icon { width: 30px; height: 30px; color: var(--muted); }
.net__title { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.net__says { display: grid; font-size: 0.8125rem; line-height: 1.35; }
.net__says span { grid-area: 1 / 1; opacity: 0; transition: opacity 100ms ease; }
.net__says .n-vpn { color: var(--go-text); }
.net__says .n-none { color: var(--muted); }
.sim[data-vpn="up"] .net__says .n-vpn,
.sim:not([data-vpn="up"]) .net__says .n-none { opacity: 1; transition: opacity 180ms ease 100ms; }

/* управление */
.sim__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.sim__toggle { min-width: 172px; }
.sim__toggle .icon { width: 18px; height: 18px; }
.sim[data-vpn="up"] .sim__toggle { background: var(--surface-2); border-color: var(--rule); color: var(--ink); }
.sim:not([data-vpn="up"]) .sim__toggle { background: var(--go); color: var(--go-ink); }
@media (hover: hover) and (pointer: fine) {
  .sim[data-vpn="up"] .sim__toggle:hover { border-color: var(--stop); color: var(--stop); }
  .sim:not([data-vpn="up"]) .sim__toggle:hover { background: var(--go-hi); }
}

.sim__note {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-wrap: pretty;
}

@container sim (max-width: 520px) {
  .tile { gap: 8px; padding: 0 10px; }
  .tile__icon { display: none; }
  .net { padding: 10px 8px; }
}

/* схема на телефоне: программы в ряд, провода идут вниз */
@media (max-width: 640px) {
  .sim { padding: 10px; border-radius: 20px; }
  .sim__bar { min-height: 96px; padding: 10px 12px; gap: 10px; }
  .sim__timer-long { display: none; }
  .sim__scene {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 92px auto;
    gap: 0 8px;
    padding: 10px;
  }
  .tile {
    grid-row: 1;
    grid-column: var(--n);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 10px 9px;
  }
  .tile__icon { display: none; }
  .tile__procs { margin-left: 0; order: -1; }
  .tile__name { font-size: 0.875rem; }
  .tile--plain .tile__name { white-space: normal; line-height: 1.15; }
  .tile__states { font-size: 0.72rem; }
  .tile__states .icon { display: none; }
  .lane {
    grid-row: 2;
    grid-column: var(--n);
    justify-self: center;
    align-self: stretch;
    width: 2px;
    height: auto;
    overflow-x: visible;
    overflow-y: clip;
  }
  .lane__dots span { animation-name: lane-y; }
  .lane__dots span::after { left: 50%; top: 0; }
  .casing {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-direction: column;
    margin: 20px -2px;
    --shift-x: 0px;
    --shift-y: 8px;
  }
  .casing__half:first-child { border: 1.5px solid color-mix(in srgb, var(--go) 60%, transparent); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .casing__half:last-child { border: 1.5px solid color-mix(in srgb, var(--go) 60%, transparent); border-top: 0; border-radius: 0 0 12px 12px; }
  .casing__tag { left: 12px; transform: translate(0, -50%); }
  .probe {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    align-self: stretch;
    width: 2px;
    height: auto;
    overflow-x: visible;
    overflow-y: clip;
  }
  .probe span::after { left: 50%; top: 0; }
  .sim[data-vpn="checking"] .probe span { animation-name: lane-y; }
  .net {
    grid-row: 3;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 12px;
    text-align: left;
  }
  .net__icon { grid-row: 1 / 3; width: 26px; height: 26px; }
  .sim__toggle { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lane__dots span, .sim[data-vpn="checking"] .probe span { animation: none; }
  .lane__dots span { opacity: 1; transform: translateX(calc(18% + var(--i) * 30%)); }
  .casing__half { transition: border-color 320ms ease, background-color 320ms ease; }
  .lever__arm { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .lane__dots span { transform: translateY(calc(18% + var(--i) * 30%)); }
}

/* ====================================================================
   Разделы ниже первого экрана
   ==================================================================== */

/* ---------- три нуля ---------- */
.facts { padding-block: 0 clamp(40px, 6vw, 72px); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 40px);
  border-block: 1px solid var(--rule-soft);
}
.fact { display: grid; gap: 8px; align-content: start; }
.fact dt {
  font: 640 clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem)/1.05 var(--sans);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact dd { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 860px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .fact dt { font-size: 1.5rem; }
}

/* ---------- зачем: два случая ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.case {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  background: var(--bg-2);
}
.case h3 { font: 620 1.3125rem/1.25 var(--sans); letter-spacing: -0.015em; margin-top: 6px; }
.case p { color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 760px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
}
.why__after {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 44rem;
  font: 560 clamp(1.1875rem, 1rem + 0.8vw, 1.5rem)/1.4 var(--sans);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.why__after em { font-style: normal; color: var(--go-text); }

/* маленькая схема: программа, провод, сайт */
.mini {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  min-height: 112px;
  padding: 0 4px 30px;
}
.mini__node {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.mini__lane { position: relative; height: 2px; background: var(--rule); overflow-x: clip; }
.mini__lane i { position: absolute; inset: 0; }
.mini__lane i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--stop);
}
.mini__vpn {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 50%;
  display: flex;
  height: 34px;
  margin-top: -17px;
}
.mini__vpn b { flex: 1; border: 1.5px dashed color-mix(in srgb, var(--stop) 70%, transparent); background: color-mix(in srgb, var(--stop) 8%, transparent); }
.mini__vpn b:first-child { border-right: 0; border-radius: 10px 0 0 10px; transform: translateX(-6px); }
.mini__vpn b:last-child { border-left: 0; border-radius: 0 10px 10px 0; transform: translateX(6px); }
.mini--wall .mini__vpn b { border-style: solid; border-color: var(--rule); background: var(--surface-2); transform: none; }
.mini__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.mini__cap .bad { color: var(--stop); font-weight: 600; }
.mini--leak .mini__lane { background: color-mix(in srgb, var(--stop) 45%, var(--rule)); }
.mini--leak .mini__lane i { animation: lane-x 2.1s linear infinite; animation-delay: calc(var(--i) * -0.7s); }
.mini--wall .mini__lane i { animation: mini-stop 2.4s linear infinite; animation-delay: calc(var(--i) * -0.8s); }
.mini--wall .mini__lane i::after { background: var(--muted); }
@keyframes mini-stop {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  60% { transform: translateX(21%); opacity: 1; }
  80%, 100% { transform: translateX(21%); opacity: 0; }
}
.mini__tries { display: inline-flex; align-items: center; gap: 5px; }
.mini__tries i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule);
  animation: mini-try 4.8s linear infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes mini-try {
  0%, 12% { background: var(--rule); }
  14%, 78% { background: var(--stop); }
  82%, 100% { background: var(--rule); }
}

/* ---------- как работает: шаги ---------- */
.steps { display: grid; gap: clamp(40px, 6vw, 72px); counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.step__text { display: grid; gap: 12px; padding-left: 60px; position: relative; }
.step__text::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  font: 600 1rem/1 var(--mono);
  color: var(--ink);
}
.step h3 { font: 620 clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem)/1.2 var(--sans); letter-spacing: -0.018em; text-wrap: balance; }
.step p { color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 860px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step__text { padding-left: 52px; }
}

/* сцена: всё внутри меряется шириной самой сцены */
.scene {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  background: var(--bg-2);
  overflow: hidden;
}
.scene__in { position: absolute; inset: 0; font-size: clamp(13px, 3.3cqw, 16px); line-height: 1.25; }
@media (max-width: 520px) {
  .scene { aspect-ratio: 5 / 4; }
  .sc-foot { left: 4%; right: 4%; gap: 0.4em; }
}

/* Вне экрана и при остановленном движении всё стоит на своём кадре. Псевдоэлементы звёздочка не ловит, они названы отдельно. */
:is(.scene, .duel, .mini, .wire, .has-js .sim):not(.is-live) *,
:is(.scene, .duel, .mini, .wire, .has-js .sim):not(.is-live) *::before,
:is(.scene, .duel, .mini, .wire, .has-js .sim):not(.is-live) *::after,
.no-motion :is(.scene, .duel, .mini, .wire, .sim) *,
.no-motion :is(.scene, .duel, .mini, .wire, .sim) *::before,
.no-motion :is(.scene, .duel, .mini, .wire, .sim) *::after { animation-play-state: paused !important; }

.sc-node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.5em;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 0.9em;
}
.sc-node .lever { width: 13cqw; height: 13cqw; }
.sc-node .sc-globe {
  display: grid;
  place-items: center;
  width: 13cqw;
  height: 13cqw;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}
.sc-node .sc-globe .icon { width: 55%; height: 55%; }
.sc-lane { position: absolute; height: 2px; background: var(--rule); }
.sc-lane i { position: absolute; inset: 0; }
.sc-lane i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.2cqw;
  height: 2.2cqw;
  margin: -1.1cqw 0 0 -1.1cqw;
  border-radius: 50%;
  background: var(--wait);
}
.sc-pipe {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1.5px solid color-mix(in srgb, var(--go) 60%, transparent);
  border-radius: 2.4cqw;
  background: color-mix(in srgb, var(--go) 9%, transparent);
}
.sc-pipe span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%);
  padding: 0.1em 0.6em;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--go-text);
  font-weight: 600;
  font-size: 0.8em;
}
.sc-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.7em;
  border-radius: 8px;
  background: var(--go-tint);
  color: var(--go-text);
  font-weight: 600;
  font-size: 0.86em;
  white-space: nowrap;
}
.sc-tag .icon { width: 1.1em; height: 1.1em; }
.sc-foot {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  color: var(--muted);
  font-size: 0.8em;
}
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.6em;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
}

/* 1. следит */
.scene--watch .sc-lane { left: 24%; right: 24%; top: 40%; }
.scene--watch .w-out { animation: w-out 4.6s linear infinite; }
.scene--watch .w-back { animation: w-back 4.6s linear infinite; }
.scene--watch .w-back::after { background: var(--go); }
.scene--watch .sc-tag { left: 5%; top: 9%; animation: w-tag 4.6s var(--ease-out) infinite; }
@keyframes w-out {
  0% { transform: translateX(0); opacity: 0; }
  3% { opacity: 1; }
  20% { transform: translateX(100%); opacity: 1; }
  23%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes w-back {
  0%, 26% { transform: translateX(100%); opacity: 0; }
  29% { opacity: 1; }
  46% { transform: translateX(0); opacity: 1; }
  49%, 100% { transform: translateX(0); opacity: 0; }
}
@keyframes w-tag {
  0%, 46% { opacity: 0; transform: translateY(6px); }
  52%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

/* 2. перепроверяет */
.scene--recheck .sc-lane { left: 22%; right: 22%; }
.scene--recheck .sc-lane i { animation: rc-stall 6s linear infinite; }
.scene--recheck .sc-lane i::after { background: var(--muted); }
.scene--recheck .sc-lane.rc-first i { animation-name: rc-first; }
.scene--recheck .sc-lane.rc-win i { animation-name: rc-win; }
.scene--recheck .sc-lane.rc-win i::after { background: var(--go); }
.scene--recheck .sc-tag { left: 50%; bottom: 7%; transform: translateX(-50%); animation: rc-tag 6s var(--ease-out) infinite; }
@keyframes rc-first {
  0% { transform: translateX(0); opacity: 0; }
  2% { opacity: 1; }
  10% { transform: translateX(46%); opacity: 1; }
  88% { transform: translateX(46%); opacity: 1; }
  94%, 100% { transform: translateX(46%); opacity: 0; }
}
@keyframes rc-stall {
  0%, 16% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  30% { transform: translateX(var(--to, 60%)); opacity: 1; }
  88% { transform: translateX(var(--to, 60%)); opacity: 1; }
  94%, 100% { transform: translateX(var(--to, 60%)); opacity: 0; }
}
@keyframes rc-win {
  0%, 16% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  30% { transform: translateX(100%); opacity: 1; }
  34% { transform: translateX(100%); opacity: 1; }
  46% { transform: translateX(0); opacity: 1; }
  88% { transform: translateX(0); opacity: 1; }
  94%, 100% { transform: translateX(0); opacity: 0; }
}
@keyframes rc-tag {
  0%, 46% { opacity: 0; transform: translate(-50%, 6px); }
  52%, 88% { opacity: 1; transform: translate(-50%, 0); }
  94%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

/* 3. замораживает дерево */
.scene--tree .scene__in > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene--tree .t-line { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.scene--tree .t-live { fill: var(--go); }
.scene--tree .t-ice { fill: var(--frost); opacity: 0; animation: t-ice 6.4s ease infinite; animation-delay: calc(var(--d) * 1ms); }
.scene--tree .t-ring { fill: none; stroke: var(--frost); stroke-width: 1.5; opacity: 0; animation: t-ice 6.4s ease infinite; animation-delay: calc(var(--d) * 1ms); }
.scene--tree .t-root { fill: var(--ink); font: 600 13px var(--sans); }
@keyframes t-ice {
  0%, 20% { opacity: 0; }
  26%, 70% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
.scene--tree .sc-tag { left: 5%; top: 8%; background: var(--frost-tint); color: var(--frost); animation: t-tag 6.4s var(--ease-out) infinite; }
.scene--tree .sc-tag--run { background: var(--go-tint); color: var(--go-text); animation-name: t-tag-run; }
@keyframes t-tag {
  0%, 26% { opacity: 0; transform: translateY(6px); }
  32%, 70% { opacity: 1; transform: none; }
  76%, 100% { opacity: 0; transform: none; }
}
@keyframes t-tag-run {
  0%, 20% { opacity: 1; }
  26%, 76% { opacity: 0; }
  84%, 100% { opacity: 1; }
}

/* 4. размораживает */
.scene--thaw .th-lever { position: absolute; left: 50%; top: 40%; width: 24cqw; height: 24cqw; transform: translate(-50%, -50%); }
.scene--thaw .th-lever svg { width: 100%; height: 100%; display: block; }
.scene--thaw .th-disc-stop { fill: var(--disc-stop); }
.scene--thaw .th-disc-wait { fill: var(--disc-wait); opacity: 0; animation: th-wait 6.4s ease infinite; }
.scene--thaw .th-disc-go { fill: var(--disc-go); opacity: 0; animation: th-go 6.4s ease infinite; }
.scene--thaw .th-arm { animation: th-arm 6.4s var(--ease-in-out) infinite; }
.scene--thaw .th-arm line { stroke: #fff; stroke-width: 11; stroke-linecap: round; }
.scene--thaw .th-arm circle, .scene--thaw .th-base { fill: #fff; }
@keyframes th-wait {
  0%, 18% { opacity: 0; }
  24%, 100% { opacity: 1; }
}
@keyframes th-go {
  0%, 52% { opacity: 0; }
  58%, 94% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes th-arm {
  0%, 18% { transform: rotate(-38deg); }
  26%, 52% { transform: rotate(0deg); }
  60%, 94% { transform: rotate(32deg); }
  100% { transform: rotate(-38deg); }
}
.scene--thaw .th-says { position: absolute; left: 0; right: 0; top: 66%; display: grid; justify-items: center; font-weight: 640; font-size: 1.15em; }
.scene--thaw .th-says span { grid-area: 1 / 1; opacity: 0; }
.scene--thaw .th-s1 { color: var(--stop); animation: th-s1 6.4s ease infinite; }
.scene--thaw .th-s2 { color: var(--wait); animation: th-s2 6.4s ease infinite; }
.scene--thaw .th-s3 { color: var(--go-text); animation: th-s3 6.4s ease infinite; }
@keyframes th-s1 { 0%, 18% { opacity: 1; } 22%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes th-s2 { 0%, 20% { opacity: 0; } 24%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes th-s3 { 0%, 54% { opacity: 0; } 58%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.scene--thaw .th-checks { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; justify-content: center; gap: 0.6em; }
.scene--thaw .th-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.75em;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86em;
  white-space: nowrap;
}
.scene--thaw .th-check::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--go-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--go) 55%, transparent);
  opacity: 0;
  animation: th-c1 6.4s ease infinite;
}
.scene--thaw .th-check:nth-child(2)::after { animation-name: th-c2; }
.scene--thaw .th-check > * { position: relative; z-index: 1; }
.scene--thaw .th-check .icon { width: 1.1em; height: 1.1em; color: var(--go-text); opacity: 0.25; animation: th-i1 6.4s ease infinite; }
.scene--thaw .th-check:nth-child(2) .icon { animation-name: th-i2; }
@keyframes th-i1 { 0%, 32% { opacity: 0.25; } 36%, 94% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes th-i2 { 0%, 44% { opacity: 0.25; } 48%, 94% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes th-c1 { 0%, 32% { opacity: 0; } 36%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes th-c2 { 0%, 44% { opacity: 0; } 48%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* как быстро замечает */
.speed { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.speed h3 { font: 620 clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem)/1.2 var(--sans); letter-spacing: -0.018em; }
.speed__note { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
.speed__list { display: grid; }
.speed__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
}
.speed__list li + li { border-top: 1px solid var(--rule-soft); }
.speed__list span { color: var(--ink-2); }
.speed__list b { font: 600 1.0625rem/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
@media (max-width: 860px) {
  .speed { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- пауза вместо закрытия ---------- */
.duel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(52px, 6vw, 64px) clamp(14px, 3vw, 32px) clamp(18px, 3vw, 32px);
  border: 1px solid var(--rule-soft);
  border-radius: 24px;
  background: var(--bg-2);
}
.duel__clock {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  display: grid;
  font: 600 0.875rem/1.2 var(--sans);
  white-space: nowrap;
}
.duel__clock span { grid-area: 1 / 1; justify-self: center; padding: 6px 12px; border-radius: 8px; opacity: 0; }
.dk-1 { background: var(--go-tint); color: var(--go-text); animation: dk-1 12s ease infinite; }
.dk-2 { background: var(--stop-tint); color: var(--stop); animation: dk-2 12s ease infinite; }
.dk-3 { background: var(--go-tint); color: var(--go-text); animation: dk-3 12s ease infinite; }
@keyframes dk-1 { 0%, 27% { opacity: 1; } 29%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dk-2 { 0%, 27% { opacity: 0; } 29%, 61% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes dk-3 { 0%, 61% { opacity: 0; } 63%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }

.duel__col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.duel__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; font-size: 1.0625rem; }
.duel__label .icon { width: 20px; height: 20px; }
.duel__col--close .duel__label .icon { color: var(--stop); }
.duel__col--pause .duel__label .icon { color: var(--frost); }
.duel__box { position: relative; display: grid; }
.duel__box > * { grid-area: 1 / 1; }

.win {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 172px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 0.8125rem;
}
.win__bar .icon { width: 15px; height: 15px; }
.win__bar .win__x { margin-left: auto; display: flex; gap: 12px; }
.win__bar .win__x i { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 2px; opacity: 0.7; }
.win__body { display: grid; gap: 10px; align-content: end; padding: 14px; }
.win__line { height: 8px; border-radius: 4px; background: var(--surface-2); }
.win__line:nth-child(1) { width: 78%; }
.win__line:nth-child(2) { width: 56%; }
.win__field {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 62px;
}
.win__typed { display: inline-block; vertical-align: top; white-space: nowrap; color: var(--ink); }
.win__ghost { color: var(--muted); }

/* печатается в два приёма: до обрыва и после */
.duel .ty-1 { animation: ty-1 12s linear infinite; }
.duel .ty-2 { animation: ty-2 12s linear infinite; }
@keyframes ty-1 {
  0% { clip-path: inset(0 100% 0 0); opacity: 1; }
  25%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
  98%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes ty-2 {
  0%, 68% { clip-path: inset(0 100% 0 0); opacity: 1; }
  88%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
  98%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
.duel__col--close .win--old { animation: win-close 12s var(--ease-out) infinite; }
@keyframes win-close {
  0%, 28% { opacity: 1; transform: none; }
  32%, 97% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: none; }
}
.win--gone {
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  opacity: 0;
  animation: win-gone 12s ease infinite;
}
@keyframes win-gone {
  0%, 30% { opacity: 0; }
  34%, 61% { opacity: 1; }
  64%, 100% { opacity: 0; }
}
.win--new { opacity: 0; animation: win-new 12s var(--ease-out) infinite; }
@keyframes win-new {
  0%, 63% { opacity: 0; transform: translateY(8px); }
  68%, 96% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: none; }
}
.win__frost {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, transparent 0 38%, color-mix(in srgb, var(--frost) 14%, transparent) 46%, transparent 54%),
    color-mix(in srgb, var(--frost-tint) 78%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--frost);
  border-radius: inherit;
  color: var(--frost);
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  animation: win-frost 12s ease infinite;
}
.win__frost span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); }
.win__frost .icon { width: 16px; height: 16px; }
@keyframes win-frost {
  0%, 28% { opacity: 0; }
  32%, 62% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
.duel__out { display: grid; font-size: 0.9375rem; font-weight: 600; min-height: 1.5em; }
.duel__out span { grid-area: 1 / 1; opacity: 0; }
.duel__col--close .duel__out span { color: var(--stop); animation: out-late 12s ease infinite; }
.duel__col--pause .duel__out span { color: var(--go-text); animation: out-later 12s ease infinite; }
@keyframes out-late {
  0%, 70% { opacity: 0; transform: translateY(4px); }
  75%, 94% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}
@keyframes out-later {
  0%, 88% { opacity: 0; transform: translateY(4px); }
  91%, 94% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}
.fine, .head .fine {
  margin-top: 20px;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.head .fine { margin-top: 0; }
@media (max-width: 620px) {
  .duel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- окно отвечает ---------- */
.anat-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.anat-grid .head { margin-bottom: 0; }
@media (min-width: 861px) {
  .anat-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .anat-grid .anat { order: -1; }
}
.anat {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid var(--rule-soft);
  border-radius: 24px;
  background: var(--bg-2);
}
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.seg button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.seg button:active { transform: scale(0.97); }
.seg button:focus-visible { outline-offset: -2px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.anat .seg button[data-vpn="up"][aria-pressed="true"] { background: var(--go-tint); color: var(--go-text); }
.anat .seg button[data-vpn="down"][aria-pressed="true"] { background: var(--stop-tint); color: var(--stop); }
.anat__title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.875rem; }
.anat__title .icon { width: 18px; height: 18px; }
.parts { display: grid; gap: 8px; }
.part {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.part::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--frost-tint);
  box-shadow: inset 0 0 0 1px var(--frost);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms ease;
}
.part > * { position: relative; z-index: 1; }
.part b { font-weight: 600; font-size: 0.9375rem; }
.part__s { display: grid; font-size: 0.875rem; text-align: right; }
.part__s span { grid-area: 1 / 1; white-space: nowrap; transition: opacity 180ms ease; }
.part__s .p-up { color: var(--muted); }
.part__s .p-down { opacity: 0; visibility: hidden; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.part__s .icon { width: 14px; height: 14px; }
.part--live .p-down { color: var(--go-text); }
.part--ice .p-down { color: var(--frost); }
.anat[data-vpn="down"] .p-up { opacity: 0; visibility: hidden; }
.anat[data-vpn="down"] .p-down { opacity: 1; visibility: visible; }
.anat[data-vpn="down"] .part--ice::before { opacity: 1; }
@media (max-width: 860px) {
  .anat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- как выглядит ---------- */
.shots { display: grid; gap: 20px; justify-items: start; }
.shots .seg { width: min(100%, 784px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.shots__hint { display: none; }
.shots .seg::-webkit-scrollbar { display: none; }
.shots .fine { margin-top: 0; }
.shots__stage { display: grid; width: 100%; }
.shot { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 784px) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); align-items: start; opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s linear 120ms; }
.shot.is-on { opacity: 1; visibility: visible; transition: opacity 200ms ease 100ms, visibility 0s; }
.shot__frame {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot__bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 0.8125rem; }
.shot__bar .lever { width: 16px; height: 16px; }
.shot img { width: 100%; }
.shot .for-light, :root[data-theme="light"] .shot .for-dark { display: none; }
:root[data-theme="light"] .shot .for-light { display: block; }
.shot figcaption { display: grid; gap: 10px; color: var(--ink-2); text-wrap: pretty; }
.shot figcaption b { color: var(--ink); font: 620 1.1875rem/1.3 var(--sans); letter-spacing: -0.012em; }
@media (max-width: 1040px) {
  .shot { grid-template-columns: minmax(0, 1fr); }
  .shot figcaption { max-width: 44rem; }
}
@media (max-width: 640px) {
  .shot__frame { overflow-x: auto; }
  .shot img { width: 600px; max-width: none; }
  .shots__hint { display: block; margin-top: 0; }
}

.tray {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
}
.tray h3 { font: 620 clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem)/1.2 var(--sans); letter-spacing: -0.018em; text-wrap: balance; }
.tray p { margin-top: 12px; color: var(--ink-2); text-wrap: pretty; }
.tray__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.tray__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.tray__list .lever { width: 44px; height: 44px; }
.tray__list b { display: block; font-weight: 620; }
.tray__list span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 860px) {
  .tray { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .tray__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- бесплатно ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.cell {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  background: var(--bg-2);
  overflow: hidden;
}
.cell h3 { font: 620 1.25rem/1.25 var(--sans); letter-spacing: -0.015em; }
.cell p { color: var(--ink-2); text-wrap: pretty; }
.cell--wire { grid-column: span 7; grid-row: span 2; align-content: space-between; gap: 20px; }
.cell--zero { grid-column: span 5; background: var(--go-tint); border-color: color-mix(in srgb, var(--go) 30%, transparent); }
.cell--zero .zero { font: 660 clamp(3rem, 2rem + 4vw, 4.5rem)/0.95 var(--sans); letter-spacing: -0.04em; color: var(--go-text); }
.cell--disk { grid-column: span 5; }
@media (max-width: 860px) {
  .cell--wire, .cell--zero, .cell--disk { grid-column: 1 / -1; grid-row: auto; }
}

.wire { display: grid; gap: 16px; }
.wire__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.wire__end { display: grid; justify-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); text-align: center; line-height: 1.25; }
.wire__end .lever { width: 44px; height: 44px; }
.wire__end .sc-globe { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); }
.wire__end .sc-globe .icon { width: 24px; height: 24px; }
.wire__lane { position: relative; height: 88px; }
.wire__lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--rule); }
.wire__dot { position: absolute; inset: 0; }
.wire__dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink-2);
}
.wire__dot--a::after { background: var(--go); }
.wire__dot--q { animation: wire-q 5.6s linear infinite; }
.wire__dot--a { animation: wire-a 5.6s linear infinite; }
@keyframes wire-q {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  36% { transform: translateX(100%); opacity: 1; }
  41%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes wire-a {
  0%, 48% { transform: translateX(100%); opacity: 0; }
  53% { opacity: 1; }
  84% { transform: translateX(0); opacity: 1; }
  89%, 100% { transform: translateX(0); opacity: 0; }
}
.wire__msg {
  position: absolute;
  padding: 5px 10px;
  border-radius: 8px;
  font: 500 0.875rem/1.2 var(--sans);
  white-space: nowrap;
}
.wire__msg--q { left: 0; bottom: calc(50% + 10px); background: var(--surface-2); color: var(--ink); animation: wire-mq 5.6s ease infinite; }
.wire__msg--a { right: 0; top: calc(50% + 10px); background: var(--go-tint); color: var(--go-text); animation: wire-ma 5.6s ease infinite; }
@keyframes wire-mq {
  0% { opacity: 0; transform: translateY(4px); }
  6%, 40% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: none; }
}
@keyframes wire-ma {
  0%, 48% { opacity: 0; transform: translateY(-4px); }
  54%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@media (max-width: 520px) {
  .wire__end { width: 64px; }
}
.never { display: flex; flex-wrap: wrap; gap: 8px; }
.never li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--stop) 70%, transparent);
}
.never .icon { width: 14px; height: 14px; color: var(--stop); }
.never__title { color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }

/* сравнение */
.compare { margin-top: clamp(40px, 6vw, 72px); }
.compare h3 { font: 620 clamp(1.3125rem, 1.1rem + 0.8vw, 1.625rem)/1.2 var(--sans); letter-spacing: -0.018em; margin-bottom: 20px; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--rule-soft); border-radius: 20px; background: var(--bg-2); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.4; }
.compare thead th { color: var(--ink-2); font-weight: 600; font-size: 0.875rem; }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--rule-soft); }
.compare tbody th { color: var(--muted); font-weight: 500; width: 19%; }
.compare td { color: var(--ink-2); }
.compare .us { background: color-mix(in srgb, var(--go) 8%, transparent); color: var(--ink); font-weight: 600; }
.compare thead .us { color: var(--go-text); font-size: 1rem; }
.compare__note { margin-top: 12px; color: var(--muted); font-size: 0.875rem; text-wrap: pretty; }
@media (max-width: 800px) {
  .compare__scroll { overflow: visible; border: 0; background: transparent; }
  .compare table, .compare tbody, .compare tr, .compare td, .compare th { display: block; min-width: 0; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { padding: 14px 16px; border: 1px solid var(--rule-soft); border-radius: 20px; background: var(--bg-2); }
  .compare tbody tr + tr { margin-top: 10px; }
  .compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 0; }
  .compare tbody th { padding: 0 0 8px; color: var(--ink); font-weight: 620; font-size: 1rem; width: auto; }
  .compare td { padding: 6px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; background: transparent; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: 0.875rem; }
  .compare td.us { color: var(--go-text); }
}

/* ---------- где не поможет ---------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 5vw, 64px); }
.limit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.limit .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--muted); grid-row: span 2; }
.limit h3 { font: 620 1.125rem/1.3 var(--sans); letter-spacing: -0.01em; }
.limit p { color: var(--ink-2); text-wrap: pretty; grid-column: 2; }
@media (max-width: 760px) {
  .limits { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- установка ---------- */
.get {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.get__steps { display: grid; gap: 28px; counter-reset: get; }
.get__steps li { position: relative; display: grid; gap: 6px; padding-left: 60px; }
.get__steps li::before {
  counter-increment: get;
  content: counter(get);
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  font: 600 1rem/1 var(--mono);
}
.get__steps h3 { font: 620 1.1875rem/1.3 var(--sans); letter-spacing: -0.012em; }
.get__steps p { color: var(--ink-2); text-wrap: pretty; }
.get__card {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.get__card .lever { width: 56px; height: 56px; }
.get__card h3 { font: 640 1.5rem/1.2 var(--sans); letter-spacing: -0.02em; }
.get__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.get__meta li { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink-2); font-size: 0.875rem; white-space: nowrap; }
.get__card .btn { width: 100%; }
.get__small { color: var(--muted); font-size: 0.875rem; text-wrap: pretty; }
@media (max-width: 860px) {
  .get { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- обратная связь ---------- */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--rule-soft);
  border-radius: 24px;
  background: var(--bg-2);
}
.talk .head { margin-bottom: 0; }
.talk__side { display: grid; gap: 14px; justify-items: start; }
.talk__side .btn { width: 100%; }
.talk__small { color: var(--muted); font-size: 0.875rem; text-wrap: pretty; }
@media (max-width: 860px) {
  .talk { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- вопросы ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq-grid .head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .head { position: static; }
}
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule-soft); }
.faq details:last-child { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font: 600 1.125rem/1.35 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform 240ms var(--ease-out), color 160ms ease; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 44px 22px 4px; color: var(--ink-2); max-width: 44rem; text-wrap: pretty; }
.faq__a p + p { margin-top: -10px; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover .icon { color: var(--ink); }
}

/* ---------- кто делает, подвал ---------- */
.maker {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.maker .head { margin-bottom: 0; }
.nevpn {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  background: var(--bg-2);
}
/* Слово бренда двухцветное: «НЕ» оранжевое всегда, «ВПН» белое на тёмном и фиолетовое на светлом. */
.nevpn__name { font: 800 1.75rem/1 var(--sans); letter-spacing: -0.01em; color: #fffdff; }
:root[data-theme="light"] .nevpn__name { color: #4d1f5c; }
.nevpn__name b { color: #f3651e; font-weight: inherit; }
.nevpn p { color: var(--ink-2); text-wrap: pretty; }
.nevpn .btn { background: #f3651e; color: #2a0f33; }
@media (hover: hover) and (pointer: fine) {
  .nevpn .btn:hover { background: #ff7a35; }
}
@media (max-width: 860px) {
  .maker { grid-template-columns: minmax(0, 1fr); }
}

.foot { padding-block: 32px 40px; border-top: 1px solid var(--rule-soft); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9375rem; }
.foot__links a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot__links .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover { color: var(--ink); }
}
.foot__small { color: var(--muted); font-size: 0.875rem; margin-top: 16px; text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- без движения ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.scene, .duel, .mini, .wire) *,
  :is(.scene, .duel, .mini, .wire) *::before,
  :is(.scene, .duel, .mini, .wire) *::after { animation: none !important; }
  .scene--watch .sc-tag, .scene--recheck .sc-tag, .scene--tree .sc-tag { opacity: 1; }
  .scene--tree .sc-tag--run { display: none; }
  .scene--tree .t-ice, .scene--tree .t-ring { opacity: 1; }
  .scene--watch .w-out { opacity: 0; }
  .scene--watch .w-back { opacity: 1; transform: translateX(0); }
  .scene--recheck .sc-lane i { opacity: 1; transform: translateX(var(--to, 46%)); }
  .scene--recheck .sc-lane.rc-win i { transform: translateX(0); }
  .scene--thaw .th-disc-go, .scene--thaw .th-says .th-s3, .scene--thaw .th-check::after, .scene--thaw .th-check .icon { opacity: 1; }
  .scene--thaw .th-arm { transform: rotate(32deg); }
  .duel__clock .dk-3 { opacity: 1; }
  .duel__col--close .win--old { opacity: 0; }
  .win--new, .duel__out span { opacity: 1; }
  .mini__lane i { opacity: 1; transform: translateX(calc(16% + var(--i) * 30%)); }
  .mini--wall .mini__lane i { transform: translateX(calc(3% + var(--i) * 8%)); }
  .mini__tries i { background: var(--stop); }
  .wire__msg { opacity: 1; }
  .wire__dot--q { opacity: 1; transform: translateX(62%); }
}

/* ---------- появление при прокрутке ---------- */
.top-mark { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .has-js .rv {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
    transition-delay: calc(min(var(--rv, 0), 4) * 60ms);
  }
  .has-js .rv.is-in { opacity: 1; transform: none; }

  /* Страховка: скрипт не запустился за четыре секунды, и блоки проявляются сами. */
  .has-js:not(.rv-ready) .rv { animation: rv-safe 300ms ease 4s forwards; }
  @keyframes rv-safe { to { opacity: 1; transform: none; } }
}

/* ---------- без скрипта: все снимки видны подряд, ответы открываются сами ---------- */
html:not(.has-js) .shot { grid-area: auto; opacity: 1; visibility: visible; }
html:not(.has-js) .shots .seg,
html:not(.has-js) .anat .seg,
html:not(.has-js) .sim__toggle,
html:not(.has-js) .theme-toggle,
html:not(.has-js) .motion-toggle { display: none; }
html:not(.has-js) .anat .p-up { opacity: 0; visibility: hidden; }
html:not(.has-js) .anat .p-down { opacity: 1; visibility: visible; }
html:not(.has-js) .anat .part--ice::before { opacity: 1; }
html:not(.has-js) .faq details[open] > summary .icon,
.has-js .faq details.is-open > summary .icon { transform: rotate(45deg); color: var(--ink); }

/* ---------- палец: зоны нажатия не меньше 44 px ---------- */
@media (pointer: coarse) {
  .btn--sm, .seg button, .brand, .foot__links a { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
}

/* ---------- без color-mix(): Chrome до 111, Safari до 16.2, Firefox до 113 ---------- */
@supports not (color: color-mix(in srgb, red, blue)) {
  .nav, .sim__timer { background: var(--bg); }
  .btn--line { border-color: var(--muted); }
  .casing__half, .sc-pipe { border-color: var(--go); background: transparent; }
  .sim[data-vpn="down"] .casing__half { border-color: var(--stop); }
  .sim[data-vpn="checking"] .casing__half { border-color: var(--wait); }
  .mini__vpn b { border-color: var(--stop); background: transparent; }
  .mini--leak .mini__lane { background: var(--stop); }
  .cell--zero { border-color: var(--go); }
}
