/* ============================================================
   SFERA — фирменный стиль (тёмная киберэстетика, циан + маджента)
   ============================================================ */
:root {
  --bg: #0a0b1a;
  --bg-2: #0d0e24;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(0, 240, 255, 0.25);
  --text: #f2f4ff;
  --text-muted: #9aa3c7;
  --cyan: #00f0ff;
  --magenta: #ff3cf7;
  --purple: #a855f7;
  --danger: #ff5c7a;
  --grad: linear-gradient(90deg, var(--magenta), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(255, 60, 247, 0.18), rgba(0, 240, 255, 0.12));
  --radius: 18px;
  --radius-sm: 12px;
  --glow-cyan: 0 0 28px rgba(0, 240, 255, 0.25);
  --glow-magenta: 0 0 28px rgba(255, 60, 247, 0.22);
}

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

/* hidden должен побеждать любые display у компонентов */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  /* кибер-сетка + неоновые засветки */
  background-image:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(0, 240, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 60, 247, 0.09), transparent 70%),
    radial-gradient(ellipse 55% 40% at 50% 105%, rgba(168, 85, 247, 0.08), transparent 70%),
    linear-gradient(90deg, rgba(0, 240, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 60, 247, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

a { color: var(--cyan); text-decoration: none; }
::selection { background: rgba(0, 240, 255, 0.3); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 780px; }

/* ---------- Градиентный текст ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.accent {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 26, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--text); text-transform: uppercase;
}
.logo__mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.55)); }
.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo--footer { font-size: 1.1rem; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text-muted); font-size: 0.93rem; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--cyan); }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 0.98rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease;
  text-align: center; font-family: inherit; position: relative;
}
.btn--primary {
  background: var(--grad);
  color: #07081a;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.28), 0 0 22px rgba(255, 60, 247, 0.14);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.45), 0 0 30px rgba(255, 60, 247, 0.25);
}
.btn--outline {
  background: rgba(0, 240, 255, 0.04);
  color: var(--text);
  border-color: rgba(0, 240, 255, 0.3);
}
.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; border-radius: 14px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ============ HERO ============ */
.hero { padding: 92px 0 70px; position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center;
  position: relative;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px var(--cyan);
}
.hero h1 {
  font-size: 3rem; line-height: 1.12; margin-bottom: 22px;
  font-weight: 800; letter-spacing: -0.01em;
}
.hero__subtitle { color: var(--text-muted); font-size: 1.13rem; margin-bottom: 30px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Сфера (фирменный образ) ---------- */
.hero__card { position: relative; }
.orb-scene {
  position: absolute; inset: -60px -40px auto auto;
  width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(0, 240, 255, 0.35), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(255, 60, 247, 0.3), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(13, 14, 36, 0.9), rgba(10, 11, 26, 0.4));
  box-shadow:
    inset 0 0 60px rgba(0, 240, 255, 0.12),
    0 0 90px rgba(0, 240, 255, 0.18),
    0 0 140px rgba(255, 60, 247, 0.12);
  animation: orb-float 7s ease-in-out infinite;
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: -14%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.25);
  transform: rotateX(68deg);
  animation: orb-spin 14s linear infinite;
}
.orb::after {
  inset: -26%;
  border-color: rgba(255, 60, 247, 0.18);
  animation-duration: 22s; animation-direction: reverse;
}
@keyframes orb-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -16px; } }
@keyframes orb-spin { from { transform: rotateX(68deg) rotateZ(0deg); } to { transform: rotateX(68deg) rotateZ(360deg); } }

