/* ============================================
   Подари Песню — Design System v2
   «Конверт в темноте» — тёмный фон, золото + коралл,
   крупная сериф-типографика, ощущение открытки
   ============================================ */

:root {
  /* Фоны */
  --bg: #0f0a14;           /* тёмный сливовый */
  --bg-soft: #1a1320;      /* чуть светлее */
  --bg-card: #1f1726;      /* карточка */
  --bg-elevated: #261c2f;  /* поднятая поверхность */
  --bg-cream: #f6efe2;     /* светлая «бумажная» вставка */

  /* Текст */
  --text: #f6efe2;         /* кремовый, не чисто белый */
  --text-muted: #b6a8b8;
  --text-soft: #847490;
  --text-on-light: #1a1320;
  --text-on-accent: #1a1320;

  /* Акценты */
  --gold: #f4c47a;         /* тёплое золото — ленточка */
  --gold-soft: #d9a85f;
  --coral: #ff7a8a;        /* кораллово-розовый */
  --coral-deep: #e94560;
  --plum: #2a1a35;         /* для оверлеев */

  --accent: var(--gold);
  --accent-2: var(--coral);
  --accent-grad: linear-gradient(135deg, #f4c47a 0%, #ff7a8a 60%, #e94560 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(244,196,122,.14) 0%, rgba(255,122,138,.14) 100%);

  /* Линии */
  --line: rgba(246,239,226,.10);
  --line-strong: rgba(246,239,226,.20);
  --line-gold: rgba(244,196,122,.35);

  /* Статусы */
  --success: #6ee7b7;
  --warning: #fcd34d;
  --error: #fca5a5;

  --st-draft-bg: rgba(252,211,77,.14);   --st-draft-fg: #fcd34d;
  --st-music-bg: rgba(196,181,253,.14);  --st-music-fg: #c4b5fd;
  --st-ready-bg: rgba(110,231,183,.14);  --st-ready-fg: #6ee7b7;
  --st-paid-bg:  rgba(255,122,138,.14);  --st-paid-fg:  #ff7a8a;

  /* Радиусы */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
  --shadow-accent: 0 12px 32px rgba(255,122,138,.30);
  --shadow-gold: 0 12px 32px rgba(244,196,122,.25);

  /* Шрифты */
  --font: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', 'Marck Script', cursive;
  --font-lyrics: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* мягкая «звёздная» текстура поверх фона */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(244,196,122,.07), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255,122,138,.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a.link { color: var(--gold); border-bottom: 1px solid rgba(244,196,122,.4); padding-bottom: 1px; }
a.link:hover { color: var(--coral); border-bottom-color: var(--coral); }

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: rgba(244,196,122,.35); color: var(--text); }

/* ============= ТИПОГРАФИКА ============= */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(56px, 12vw, 180px); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(36px, 6vw, 84px); font-weight: 400; }
h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.015em; }
h4 { font-size: 20px; font-weight: 600; font-family: var(--font); letter-spacing: -0.005em; }
p { margin: 0; }

.script { font-family: var(--font-script); font-weight: 400; }
.serif { font-family: var(--font-display); font-weight: 400; }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.gold { color: var(--gold); }
.coral { color: var(--coral); }

/* акцентный курсив для слов в заголовках */
.accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* подчёркивание-ленточка */
.ribbon-under {
  position: relative;
  display: inline-block;
}
.ribbon-under::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: -8px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q50 1 100 6 T198 4' stroke='%23f4c47a' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
}

