/* vplaylist.ru — дизайн-токены + стили. Тёмная тема без переключателя
   (обоснование — см. план реализации). Палитра согласована с уже
   выбранным лого (градиент фиолетовый → синий). */

:root {
  --bg: #0b0b12;
  --bg-elevated: #14141f;
  --bg-elevated-hover: #1a1a29;
  --text: #e8e8f0;
  --text-muted: #9a9aab;
  --border: #24243a;
  --accent-start: #7b2ff7;
  --accent-end: #2d6cdf;
  --accent-solid: #8b5cf6;
  --success: #22c55e;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Focus / доступность ──────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-solid);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px -8px rgba(123, 47, 247, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero .accent-text {
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 18px);
}

.platforms-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

.platform-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.platform-pill.platform-live {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
}

.platform-pill.platform-soon {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

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

/* ─── Секции ────────────────────────────────────────────────────────── */
section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── Шаги ──────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-solid);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── CTA-блок ──────────────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
}

.cta-block h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.cta-block p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 150ms ease;
}

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

/* ─── Правовая страница ────────────────────────────────────────────── */
.legal {
  padding: 64px 0 96px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal a {
  color: var(--accent-solid);
}

/* ─── Каталог (vk_ads_bot: /catalog, /submit, /my-orders) ────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.playlist-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playlist-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-card-top h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.playlist-card-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

.playlist-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.price-tag {
  font-weight: 700;
  font-size: 15px;
}

/* ─── Форма (submit.html) ──────────────────────────────────────────── */
.submit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.submit-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.submit-form input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.submit-form input:focus-visible {
  outline: 2px solid var(--accent-solid);
  outline-offset: 1px;
}
