/* AURIX VPN — дизайн-система.
   Палитра и геометрия взяты из прежнего самописного сайта (/var/www/aurixvpn.com),
   чтобы не изобретать заново то, что уже согласовано. */

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

:root {
  --accent-1: #01aad4;
  --accent-2: #02d7f3;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --text-primary: #eaeaf0;
  --text-secondary: #a0a0b8;
  --text-muted: #666680;

  --glass-bg: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-shadow: rgba(0, 0, 0, .3);
  --divider: rgba(255, 255, 255, .06);

  --tag-bg: rgba(2, 215, 243, .1);
  --tag-text: #02d7f3;

  --blob-1: rgba(2, 215, 243, .12);
  --blob-2: rgba(1, 170, 212, .1);
  --blob-3: rgba(130, 80, 255, .08);

  --danger: #ff6b6b;
  --ok: #3ddc97;

  --grid-line: rgba(255, 255, 255, .035);
  --grain-opacity: .05;

  --radius-card: 20px;
  --radius-btn: 16px;
  --container: 1100px;
}

:root[data-theme="light"] {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #8888a0;

  --glass-bg: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-shadow: rgba(0, 0, 0, .06);
  --divider: rgba(0, 0, 0, .06);

  --blob-1: rgba(2, 215, 243, .25);
  --blob-2: rgba(1, 170, 212, .2);
  --blob-3: rgba(130, 80, 255, .15);

  --grid-line: rgba(20, 30, 60, .05);
  --grain-opacity: .035;
}

/* ---------------------------------------------------------- база */

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

/* Фон — те же размытые пятна, что на privacy/terms/proxy: фиксированный слой
   с тремя кругами и медленным дрейфом. Геометрия и тайминги совпадают
   с теми страницами, чтобы переход между доменами не читался как смена сайта. */
.bg-canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: var(--blob-1); top: -10%; left: -5%; }
.blob-2 { width: 500px; height: 500px; background: var(--blob-2); top: 30%; right: -10%; animation-delay: -7s; }
.blob-3 { width: 450px; height: 450px; background: var(--blob-3); bottom: -5%; left: 30%; animation-delay: -14s; }
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 48px -32px var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease,
              border-color .22s ease, background .22s ease, opacity .22s ease;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  color: #04121a;
  background: var(--accent-gradient);
  box-shadow: 0 12px 30px -16px rgba(2, 215, 243, .9);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(2, 215, 243, 1); }

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.btn-ghost:hover:not(:disabled) { border-color: rgba(1, 170, 212, .55); transform: translateY(-2px); }

.btn-block { width: 100%; }

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

.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--divider);
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
/* Знак — сам логотип (щит с «A»), а не буква в квадрате. */
.brand-mark {
  width: 32px; height: 32px; flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(2, 215, 243, .35));
}
.nav { display: flex; align-items: center; gap: 22px; margin-left: 14px; }
.nav a { font-size: .9rem; color: var(--text-secondary); transition: color .2s ease; }
.nav a:hover { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: var(--text-secondary);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  transition: color .2s ease, border-color .2s ease;
}
.icon-btn:hover { color: var(--text-primary); border-color: rgba(1, 170, 212, .5); }
.icon-btn svg { width: 17px; height: 17px; }

.burger { display: none; }

/* Подписи, которые меняются на узких экранах. */
.only-narrow { display: none; }

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

