/* =========================================================
   Tonarium — открытый архив музыки
   ========================================================= */

:root {
  --bg: #08070d;
  --bg-2: #0e0c17;
  --bg-3: #151223;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f1fa;
  --text-2: #c9c4d6;
  --muted: #8f8aa0;
  --violet: #9b6bff;
  --pink: #ff5fa2;
  --orange: #ffa45c;
  --cyan: #43e5d6;
  --lime: #d6ff45;
  --lime-dark: #0b0a10;
  --danger: #ff6b85;
  --grad: linear-gradient(100deg, #b48bff 0%, #ff6fae 48%, #ffb36b 100%);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 72px;
  --container: 1240px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Плёночное зерно поверх всего сайта */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(214, 255, 69, .9); color: #000; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); }

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ico { width: 20px; height: 20px; flex: none; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--lime);
  color: var(--lime-dark);
  box-shadow: 0 10px 30px -12px rgba(214, 255, 69, .55);
}
.btn-primary:hover { background: #e3ff78; box-shadow: 0 14px 40px -12px rgba(214, 255, 69, .7); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-outline { border-color: var(--border-2); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn .spinner {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(11, 10, 16, .25);
  border-top-color: var(--lime-dark);
  animation: spin .7s linear infinite;
  opacity: 0;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .spinner { opacity: 1; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background-color .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn.is-lime { background: var(--lime); color: var(--lime-dark); border-color: transparent; }
.icon-btn.is-lime:hover { background: #e3ff78; transform: scale(1.06); }

.link-btn {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.link-btn:hover { color: var(--lime); text-decoration-color: currentColor; }
.link-btn[disabled] { opacity: .5; pointer-events: none; text-decoration: none; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s, gap .2s var(--ease);
}
.arrow-link:hover { color: var(--lime); gap: 12px; }
.arrow-link .ico { width: 18px; height: 18px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(8, 7, 13, .55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 13, .82);
  border-bottom-color: var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.logo-mark { width: 34px; height: 34px; }
.logo-mark rect.bar { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.logo:hover .logo-mark rect.bar { animation: eq-logo .9s ease-in-out infinite alternate; }
.logo:hover .logo-mark rect.bar:nth-of-type(2) { animation-delay: -.3s; }
.logo:hover .logo-mark rect.bar:nth-of-type(3) { animation-delay: -.6s; }
.logo:hover .logo-mark rect.bar:nth-of-type(4) { animation-delay: -.15s; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14.5px;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); background: var(--surface-3); }

.header-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 59;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 16px 16px 24px;
  background: rgba(11, 9, 19, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .mobile-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .25s, transform .3s var(--ease);
}
.mobile-menu nav { display: grid; gap: 2px; margin-bottom: 16px; }
.mobile-menu nav a {
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-2);
}
.mobile-menu nav a.active, .mobile-menu nav a:hover { background: var(--surface-2); color: var(--text); }
.mobile-menu .mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Заголовки секций ---------- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.section-sub { color: var(--muted); margin-top: 12px; max-width: 560px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob.b1 { width: 560px; height: 560px; left: -160px; top: -200px; background: #6b3cff; animation: drift 18s ease-in-out infinite alternate; }
.blob.b2 { width: 460px; height: 460px; right: -120px; top: 40px; background: #ff4f9a; opacity: .4; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob.b3 { width: 380px; height: 380px; left: 40%; bottom: -260px; background: #ff9b4a; opacity: .28; animation: drift 26s ease-in-out infinite alternate; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 26px;
}
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  animation: ping 1.8s ease-out infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero h1 .line { display: block; }
.hero .lead {
  margin-top: 24px;
  max-width: 540px;
  font-size: 18px;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.hero-tags a {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s;
}
.hero-tags a:hover { border-color: var(--lime); color: var(--lime); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13.5px; color: var(--muted); }

/* Визуал с пластинкой */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  justify-self: center;
}
.hero-visual .halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #9b6bff, #ff5fa2, #ffa45c, #43e5d6, #9b6bff);
  filter: blur(46px);
  opacity: .5;
  animation: spin 24s linear infinite;
}
.vinyl {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, #1b1a22 0 30%, #0c0b10 31% 100%);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .9),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 0 10px #0a090e,
    inset 0 0 0 11px rgba(255, 255, 255, .05);
  animation: spin 9s linear infinite;
}
.vinyl-label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12);
  display: grid;
  place-items: center;
}
.vinyl-label svg { position: absolute; inset: 6%; width: 88%; height: 88%; }
.vinyl-label text {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  fill: rgba(11, 10, 16, .78);
}
.vinyl-label::after {
  content: '';
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .2);
}
.vinyl-sheen {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, .11) 13%, transparent 20% 52%, rgba(255, 255, 255, .07) 60%, transparent 68%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.tonearm {
  position: absolute;
  right: 2%;
  top: 4%;
  width: 34%;
  height: 52%;
  pointer-events: none;
  transform-origin: 82% 10%;
  transform: rotate(8deg);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6));
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(20, 17, 33, .72);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  animation: floaty 7s ease-in-out infinite;
  z-index: 2;
  text-align: left;
  color: var(--text);
}
button.float-card { cursor: pointer; transition: border-color .2s; }
button.float-card:hover { border-color: rgba(214, 255, 69, .5); }
.float-card .fc-cover { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.float-card b { display: block; font-size: 14px; line-height: 1.25; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card small { display: block; font-size: 12.5px; color: var(--muted); }
.fc1 { right: -6%; bottom: 14%; }
.fc2 { left: -6%; top: 6%; animation-delay: -3s; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px; }
.fc2 .fc-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1; }
.fc2 .fc-num em { font-style: normal; color: var(--lime); }
.fc3 {
  left: 2%; bottom: 4%;
  animation-delay: -5s;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}
.fc3 .ico { width: 16px; height: 16px; color: var(--lime); }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--violet), var(--pink));
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite alternate;
}

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s;
}
.marquee a:nth-child(4n+3) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
}
.marquee a:hover { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.marquee .sep { color: var(--lime); font-size: 18px; }

/* ---------- Карточки жанров ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.genre-card {
  --h1: 265; --h2: 195;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background:
    linear-gradient(150deg, hsl(var(--h1) 75% 55% / .2), hsl(var(--h2) 75% 50% / .04) 72%),
    var(--bg-2);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.genre-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--h1) 85% 72% / .45);
  box-shadow: 0 24px 50px -24px hsl(var(--h1) 90% 55% / .55);
}
.genre-glow {
  position: absolute;
  z-index: -1;
  width: 200px; height: 200px;
  right: -60px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--h1) 92% 62% / .55), transparent 68%);
  transition: transform .6s var(--ease), opacity .4s;
}
.genre-card:hover .genre-glow, .genre-big:hover .genre-glow { transform: scale(1.45) translate(-14px, 14px); }
.genre-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  color: hsl(var(--h1) 95% 80%);
  background: hsl(var(--h1) 80% 60% / .16);
  border: 1px solid hsl(var(--h1) 80% 72% / .28);
}
.genre-icon .ico { width: 24px; height: 24px; }
.genre-icon.lg { width: 72px; height: 72px; border-radius: 22px; }
.genre-icon.lg .ico { width: 34px; height: 34px; }
.genre-name {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.02em;
}
.genre-count { font-size: 14px; color: var(--muted); }
.genre-arrow {
  position: absolute;
  right: 18px; bottom: 20px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transform: rotate(-45deg);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.genre-arrow .ico { width: 17px; height: 17px; }
.genre-card:hover .genre-arrow { transform: none; background: var(--lime); color: var(--lime-dark); border-color: transparent; }

/* Крупные карточки на странице жанров */
.genre-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.genre-big {
  --h1: 265; --h2: 195;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.genre-big:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--h1) 85% 72% / .4);
  box-shadow: 0 30px 60px -28px hsl(var(--h1) 90% 55% / .55);
}
.gb-top {
  position: relative;
  height: 168px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, hsl(var(--h1) 75% 52% / .38), hsl(var(--h2) 75% 45% / .1));
}
.gb-top .genre-glow { width: 280px; height: 280px; right: auto; left: -80px; top: -120px; }
.gb-covers { position: relative; width: 150px; height: 120px; flex: none; }
.gb-covers .mini-cover {
  position: absolute;
  width: 92px; height: 92px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .7);
  transition: transform .45s var(--ease);
}
.gb-covers .mini-cover:nth-child(1) { right: 56px; top: 22px; transform: rotate(-10deg); }
.gb-covers .mini-cover:nth-child(2) { right: 28px; top: 10px; transform: rotate(-2deg); z-index: 1; }
.gb-covers .mini-cover:nth-child(3) { right: 0; top: 2px; transform: rotate(7deg); z-index: 2; }
.genre-big:hover .gb-covers .mini-cover:nth-child(1) { transform: rotate(-16deg) translateX(-14px); }
.genre-big:hover .gb-covers .mini-cover:nth-child(3) { transform: rotate(12deg) translateX(8px) translateY(-4px); }
.gb-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.gb-body h3 {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.02em;
}
.gb-en { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--h1) 90% 78%); }
.gb-body p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.gb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gb-stats {
  display: flex;
  gap: 22px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.gb-stats b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }

/* ---------- Теги/плашки ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.pill.fmt-mp3 { color: #9fd6ff; border-color: rgba(120, 190, 255, .35); background: rgba(120, 190, 255, .08); }
.pill.fmt-flac { color: #d5bcff; border-color: rgba(170, 130, 255, .4); background: rgba(170, 130, 255, .1); }
.pill.fmt-wav { color: #ffc89b; border-color: rgba(255, 170, 100, .4); background: rgba(255, 170, 100, .1); }
.pill.lic { color: #dfff8f; border-color: rgba(214, 255, 69, .32); background: rgba(214, 255, 69, .07); letter-spacing: .02em; font-weight: 700; }

/* ---------- Обложки ---------- */
.cover { width: 100%; height: 100%; display: block; }

/* ---------- Карточки архивов (сетка) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px 22px;
}
.card { position: relative; min-width: 0; }
.card-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover .card-cover { transform: translateY(-5px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .95); }
.card:hover .card-cover::after { opacity: 1; }
.badge-fmt {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  background: rgba(8, 7, 13, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.card-actions {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .35s var(--ease);
}
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: none; }
.card-actions .icon-btn { width: 44px; height: 44px; }
.card-actions .icon-btn:not(.is-lime) { background: rgba(8, 7, 13, .55); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .15); color: #fff; }
.card-body { padding-top: 14px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-artist {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .ico { width: 14px; height: 14px; }

/* «Растянутая» кнопка: клик по карточке = открыть архив */
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.stretch {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 18px; }

