/* NUBO Karaoke — сайт (страницы из site/build.py) */

:root {
  --bg0: #0f0b09;
  --bg1: #1a1310;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(244, 235, 226, 0.09);
  --ink: #f4ebe2;
  --ink-2: #d9ccbf;
  --mute: #a89886;
  --accent: #e8a24a;
  --hot: #ff6b3d;
  --cream: #ffe6b8;
  --tg: #2aabee;
  --radius: 20px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", sans-serif;
  --container: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 107, 61, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(232, 162, 74, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(232, 162, 74, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #1a120c;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(var(--promo-h, 0px) + 10px); }

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

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: var(--promo-h, 0px);
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(15, 11, 9, 0.72);
  border-bottom: 1px solid var(--line);
}
html:not(.has-promo) .site-header { top: 0; }
.header-row { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.logo img { border-radius: 9px; }
.logo span {
  font: 800 1.15rem var(--display);
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--accent), var(--hot) 70%, #fff1d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo small { color: var(--mute); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 150ms ease, background 150ms ease;
}
.main-nav a:hover { color: var(--ink); background: var(--card-hi); }
.main-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; border-radius: 11px; }
.btn-primary {
  color: #1a120c;
  background: linear-gradient(120deg, var(--accent), var(--hot));
  box-shadow: 0 10px 30px rgba(255, 107, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 107, 61, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-hi); border-color: rgba(244, 235, 226, 0.2); transform: translateY(-1px); }
.btn-tg { color: #fff; background: linear-gradient(120deg, #2aabee, #229ed9); box-shadow: 0 10px 28px rgba(34, 158, 217, 0.3); }
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(34, 158, 217, 0.45); }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* ───────── Typography ───────── */
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--hot) 60%, var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--mute); }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 1.08rem; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--mute); font-size: 0.9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--accent); }
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(232, 162, 74, 0.35);
  background: rgba(232, 162, 74, 0.1);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 600;
}
.badge-free i { width: 8px; height: 8px; border-radius: 50%; background: #6fdc8c; box-shadow: 0 0 0 4px rgba(111, 220, 140, 0.18); animation: pulse 2s ease-in-out infinite; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 6%;
  border-radius: 32px;
  background: radial-gradient(closest-side, rgba(255, 107, 61, 0.35), transparent);
  filter: blur(40px);
  z-index: -1;
}
.shot {
  border-radius: 18px;
  border: 1px solid rgba(244, 235, 226, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background: #120e0c;
}
.hero .shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 600ms ease; }
.hero .shot:hover { transform: none; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.stat b { display: block; font: 700 1.6rem var(--display); color: var(--cream); }
.stat span { color: var(--mute); font-size: 0.92rem; }

/* Cards / features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232, 162, 74, 0.3); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(232, 162, 74, 0.22), rgba(255, 107, 61, 0.12));
  border: 1px solid rgba(232, 162, 74, 0.25);
}

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 110px); }
.split.flip > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5-5 1.4 1.4-6.4 6.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5-5 1.4 1.4-6.4 6.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.duo { display: grid; grid-template-columns: 0.55fr 1fr; gap: 16px; align-items: end; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  font: 700 1.1rem var(--display);
  color: #1a120c;
  background: linear-gradient(135deg, var(--accent), var(--hot));
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Formats */
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 162, 74, 0.3);
  background: rgba(232, 162, 74, 0.08);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  border: 1px solid rgba(232, 162, 74, 0.25);
  background:
    radial-gradient(70% 140% at 0% 0%, rgba(232, 162, 74, 0.18), transparent 60%),
    radial-gradient(60% 140% at 100% 100%, rgba(42, 171, 238, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.cta-band h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 10px 0 0; color: var(--ink-2); }
.cta-ico {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  box-shadow: 0 14px 34px rgba(255, 107, 61, 0.35);
}
.cta-final { text-align: center; padding: clamp(48px, 7vw, 80px) 24px; }
.cta-final .hero-actions { justify-content: center; }

/* Download box */
.download-box {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(232, 162, 74, 0.3);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 107, 61, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.download-box .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 22px; color: var(--mute); font-size: 0.92rem; }
.download-box .meta b { color: var(--ink); font-weight: 600; }
.download-box small { display: block; margin-top: 14px; color: var(--mute); font-size: 0.85rem; }
.req { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.req th, .req td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 40%; color: var(--mute); font-weight: 500; }

/* Article */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 48px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); }
.prose .note {
  padding: 18px 20px;
  margin: 24px 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(232, 162, 74, 0.07);
}
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 0.86rem; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: "/ "; opacity: 0.5; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq.center { margin-inline: auto; }
.faq-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 200ms ease, background 200ms ease;
}
.faq-item[open] { border-color: rgba(232, 162, 74, 0.3); background: rgba(232, 162, 74, 0.05); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card-hi);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 220ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a p { margin: 0 0 10px; }
.faq-a a { color: var(--accent); }

/* Login */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(40px, 7vw, 80px) 0; }
.auth-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  border: 1px solid rgba(244, 235, 226, 0.12);
  background: linear-gradient(180deg, rgba(36, 27, 21, 0.92), rgba(20, 15, 12, 0.92));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card > p { margin: 0 0 22px; color: var(--mute); font-size: 0.95rem; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--mute); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mute);
  font: 600 0.92rem var(--font);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--card-hi); color: var(--ink); }
