/* ============================================================================
   Split Network — landing styles
   ============================================================================ */

:root {
  --bg:           #0a0c10;
  --bg-card-top:  #141a21;
  --bg-card-btm:  #0c1015;
  --bg-term:      #0d1217;
  --bg-bar:       rgba(10, 12, 16, 0.72);
  --line:         rgba(45, 212, 191, 0.10);
  --line-strong:  rgba(45, 212, 191, 0.26);

  --text:         #f0f3f7;
  --text-dim:     #b3bcc7;
  --text-mute:    #717a85;

  --accent:       #2dd4bf;
  --accent-bright:#5eead4;
  --accent-dim:   #0f7d6f;

  --ok:           #22c55e;
  --warn:         #f59e0b;
  --fail:         #ef4444;

  --shell:        1140px;
  --pad-x:        28px;
  --radius:       14px;
  --radius-sm:    10px;

  --font:         "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head:    "Space Grotesk", var(--font);
  --font-mark:    "Chakra Petch", var(--font-head);
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(70% 50% at 50% -8%,  rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(46% 40% at 12% 14%,  rgba(34, 62, 70, 0.55),  transparent 70%),
    radial-gradient(50% 44% at 88% 22%,  rgba(22, 52, 58, 0.55),  transparent 72%),
    radial-gradient(60% 50% at 50% 108%, rgba(26, 56, 60, 0.42),  transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }

/* единая ширина для header / main / footer */
.page-header,
main,
.page-footer {
  width: min(var(--shell), calc(100% - var(--pad-x) * 2));
  margin-inline: auto;
}

/* ============================================================================
   Network-graph фон
   ============================================================================ */
/* Реальная 3D-сеть рисуется на canvas (см. script.js) */
.bg-net {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: net-fade 2.2s ease-out 0.15s forwards;
  -webkit-mask: radial-gradient(125% 120% at 50% 46%, #000 52%, transparent 94%);
          mask: radial-gradient(125% 120% at 50% 46%, #000 52%, transparent 94%);
}
@keyframes net-fade { to { opacity: 1; } }

/* ============================================================================
   Ticker
   ============================================================================ */
.ticker {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 30;
}
.ticker-track { display: flex; width: max-content; animation: scroll-left 60s linear infinite; }
.ticker-set {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 8px 30px 8px 0;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t-item { display: inline-flex; align-items: center; gap: 9px; }
.t-sep  { color: var(--text-mute); opacity: 0.4; }
.t-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.t-dot.ok   { background: var(--ok);   box-shadow: 0 0 8px var(--ok); }
.t-dot.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.t-dot.fail { background: var(--fail); box-shadow: 0 0 8px var(--fail); }

/* ============================================================================
   Header
   ============================================================================ */
.page-header {
  margin-top: 24px;
  padding: 13px 16px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { display: inline-flex; flex-shrink: 0; }
/* лого в подсвеченной плитке + двухстрочный текст-блок (не «иконка+текст в линию») */
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #141a21, #0c1015);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-slash { color: var(--accent); font-weight: 500; margin: 0 0.04em; }
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.sys-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.04);
}
.sys-text { text-transform: uppercase; }
.sys-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulse-ring 1.9s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

/* ============================================================================
   Main / Hero — сплит: текст слева, терминал справа
   ============================================================================ */
main { padding: 108px 0 40px; }

/* Шапка: бренд (лого + текст) по центру */
.site-brand { display: flex; justify-content: center; margin-bottom: 6px; }
.brand-lock { position: relative; display: inline-flex; align-items: center; }
/* лого — подложка за текстом: ×2, полупрозрачное, по центру */
.brand-logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
}
.brand-lock .brand-logo svg { width: 109px; height: 109px; }   /* ×4, затем −20% */
.brand-lock .brand-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 33px;                                            /* +15%, затем +8px */
  letter-spacing: 0.03em;
  color: var(--text);
}
.brand-lock .brand-accent { color: var(--accent); }

/* На мобильном устройстве (класс ставит JS) бренд ВСЕГДА портретного размера,
   независимо от ориентации/ширины — иначе в landscape (>720px) включался
   десктопный размер лого (109px) и перекрывал контент. */
html.is-mobile .brand-lock .brand-logo svg { width: 70px; height: 70px; }
html.is-mobile .brand-lock .brand-name { font-size: 21px; }

/* …и hero всегда «портретный»: без сдвигов/негативных отступов десктопа и без
   терминала — иначе в landscape (ширина > брейкпоинта) H1 налезал на бренд. */
html.is-mobile { --bg: #06080b; }   /* фон чуть темнее на мобиле (база под radial-glow body) */
/* …и сами teal-глоу приглушаем (≈вдвое), плюс затемняем canvas-сеть — на
   мобиле фон в целом темнее, включая teal. */
html.is-mobile body {
  background-image:
    radial-gradient(70% 50% at 50% -8%,  rgba(45, 212, 191, 0.05), transparent 60%),
    radial-gradient(46% 40% at 12% 14%,  rgba(34, 62, 70, 0.26),  transparent 70%),
    radial-gradient(50% 44% at 88% 22%,  rgba(22, 52, 58, 0.26),  transparent 72%),
    radial-gradient(60% 50% at 50% 108%, rgba(26, 56, 60, 0.20),  transparent 70%);
}
@keyframes net-fade-mobile { to { opacity: 0.5; } }
html.is-mobile .bg-net { animation-name: net-fade-mobile; }
html.is-mobile main { padding-top: 34px; }   /* как в портрете — без десктопных 108px сверху */
html.is-mobile .hero { min-height: auto; padding: 0 0 16px; }
html.is-mobile .hero-copy { transform: none; max-width: 640px; margin-top: 0; }
html.is-mobile .hero-copy::before { display: none; }
html.is-mobile .hero-term-layer { display: none; }
html.is-mobile .site-brand { margin-bottom: 28px; }

/* Hero: контент по центру, терминал — слой ниже (частью за контентом) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 54vh;
  padding: 22px 0 72px;
}
.hero-term-layer {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -150px;                       /* сдвинут левее вслед за контентом */
  width: 620px;
  max-width: 56%;
  transform: translateY(calc(-50% - 100px));
  perspective: 1700px;
  pointer-events: none;
}
.hero-term-layer .terminal { transform: rotateY(-26deg) rotateX(8deg) rotate(-2deg); }  /* угол ×2 */

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: -42px;            /* приподнят чуть выше */
  transform: translateX(-200px); /* сдвинут левее */
}
/* мягкая тёмная подложка под текстом, чтобы читался поверх терминала */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -50px -70px;
  z-index: -1;
  background: radial-gradient(58% 58% at 50% 48%, rgba(10, 12, 16, 0.88), transparent 78%);
  pointer-events: none;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; }