/* ============ СЕКЦИИ ============ */
.section { padding: 78px 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(13, 14, 36, 0.65) 18%, rgba(13, 14, 36, 0.65) 82%, transparent);
}
.section-label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--cyan); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before, .section-label::after {
  content: ""; height: 1px; width: 42px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-label::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.section__title { font-size: 2.2rem; text-align: center; margin-bottom: 14px; font-weight: 800; }
.section__subtitle { text-align: center; color: var(--text-muted); margin-bottom: 44px; max-width: 620px; margin-left: auto; margin-right: auto; }
.section__title + .grid, .section__title + .steps { margin-top: 44px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============ СТАТИСТИКА ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 56px; padding-top: 34px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat__value {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { color: var(--text-muted); font-size: 0.86rem; margin-top: 2px; }

/* ============ КАРТОЧКИ ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.55), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 240, 255, 0.18);
}
.card h3 { margin-bottom: 8px; font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ ШАГИ ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; margin: 0 auto 18px;
  color: var(--text);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.2);
}
.step h3 { margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ ТАРИФЫ ============ */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-cyan);
}
.price-card--best {
  background:
    linear-gradient(rgba(16, 18, 40, 0.95), rgba(16, 18, 40, 0.95)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 36px rgba(255, 60, 247, 0.14), 0 0 36px rgba(0, 240, 255, 0.14);
}
.price-card--intro {
  text-align: left;
  background:
    linear-gradient(rgba(14, 16, 36, 0.96), rgba(14, 16, 36, 0.96)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--purple)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 44px rgba(0, 240, 255, 0.16);
  position: relative; z-index: 1;
}
.price-card__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #07081a;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}
.price-card__label {
  color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
}
.price-card__price { font-size: 2.4rem; font-weight: 800; }
.price-card__old { color: var(--text-muted); font-size: 1.3rem; font-weight: 600; margin-right: 6px; }
.price-card__period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.price-card__features { list-style: none; margin-bottom: 18px; }
.price-card__features li { padding: 6px 0; color: var(--text-muted); }
.price-card__features li::before { content: "✓  "; color: var(--cyan); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.intro-banner {
  margin-top: 40px; padding: 26px 30px;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.intro-banner strong { display: block; font-size: 1.12rem; }
.intro-banner span { color: var(--text-muted); }

/* ============ FAQ ============ */
.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq[open], .faq:hover { border-color: var(--border-strong); }
.faq summary {
  padding: 19px 24px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--cyan); line-height: 1;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 24px 20px; color: var(--text-muted); }

/* ============ CTA ============ */
.cta__inner {
  text-align: center; padding: 56px 30px;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}
.cta h2 { font-size: 2.1rem; margin-bottom: 10px; font-weight: 800; }
.cta p { color: var(--text-muted); margin-bottom: 26px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 50px; }
.footer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__muted { color: var(--text-muted); font-size: 0.85rem; }

/* ============ ВХОД ============ */
.auth {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center; justify-content: center; padding: 64px 20px;
  position: relative;
}
.auth__card {
  background: rgba(13, 14, 36, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px; padding: 42px; max-width: 440px; width: 100%;
  position: relative;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}
.auth__card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}
.auth__card h1 { font-size: 1.55rem; margin-bottom: 8px; font-weight: 800; }
.auth__subtitle { color: var(--text-muted); margin-bottom: 26px; font-size: 0.95rem; }
.auth__form { display: flex; flex-direction: column; gap: 13px; }
.auth__form label {
  font-size: 0.78rem; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.auth__form input {
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 11, 26, 0.7);
  color: var(--text); font-size: 1rem; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.auth__form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}
.auth__hint { color: var(--text-muted); font-size: 0.9rem; }
.auth__error { color: var(--danger); margin-top: 16px; font-size: 0.95rem; }
.auth__note { margin-top: 26px; color: var(--text-muted); font-size: 0.85rem; }

/* ============ ЛИЧНЫЙ КАБИНЕТ ============ */
.cabinet { padding: 52px 0 84px; }
.cabinet h1 { margin-bottom: 30px; font-size: 2rem; font-weight: 800; }
.cabinet__loading { color: var(--text-muted); padding: 40px 0; }
.cabinet__grid { margin-bottom: 20px; }

.panel {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35), transparent);
}
.panel h2 { font-size: 1.18rem; margin-bottom: 18px; font-weight: 700; }
.panel__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.panel__row:last-of-type { border-bottom: none; }
.panel__label {
  color: var(--text-muted); font-size: 0.86rem;
  text-transform: uppercase; letter-spacing: 0.1em; align-self: center;
}
.panel__hint { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0; }
.panel__hint--muted { font-size: 0.85rem; }
.panel__divider { height: 1px; background: var(--border); margin: 20px 0; }

.panel--intro {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background:
    linear-gradient(rgba(14, 16, 36, 0.92), rgba(14, 16, 36, 0.92)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.12), 0 0 36px rgba(255, 60, 247, 0.1);
}
.panel--intro::before { display: none; }
.panel--intro h2 { margin-bottom: 6px; }
.panel--intro p { color: var(--text-muted); }

.copy-row { display: flex; gap: 10px; }
.copy-row input {
  flex: 1; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 11, 26, 0.7);
  color: var(--cyan); font-size: 0.88rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none; min-width: 0;
}

.status-ok { color: var(--cyan); font-weight: 700; text-shadow: 0 0 14px rgba(0, 240, 255, 0.5); }
.status-bad { color: var(--danger); font-weight: 700; }

/* ============ МОДАЛКА ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 6, 16, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal__card {
  background: rgba(13, 14, 36, 0.97);
  border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 34px; max-width: 430px; width: 100%;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  position: relative;
}
.modal__card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}
.modal__card h2 { margin-bottom: 4px; font-weight: 800; }
.modal__card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ АДАПТИВ ============ */
@media (max-width: 900px) {
  .hero { padding: 64px 0 50px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.3rem; }
  .orb { width: 260px; height: 260px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .section__title { font-size: 1.7rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .auth__card { padding: 30px 22px; }
  .panel { padding: 24px 20px; }
  .panel--intro { flex-direction: column; align-items: stretch; text-align: center; }
  .cta h2 { font-size: 1.6rem; }
  .copy-row { flex-direction: column; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.cookie-banner__btn {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
}
