/* ─── V2 "Neon Cyber" Theme ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #060b18;
  --bg-card:     #0c1528;
  --bg-card-2:   #101d35;
  --accent:      #06b6d4;
  --accent-2:    #a855f7;
  --accent-grad: linear-gradient(135deg, #06b6d4, #a855f7);
  --text:        #e2e8f0;
  --text-muted:  #7a8ba8;
  --text-label:  #94a3b8;
  --border:      rgba(6,182,212,0.12);
  --success:     #22c55e;
  --error:       #ef4444;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 32px rgba(0,0,0,0.5);
  --glow:        0 0 20px rgba(6,182,212,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 8px 24px; min-height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,11,24,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ─── Navbar responsive ─── */
@media (max-width: 640px) {
  .navbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 4px 16px;
    gap: 6px;
    align-items: center;
  }
}
.navbar__logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; min-width: 0; flex-shrink: 0; }
.navbar__logo span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.navbar__logo img { height: 76px; width: auto; object-fit: contain; }
@media (max-width: 1100px) { .navbar__logo img { height: 60px; } }
@media (max-width: 900px)  { .navbar__logo img { height: 52px; } }
@media (max-width: 640px)  { .navbar__logo img { height: 76px; } .navbar__logo { font-size: 1rem; } }
@media (max-width: 480px)  { .navbar__logo img { height: 66px; } }
@media (max-width: 380px)  { .navbar__logo img { height: 58px; } .navbar__logo { font-size: .9rem; gap: 6px; } }

.navbar__links { display: flex; gap: 8px; flex-shrink: 0; }
.navbar__links a {
  font-size: 0.9rem; font-weight: 500; color: #06b6d4;
  padding: 6px 14px; border-radius: 100px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.navbar__links a:hover {
  color: #fff !important;
  background: rgba(6,182,212,0.15);
  box-shadow: 0 0 0 1.5px rgba(6,182,212,0.4), 0 2px 12px rgba(6,182,212,0.15);
}
.navbar__cta {
  background: var(--accent-grad) !important;
  color: #fff !important; font-weight: 700;
  padding: 7px 20px !important; border-radius: 100px; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(6,182,212,0.35);
}
.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,182,212,0.5) !important;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: auto; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 24px 30px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(6,182,212,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(168,85,247,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
  pointer-events: none;
}
/* Animated grid */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
  pointer-events: none; opacity: 0.6;
}
@keyframes gridScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero__inner { max-width: 760px; position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent);
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 28px;
  animation: pulse-cyan 2.5s ease-in-out infinite;
}
@keyframes pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.25); }
  50%       { box-shadow: 0 0 0 10px rgba(6,182,212,0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-grad); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  padding: 14px 32px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(6,182,212,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(6,182,212,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero__platforms { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__platforms-icons { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero__platforms-icons img {
  height: 32px; width: auto; object-fit: contain; opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 0 6px rgba(6,182,212,0.3));
}
.hero__platforms-icons img:hover { opacity: 1; transform: translateY(-2px); }
.hero__platforms-text { font-size: 0.82rem; color: var(--text-muted); }

/* ─── Section base ─────────────────────────────────────────────────────────── */
section { padding: 80px 24px; }
.section__label {
  display: inline-block; color: var(--accent);
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section__sub { color: var(--text-muted); font-size: 1rem; max-width: 520px; text-align: center; margin-left: auto; margin-right: auto; }
.container { max-width: 1180px; margin: 0 auto; }

/* ─── Plans ────────────────────────────────────────────────────────────────── */
#plans { background: linear-gradient(180deg, var(--bg) 0%, #080e1f 100%); padding-top: 24px; }
.plans__header { text-align: center; margin-bottom: 48px; }

.plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 0; }
.plans__grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.plans__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.plans__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.plans__grid[data-count="1"] { grid-template-columns: 1fr; }

.plan-skeleton {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); height: 320px; position: relative; overflow: hidden;
}
.plan-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(6,182,212,0.05) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; display: flex; flex-direction: column; gap: 10px;
}
.plan-card:hover {
  border-color: rgba(6,182,212,0.4); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(6,182,212,0.12), var(--glow);
}
.plan-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15), 0 8px 32px rgba(6,182,212,0.2);
}

.plan-card--trial {
  border-color: rgba(34,197,94,0.25);
  background: linear-gradient(160deg, #0c1528 0%, #0d1a12 100%);
}
.plan-card--trial:hover { border-color: rgba(34,197,94,0.55); box-shadow: 0 8px 32px rgba(34,197,94,0.12); }
.plan-card--trial.active { border-color: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,0.15), 0 8px 32px rgba(34,197,94,0.2); }
.plan-card--trial .plan-price { color: var(--success); }
.plan-card--trial .plan-price span { color: rgba(34,197,94,0.6); }