.hero .store-row {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);   /* обе стор-кнопки равной ширины — по самой широкой (Google) */
  justify-content: center;
}
.hero .sec-link { margin: 20px auto 0; }
/* кнопка «Сообщество в Telegram» переехала в секцию контактов */

.terminal {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-term);
  overflow: hidden;
  text-align: left;
  box-shadow:
    -20px 30px 60px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(45, 212, 191, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* отражение вниз — как от пола: зазор 40px. Плотное у самой нижней кромки
     терминала (для зеркала это «верх»), затем уходит в альфу вниз (~100px).
     Градиент перевёрнут, т.к. отражение зеркалится по вертикали. */
  -webkit-box-reflect: below 16px linear-gradient(transparent 72%, rgba(0, 0, 0, 0.86) 100%);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.03);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.d-red { background: #ff5f57; }
.d-yel { background: #ffbd2e; }
.d-grn { background: #28c941; }
.term-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  user-select: none;
}
.term-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  height: 282px;             /* все сценарии = 9 строк → высота неизменна */
  color: var(--text-dim);
  overflow: hidden;
}
.term-line { display: block; white-space: pre-wrap; }
.term-line .prompt { color: var(--accent); margin-right: 8px; font-weight: 700; }
.term-line .ok   { color: var(--ok); }
.term-line .warn { color: var(--warn); }
.term-line .fail { color: var(--fail); font-weight: 600; }
.term-line .dim  { color: var(--text-mute); }
.term-line .acc  { color: var(--accent); }
.term-line .hl   { color: var(--accent-bright); }
.term-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.15s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.15; }
}

