/* Zapret Discord — сайт. Минимализм, тёмная и светлая темы. */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #111111;
  --mock-bg: #050505;
  --line: #1a1a1a;
  --line-soft: #141414;
  --border: #1e1e1e;

  --text: #ffffff;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;
  --text-4: #5c5c5c;
  --text-5: #444444;
  --muted: #9a9a9a;
  --faint: #666666;
  --dim: #565656;
  --soft: #6d6d6d;
  --ghost: #cccccc;
  --bright: #e8e8e8;
  --name: #dcdcdc;
  --num: #b9b9b9;
  --tiny: #3f3f3f;
  --tick: #4d4d4d;
  --tick-dot: #262626;
  --faq-q: #eaeaea;

  --btn-bg: #ffffff;
  --btn-bg-hover: #dedede;
  --btn-text: #000000;
  --btn-border: #242424;
  --btn-border-hover: #3d3d3d;
  --btn-glow: rgba(255, 255, 255, .13);

  --accent: #3ecf8e;
  --accent-soft: rgba(62, 207, 142, .35);

  --nav-bg: rgba(0, 0, 0, .72);
  --ring: #303030;
  --win-border: #3a3a3a;
  --cue: #2a2a2a;
  --tunnel: #2c2c2c;
  --packet: #ffffff;
  --packet-glow: rgba(255, 255, 255, .9);
  --log-cursor: #3a3a3a;

  --glow-green: rgba(62, 207, 142, .07);
  --glow-white: rgba(255, 255, 255, .045);
  --mock-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  --cta-shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --scroll: #1f1f1f;
  --scroll-hover: #333333;

  --sel-bg: #ffffff;
  --sel-text: #000000;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --panel: #f2f2f2;
  --panel-2: #e9e9e9;
  --mock-bg: #ffffff;
  --line: #e2e2e2;
  --line-soft: #ececec;
  --border: #e4e4e4;

  --text: #111111;
  --text-2: #555555;
  --text-3: #5f5f5f;
  --text-4: #8a8a8a;
  --text-5: #a8a8a8;
  --muted: #767676;
  --faint: #999999;
  --dim: #8f8f8f;
  --soft: #7a7a7a;
  --ghost: #444444;
  --bright: #222222;
  --name: #333333;
  --num: #666666;
  --tiny: #b5b5b5;
  --tick: #9a9a9a;
  --tick-dot: #d2d2d2;
  --faq-q: #1c1c1c;

  --btn-bg: #111111;
  --btn-bg-hover: #333333;
  --btn-text: #ffffff;
  --btn-border: #dddddd;
  --btn-border-hover: #bbbbbb;
  --btn-glow: rgba(0, 0, 0, .18);

  --accent: #1f9d64;
  --accent-soft: rgba(31, 157, 100, .3);

  --nav-bg: rgba(250, 250, 250, .8);
  --ring: #d8d8d8;
  --win-border: #cccccc;
  --cue: #dddddd;
  --tunnel: #dcdcdc;
  --packet: #111111;
  --packet-glow: rgba(0, 0, 0, .45);
  --log-cursor: #bbbbbb;

  --glow-green: rgba(31, 157, 100, .09);
  --glow-white: rgba(0, 0, 0, .035);
  --mock-shadow: 0 40px 120px rgba(0, 0, 0, .12);
  --cta-shadow: 0 10px 30px rgba(0, 0, 0, .18);

  --scroll: #d9d9d9;
  --scroll-hover: #bbbbbb;

  --sel-bg: #111111;
  --sel-text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* защита от копирования */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; user-drag: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sel-bg); color: var(--sel-text); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- навигация ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3.5px var(--bg), 0 0 0 4.5px var(--ring);
}

.nav-links { display: flex; gap: 34px; }

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.nav-tools { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; gap: 10px; }

.lang a {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text-4);
  padding: 4px 2px;
  transition: color .15s;
}
.lang a:hover { color: var(--text); }
.lang a.active { color: var(--text); }

