/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(214,178,92,.14), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(214,178,92,.08), transparent 60%),
    linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0) 100%);
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle 300px at 80% 30%, var(--gold-glow), transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .5; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(40px); }
}
.hero__inner {
  position: relative;
  padding: var(--space-16) var(--space-12);
  max-width: 720px;
}
.hero__title { margin: var(--space-4) 0 var(--space-5); }
.hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 520px;
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ====== FEATURES ====== */
.section-head { margin-bottom: var(--space-6); }
.section-head .h2 { margin-top: var(--space-3); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}
.feature-card {
  position: relative;
  display: block;
  padding: var(--space-6);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--t-normal) var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 180px at 50% 0%, var(--gold-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-normal) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), var(--shadow-gold);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  position: relative;
}
.feature-card__icon svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: var(--space-2); position: relative; }
.feature-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; position: relative; }
.feature-card__cost {
  display: inline-flex; margin-top: var(--space-4);
  font-size: 12px; color: var(--gold);
  position: relative;
}

/* ====== SCENARIOS ====== */
.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}
.scenario {
  padding: var(--space-4) var(--space-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.scenario:hover {
  transform: scale(1.03);
  border-color: var(--border-gold-strong);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* ====== TRACKS (Создано в SONARO) ====== */
.tracks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}
.track {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--t-normal) var(--ease);
}
.track:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--shadow-gold);
}
.track__top { display: flex; gap: var(--space-4); align-items: center; }
.track__cover {
  width: 64px; height: 64px;
  flex: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.track__cover svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.track__meta { min-width: 0; }
.track__title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__artist { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.track__wave {
  display: flex; align-items: center; gap: 2px;
  height: 32px;
}
.track__wave span {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  opacity: .45;
  min-height: 4px;
}
.track:hover .track__wave span { opacity: .8; }
.track__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.track__tags { display: flex; gap: var(--space-2); font-size: 11px; color: var(--text-muted); }
.track__play {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.track__play:hover { background: var(--gold-glow-strong); box-shadow: var(--shadow-gold); }
.track__play svg { width: 16px; height: 16px; fill: var(--gold-light); stroke: none; }

/* ====== CTA ====== */
.cta {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  margin-bottom: var(--space-12);
}
.cta .h2 { margin-bottom: var(--space-3); }
.cta p { color: var(--text-secondary); margin-bottom: var(--space-6); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .scenarios__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tracks__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__inner { padding: var(--space-12) var(--space-8); }
}
@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; }
  .scenarios__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tracks__grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero__inner { padding: var(--space-10) var(--space-5); }
  .hero__actions .btn { width: 100%; }
}

/* ====== VIDEO HERO BACKGROUND ====== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(5,5,5,0.7) 0%, 
    rgba(5,5,5,0.5) 50%, 
    rgba(5,5,5,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__bg,
.hero__glow {
  z-index: 2;
}
.hero__inner {
  position: relative;
  z-index: 3;
}

/* Fallback для мобильных (экономия трафика) */
@media (max-width: 768px) {
  .hero__video {
    display: none;
  }
}

/* на мобильных текст студии переносим, чтобы не было горизонтального скролла */
@media (max-width: 900px) {
  footer [style*="nowrap"], .footer [style*="nowrap"], [class*="footer"] [style*="nowrap"] {
    white-space: normal !important;
  }
}

/* ====== STICKY FOOTER: футер всегда прижат к низу ====== */
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0 !important;
}
body > main,
body > .main,
main {
  flex: 1 0 auto !important;
}
body > footer,
footer,
.sono-footer {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

/* ====== STICKY FOOTER v2: под реальную структуру ====== */
body > div { flex: 1 1 auto; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > *:has(+ .sono-footer) { flex: 1 0 auto; }
.sono-footer { margin-top: auto !important; flex-shrink: 0; }
