/* ══════════════════════════════════════
   UPZONE — Стили
   ══════════════════════════════════════ */


/* ── Сброс и базовые стили ── */

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0d0f12;
  color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ── Шапка ── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

.btn-nav {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255,255,255,0.85);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}


/* ── Hero ── */

.hero {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}


/* ── Блок доверия ── */

.trust {
  padding: 16px 24px 32px;
}

.trust-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

.trust-title {
  font-size: 13px;
  font-weight: 600;
}

.trust-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}


/* ── Платформы ── */

.platforms {
  padding: 60px 24px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 40px;
}

.platforms-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  color: #ffffff;
  transition: background 0.2s, border-color 0.2s;
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.platform-emoji {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.platform-name {
  font-size: 15px;
  font-weight: 700;
}

.platform-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.platform-link {
  font-size: 12px;
  font-weight: 500;
  color: #60a5fa;
  margin-top: auto;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
  font-size: 11px;
  font-weight: 500;
}

/* Цвета платформ */
.grad-steam    { background: linear-gradient(135deg, #1b2838, #2a475e); }
.grad-ps       { background: linear-gradient(135deg, #003791, #0070d1); }
.grad-xbox     { background: linear-gradient(135deg, #107c10, #52b043); }
.grad-apple    { background: linear-gradient(135deg, #1c1c1e, #3a3a3c); }
.grad-google   { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.grad-roblox   { background: linear-gradient(135deg, #cc0000, #ff4444); }
.grad-valorant { background: linear-gradient(135deg, #0f1923, #ff4655); }
.grad-fortnite { background: linear-gradient(135deg, #1a0033, #9b59b6); }


/* ── Как это работает ── */

.how {
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.how-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}


/* ── FAQ ── */

.faq {
  padding: 60px 24px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "﹀";
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] .faq-q::after {
  transform: rotate(180deg);
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-a {
  padding: 16px 24px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ── Подвал ── */

footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
}

footer p + p {
  margin-top: 4px;
  font-size: 11px;
}


/* ════════════════════════════════════════
   СТРАНИЦА ПЛАТФОРМЫ (platform.html)
   ════════════════════════════════════════ */

.platform-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Кнопка назад */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #ffffff;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* Баннер платформы */
.platform-banner {
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-emoji {
  font-size: 52px;
  line-height: 1;
  flex-shrink: 0;
}

.banner-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.banner-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* Карточка формы */
.order-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* Номиналы */
.denominations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.denom-btn {
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
  text-align: center;
}

.denom-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.denom-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Поле своей суммы */
.custom-input {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.custom-input:focus {
  border-color: #3b82f6;
}

/* Обычное поле ввода */
.form-input {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: #3b82f6;
}

/* Итог */
.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.summary-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.summary-amount {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

/* Ошибка */
.form-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 14px;
}

/* Кнопка оплаты */
.btn-pay {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-pay:hover {
  opacity: 0.9;
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Бейджи доверия (под формой) */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
}

.trust-badge span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}


/* ════════════════════════════════════════
   СТРАНИЦА УСПЕХА (success.html)
   ════════════════════════════════════════ */

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 100px);
  padding: 40px 24px;
}

.success-card {
  max-width: 460px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.success-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.success-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}

.success-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-row span {
  color: rgba(255, 255, 255, 0.45);
}

.detail-row strong {
  font-weight: 600;
}

.success-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 24px;
}


/* ── Адаптив ── */

@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .denominations {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-emoji {
    font-size: 40px;
  }

  .banner-title {
    font-size: 22px;
  }
}