.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .15s;
  padding: 0;
}
.theme-toggle:hover { color: var(--text); }
html[data-theme="light"] .icon-moon { display: none; }
html:not([data-theme="light"]) .icon-sun { display: none; }

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

.btn-primary {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 14px 32px;
  border-radius: 3px;
  transition: background .15s, transform .06s, box-shadow .35s;
}
.btn-primary:hover { background: var(--btn-bg-hover); box-shadow: 0 0 30px var(--btn-glow); }
.btn-primary:active { transform: scale(.99); }

.btn-big { padding: 17px 44px; font-size: 14.5px; }

.btn-ghost {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ghost);
  padding: 13px 26px;
  border: 1px solid var(--btn-border);
  border-radius: 3px;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--btn-border-hover); color: var(--text); }

.nav-cta { padding: 8px 18px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 64px 0 40px;
}

.overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--faint);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.slogan {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 500;
  color: var(--bright);
  letter-spacing: -.01em;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 15px;
  color: var(--text-3);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 40px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .04em;
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 56px;
  background: var(--cue);
  transform-origin: top;
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(1); opacity: .4; }
  50% { transform: scaleY(.55); opacity: 1; }
}

/* ---------- секции ---------- */

.section { padding: 130px 0; }

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--faint);
}

.section h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.section-sub {
  margin-top: 14px;
  max-width: 520px;
  font-size: 15px;
  color: var(--text-3);
}

/* ---------- макет приложения ---------- */

.mock {
  margin: 72px auto 0;
  width: min(860px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--mock-bg);
  overflow: hidden;
  box-shadow: var(--mock-shadow);
}

.mock-tb {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--mock-bg);
}

.mock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.mock-name {
  margin-left: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--name);
}

.mock-win { margin-left: auto; display: flex; gap: 7px; }

.mock-win i {
  width: 9px; height: 9px;
  border: 1px solid var(--win-border);
  border-radius: 1px;
}

.mock-body { display: flex; min-height: 340px; }

.mock-side {
  flex: 0 0 218px;
  background: var(--panel);
  border-right: 1px solid var(--line-soft);
  padding: 16px 0;
}

.mock-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--tiny);
  padding: 0 18px 10px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  color: var(--muted);
}

.mock-row small {
  display: block;
  font-size: 10.5px;
  color: var(--tiny);
  margin-top: 2px;
}

.mock-row b {
  font-weight: 400;
  font-size: 12px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.mock-row.active {
  background: var(--panel-2);
  border-left-color: var(--text);
  color: var(--text);
}
.mock-row.active b { color: var(--num); }

.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 30px 30px;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--accent);
  align-self: flex-start;
}

.mock-status .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
}