.section { padding: 74px 0; }
.section-head { margin-bottom: 30px; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 9px;
}
.section-title {
  font-size: clamp(1.6rem, 3.1vw, 2.15rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.18;
}
.section-sub { margin-top: 10px; font-size: .95rem; line-height: 1.6; color: var(--text-secondary); max-width: 62ch; }

/* появление по скроллу */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

.hero { padding: 76px 0 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(1, 170, 212, .3); background: var(--tag-bg);
  font-size: .78rem; font-weight: 500;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(2, 215, 243, .55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(2, 215, 243, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 215, 243, 0); }
}
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.07; margin-bottom: 16px;
}
.grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { max-width: 58ch; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-trust { font-size: .8rem; color: var(--text-muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 34px; overflow: hidden; border-radius: var(--radius-card);
  border: 1px solid var(--glass-border); background: var(--glass-border); }
.stat { padding: 18px 20px; background: var(--bg-primary); }
.stat-v { display: flex; align-items: baseline; gap: 5px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.stat-v b { font-weight: inherit; }
.stat-v span { font-size: .78rem; font-weight: 500; color: var(--text-secondary); }
.stat-l { margin-top: 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); }

/* ---------------------------------------------------------- карточки */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

.card { padding: 26px; transition: transform .26s cubic-bezier(.2,.8,.2,1), border-color .26s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(1, 170, 212, .45); }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  display: grid; place-items: center; border-radius: 12px;
  border: 1px solid rgba(1, 170, 212, .26);
  background: linear-gradient(135deg, rgba(1,170,212,.16), rgba(2,215,243,.05));
  color: var(--accent-2);
}
.card-icon svg { width: 19px; height: 19px; }
.card-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.card-title { font-size: 1.06rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.card-text { font-size: .89rem; line-height: 1.6; color: var(--text-secondary); }
.card-metric {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--divider);
}
.card-metric b { font-size: 1rem; font-weight: 700; color: var(--accent-2); }
.card-metric span { font-size: .74rem; color: var(--text-muted); }

/* шаги */
.step-num {
  width: 40px; height: 40px; margin-bottom: 15px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(1, 170, 212, .3);
  background: linear-gradient(135deg, rgba(1,170,212,.18), rgba(2,215,243,.05));
  font-size: .85rem; font-weight: 700; color: var(--accent-2);
}

/* платформы */
.platform { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; }
.platform svg { width: 21px; height: 21px; color: var(--accent-2); }
.platform span { font-size: .8rem; font-weight: 500; text-align: center; }

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

.tariff-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { color: var(--text-primary); border-color: rgba(1, 170, 212, .45); }
.chip[aria-pressed="true"] { color: #04121a; background: var(--accent-gradient); border-color: transparent; font-weight: 600; }

.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.tariff { position: relative; display: flex; flex-direction: column; padding: 24px 22px; }
.tariff.is-hot { border-color: rgba(1, 170, 212, .55); box-shadow: 0 20px 46px -30px rgba(2, 215, 243, .9); }
.tariff-badge {
  position: absolute; top: -10px; left: 22px; padding: 4px 11px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #04121a; background: var(--accent-gradient);
}
.tariff-name { font-size: 1.05rem; font-weight: 600; }
.tariff-for { margin-top: 4px; font-size: .78rem; color: var(--text-muted); min-height: 2.6em; line-height: 1.35; }
.tariff-price { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; }
.tariff-price b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tariff-price span { font-size: .78rem; color: var(--text-secondary); }
.tariff-note { margin-top: 6px; font-size: .74rem; color: var(--text-muted); min-height: 1.2em; }
.tariff-feats { list-style: none; margin: 16px 0 0; padding: 15px 0 0; border-top: 1px solid var(--divider); }
.tariff-feats li { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; padding: 5px 0; }
.tariff-feats li span { color: var(--text-muted); }
.tariff-feats li b { font-weight: 600; }
.tariff .btn { margin-top: 18px; }
.tariff-foot { margin-top: 18px; font-size: .82rem; color: var(--text-muted); }
.tariff-foot a { color: var(--accent-2); }
.tariff-foot a:hover { text-decoration: underline; }

.tariffs-loading { padding: 36px; text-align: center; color: var(--text-muted); font-size: .9rem; }

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

.faq { display: grid; gap: 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: .95rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-chev {
  flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; color: var(--accent-2);
  border: 1px solid var(--glass-border);
  transition: transform .25s ease;
}
.faq-chev svg { width: 13px; height: 13px; }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; font-size: .89rem; line-height: 1.65; color: var(--text-secondary); }

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

.cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px; padding: 30px 32px;
}
.cta h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.cta p { font-size: .92rem; color: var(--text-secondary); max-width: 48ch; }
.cta-note { margin-top: 8px; font-size: .74rem; color: var(--text-muted); }

.footer { border-top: 1px solid var(--divider); padding: 26px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { font-size: .95rem; gap: 9px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-copy { font-size: .84rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .84rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

/* ---------------------------------------------------------- модалка входа */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 16, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative; width: 100%; max-width: 400px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 30px 28px 26px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  transform: translateY(10px) scale(.985);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal-panel { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px; color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.modal-close:hover { color: var(--text-primary); background: var(--glass-bg); }
.modal-close svg { width: 15px; height: 15px; }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-mark { width: 56px; height: 56px; margin: 0 auto 14px; }
.auth-head h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.auth-head p { margin-top: 5px; font-size: .85rem; color: var(--text-secondary); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 13px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  margin-bottom: 20px; }
.tab { padding: 9px 12px; border-radius: 10px; font-size: .86rem; font-weight: 500; color: var(--text-secondary);
  transition: background .2s ease, color .2s ease; }
.tab[aria-selected="true"] { color: var(--text-primary); background: var(--bg-primary); font-weight: 600; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.field-row a { font-size: .76rem; color: var(--accent-2); }
.field-row a:hover { text-decoration: underline; }
.input {
  width: 100%; min-height: 46px; padding: 12px 14px;
  border-radius: 13px; font-size: .92rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: border-color .2s ease, background .2s ease;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: rgba(1, 170, 212, .6); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.input-group .btn { min-height: 46px; padding: 12px 16px; font-size: .84rem; }

.checkbox { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--text-secondary); margin-bottom: 16px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent-1); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--divider); }
.divider span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

.oauth-btn { width: 100%; margin-bottom: 10px; }
.oauth-btn .tg { width: 19px; height: 19px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; color: #fff; }
.oauth-btn .tg svg { width: 11px; height: 11px; }
.oauth-btn .ya {
  width: 19px; height: 19px; border-radius: 5px; background: #fc3f1d;
  display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}

.auth-msg { margin: 4px 0 14px; padding: 11px 13px; border-radius: 11px; font-size: .84rem; line-height: 1.45; display: none; }
.auth-msg.is-error { display: block; color: var(--danger); background: rgba(255, 107, 107, .09); border: 1px solid rgba(255, 107, 107, .3); }
.auth-msg.is-ok { display: block; color: var(--ok); background: rgba(61, 220, 151, .09); border: 1px solid rgba(61, 220, 151, .3); }

.turnstile-holder { display: flex; justify-content: center; margin-bottom: 14px; min-height: 0; }
.auth-foot { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--text-muted); }
.auth-foot a { color: var(--accent-2); }
.auth-foot a:hover { text-decoration: underline; }

/* страница входа (без модалки) */
.auth-page { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 20px; }
.auth-page .modal-panel { transform: none; box-shadow: 0 30px 70px -40px var(--glass-shadow); }

/* ------------------------------------------------- фактура фона */

/* Сетка и зерно поверх пятен: убирают ощущение плоской заливки.
   Оба слоя внутри .bg-canvas, поэтому не участвуют в потоке страницы. */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(125% 85% at 50% -10%, #000 5%, transparent 68%);
  mask-image: radial-gradient(125% 85% at 50% -10%, #000 5%, transparent 68%);
}
.bg-grain {
  position: absolute; inset: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------- прожектор на стекле */

.glass { position: relative; }
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%),
              rgba(2, 215, 243, .16), transparent 62%);
}
.glass:hover::after { opacity: 1; }
@media (hover: none) { .glass::after { display: none; } }

/* ------------------------------------------------- полоска прогресса */

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--accent-gradient);
  box-shadow: 0 0 14px rgba(2, 215, 243, .55);
  border-radius: 0 2px 2px 0;
}

/* ------------------------------------------------- визуал в герое */

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 44px; align-items: center;
}