/* ============= КОНТЕЙНЕРЫ ============= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.container-prose { max-width: 720px; margin: 0 auto; padding: 0 32px; }

section { padding: clamp(72px, 12vw, 160px) 0; position: relative; }

/* ============= КНОПКИ ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255,122,138,.45); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: rgba(246,239,226,.06); border-color: var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(246,239,226,.05); }

.btn-gold {
  background: var(--gold);
  color: var(--text-on-light);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: #fbd28f; transform: translateY(-2px); }

.btn-light {
  background: var(--bg-cream);
  color: var(--text-on-light);
  font-weight: 700;
}
.btn-light:hover { background: white; }

.btn-lg { padding: 22px 38px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  background: rgba(246,239,226,.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ============= КАРТОЧКИ ============= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.card-cream {
  background: var(--bg-cream);
  color: var(--text-on-light);
  border-radius: var(--r-xl);
  padding: 36px;
  border: none;
}
.card-cream h1, .card-cream h2, .card-cream h3, .card-cream h4 { color: var(--text-on-light); }
.card-cream .muted { color: rgba(26,19,32,.65); }

/* выбираемая карточка */
.scard {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  font: inherit; color: inherit;
  width: 100%;
}
.scard:hover { border-color: var(--gold); transform: translateY(-2px); background: var(--bg-elevated); }
.scard.is-selected {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-gold), inset 0 0 0 1px rgba(244,196,122,.4);
}
.scard .scard-emoji { font-size: 30px; line-height: 1; margin-bottom: 14px; color: var(--gold); }
.scard .scard-title { font-weight: 600; font-size: 17px; margin-bottom: 4px; color: var(--text); }
.scard .scard-sub { font-size: 13px; color: var(--text-muted); }

/* ============= ЧИПЫ ============= */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.is-active {
  background: var(--gold);
  color: var(--text-on-light);
  border-color: var(--gold);
}

/* ============= БЕЙДЖИ ============= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(246,239,226,.08);
  color: var(--text);
  border: 1px solid var(--line);
}
.badge-soft { background: var(--accent-grad-soft); color: var(--gold); border-color: var(--line-gold); }
.badge-success { background: var(--st-ready-bg); color: var(--st-ready-fg); border-color: rgba(110,231,183,.3); }
.badge-music { background: var(--st-music-bg); color: var(--st-music-fg); border-color: rgba(196,181,253,.3); }
.badge-draft { background: var(--st-draft-bg); color: var(--st-draft-fg); border-color: rgba(252,211,77,.3); }
.badge-paid { background: var(--st-paid-bg); color: var(--st-paid-fg); border-color: rgba(255,122,138,.3); }

/* ============= ИНПУТЫ ============= */
.input, .textarea, .select {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(246,239,226,.04);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(246,239,226,.07);
  box-shadow: 0 0 0 4px rgba(244,196,122,.12);
}
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--gold);
}
.input-help { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.char-counter { display: block; text-align: right; font-size: 12px; color: var(--text-soft); margin-top: 6px; }

/* ============= ШАПКА ============= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,10,20,.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: var(--text-on-light);
  font-weight: 800;
  flex: none;
}
.logo .logo-mark span { font-family: var(--font); font-size: 16px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); background: rgba(246,239,226,.06); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 720px) { .nav-links { display: none; } }

/* ============= ФУТЕР ============= */
.site-footer {
  margin-top: 80px;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-grid h4 {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-soft);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============= WAVEFORM ============= */
.waveform { display: block; width: 100%; height: 64px; color: var(--gold); }

/* ============= LOADING ============= */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-note {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: var(--text-on-light);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: var(--shadow-accent);
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: var(--shadow-accent); }
  50% { transform: scale(1.08); box-shadow: 0 24px 64px rgba(255,122,138,.5); }
}

.loader-bar {
  width: 100%; max-width: 420px; margin: 32px auto 18px;
  height: 4px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: var(--accent-grad);
  border-radius: 999px;
  animation: loaderFill 4s ease-out forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-stage { color: var(--text-muted); font-size: 14px; min-height: 24px; }

/* ============= ТОСТЫ ============= */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-cream);
  color: var(--text-on-light);
  padding: 14px 24px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px;
  z-index: 100;
  animation: toastIn .3s ease, toastOut .3s ease 3.5s forwards;
  display: inline-flex; align-items: center; gap: 10px;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 20px); } }

/* ============= УТИЛИТЫ ============= */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 56px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; }
.hidden { display: none !important; }