.mock-num {
  margin: auto 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mock-num span {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mock-num em {
  font-style: normal;
  font-size: 16px;
  color: var(--dim);
}

.mock-sub { font-size: 11.5px; color: var(--soft); margin-top: 4px; }

.mock-log {
  margin-top: 20px;
  width: min(420px, 100%);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.mock-log i { font-style: normal; margin-right: 8px; }
.mock-log i.ws { color: var(--text-3); }
.mock-log i.ok { color: var(--accent); }

.mock-log::after {
  content: "▌";
  margin-left: 2px;
  color: var(--log-cursor);
  animation: blink 1.15s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.mock-progress {
  width: 260px;
  height: 2px;
  background: var(--line);
  margin: 30px 0 26px;
}

.mock-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--packet);
  transition: width 2.4s linear, opacity .6s;
}

.mock-btn {
  height: 40px;
  line-height: 40px;
  padding: 0 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 3px;
}

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

.steps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step { border-top: 1px solid var(--border); padding-top: 26px; }

.step-num {
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.step h3 {
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.step p { font-size: 14px; color: var(--text-3); }

/* ---------- преимущества ---------- */

.features {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 72px;
}

.feature {
  border-top: 1px solid var(--border);
  padding: 34px 0 40px;
  color: var(--muted);
  transition: transform .3s ease;
}

.feature:hover { transform: translateY(-3px); }
.feature svg { transition: color .3s; }
.feature:hover svg { color: var(--text); }

.feature h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.feature p { font-size: 14px; color: var(--text-3); }

/* ---------- changelog ---------- */

.changelog {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.cl-item {
  display: flex;
  gap: 40px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
}

.cl-ver {
  flex: 0 0 84px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.cl-date {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cl-body p { font-size: 14px; color: var(--text-3); }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--faq-q);
  transition: color .15s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text); }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 400;
  color: var(--dim);
  transition: transform .25s ease, color .15s;
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text); }

.faq-item p {
  padding: 0 4px 24px;
  max-width: 620px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- скачать ---------- */

.download { text-align: center; padding: 150px 0; }

.dl-meta { margin-top: 16px; font-size: 13px; color: var(--soft); letter-spacing: .02em; }

.dl-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.dl-note { margin-top: 20px; font-size: 12px; color: var(--text-5); letter-spacing: .02em; }

/* ---------- футер ---------- */

.footer { border-top: 1px solid var(--line-soft); }

.footer-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-4);
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-size: 12.5px;
  color: var(--text-4);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }

/* ---------- туннель с пакетами ---------- */

.tunnel {
  position: relative;
  display: block;
  width: min(420px, 70%);
  height: 1px;
  margin: 56px auto 0;
  background: linear-gradient(90deg, transparent, var(--tunnel) 18%, var(--tunnel) 82%, transparent);
}

.tunnel i {
  position: absolute;
  top: -1.5px;
  left: -4%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--packet);
  box-shadow: 0 0 10px var(--packet-glow);
  animation: packet 3.4s linear infinite;
}

.tunnel i:nth-child(2) { animation-delay: 1.15s; }
.tunnel i:nth-child(3) { animation-delay: 2.3s; animation-duration: 3.8s; }

@keyframes packet {
  0% { left: -4%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

.tunnel-dl { margin: 0 auto 46px; }

/* ---------- бегущая строка ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.ticker-group {
  display: flex;
  gap: 52px;
  padding-right: 52px;
}

.ticker-group span {
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--tick);
  white-space: nowrap;
}

.ticker-group span::after {
  content: "·";
  margin-left: 52px;
  color: var(--tick-dot);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- фон: живая сеть и свечение ---------- */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow-a {
  width: 640px; height: 640px;
  top: -240px; left: 50%; margin-left: -320px;
  background: radial-gradient(circle, var(--glow-green), transparent 62%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.glow-b {
  width: 720px; height: 720px;
  right: -260px; bottom: -200px;
  background: radial-gradient(circle, var(--glow-white), transparent 62%);
  animation: drift-b 24s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 60px) scale(1.14); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-80px, -60px) scale(1.1); }
}

.section, .footer, .ticker, .hero { position: relative; z-index: 1; }

/* ---------- мобильная кнопка скачивания ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: var(--cta-shadow);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}

.mobile-cta.visible { transform: none; opacity: 1; pointer-events: auto; }

/* ---------- скроллспай ---------- */

.nav-links a.active { color: var(--text); }

/* ---------- скип-линк ---------- */

.skip {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- тултипы терминов ---------- */

.term {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dashed var(--text-4);
}

.term::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 260px;
  padding: 9px 13px;
  background: var(--panel-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.term:hover::after, .term:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- схема трафика ---------- */

.scheme {
  margin: 80px auto 0;
  width: min(860px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--mock-bg);
  padding: 34px 26px 26px;
}

.scheme svg { width: 100%; height: auto; display: block; }

.scheme text {
  fill: var(--text-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
}

.scheme .sub { fill: var(--text-4); font-size: 10.5px; font-weight: 400; }
.scheme .lbl { fill: var(--dim); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }

.scheme .box { fill: var(--panel); stroke: var(--border); }
.scheme .box-us { stroke: var(--text); }

.scheme .flow {
  stroke: var(--packet);
  stroke-opacity: .55;
  stroke-dasharray: 5 9;
  animation: dashmove 1.1s linear infinite;
}

@keyframes dashmove {
  to { stroke-dashoffset: -14; }
}

/* ---------- карта узлов ---------- */

.map-panel {
  margin: 72px auto 0;
  width: min(860px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--mock-bg);
  padding: 20px 26px 8px;
}

.map-panel svg { width: 100%; height: auto; display: block; }

.map-panel .link { stroke: var(--ring); stroke-width: 1; }

.map-panel .hub { fill: var(--packet); }
.map-panel .ring { fill: none; stroke: var(--ring); }
.map-panel .node { fill: var(--packet); }
.map-panel .pulse { fill: none; stroke: var(--packet); opacity: .5; }

.map-panel text { fill: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 500; }
.map-panel .sub { fill: var(--text-4); font-size: 10.5px; font-weight: 400; }

/* ---------- таблица сравнения ---------- */

.compare { margin-top: 56px; overflow-x: auto; }

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare th, .compare td {
  border: 1px solid var(--border);
  padding: 14px 18px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
  vertical-align: top;
}

.compare thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
}

.compare td:first-child, .compare th:first-child {
  color: var(--muted);
  font-weight: 400;
  width: 22%;
}

.compare .col-us { background: var(--panel-2); color: var(--text-2); }
.compare thead .col-us { color: var(--text); }

/* ---------- кнопка «наверх» ---------- */

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, color .15s, border-color .15s;
  padding: 0;
}

.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--text); border-color: var(--btn-border-hover); }