.tunnel { padding: 18px 18px 16px; }
.tunnel-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.tunnel-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.tunnel-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.4s ease-out infinite;
}

.tunnel-wire { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; }
.tunnel-end {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 12px; color: var(--accent-2);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
}
.tunnel-end svg { width: 19px; height: 19px; }
.tunnel-svg { flex: 1; height: 46px; }
.tunnel-rail { fill: none; stroke: var(--glass-border); stroke-width: 6; stroke-linecap: round; }
.tunnel-flow {
  fill: none; stroke: url(#tunnelGrad); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 15; animation: tunnelFlow 1.4s linear infinite;
}
@keyframes tunnelFlow { to { stroke-dashoffset: -40; } }

.tunnel-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.loc { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-secondary); }
.loc i {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-2); opacity: .3;
  animation: locBlink 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .55s);
}
@keyframes locBlink {
  0%, 78%, 100% { opacity: .28; box-shadow: none; }
  86%           { opacity: 1; box-shadow: 0 0 9px rgba(2, 215, 243, .9); }
}

.tunnel-foot {
  display: flex; gap: 18px; margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--divider);
}
.tunnel-foot div { display: flex; flex-direction: column; }
.tunnel-foot b { font-size: 1rem; letter-spacing: -.01em; }
.tunnel-foot span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* ------------------------------------------------- маскот */

.mascot {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 26px; padding: 30px; overflow: hidden; align-items: center;
}
.mascot-copy p { margin-top: 12px; font-size: .95rem; line-height: 1.6; color: var(--text-secondary); }
.mascot-list { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.mascot-list li {
  position: relative; padding-left: 22px;
  font-size: .9rem; color: var(--text-secondary);
}
.mascot-list li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-gradient);
}
.mascot-art {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(72% 62% at 50% 26%, #16162e, #0a0a1a 72%);
}
.mascot-art img {
  display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------- аккордеон */

/* Высоту ответа анимируем из JS, поэтому содержимое обязано обрезаться. */
.faq .faq-answer { overflow: hidden; will-change: height; }

/* ------------------------------------------------- страница 404 */

.notfound { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 20px; }
.notfound-panel { max-width: 640px; padding: 34px 30px 30px; text-align: center; overflow: hidden; }
.notfound-panel h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.notfound-panel p { margin: 12px auto 22px; max-width: 46ch; color: var(--text-secondary); line-height: 1.6; }
.notfound-art {
  margin: 26px auto 0; max-width: 260px; overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(72% 62% at 50% 26%, #16162e, #0a0a1a 72%);
}
.notfound-art img {
  width: 100%; height: auto; display: block;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

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

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 12px; }
}

@media (max-width: 640px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .brand { font-size: .92rem; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 7px; }
  .header-actions .btn { min-height: 40px; padding: 10px 16px; font-size: .88rem; }
  .icon-btn { width: 36px; height: 36px; }
  .nav { display: none; }
  .burger { display: grid; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0;
    padding: 8px 20px 16px; margin: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--divider);
  }
  .nav.is-open a { padding: 12px 0; font-size: .95rem; }
  .tariffs { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-panel { padding: 26px 20px 22px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .mascot { grid-template-columns: 1fr; padding: 26px 24px; gap: 22px; }
  .mascot-art img { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .tunnel-flow, .loc i, .tunnel-live i { animation: none; }
  .mascot-art img { transition: none; }
}
