/* Переменные и основной стиль */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #0f172a;
  --bg-light: #1e293b;
  --bg-lighter: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --glass: rgba(15, 23, 42, 0.8);
  --glass-light: rgba(30, 41, 59, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Градиентный фон */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #0f172a 50%, #1e1b3f 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -2;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
.navbar {
  backdrop-filter: blur(10px);
  background: var(--glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.brand-emoji {
  font-size: 28px;
}

.brand-name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Герой секция */
.hero {
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-illustration {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.floating-box {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 40px;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.box-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.box-2 {
  top: 120px;
  right: 40px;
  animation-delay: 1s;
}

.box-3 {
  bottom: 20px;
  left: 40px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-30px) rotateY(10deg); }
}

/* Кнопки */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--glass-light);
  border: 2px solid var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  width: 100%;
}

/* Тарифы */
.plans {
  padding: 80px 0;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.plan-card {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.plan-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.plan-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-description {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.6;
}

.plan-price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-period {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.plan-button {
  width: 100%;
}

/* Матовое стекло эффект */
.glass-effect {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 50px;
}

.glass-effect-2 {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  margin: 20px 0;
}

/* Ваучер секция */
.voucher-section {
  padding: 80px 0;
}

.voucher-card {
  max-width: 600px;
  margin: 0 auto;
}

.voucher-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
}

.voucher-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
}

.voucher-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-field {
  background: var(--bg-light);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.input-field::placeholder {
  color: var(--text-secondary);
}

.form-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.message {
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.message.info {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Платёж секция */
.payment-section {
  padding: 80px 0;
}

.payment-card {
  max-width: 700px;
  margin: 0 auto;
}

.payment-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 30px;
}

.payment-details {
  background: var(--bg-lighter);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 600;
}

.details-row {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-row:last-child {
  border-bottom: none;
}

.details-row label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.details-row code {
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-steps {
  background: var(--glass-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
}

.username-input {
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 20px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-plan {
  background: var(--bg-lighter);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.modal-actions .btn {
  flex: 1;
}

.gift-card {
  background: var(--bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.gift-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.gift-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.gift-os-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.gift-os-list li {
  color: var(--text-secondary);
  line-height: 1.5;
}

.gift-os-list strong {
  color: var(--text);
}

.bot-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--text);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
}

.bot-link:hover {
  background: rgba(99, 102, 241, 0.22);
}

.gift-link-box {
  margin-top: 12px;
}

.gift-link-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.gift-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gift-link-row code {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
}

.modal-payment-info {
  margin-top: 16px;
}

.modal-payment-steps {
  margin: 20px 0;
}

.payment-steps h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.payment-steps ol {
  list-style: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-steps li {
  color: var(--text-secondary);
  line-height: 1.6;
}

.payment-steps code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Особенности */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

/* Футер */
.footer {
  background: var(--glass);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 80px;
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-illustration {
    display: none;
  }

  .nav-menu {
    gap: 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .glass-effect {
    padding: 30px 20px;
  }

  .payment-steps ol {
    list-style-position: outside;
    padding-left: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }
}