.hero-h {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 22px;
}
.hero-line { display: block; white-space: nowrap; }   /* «У вас не работает X?» в одну строку */
.hero-h { color: #fff; }
.hero-accent {
  display: block;
  margin-top: 6px;
  color: #fff;
}

/* Glitch — цикличное слово */
.glitch {
  position: relative;
  display: inline-block;
  min-width: 4.6ch;
  text-align: center;
  color: var(--accent);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before { color: #ff3d57; animation: glitch-a 2.6s infinite steps(1); }
.glitch::after  { color: #41e7ff; animation: glitch-b 2.6s infinite steps(1); }
@keyframes glitch-a {
  0%, 64%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0,0); }
  66%  { clip-path: inset(8% 0 56% 0);  transform: translate(-3px,-1px); }
  70%  { clip-path: inset(40% 0 28% 0); transform: translate(3px,1px); }
  74%  { clip-path: inset(70% 0 8% 0);  transform: translate(-2px,1px); }
  78%  { clip-path: inset(20% 0 60% 0); transform: translate(2px,-1px); }
  82%  { clip-path: inset(0 0 100% 0);  transform: translate(0,0); }
}
@keyframes glitch-b {
  0%, 64%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0,0); }
  66%  { clip-path: inset(62% 0 12% 0); transform: translate(3px,1px); }
  70%  { clip-path: inset(22% 0 50% 0); transform: translate(-3px,-1px); }
  74%  { clip-path: inset(48% 0 30% 0); transform: translate(2px,-1px); }
  78%  { clip-path: inset(78% 0 4% 0);  transform: translate(-2px,1px); }
  82%  { clip-path: inset(100% 0 0 0);  transform: translate(0,0); }
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 34px;
}

/* ============================================================================
   Store badges (иконки крупнее)
   ============================================================================ */
.store-row {
  display: flex;            /* блочный flex → «Безопасность сети» уходит на новую строку */
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #1b232b, #0f151b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 212, 191, 0.2);
}
.store-ico { width: 35px; height: 35px; flex-shrink: 0; transform: translateX(-5px); }   /* +15%, контент сдвинут влево */
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; transform: translateX(-5px); }
.store-top {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.6);
}
.store-name { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }

/* «Скоро» — Android-кнопка без перехода, приглушённая, с чипом-бейджем */
.store--soon { position: relative; opacity: 0.62; cursor: default; }
.store--soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.store-badge {
  position: absolute; top: -9px; right: -8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #06120f; background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
}


/* стеклянное отражение под store-кнопками — только на десктопе */
@media (min-width: 901px) {
  .store {
    /* у кромки кнопки (100%) ~0.23 → ~0.11 → в ноль вниз */
    -webkit-box-reflect: below 8px linear-gradient(transparent 45%, rgba(0, 0, 0, 0.11) 75%, rgba(0, 0, 0, 0.23) 100%);
  }
}

/* Безопасность сети — всегда отдельной строкой под кнопками, выделена янтарём
   (display:flex + width:fit-content + margin auto = блок на своей строке, по центру) */
.sec-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 24px auto 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: #fbbf24;
  padding: 11px 22px;
  border: 1px solid rgba(245, 179, 11, 0.55);
  border-radius: 999px;
  background: rgba(245, 179, 11, 0.10);
  box-shadow: 0 0 16px rgba(245, 179, 11, 0.16);
  animation: sec-glow 2.6s ease-in-out infinite;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
@keyframes sec-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(245, 179, 11, 0.14); }
  50%      { box-shadow: 0 0 26px rgba(245, 179, 11, 0.36); }
}
.sec-link:hover {
  border-color: #fbbf24;
  background: rgba(245, 179, 11, 0.18);
  color: #fde68a;
  transform: translateY(-1px);
}
.sec-arrow { transition: transform 0.2s; }
.sec-link:hover .sec-arrow { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .sec-link { animation: none !important; }
}

/* ============================================================================
   Sections
   ============================================================================ */
.section { padding: 72px 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-align: center;
}
.section-h {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 40px;       /* единый отступ заголовок → контент по всем секциям */
  text-align: center;
}
.section-h .dim { display: block; color: var(--text-mute); }

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.feature {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 33, 0.95), rgba(12, 16, 21, 0.95));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(16px);
  animation: card-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.feature:nth-child(1) { animation-delay: 0.05s; }
.feature:nth-child(2) { animation-delay: 0.12s; }
.feature:nth-child(3) { animation-delay: 0.19s; }
.feature:nth-child(4) { animation-delay: 0.26s; }
.feature:nth-child(5) { animation-delay: 0.33s; }
.feature:nth-child(6) { animation-delay: 0.40s; }
.feature:nth-child(7) { animation-delay: 0.47s; }
.feature:nth-child(8) { animation-delay: 0.54s; }
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }

.feature::before {
  content: attr(data-num);
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;                  /* свечение внутри карточки — не обрезается */
  background: radial-gradient(85% 65% at 50% 0%, rgba(45, 212, 191, 0.15), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature:hover::after { opacity: 1; }

.f-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid rgba(15, 125, 111, 0.35);
  border-radius: 4px;
  background: rgba(15, 125, 111, 0.08);
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.feature p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.feature p code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-bright);
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(45, 212, 191, 0.08);
}

/* Featured (голосование) */
.feature--key {
  grid-column: span 2;
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-card-top), var(--bg-card-btm));
}
.feature--key h3 { font-size: 23px; }
.feature--key > p { max-width: 560px; }
.f-tag--key { color: var(--accent-bright); border-color: var(--line-strong); background: rgba(45, 212, 191, 0.10); }

.vote-demo {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 9, 12, 0.5);
  max-width: 460px;
}
.vote-demo-h {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.vote-row {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.vote-row:last-child { margin-bottom: 0; }
.vop { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--text-dim); }
.vbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.vbar i { display: block; height: 100%; border-radius: 999px; animation: vbar-grow 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.vbar i.ok   { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.vbar i.fail { background: linear-gradient(90deg, #7f1d1d, var(--fail)); }
@keyframes vbar-grow { from { width: 0 !important; } }
.vpc { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); text-align: right; }

/* === Final CTA === */
.cta-final { text-align: center; }
.cta-final .section-h { max-width: none; margin: 0 auto 16px; white-space: nowrap; }
.cta-sub { font-size: 16px; color: var(--text-dim); max-width: 520px; margin: 0 auto 34px; }

/* ============================================================================
   Промо-блок: аренда VPS (реферал, промокод SPLITOFF)
   ============================================================================ */
/* промо — обычная секция: отступы как у остальных, заголовок как .section-h */
.promo-row { display: flex; flex-direction: row; gap: 16px; align-items: stretch; justify-content: center; }
.promo-card {
  flex: 0 1 560px;   /* блок ~как одна из двух прежних карточек, не растягивается на всю ширину */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(245, 179, 11, 0.40);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(245, 179, 11, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-card-top), var(--bg-card-btm));
}
.promo-text { flex: 1; min-width: 0; text-align: left; }
.promo-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.promo-h {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.promo-sub { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.promo-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fde68a;
  padding: 1px 8px;
  border: 1px dashed rgba(245, 179, 11, 0.55);
  border-radius: 5px;
  background: rgba(245, 179, 11, 0.10);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.promo-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: #1a1205;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 179, 11, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-btn span { transition: transform 0.2s; }
.promo-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 179, 11, 0.42); }
.promo-btn:hover span { transform: translateX(3px); }

/* teal-вариант промо (Безопасность сети / ВПН) */
.promo-card--teal {
  border-color: var(--line-strong);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-card-top), var(--bg-card-btm));
}
.promo-card--teal .promo-tag { color: var(--accent); }
.promo-card--teal .promo-code {
  color: var(--accent-bright);
  border-color: var(--line-strong);
  background: rgba(45, 212, 191, 0.10);
}
.promo-card--teal .promo-btn {
  color: #062a26;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.28);
}
.promo-card--teal .promo-btn:hover { box-shadow: 0 12px 28px rgba(45, 212, 191, 0.42); }

/* ============================================================================
   Безопасность сети — карточки (реферальные слоты)
   ============================================================================ */
.security { text-align: center; }
.security .section-h { margin-bottom: 16px; }
.security .cta-sub { margin-bottom: 40px; }
.sec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  text-align: left;
}
.sec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-card-top), var(--bg-card-btm));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.sec-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(45, 212, 191, 0.18);
}
.sec-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
}
.sec-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.sec-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; }
.sec-go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.sec-go span { display: inline-block; transition: transform 0.2s; }
.sec-card:hover .sec-go span { transform: translateX(3px); }

/* ============================================================================
   Связь — контакты + форма обратной связи
   ============================================================================ */
.contact { text-align: center; }
.contact .cta-sub { margin: 0 auto 28px; }
.contact-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* все три кнопки одной ширины, контент по центру */
.contact-btns .tg-btn,
.contact-btns .mail-btn {
  width: 270px;
  box-sizing: border-box;
  justify-content: center;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #2aabee, #1c93d6);
  box-shadow: 0 8px 22px rgba(34, 150, 220, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 150, 220, 0.4); }

