:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #15151e;
  --bg-card-hover: #1a1a26;
  --text: #f2f2f7;
  --text-muted: #9a9ab0;
  --text-dim: #5e5e78;
  --accent: #5b7cfa;
  --accent-soft: rgba(91, 124, 250, 0.15);
  --accent-hover: #7b96ff;
  --green: #34d399;
  --orange: #fbbf24;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(91, 124, 250, 0.4);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-mc: 'Press Start 2P', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-text {
  font-family: var(--font-mc);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text);
}

.accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.btn-nav:hover {
  background: var(--accent-hover) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ========== HERO (centered) ========== */
.hero {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(91, 124, 250, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-family: var(--font-mc);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, #7b96ff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(91, 124, 250, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91, 124, 250, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-full {
  width: 100%;
}

/* ========== STATS ========== */
.stats {
  padding: 0 0 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 12px;
}

.stat {
  text-align: center;
  padding: 6px;
}

.stat-value {
  font-family: var(--font-mc);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== TARIFFS ========== */
.tariffs {
  padding: 70px 0 90px;
}

.section-title {
  font-family: var(--font-mc);
  font-size: 1.15rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 42px;
  font-size: 0.95rem;
}

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

.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
}

.tariff-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.tariff-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mc);
  font-size: 0.5rem;
  font-weight: 400;
  padding: 5px 9px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.5px;
}

.hit-badge {
  background: linear-gradient(135deg, #5b7cfa, #8b5cf6);
  color: #fff;
}

.tariff-img {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.tariff-img img {
  max-height: 88px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.tariff-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tariff-name {
  font-family: var(--font-mc);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.3px;
}

.tariff-price {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-value {
  font-family: var(--font-mc);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.5px;
}

.price-currency {
  font-family: var(--font-mc);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text);
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}

.tariff-specs {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
}

.tariff-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 8px;
}

.tariff-specs li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}

.spec-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.spec-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-size: 0.85rem;
}

.tariff-body .btn {
  width: 100%;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== FEATURES ========== */
.features {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, transparent 0%, rgba(91, 124, 250, 0.025) 50%, transparent 100%);
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  transition: all 0.25s ease;
  text-align: left;
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}

.feature h3 {
  font-family: var(--font-mc);
  font-size: 0.7rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.45;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== REGISTER ========== */
.register {
  padding: 70px 0 90px;
}

.register-form {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.email-status {
  font-size: 0.78rem;
  margin-top: 5px;
}

.form-message {
  margin-top: 12px;
  font-size: 0.88rem;
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-mc);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.4px;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-content h3 {
  font-family: var(--font-mc);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 130px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero h1 {
    font-size: 1.25rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding: 130px 0 60px;
  }
  .hero h1 {
    font-size: 1.05rem;
  }
  .tariffs-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 0.95rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .register-form {
    padding: 24px 18px;
  }
  .stat-value {
    font-size: 0.55rem;
  }
}