.form { display: grid; gap: 10px; }
.form[hidden] { display: none; }
.field {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(244, 235, 226, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: 400 1rem var(--font);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 162, 74, 0.15); }
.field.code { text-align: center; letter-spacing: 0.5em; font: 600 1.4rem var(--display); }
.form-error { min-height: 1.2em; margin: 2px 0; color: #ff8a70; font-size: 0.88rem; }
.form-ok { color: #8ee0a4; }
.link-btn { padding: 4px; border: 0; background: none; color: var(--mute); font: 500 0.88rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.auth-legal { margin: 18px 0 0; color: var(--mute); font-size: 0.8rem; }
.auth-legal a { color: var(--ink-2); }
.auth-side h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.auth-done { text-align: center; }
.auth-done .ava { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }

/* Footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-grid h2 { font: 600 0.8rem var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-brand p { color: var(--mute); font-size: 0.94rem; max-width: 34ch; }
.footer-tg { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: #cfeefe; text-decoration: none; background: rgba(42, 171, 238, 0.12); border: 1px solid rgba(42, 171, 238, 0.3); font-size: 0.92rem; }
.footer-tg svg { width: 18px; height: 18px; color: var(--tg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(111, 220, 140, 0.18); } 50% { box-shadow: 0 0 0 8px rgba(111, 220, 140, 0.05); } }

/* ───────── Responsive ───────── */
@media (max-width: 1300px) {
  .main-nav a { padding: 8px 9px; font-size: 0.88rem; }
}
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    place-content: center;
    width: 42px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--card);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; /* шапка с backdrop-filter — контейнер для fixed, поэтому крепимся к ней */
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - var(--promo-h, 0px) - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    background: #0f0b09;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .hero-grid, .split, .auth-wrap { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero .shot { transform: none; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { justify-self: center; }
  .auth-side { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--container)); }
  [data-auth-link] { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .btn { width: 100%; }
  .header-actions .btn { width: auto; }
  .logo small { display: none; }
  .duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-free i { animation: none; }
  .hero .shot { transform: none; }
}

/* Декоративные свечения не должны давать горизонтальную прокрутку */
html, body { overflow-x: clip; }
.header-actions [data-auth-link] { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── Каталог песен ───────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 18px; }

.abc { display: grid; gap: 8px; margin-top: 22px; }
.abc div { display: flex; flex-wrap: wrap; gap: 6px; }
.abc a {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font: 600 0.95rem var(--display); text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.abc a:hover { color: var(--ink); border-color: rgba(232, 162, 74, 0.45); transform: translateY(-1px); }
.abc a[aria-current="page"] { color: #1a1008; background: linear-gradient(135deg, var(--accent), var(--hot)); border-color: transparent; }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.art-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  text-decoration: none; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.art-chip b { color: var(--ink); font-weight: 600; line-height: 1.3; }
.art-chip span { color: var(--mute); font-size: 0.85rem; }
.art-chip:hover { border-color: rgba(232, 162, 74, 0.4); background: var(--card-hi); transform: translateY(-2px); }

.art-cols { columns: 3 300px; column-gap: 18px; }
.art-block {
  break-inside: avoid; margin: 0 0 18px; padding: 16px 18px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
}
.art-block h2 { margin: 0 0 8px; font: 600 1.02rem/1.35 var(--font); color: var(--cream); }
.art-block h2 a { color: inherit; text-decoration: none; }
.art-block.linked { border-color: rgba(232, 162, 74, 0.22); }
.art-block.linked h2 a::after { content: " →"; color: var(--accent); }
.art-block.linked:hover { background: var(--card-hi); }
.art-block p { margin: 0; font-size: 0.88rem; }
.art-block ul { margin: 0; padding: 0; list-style: none; }
.art-block li { padding: 3px 0; color: var(--ink-2); font-size: 0.94rem; border-top: 1px dashed rgba(244, 235, 226, 0.06); }
.art-block li:first-child { border-top: 0; }

.song-list {
  columns: 3 280px; column-gap: 28px; margin: 0; padding: 18px 22px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  counter-reset: song; list-style: none;
}
.song-list li {
  break-inside: avoid; display: flex; align-items: baseline; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid rgba(244, 235, 226, 0.05); color: var(--ink-2);
  counter-increment: song;
}
.song-list li::before { content: counter(song); min-width: 2.2em; color: var(--mute); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.song-list li span { flex: 1; }
.song-list i, .song-results i {
  font-style: normal; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 5px; border-radius: 5px; color: var(--mute); border: 1px solid var(--line);
}

.song-search {
  position: relative; padding: 22px; border-radius: var(--radius);
  border: 1px solid rgba(232, 162, 74, 0.25);
  background: linear-gradient(180deg, rgba(232, 162, 74, 0.08), rgba(255, 255, 255, 0.02));
}
.song-search > svg { position: absolute; left: 40px; top: 40px; width: 22px; height: 22px; color: var(--mute); pointer-events: none; }
.song-search input {
  width: 100%; height: 58px; padding: 0 18px 0 54px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--ink);
  font: 500 1.08rem var(--font);
}
.song-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 162, 74, 0.15); }
.song-search-meta { margin: 12px 4px 0; color: var(--mute); font-size: 0.9rem; }
.song-results { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px; }
.song-results li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.song-results .t { flex: 1; min-width: 0; }
.song-results .t b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-results .t a, .song-results .t span { color: var(--mute); font-size: 0.88rem; text-decoration: none; }
.song-results .t a:hover { color: var(--accent); }
.song-results mark { background: rgba(232, 162, 74, 0.28); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 640px) {
  .song-search { padding: 14px; }
  .song-search > svg { left: 30px; top: 32px; }
  .art-cols, .song-list { columns: 1; }
}