/* вторичная «тёмная» кнопка (Сообщество) — чтобы не было двух ярких синих рядом */
.tg-btn--dark {
  background: linear-gradient(180deg, #1b232b, #0f151b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.tg-btn--dark svg { fill: var(--accent); }   /* иконка бирюзовая — акцент бренда */
.tg-btn--dark:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 212, 191, 0.28); }

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card-btm);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.mail-btn:hover { border-color: var(--line-strong); color: var(--text); background: #11171d; }

.feedback { display: flex; flex-direction: column; gap: 12px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback input,
.feedback textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: rgba(7, 9, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.feedback input::placeholder,
.feedback textarea::placeholder { color: var(--text-mute); }
.feedback input:focus,
.feedback textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(7, 9, 12, 0.85);
}
.fb-send {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.22);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fb-send:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(45, 212, 191, 0.34); }
.fb-note { font-size: 13px; color: var(--accent); font-family: var(--font-mono); }

/* ============================================================================
   Footer
   ============================================================================ */
.page-footer { margin: 12px auto 28px; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.footer-copy { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text-dim); }
.footer-link { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-left: 16px; transition: color 0.15s; }
.footer-link:hover { color: var(--text); }
.footer-spacer { flex: 1; }
.footer-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-tg:hover { color: #2aabee; border-color: var(--line-strong); background: rgba(42, 171, 238, 0.08); }

/* ============================================================================
   Mobile
   ============================================================================ */
@media (max-width: 900px) {
  /* терминал в адаптиве не нужен — скрываем, остаётся центрированный контент */
  .hero { min-height: auto; padding: 6px 0 56px; }
  .hero-copy { max-width: 640px; transform: none; }
  .hero-copy::before { display: none; }
  .hero-term-layer { display: none; }

  .feature--key { grid-column: span 1; }
  .feature--key h3 { font-size: 20px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 16px; }
  /* равные отступы до бренда и после него; заголовок→контент = 18px */
  main    { padding: 34px 0 20px; }
  .site-brand { margin-bottom: 34px; }
  .section-h { margin-bottom: 26px; }
  .hero   { padding: 0 0 16px; }
  .section { padding: 29px 0 17px; }
  #features { padding-top: 41px; }

  .term-body { padding: 15px 16px 18px; font-size: 12px; line-height: 1.65; height: 296px; }
  .term-title { font-size: 11px; }

  .brand-lock .brand-name { font-size: 21px; }
  .brand-lock .brand-logo svg { width: 70px; height: 70px; }   /* ×4, затем −20% */
  .hero-line { white-space: normal; }
  .hero-h { font-size: clamp(23px, 6.4vw, 31px); }
  .hero-sub { font-size: 14.5px; }
  .hero-copy { margin-top: 0; }
  .cta-final .section-h { white-space: normal; }

  .promo-row { flex-direction: column; }
  .promo-card { flex: none; gap: 18px; padding: 22px; }   /* в колонке flex-basis задаёт высоту — сбрасываем, иначе тянется */
  .promo-btn { width: 100%; justify-content: center; }

  /* заголовки секций = размер главного заголовка hero */
  .section-h { font-size: clamp(23px, 6.4vw, 31px); }

  .features { gap: 10px; }
  .feature  { padding: 24px 20px; }
  .vote-row { grid-template-columns: 70px 1fr 40px; gap: 10px; }

  /* кнопки сторов — две равные колонки, но блок с отступом ≥32 по краям
     (не во всю ширину), контент в кнопках по центру */
  .store-row { gap: 10px; }
  .hero .store-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 0 32px;            /* box-sizing: border-box (глобально) → не переполняет */
  }
  .store { width: auto; padding: 11px 12px; gap: 8px; border-radius: 12px; justify-content: center; }
  .store-ico { width: 28px; height: 28px; transform: none; }   /* без оптического сдвига — контент центрируем */
  .store-text { line-height: 1.1; transform: none; }
  .store-top { font-size: 9.5px; }
  .store-name { font-size: 15px; }

  .footer-inner { gap: 10px; padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .net-packet,
  .glitch::before, .glitch::after, .sys-dot, .vbar i { animation: none !important; }
  .bg-net { animation: none !important; opacity: 1 !important; }
}
