/* ════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════ */
:root {
  --base:        #07080f;
  --surface:     #0f1020;
  --surface-2:   #161830;
  --border:      #1e2240;
  --border-glow: #a855f720;

  --accent:      #a855f7;
  --accent-dark: #7c3aed;
  --accent-glow: #a855f740;

  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;

  --green:       #22c55e;
  --red:         #ef4444;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 68px;
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.header-cta { padding: 9px 20px; font-size: 0.85rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Background decorations */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: -120px; left: -80px;
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent);
  bottom: -60px; right: 10%;
  animation: orb-drift 10s ease-in-out infinite alternate-reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { animation: hero-in 0.7s ease both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--border-glow);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero visual — floating cards */
.hero-visual {
  position: relative;
  height: 360px;
  animation: hero-in 0.9s 0.15s ease both;
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero-card--main {
  width: 260px;
  top: 40px; left: 60px;
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.hc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hc-icon { font-size: 1.4rem; }
.hc-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; flex: 1; }
.hc-badge {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.hc-price { font-size: 1rem; margin-bottom: 12px; color: var(--text-dim); }
.hc-price strong { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }
.hc-bar { background: var(--border); border-radius: 4px; height: 4px; margin-bottom: 8px; overflow: hidden; }
.hc-bar-fill {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 4px;
}
.hc-note { font-size: 0.78rem; color: var(--text-muted); }

.hero-card--secondary {
  width: 180px;
  top: 200px; left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  animation: float-card 4s ease-in-out infinite;
}
.hero-card--tertiary {
  width: 160px;
  top: 20px; right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  animation: float-card 5s 1s ease-in-out infinite;
}
.hc-price-sm { font-size: 0.82rem; color: var(--accent); font-family: var(--font-head); font-weight: 600; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ════════════════════════════════════════════
   WHY SECTION
════════════════════════════════════════════ */
.why-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-item { text-align: center; }
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.why-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════════
   CATALOG SECTION
════════════════════════════════════════════ */
.catalog-section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

/* Tabs */
.catalog-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); border-color: var(--accent); }
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-3px);
}

.pc-top { display: flex; align-items: flex-start; gap: 12px; }
.pc-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.pc-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.pc-tag { font-size: 0.76rem; color: var(--text-muted); }

.pc-prices { display: flex; flex-direction: column; gap: 8px; }
.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 7px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}
.pc-row strong {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
}

.pc-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
}

.pc-btn { width: 100%; margin-top: auto; }

/* Games grid (accounts) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-3px);
}

.gc-icon { font-size: 2rem; }
.gc-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.gc-from { font-size: 0.78rem; color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════════
   HOW TO BUY
════════════════════════════════════════════ */
.how-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 160px;
}
.how-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.how-text strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}
.how-text span { font-size: 0.84rem; color: var(--text-muted); }

.how-arrow {
  font-size: 1.2rem;
  color: var(--border);
  align-self: center;
  padding: 0 8px;
  flex-shrink: 0;
}

.how-cta { text-align: center; }

/* ════════════════════════════════════════════
   SUPPORT SECTION
════════════════════════════════════════════ */
.support-section {
  padding: 80px 0;
}

.support-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.support-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.support-text p {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 460px;
}

.support-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}
.contact-link:hover { border-color: var(--accent); color: var(--text); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); width: 100%; margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.84rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   MODALS
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modal-up 0.25s ease;
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

.modal h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 36px;
}
.modal-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

.modal-pay-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pay-option-icon { font-size: 1.5rem; }
.pay-option-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.pay-option-status { font-size: 0.78rem; color: var(--text-muted); }
.modal-cta { width: 100%; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════
   TAB PANEL
════════════════════════════════════════════ */
.tab-panel[hidden] { display: none; }
.tab-panel.active  { display: block; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger    { display: flex; }

  /* Mobile nav open */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1rem; color: var(--text-dim); }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-sub     { margin: 0 auto 32px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .how-steps { gap: 20px; }
  .how-arrow { display: none; }
  .how-step  { flex: 0 0 calc(50% - 10px); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤600px)
════════════════════════════════════════════ */
@media (max-width: 600px) {
  .header-cta { display: none; }

  .hero { padding: 60px 0 40px; min-height: unset; }
  .hero-title { font-size: 2rem; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .how-step { flex: 0 0 100%; }

  .support-inner { flex-direction: column; }
  .support-contacts { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  .modal { padding: 24px 20px; }
}

@media (max-width: 400px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}