/* ---------- состояния интерактивного демо ---------- */

.mock-status.offline { color: var(--text-4); }
.mock-status.offline .dot { background: var(--text-4); animation: none; }

.mock-btn {
  cursor: pointer;
  transition: background .15s, opacity .2s;
}
.mock-btn:hover { background: var(--btn-bg-hover); }
.mock-btn.busy { opacity: .65; pointer-events: none; }

/* ---------- документные страницы ---------- */

.doc {
  position: relative;
  z-index: 1;
  padding: 150px 24px 110px;
  max-width: 760px;
  margin: 0 auto;
}

.doc h1 {
  margin-top: 14px;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.doc h2 { margin: 40px 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.doc p, .doc li { color: var(--text-3); font-size: 15px; margin-top: 12px; }

.doc ul { padding-left: 20px; }

.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.doc .card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 28px;
  background: var(--panel);
}

.doc .card p { margin-top: 0; }

/* ---------- блог ---------- */

.post-list { margin-top: 40px; border-top: 1px solid var(--border); }

.post-item {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 26px 4px;
  transition: transform .3s ease;
}

.post-item:hover { transform: translateX(4px); }

.post-item .p-date {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-item h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.post-item p { font-size: 14px; color: var(--text-3); margin: 0; max-width: 620px; }

.doc .back { font-size: 13px; color: var(--muted); }
.doc .back:hover { color: var(--text); }

/* ---------- 404 ---------- */

.nf {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.nf-code {
  font-size: clamp(90px, 20vw, 150px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}

.nf p { margin-top: 16px; color: var(--text-3); }

.nf .btn-primary { margin-top: 34px; }

/* ---------- появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- скроллбар ---------- */

html { scrollbar-width: thin; scrollbar-color: var(--scroll) var(--bg); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .mock-progress i { transition: none; }
  .tunnel i { animation: none; opacity: 0; }
  .ticker-track { animation: none; }
  .glow-a, .glow-b { animation: none; }
  .bg-canvas { display: none; }
  .mock-status .dot, .mock-log::after { animation: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .mock-side { flex-basis: 168px; }
  .section { padding: 96px 0; }
}

@media (max-width: 560px) {
  .mock-side { display: none; }
  .mock-num span { font-size: 56px; }
  .footer-inner { height: auto; padding: 28px 0; flex-direction: column; }
  .mobile-cta { display: block; }
  .lang { display: none; }
  .to-top { display: none; }
}
