/* Transfer Pass — тёмная тема в стиле Tidal */
:root {
  --bg: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-hover: #2A2A2A;
  --text: #FFFFFF;
  --text-muted: #A0A0A0;
  --tidal-from: #FF0080;
  --tidal-to: #7928CA;
  --spotify: #1DB954;
  --qobuz: #0066CC;
  --error: #FF4D4D;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-weight: 800; font-size: 20px; text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.logo-glyph {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--tidal-from), var(--tidal-to));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); border: none;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .15s, background .2s;
}
.btn-primary { background: var(--spotify); color: #04120A; }
.btn-primary:hover { background: #22cf60; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--bg-hover); }
.btn-ghost:hover { background: var(--bg-hover); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--tidal-from), var(--tidal-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-muted); font-size: 18px; max-width: 640px; margin: 0 auto 32px; }

/* Карточки сервисов */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 32px 0 64px;
}
.service-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px;
  border: 1px solid transparent; transition: border-color .2s, transform .15s;
}
.service-card:hover { border-color: var(--bg-hover); transform: translateY(-2px); }
.service-card .icon { font-size: 28px; margin-bottom: 12px; }
.service-card h3 { font-size: 20px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14px; }
.badge {
  display: inline-block; margin-top: 14px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-active { background: rgba(29, 185, 84, .15); color: var(--spotify); }
.badge-soon { background: rgba(160, 160, 160, .15); color: var(--text-muted); }
.service-tidal { border-top: 3px solid var(--tidal-from); }
.service-spotify { border-top: 3px solid var(--spotify); }
.service-qobuz { border-top: 3px solid var(--qobuz); }

/* Как работает */
.how { padding: 64px 0; background: var(--bg-card); }
.how h2, .faq h2, .pricing-wrap h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 24px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--tidal-from), var(--tidal-to));
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* Тариф/цена */
.pricing-wrap { padding: 72px 0; }
.pricing-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border-radius: 16px; padding: 40px 32px;
  border: 1px solid var(--bg-hover);
}
.price { font-size: 56px; font-weight: 800; margin: 12px 0 4px; }
.price .currency { font-size: 24px; font-weight: 600; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 24px 0 28px; text-align: left; }
.pricing-card li { padding: 6px 0 6px 26px; position: relative; color: var(--text-muted); font-size: 15px; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--spotify); font-weight: 700; }

/* Форма покупки */
.buy-form { display: flex; flex-direction: column; gap: 14px; max-width: 360px; margin: 0 auto; }
.buy-form input[type="email"], .lookup-form input {
  padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--bg-hover);
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px;
  outline: none; transition: border-color .2s;
}
.buy-form input:focus, .lookup-form input:focus { border-color: var(--spotify); }
.form-hint { font-size: 13px; color: var(--text-muted); }
.form-error { color: var(--error); font-size: 14px; min-height: 20px; }

/* Страница успеха */
.success-wrap { max-width: 560px; margin: 64px auto; text-align: center; }
.key-box {
  font-family: var(--mono); font-size: 20px; letter-spacing: 1px;
  background: var(--bg-card); border: 1px dashed var(--bg-hover);
  border-radius: var(--radius); padding: 20px; margin: 24px 0;
  word-break: break-all; user-select: all;
}
.status-icon { font-size: 56px; margin-bottom: 16px; }

/* FAQ */
.faq { padding: 72px 0; background: var(--bg-card); }
.faq-item { border-bottom: 1px solid var(--bg-hover); }
.faq-item summary {
  cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 4px 18px; color: var(--text-muted); font-size: 15px; }

/* Футер */
.footer { border-top: 1px solid var(--bg-card); padding: 32px 0; margin-top: auto; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 13px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Юридические страницы */
.legal { max-width: 760px; margin: 48px auto 80px; }
.legal h1 { font-size: 30px; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.data-placeholder { color: #E0B34C; }

/* Адаптивность */
@media (max-width: 1024px) {
  .services, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .nav { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