/* ---------- Список архивов ---------- */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 2.6fr) minmax(0, 1.3fr) 92px 92px 88px 62px 128px 44px;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .3s var(--ease);
}
.row:hover { background: var(--surface-2); border-color: var(--border); }
.row-cover { width: 60px; height: 60px; border-radius: 11px; overflow: hidden; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8); }
.row-main { min-width: 0; }
.row-title {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-title .kind {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  vertical-align: 2px;
}
.row-sub { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub .gdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 5px 1px 0; vertical-align: middle; }
.row-mobile { display: none; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.row-tags { display: flex; gap: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.row-stat { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-stat small { display: block; font-size: 11.5px; color: var(--muted); }
.row .icon-btn { position: relative; z-index: 3; }
.row .pill { justify-self: start; }

/* Компактные строки (главная) */
.mini-rows { display: flex; flex-direction: column; }
.mini-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin: 0 -10px;
  border-radius: 14px;
  transition: background-color .2s;
}
.mini-row:hover { background: var(--surface-2); }
.mini-row .num {
  width: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mini-row:nth-child(-n+3) .num { color: var(--lime); }
.mini-row .row-cover { width: 52px; height: 52px; border-radius: 10px; }
.mini-row .mr-right { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mini-row .mr-right b { display: block; color: var(--text); font-size: 14px; font-weight: 700; }
.mini-row .mr-right .up { color: var(--lime); }
.mini-rows.no-num .num { display: none; }
.mini-rows.no-num .mini-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--lime);
  color: var(--lime-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: 2px;
}

/* ---------- Панели ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Как это работает ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease);
}
.step:hover { border-color: var(--border-2); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 76px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .22);
  margin-bottom: 26px;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--lime); }
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--muted); }
.step .step-ico {
  position: absolute;
  right: 26px; top: 30px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--lime);
}

/* ---------- Лицензии ---------- */
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lic-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.lic-card .lic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  background: rgba(214, 255, 69, .1);
  border: 1px solid rgba(214, 255, 69, .3);
  color: var(--lime);
}
.lic-card h3 { margin-top: 22px; font-size: 20px; font-weight: 800; }
.lic-card p { margin-top: 8px; color: var(--muted); }
.lic-card ul { margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.lic-card li { display: flex; gap: 10px; align-items: flex-start; }
.lic-card li .ico { width: 18px; height: 18px; color: var(--lime); margin-top: 2px; }
.lic-card .lic-count {
  position: absolute;
  right: 26px; top: 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 17.5px;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.faq summary .plus {
  position: relative;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  transition: transform .35s var(--ease), background-color .2s, border-color .2s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); color: var(--lime-dark); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 7vw, 80px);
  border-radius: 34px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(600px 340px at 10% 0%, rgba(155, 107, 255, .55), transparent 60%),
    radial-gradient(520px 320px at 95% 100%, rgba(255, 95, 162, .45), transparent 60%),
    radial-gradient(420px 260px at 70% 10%, rgba(255, 164, 92, .25), transparent 60%),
    #120e20;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 640px;
}
.cta p { margin-top: 16px; color: var(--text-2); max-width: 520px; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cta .rings {
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  z-index: -1;
  opacity: .35;
}

/* ---------- Подвал ---------- */
.site-footer {
  margin-top: 40px;
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(155, 107, 255, .04));
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-about p { margin-top: 16px; color: var(--muted); max-width: 340px; font-size: 15px; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col button { color: var(--text-2); font-weight: 600; font-size: 15px; transition: color .2s; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom .eq { height: 16px; }
.footer-bottom .eq i { width: 3px; }
.big-word {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(12.4vw, 166px);
  line-height: .8;
  letter-spacing: -.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .28s, visibility 0s .28s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .28s; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-dialog {
  position: relative;
  width: min(450px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 32px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #19142c 0%, #0f0c1a 60%);
  border: 1px solid var(--border-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9);
  transform: translateY(18px) scale(.97);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-dialog::before {
  content: '';
  position: absolute;
  left: 50%; top: -140px;
  width: 360px; height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(155, 107, 255, .45), transparent);
  pointer-events: none;
  z-index: 0;
}
.modal-dialog > * { position: relative; z-index: 1; }
.modal-close {
  position: absolute !important;
  top: 14px; right: 14px;
  z-index: 5 !important;
}
.modal-dialog.shake { animation: shake .45s ease; }

/* Авторизация */
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-brand .logo-mark { width: 46px; height: 46px; }
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  margin-bottom: 26px;
}
.auth-tabs button {
  position: relative;
  z-index: 1;
  height: 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .3s;
}
.auth-tabs button[aria-selected="true"] { color: var(--lime-dark); }
.auth-tabs-ind {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 6px 20px -6px rgba(214, 255, 69, .6);
  transition: transform .4s var(--ease);
}
.modal-auth[data-mode="register"] .auth-tabs-ind { transform: translateX(100%); }
.modal-auth[data-mode="login"] .only-register,
.modal-auth[data-mode="register"] .only-login { display: none !important; }

.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.025em;
  text-align: center;
}
.auth-sub { margin-top: 8px; text-align: center; color: var(--muted); font-size: 15px; }
.auth-note, .auth-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.auth-note { background: rgba(155, 107, 255, .12); border: 1px solid rgba(155, 107, 255, .32); color: #e2d6ff; }
.auth-alert { background: rgba(255, 170, 70, .1); border: 1px solid rgba(255, 170, 70, .34); color: #ffdcb0; }
.auth-alert b, .auth-note b { color: #fff; }
.auth-note .ico, .auth-alert .ico { width: 19px; height: 19px; margin-top: 1px; }
.auth-alert .link-btn { color: #ffdcb0; font-size: 13.5px; }
.auth-form { margin-top: 24px; }

.field { margin-bottom: 16px; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.field-label-row .link-btn { font-size: 13px; }
.input-wrap { position: relative; }
.input-wrap > .ico {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  color: var(--muted);
  pointer-events: none;
  transition: color .2s;
}
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, .04);
  outline: none;
  font-size: 15.5px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: #6f6a80; }
.input:hover { border-color: rgba(255, 255, 255, .22); }
.input:focus {
  border-color: rgba(155, 107, 255, .75);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(155, 107, 255, .16);
}
.input-wrap:focus-within > .ico { color: var(--violet); }
.input.has-toggle { padding-right: 50px; }
.pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle .ico { width: 19px; height: 19px; }
.field.is-invalid .input { border-color: rgba(255, 107, 133, .8); box-shadow: 0 0 0 4px rgba(255, 107, 133, .12); }
.field.is-invalid .input-wrap > .ico { color: var(--danger); }
.field.is-valid .input { border-color: rgba(214, 255, 69, .45); }
.field-error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.field.is-invalid .field-error, .field-error.is-shown { display: block; }

.pw-strength { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; }
.pw-bars { display: flex; gap: 5px; flex: 1; }
.pw-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background-color .3s; }
.pw-strength[data-level="1"] .pw-bars i:nth-child(-n+1) { background: #ff6b85; }
.pw-strength[data-level="2"] .pw-bars i:nth-child(-n+2) { background: #ffa45c; }
.pw-strength[data-level="3"] .pw-bars i:nth-child(-n+3) { background: #ffe066; }
.pw-strength[data-level="4"] .pw-bars i:nth-child(-n+4) { background: var(--lime); }
.pw-label { min-width: 116px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1.5px solid var(--border-2);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input:checked {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0a10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--lime);
}
.check input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.check a:hover { color: var(--lime); }
.check.is-invalid input { border-color: var(--danger); }
.agree-error { margin: 6px 0 0 31px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.auth-submit { margin-top: 22px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-switch .link-btn { font-size: 14.5px; color: var(--text); }
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 12.5px;
  color: #6f6a80;
}
.auth-secure .ico { width: 14px; height: 14px; }

/* Экран «письмо отправлено» */
.auth-sent { text-align: center; }
.mail-anim {
  position: relative;
  width: 112px; height: 112px;
  margin: 6px auto 24px;
  display: grid;
  place-items: center;
}
.mail-anim .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 255, 69, .45);
  animation: ring 2.4s ease-out infinite;
}
.mail-anim .ring:nth-child(2) { animation-delay: -1.2s; }
.mail-anim .disc {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(214, 255, 69, .28), rgba(214, 255, 69, .06));
  border: 1px solid rgba(214, 255, 69, .35);
}
.mail-anim > svg { position: relative; width: 52px; height: 52px; color: var(--lime); }
.mail-anim .letter { animation: letter 2.4s var(--ease) infinite; }
.mail-anim .check-badge {
  position: absolute;
  right: 10px; bottom: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime);
  color: var(--lime-dark);
  box-shadow: 0 0 0 4px #130f22;
  animation: pop .5s .35s var(--ease) both;
}
.mail-anim .check-badge .ico { width: 16px; height: 16px; stroke-width: 3; }
.sent-text { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }
.sent-text b { color: var(--lime); font-weight: 700; overflow-wrap: anywhere; }
.sent-tips {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  color: var(--text-2);
}
.sent-tips li { display: flex; gap: 11px; align-items: flex-start; }
.sent-tips .ico { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.sent-resend { margin-top: 16px; }

/* Окно архива */
.modal-archive {
  width: min(900px, 100%);
  padding: 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
}
.modal-archive::before { display: none; }
.am-side {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
}
.am-side .am-bg {
  position: absolute;
  inset: -40px;
  z-index: -1;
  filter: blur(50px) saturate(140%);
  opacity: .5;
}
.am-side .am-bg svg { width: 100%; height: 100%; }
.am-cover {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.am-side .btn { width: 100%; }
.am-side .am-hint { font-size: 12.5px; color: var(--text-2); text-align: center; opacity: .8; }
.am-main {
  padding: 32px 30px 28px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: rgba(10, 8, 18, .55);
  border-left: 1px solid var(--border);
}
.am-cat { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.am-title {
  margin-top: 10px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.am-artist { margin-top: 6px; font-size: 17px; color: var(--text-2); font-weight: 600; }
.am-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.am-genre {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: hsl(var(--h1) 80% 60% / .16);
  border: 1px solid hsl(var(--h1) 80% 70% / .3);
  color: hsl(var(--h1) 95% 82%);
  transition: background-color .2s;
}
.am-genre:hover { background: hsl(var(--h1) 80% 60% / .28); }
.am-genre .ico { width: 14px; height: 14px; }
.am-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.am-meta div { padding: 12px 14px; background: #110e1d; }
.am-meta small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.am-meta b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-section-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 24px 0 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.am-section-title span { letter-spacing: 0; text-transform: none; font-weight: 600; }
.tracklist { max-height: 268px; overflow-y: auto; margin-right: -10px; padding-right: 6px; }
.tracklist li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 14.5px;
  transition: background-color .15s;
}
.tracklist li:hover { background: var(--surface-2); }
.tracklist .tn { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.tracklist .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracklist .td { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.am-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.am-license {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(214, 255, 69, .06);
  border: 1px solid rgba(214, 255, 69, .2);
  font-size: 13.5px;
  color: var(--text-2);
}
.am-license .ico { color: var(--lime); width: 20px; height: 20px; margin-top: 1px; }
.am-license b { color: var(--text); }

/* ---------- Уведомления ---------- */
.toasts {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 20, 38, .92);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
  font-size: 14.5px;
  animation: toast-in .4s var(--ease);
}
.toast.is-leaving { animation: toast-out .3s ease forwards; }
.toast .t-ico {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(214, 255, 69, .14);
  color: var(--lime);
}
.toast .t-ico .ico { width: 18px; height: 18px; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-body b { display: block; font-size: 14.5px; }
.toast .t-body span { color: var(--muted); font-size: 13.5px; }
.toast .btn { flex: none; }

/* ---------- Страница жанра ---------- */
.page-hero {
  --h1: 265; --h2: 330;
  position: relative;
  padding: 44px 0 40px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% -20%, hsl(var(--h1) 85% 55% / .4), transparent 62%),
    radial-gradient(700px 380px at 92% 0%, hsl(var(--h2) 85% 55% / .28), transparent 60%);
}
.page-hero .grid-lines { z-index: -1; opacity: .7; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--text-2); }
.ph-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.ph-title { display: flex; align-items: center; gap: 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.page-hero .ph-en {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--h1) 90% 80%);
}
.page-hero .ph-desc { margin-top: 18px; max-width: 600px; color: var(--text-2); font-size: 17px; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stat-chip {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-chip b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.stat-chip span { font-size: 12.5px; color: var(--muted); }
.cover-stack { position: relative; width: 280px; height: 210px; }
.cover-stack .mini-cover {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .85);
  transition: transform .5s var(--ease);
}
.cover-stack .mini-cover:nth-child(1) { left: 0; top: 50px; transform: rotate(-9deg); }
.cover-stack .mini-cover:nth-child(2) { left: 64px; top: 22px; transform: rotate(-1deg); z-index: 1; }
.cover-stack .mini-cover:nth-child(3) { left: 128px; top: 0; transform: rotate(8deg); z-index: 2; }
.cover-stack:hover .mini-cover:nth-child(1) { transform: rotate(-14deg) translateX(-12px); }
.cover-stack:hover .mini-cover:nth-child(3) { transform: rotate(13deg) translateX(12px) translateY(-6px); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  --h1: 265;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h1) 85% 65%); box-shadow: 0 0 10px hsl(var(--h1) 85% 65% / .8); }
.chip.active { background: var(--lime); color: var(--lime-dark); border-color: var(--lime); }
.chip.active .dot { background: var(--lime-dark); box-shadow: none; }
.chip small { font-size: 12px; opacity: .6; font-weight: 700; }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(16, 13, 26, .86);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9);
}
.toolbar #viewSeg { margin-left: auto; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.seg button {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.seg .ico { width: 17px; height: 17px; }
.select {
  height: 44px;
  padding: 0 38px 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8aa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.select:hover, .select:focus { border-color: var(--border-2); }
.select option { background: #151223; color: var(--text); }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.results-bar b { color: var(--text); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.empty {
  padding: 72px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-2);
}
.empty .e-ico {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: var(--surface-2);
  color: var(--muted);
}
.empty .e-ico .ico { width: 32px; height: 32px; }
.empty h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.empty p { margin: 8px auto 22px; color: var(--muted); max-width: 400px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Анимации ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes eq { 0% { transform: scaleY(.18); } 100% { transform: scaleY(1); } }
@keyframes eq-logo { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes ring { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes letter { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-5px); } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .row { grid-template-columns: 60px minmax(0, 2.6fr) 92px 92px 88px 62px 128px 44px; }
  .row-tags { display: none; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1060px) {
  .main-nav, .site-header .header-actions { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .cover-stack { display: none; }
  .ph-inner { grid-template-columns: 1fr; }
  .modal-archive { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .row { grid-template-columns: 56px minmax(0, 1fr) 88px 62px 44px; }
  .row .row-stat.dur, .row .row-stat.trk, .row .pill.lic { display: none; }
  .row-cover { width: 56px; height: 56px; }
  .steps, .lic-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
  .modal-archive { grid-template-columns: 1fr; overflow-y: auto; }
  .am-side { flex-direction: row; align-items: center; padding: 22px; }
  .am-cover { width: 120px; flex: none; border-radius: 16px; }
  .am-side-actions { flex: 1; display: grid; gap: 10px; }
  .am-main { max-height: none; overflow: visible; border-left: 0; border-top: 1px solid var(--border); }
  .am-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero { padding: 36px 0 48px; }
  .hero .lead { font-size: 16.5px; }
  .hero-stats { gap: 18px 28px; }
  .stat b { font-size: 23px; }
  .hero-visual { max-width: 340px; }
  .fc1 { right: -2%; bottom: 4%; }
  .fc2 { left: -2%; top: 2%; }
  .fc3 { display: none; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .genre-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .genre-card { min-height: 150px; padding: 16px; }
  .genre-icon { width: 42px; height: 42px; border-radius: 13px; }
  .genre-name { font-size: 16px; padding-top: 16px; }
  .genre-count { font-size: 12.5px; }
  .genre-arrow { display: none; }
  .genre-big-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .card-actions { opacity: 1; transform: none; right: 8px; bottom: 8px; }
  .card-actions .icon-btn { width: 38px; height: 38px; }
  .card-actions .icon-btn[data-fav] { display: none; }
  .panel { padding: 20px; }
  .row { grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 12px; padding: 8px 8px 8px 8px; }
  .row .row-stat, .row .pill { display: none; }
  .row-cover { width: 52px; height: 52px; }
  .row-mobile { display: block; }
  .mini-row { grid-template-columns: auto 46px minmax(0, 1fr); gap: 12px; }
  .mini-row .row-cover { width: 46px; height: 46px; }
  .mini-row .mr-right { display: none; }
  .mini-rows.no-num .mini-row { grid-template-columns: 46px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .toolbar { position: static; }
  .toolbar .select { flex: 1 1 140px; order: 3; }
  .toolbar #viewSeg { order: 2; margin-left: auto; }
  .modal-dialog { padding: 28px 20px 24px; border-radius: 24px; }
  .modal-archive { padding: 0; }
  .am-main { padding: 24px 20px; }
  .am-side { flex-direction: column; align-items: stretch; }
  .am-cover { width: 100%; max-width: 220px; margin: 0 auto; }
  .faq details p { padding-right: 0; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: 100%; }
  .page-hero { padding: 28px 0 32px; }
  .ph-title { gap: 14px; }
  .genre-icon.lg { width: 56px; height: 56px; border-radius: 18px; }
  .genre-icon.lg .ico { width: 28px; height: 28px; }
}
@media (hover: none) {
  .card-actions { opacity: 1; transform: none; }
}