.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 4px 14px;
  border-radius: 100px; white-space: nowrap;
}
.plan-badge--trial { background: linear-gradient(135deg, #15803d, #22c55e); }
.plan-badge--popular { background: linear-gradient(135deg, #06b6d4, #a855f7); }

.plan-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.plan-price { font-size: 2rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.plan-per-month { font-size: 0.78rem; color: var(--text-muted); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

.plan-pay-btn {
  display: block; width: 100%; margin-top: auto; padding: 10px 16px;
  background: var(--accent-grad); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}
.plan-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,182,212,0.45); }
.plan-card--trial .plan-pay-btn { background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 4px 16px rgba(34,197,94,0.3); }

/* ─── Checkout Form ─────────────────────────────────────────────────────────── */
.checkout-wrap { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); }
.checkout-wrap.open { max-height: 520px; }

.checkout-box {
  margin-top: 32px; background: var(--bg-card-2);
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px 36px;
}
.checkout-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px; }

.form-input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; padding: 13px 16px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,0.15); }
.form-input.error { border-color: var(--error); }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 6px; min-height: 18px; }

.pay-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method-btn {
  flex: 1; min-width: 100px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600; padding: 10px 16px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pay-method-btn:hover { border-color: rgba(6,182,212,0.4); color: var(--text); }
.pay-method-btn.active { border-color: var(--accent); background: rgba(6,182,212,0.1); color: var(--text); }

.btn-pay { width: 100%; margin-top: 8px; padding: 16px; font-size: 1.05rem; }
.pay-error { font-size: 0.85rem; color: var(--error); text-align: center; margin-top: 10px; min-height: 22px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Features ──────────────────────────────────────────────────────────────── */
#features { background: var(--bg); }
.features__header { text-align: center; margin-bottom: 48px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: rgba(12,21,40,0.8);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-grad); opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(6,182,212,0.3);
  box-shadow: 0 12px 32px rgba(6,182,212,0.08);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  background: rgba(6,182,212,0.10);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Inline SVG icon helpers ───────────────────────────── */
.svg-icon { display: inline-block; vertical-align: -2px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.whitelist-label .svg-icon,
.promo-badge .svg-icon { width: 14px; height: 14px; }
.pay-method-btn .svg-icon { width: 16px; height: 16px; }
.footer__links .svg-icon { width: 14px; height: 14px; }

/* Улучшенная кликабельность на мобильных */
.device-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(6,182,212,0.2); /* подсветка при тапе */
}

.device-card:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* Делаем всю карточку полностью кликабельной */
.device-card * {
  pointer-events: none; /* чтобы клик по иконке/тексту тоже работал по карточке */
}

.device-card img {
  pointer-events: auto; /* на всякий случай */
}

/* Улучшаем мобильную сетку */
@media (max-width: 640px) {
  .devices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .device-card {
    padding: 24px 12px;
    min-height: 140px;
  }
  
  .device-icon img {
    width: 64px;
    height: 64px;
  }
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
#faq { background: linear-gradient(180deg, #080e1f 0%, var(--bg) 100%); }
.faq__header { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(6,182,212,0.3); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-size: 0.95rem; font-weight: 600; gap: 16px; user-select: none;
}
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--text-muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, border-color 0.2s;
  font-style: normal; font-size: 0.75rem; color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 22px 18px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand { max-width: 280px; }
.footer__logo { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.footer__logo span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__legal { max-width: 1180px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.footer__legal p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; opacity: 0.7; }

/* ─── Scroll animations ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.plans-error { text-align: center; color: var(--text-muted); padding: 48px 0; font-size: 0.95rem; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) { .plans__grid[data-count="5"] { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .plans__grid[data-count="5"] { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .plans__grid, .plans__grid[data-count="5"] { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .checkout-box { padding: 24px 20px; }
  .footer__inner { flex-direction: column; }
  .hide-on-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .hero { min-height: auto; padding: 80px 16px 8px; }
  .hero__badge { margin-bottom: 16px; font-size: 0.75rem; }
  .hero h1 { font-size: 2rem; margin-bottom: 14px; }
  section { padding: 36px 16px; }
  #plans { padding-top: 8px; }
  .plans__header { margin-bottom: 20px; }
  .plans__grid, .plans__grid[data-count="5"] { grid-template-columns: 1fr; gap: 12px; }
  #plans .container { display: flex; flex-direction: column; }
  #plans .plans__header { order: 0; }
  #plans-grid { order: 1; }
  #checkout-wrap { order: 2; margin-top: 0; }
  .checkout-box { margin-top: 16px; padding: 20px 16px; }
  .section__title { font-size: 1.4rem; }
  .features__grid { gap: 14px; }
  .feature-card { padding: 22px 18px; }
}
@media (max-width: 360px) {
  section { padding: 28px 12px; }
  .section__title { font-size: 1.25rem; }
  .checkout-box { padding: 16px 12px; }
  .pay-methods { flex-direction: column; }
  .pay-method-btn { min-width: unset; }
}