/* ============= СВЕТЯЩИЕСЯ ОРБЫ ============= */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.orb-gold { width: 520px; height: 520px; background: radial-gradient(circle, #f4c47a 0%, transparent 65%); }
.orb-coral { width: 420px; height: 420px; background: radial-gradient(circle, #ff7a8a 0%, transparent 65%); }
.orb-plum { width: 600px; height: 600px; background: radial-gradient(circle, #6b3e5e 0%, transparent 65%); opacity: .35; }

/* ============= СКРОЛЛБАР ============= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* ============= ПРИНТ ============= */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
}

/* ============= WIZARD PROGRESS ============= */
.wiz-progress { display: flex; gap: 8px; align-items: center; margin: 0 0 40px; }
.wiz-step {
  flex: 1; height: 3px; border-radius: 999px;
  background: var(--line); position: relative; overflow: hidden;
}
.wiz-step.is-active::after,
.wiz-step.is-done::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-grad);
  border-radius: 999px;
}

/* ============= PLAYER ============= */
.player {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: grid; gap: 18px;
  position: relative; overflow: hidden;
}
.player-row { display: flex; align-items: center; gap: 16px; }
.player-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-grad);
  border: none;
  color: var(--text-on-light);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  flex: none;
  transition: transform .15s;
}
.player-play:hover { transform: scale(1.05); }
.player-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-muted); min-width: 96px; text-align: right; }

/* ============= ТАБЫ ============= */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.tab {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.tab.is-active { background: var(--bg-elevated); color: var(--gold); }

/* ============= EMPTY STATE ============= */
.empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-soft);
  border-radius: var(--r-xl);
  border: 1px dashed var(--line-strong);
}

/* ============= LYRICS ============= */
.lyrics {
  font-family: var(--font-lyrics);
  font-size: 22px;
  line-height: 1.65;
  text-align: center;
  white-space: pre-line;
  color: var(--text);
}
.lyrics .section-tag {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============= БАННЕРЫ ============= */
.banner-soft {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--accent-grad-soft);
  border: 1px solid var(--line-gold);
  font-size: 14px;
  color: var(--text);
}
.banner-soft .banner-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
}
.banner-soft .banner-close:hover { background: rgba(246,239,226,.08); }

/* ============= АВАТАР ============= */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: var(--text-on-light);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }

/* ============= GRID HELPERS ============= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero .orb-gold { top: -160px; right: -120px; }
.hero .orb-coral { bottom: -180px; left: -120px; }

/* ============= ФОТО-ПЛЕЙСХОЛДЕРЫ ============= */
.photo-ph {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.photo-ph::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(246,239,226,.03) 12px 13px);
  z-index: 0;
}
.photo-ph .photo-ph-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px;
}
.photo-ph .photo-ph-tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.photo-ph .photo-ph-icon {
  font-size: 56px;
  margin-bottom: 10px;
  opacity: .8;
}
.photo-ph .photo-ph-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
}
.photo-ph.photo-ph-warm { background: linear-gradient(160deg, #3a2530 0%, #1f1726 100%); }
.photo-ph.photo-ph-gold { background: linear-gradient(160deg, #3d2d1a 0%, #1f1726 100%); }
.photo-ph.photo-ph-rose { background: linear-gradient(160deg, #3a1f2c 0%, #1f1726 100%); }
.photo-ph.photo-ph-plum { background: linear-gradient(160deg, #2d1f3a 0%, #1f1726 100%); }

/* ============= КАРТОЧКА ПОВОДА С ФОТО ============= */
.occasion-card-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #2d1f3a 0%, #1f1726 100%);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.occasion-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.occasion-card-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(231, 111, 81, .2);
}
.occasion-card-img:hover img { transform: scale(1.04); }
.occasion-card-img .occasion-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(15, 10, 20, .92) 0%,
    rgba(15, 10, 20, .55) 35%,
    rgba(15, 10, 20, 0) 60%);
  z-index: 1;
}
.occasion-card-img .occasion-meta {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  z-index: 2;
}
.occasion-card-img .occasion-hint {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 10px;
  opacity: .85;
}
.occasion-card-img .occasion-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.occasion-card-img .occasion-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============= ОБЛОЖКА ПЕСНИ ============= */
.song-cover {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  background: var(--bg-elevated);
}
.song-cover.cover-warm { background: linear-gradient(135deg, #f4c47a 0%, #ff7a8a 50%, #6b3e5e 100%); }
.song-cover.cover-deep { background: linear-gradient(135deg, #2a1a35 0%, #6b3e5e 50%, #ff7a8a 100%); }
.song-cover.cover-gold { background: linear-gradient(135deg, #1a1320 0%, #3d2d1a 50%, #f4c47a 100%); }
.song-cover.cover-rose { background: linear-gradient(135deg, #1f1726 0%, #ff7a8a 100%); }
.song-cover .cover-title {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(15,10,20,.85);
  text-shadow: 0 1px 0 rgba(255,255,255,.2);
}
.song-cover.cover-deep .cover-title { color: rgba(246,239,226,.95); text-shadow: none; }

/* ============= КАРТОЧКА ОТЗЫВА ============= */
.review {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.review-quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.review-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review-author-name { font-weight: 600; font-size: 15px; }
.review-author-meta { font-size: 13px; color: var(--text-muted); }

/* ============= AUTH ВИДЖЕТЫ ============= */
.auth-card {
  max-width: 460px; margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-tg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 16px 22px;
  background: #0088cc;
  color: white;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.auth-tg-button:hover { background: #0099e6; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-soft);
  font-size: 13px;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ============= STARS ============= */
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 16px; }

/* ============= БУРГЕР И МОБИЛЬНОЕ МЕНЮ ============= */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(15, 10, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
  padding: 96px 24px 40px;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
  margin: 0 auto;
}
.mobile-nav-inner a {
  display: block;
  padding: 18px 4px;
  font-size: 22px;
  font-family: var(--font-display);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-inner a:hover { color: var(--gold); }
.mobile-nav-inner a.btn {
  border: none;
  font-family: var(--font);
  font-size: 16px;
}
.mobile-nav-divider { height: 18px; }

@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .nav-actions .nav-login,
  .nav-actions .nav-cabinet { display: none; }
}
@media (max-width: 520px) {
  .nav-actions .nav-cta { display: none; }
}

/* ============= МОБИЛЬНАЯ АДАПТАЦИЯ — ОБЩЕЕ ============= */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container,
  .container-narrow,
  .container-prose { padding: 0 18px; }
  section { padding: clamp(56px, 14vw, 80px) 0; }

  .site-header-inner { padding: 14px 0; }
  .logo { font-size: 19px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-actions { gap: 6px; }

  .btn { padding: 14px 22px; font-size: 15px; }
  .btn-lg { padding: 18px 26px; font-size: 16px; }
  .btn-sm { padding: 9px 14px; font-size: 13px; }

  .card { padding: 22px 18px; }
  .card-elevated { padding: 24px 20px; border-radius: var(--r-lg); }
  .card-cream { padding: 24px 20px; border-radius: var(--r-lg); }

  /* типографика — сглаживаем гигантские заголовки */
  h1 { font-size: clamp(40px, 11vw, 64px); }
  h2 { font-size: clamp(28px, 7vw, 40px); }
  h3 { font-size: clamp(22px, 5.5vw, 28px); }

  .input, .textarea, .select { font-size: 16px; padding: 14px 16px; } /* 16px — против iOS-зума */

  /* отзывы / фичи в одну колонку */
  .review { padding: 24px 20px; }

  /* футер — компактнее */
  .site-footer { padding: 56px 0 32px; margin-top: 56px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* сетки в одну колонку */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* LANDING — адаптивные 3-колоночные сетки */
.landing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-grid-3.gap-lg { gap: 24px; }
@media (max-width: 980px) {
  .landing-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .landing-grid-3 { grid-template-columns: 1fr; gap: 16px; }
}

/* LANDING — секция «Почему песня» (2 карточки) */
.why-pair {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
}
.why-pair > div { padding: 48px 40px; }
@media (max-width: 720px) {
  .why-pair { grid-template-columns: 1fr; }
  .why-pair > div { padding: 32px 22px; }
}

/* LANDING — секция «Как это работает» (4 шага) */
.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative;
}
.how-line {
  position: absolute; top: 32px; left: 8%; right: 8%;
  height: 1px; background: var(--line-gold); opacity: .5; z-index: 0;
}
@media (max-width: 980px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .how-line { display: none; }
}
@media (max-width: 520px) {
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
}

/* LANDING — фото-история (сердце над облаками) */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .story-grid { gap: 48px; }
}
@media (max-width: 720px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid > div:first-child { max-width: 360px; margin: 0 auto; width: 100%; }
}
.story-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #2d1f3a 0%, #1f1726 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.story-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.story-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(15, 10, 20, .82) 0%,
    rgba(15, 10, 20, .35) 28%,
    rgba(15, 10, 20, 0) 55%);
  z-index: 1;
}
.story-photo-cap {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
@media (max-width: 720px) {
  .story-photo-cap { left: 18px; right: 18px; bottom: 18px; font-size: 15px; }
}

/* HERO: сжать вертикальные паддинги */
@media (max-width: 720px) {
  .hero { padding: 56px 0 64px; }
  .hero .orb-gold,
  .hero .orb-coral,
  .hero .orb-plum { transform: scale(.6); opacity: .35; }
}

/* PREVIEW: сайдбар сверху, выкладка в одну колонку */
@media (max-width: 980px) {
  .preview-shell {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 32px auto 56px !important;
    padding: 0 18px !important;
  }
  .summary-card { position: static !important; order: -1; padding: 18px 20px; }
  .summary-card .summary-row { padding: 8px 0; font-size: 13px; }
  .summary-card h4 { margin-bottom: 8px; font-size: 16px; }
  .summary-card .mt-4 { margin-top: 12px; }
}
@media (max-width: 720px) {
  .lyrics-paper { padding: 36px 22px !important; border-radius: var(--r-lg); }
  .lyrics-paper::before { left: 12px; right: 12px; top: 12px; bottom: 12px; }
  .lyrics-paper .lyrics { font-size: 18px !important; }
  .lyrics .section-tag { margin: 20px 0 8px; }

  /* сворачиваемая сводка заказа */
  .summary-card[data-collapsible] .summary-rows,
  .summary-card[data-collapsible] .summary-foot { display: none; }
  .summary-card[data-collapsible].is-open .summary-rows,
  .summary-card[data-collapsible].is-open .summary-foot { display: block; }
}

/* WIZARD */
@media (max-width: 720px) {
  .wiz-progress { margin-bottom: 24px; gap: 4px; }
  .scard { padding: 16px; }
  .scard .scard-emoji { font-size: 26px; margin-bottom: 8px; }
  .scard .scard-title { font-size: 15px; }
  .scard .scard-sub { font-size: 12px; }
  .chip { padding: 8px 14px; font-size: 13px; }
}

/* PLAYER */
@media (max-width: 720px) {
  .player { padding: 18px; border-radius: var(--r-lg); }
  .player-row { gap: 12px; }
  .player-play { width: 52px; height: 52px; }
  .player-time { font-size: 12px; min-width: 78px; }
}

/* AUTH */
@media (max-width: 720px) {
  .auth-card { padding: 28px 22px; border-radius: var(--r-lg); }
}

/* OCCASION CARDS — мобильные размеры текста */
@media (max-width: 720px) {
  .occasion-card-img .occasion-meta { left: 16px; right: 16px; bottom: 16px; }
  .occasion-card-img .occasion-title { font-size: 22px; }
  .occasion-card-img .occasion-hint { font-size: 13px; margin-bottom: 8px; }
  .occasion-card-img .occasion-sub { font-size: 12px; }
}

/* PHOTO PLACEHOLDERS */
@media (max-width: 720px) {
  .photo-ph .photo-ph-icon { font-size: 44px; }
  .photo-ph .photo-ph-label { font-size: 15px; }
  .photo-ph .photo-ph-tag { font-size: 9px; }
}

/* TOAST держим на безопасной зоне */
@media (max-width: 520px) {
  .toast { left: 16px; right: 16px; bottom: 16px; transform: none; max-width: none; justify-content: center; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }
}
