:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --card: #111117;
  --card-2: #16161e;
  --line: rgba(238, 242, 248, 0.08);
  --line-2: rgba(238, 242, 248, 0.14);
  --text: #eef2f8;
  --muted: #9aa3b2;
  --dim: #646c7a;
  --red: #e0283a;
  --red-deep: #8e0f1b;
  --red-glow: rgba(224, 40, 58, 0.45);
  --ice: #b9c7dc;
  --mint: #48d6a4;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-size: 0.92em; background: var(--card-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.accent { color: var(--red); text-shadow: 0 0 40px var(--red-glow); }

/* Плёночное зерно и свечение за курсором */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background: url("assets/grain.png") 0 0 / 128px 128px;
}
.glow-cursor {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(224, 40, 58, 0.13), transparent 65%);
  transition: opacity 0.4s; will-change: transform;
}
@media (hover: hover) { body:hover .glow-cursor { opacity: 1; } }

/* ───────── Кнопки ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 17px; letter-spacing: 0.01em;
  border: 1px solid var(--line-2); overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, #f0384a, var(--red) 55%, #b81a2a);
  border-color: rgba(255, 255, 255, 0.18); color: #fff;
  box-shadow: 0 10px 40px -8px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.6s var(--ease) infinite 1.5s;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -8px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary:hover svg { animation: bob 0.8s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(3px); } }
.btn--ghost { background: rgba(238, 242, 248, 0.04); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(238, 242, 248, 0.09); border-color: rgba(238, 242, 248, 0.25); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; background: var(--red); color: #fff; border-color: transparent; }
.btn--small.btn--primary { min-height: 44px; }

/* ───────── Навигация ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 7, 10, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img:first-child { border-radius: 10px; }
.nav__logo { height: 22px; width: auto; }
.nav__links { display: flex; gap: 30px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav__links a { position: relative; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ───────── Hero ───────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 96px 16px 80px;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(224, 40, 58, 0.16), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, rgba(185, 199, 220, 0.05), transparent 70%);
}
.hero__bars {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  display: flex; align-items: flex-end; gap: 4px; padding: 0 4px; opacity: 0.22; pointer-events: none;
}
/* Затухание сверху оверлеем, а не mask-image: маска заставляла перерисовывать слой каждый кадр. */
.hero__bars::after { content: ""; position: absolute; inset: -1px 0 0; background: linear-gradient(to bottom, var(--bg), rgba(7, 7, 10, 0) 90%); }
.hero__bars i {
  flex: 1; will-change: transform; height: 100%; border-radius: 3px 3px 0 0; transform-origin: bottom;
  background: linear-gradient(to top, var(--red-deep), var(--red));
  animation: eq var(--d, 1.2s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
  transform: scaleY(var(--s, 0.3));
}
@keyframes eq { from { transform: scaleY(var(--from, 0.1)); } to { transform: scaleY(var(--to, 0.6)); } }

.hero__emblem { position: relative; width: clamp(130px, 19vh, 200px); aspect-ratio: 1; margin-bottom: 8px; animation: rise 1.2s var(--ease) both; }
.hero__emblem::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(224, 40, 58, 0.55), transparent 62%); will-change: transform, opacity; animation: pulse 4s ease-in-out infinite; }
.hero__emblem img { position: relative; width: 100%; height: 100%; border-radius: 50%; }
.hero__ring { position: absolute; inset: -6%; border-radius: 50%; will-change: transform; border: 1.5px dashed rgba(224, 40, 58, 0.55); animation: spin 28s linear infinite; }
/* Дуга вокруг иконки: неспешно кружит с мягко плавающей скоростью и чуть «дышит» длиной. */
.hero__loader { position: absolute; z-index: 1; inset: 8%; width: 84%; height: 84%; overflow: visible; animation: loader-spin 5s cubic-bezier(0.45, 0.15, 0.55, 0.85) infinite; will-change: transform; }
.hero__loader circle { fill: none; stroke-width: 1.4; }
.hero__loader-track { stroke: rgba(224, 40, 58, 0.18); }
.hero__loader-arc { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 20 80; animation: loader-arc 4s ease-in-out infinite alternate; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-arc {
  from { stroke-dasharray: 20 80; stroke-dashoffset: 0; }
  to { stroke-dasharray: 32 68; stroke-dashoffset: -6; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.45; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }

.hero__logo { width: min(300px, 70vw); height: auto; margin: 6px 0 22px; animation: rise 1.2s var(--ease) 0.1s both; }
.hero__title { font-size: clamp(34px, min(6.4vw, 8.4vh), 76px); font-weight: 900; animation: rise 1.2s var(--ease) 0.2s both; }
.hero__lead { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); animation: rise 1.2s var(--ease) 0.3s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; animation: rise 1.2s var(--ease) 0.4s both; }
.hero__cta .btn--primary { min-height: 62px; padding: 0 34px; font-size: 18px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-top: 18px; font-size: 14px; color: var(--dim); font-weight: 600; animation: rise 1.2s var(--ease) 0.5s both; }
.hero__meta > span:not([hidden]):not(:empty) ~ span:not([hidden]):not(:empty)::before { content: "·"; margin: 0 10px; color: var(--line-2); }
.hero__meta > span:empty { display: none; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Плашка «доступно обновление» (когда пришли из приложения) */
.update-banner {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: rgba(224, 40, 58, 0.12); border: 1px solid rgba(224, 40, 58, 0.4); color: #ffd9dd;
  animation: rise 0.9s var(--ease) both;
}
.update-banner.is-current { background: rgba(72, 214, 164, 0.1); border-color: rgba(72, 214, 164, 0.4); color: #c9f5e4; }
.update-banner__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: ping 1.8s infinite; flex: none; }
.update-banner.is-current .update-banner__dot { background: var(--mint); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 100% { box-shadow: 0 0 0 12px transparent; } }

.qr { display: flex; align-items: center; gap: 18px; margin-top: 34px; padding: 14px 20px 14px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; max-width: 400px; font-size: 14px; color: var(--muted); animation: rise 1.2s var(--ease) 0.6s both; }
.qr b { color: var(--text); }
.qr__code { flex: none; padding: 8px; background: #fff; border-radius: 10px; }
.qr__code img, .qr__code canvas { width: 92px !important; height: 92px !important; }

/* ───────── Цифры ───────── */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
}
.stat { padding: 34px 12px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(32px, 5vw, 54px); font-weight: 900; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ───────── Секции ───────── */
.section { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 120px 16px 0; }
.section__head { margin-bottom: 48px; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 40, 58, 0.14), transparent 60%);
}
.card:hover { border-color: rgba(224, 40, 58, 0.35); transform: translateY(-4px); box-shadow: 0 24px 60px -30px var(--red-glow); }
.card:hover::before { opacity: 1; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card--full { grid-column: 1 / -1; }
.card__icon { width: 48px; height: 48px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 14px; background: rgba(224, 40, 58, 0.12); color: var(--red); border: 1px solid rgba(224, 40, 58, 0.25); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.library-mock { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; font-family: "Roboto", var(--body); }
.lm-row { display: flex; align-items: center; gap: 16px; min-width: 0; transform: translateX(-14px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s; }
.lm-row:nth-child(2) { transition-delay: 0.1s; } .lm-row:nth-child(3) { transition-delay: 0.2s; } .lm-row:nth-child(4) { transition-delay: 0.3s; }
.is-visible .lm-row { transform: none; opacity: 1; }
.lm-cover { flex: none; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #1a1a22; }
.lm-cover--artist { border-radius: 50%; }
.lm-cover--liked { display: grid; place-items: center; background: linear-gradient(135deg, #4a1df5, #8a7cf0 55%, #bfe6d9); }
.lm-cover--liked svg { width: 24px; height: 24px; fill: #fff; }
.lm-text { display: grid; gap: 2px; min-width: 0; }
.lm-text b { font-weight: 500; font-size: 17px; color: #f3e9ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-text small { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #b8acb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-pin { flex: none; width: 12px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='%231ed760' d='M2 0h8v1.5L8.5 3v4L11 9v1.5H6.75V14h-1.5v-3.5H1V9l2.5-2V3L2 1.5z'/%3E%3C/svg%3E") center / contain no-repeat; }

.race { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.race li { font-size: 13px; font-weight: 700; color: var(--muted); }
.race i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(238, 242, 248, 0.06); position: relative; overflow: hidden; }
.race i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.race li:first-child i::after { background: linear-gradient(90deg, #2d8b6b, var(--mint)); }
.race li:nth-child(2) i::after { transition-delay: 0.1s; } .race li:nth-child(3) i::after { transition-delay: 0.2s; } .race li:nth-child(4) i::after { transition-delay: 0.3s; }
.is-visible .race i::after { transform: scaleX(1); }

.spectrum { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 18px; }
.spectrum i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #ffb341, var(--red) 50%, #4b1a7a); transform-origin: bottom; animation: eq var(--d) ease-in-out infinite alternate; }

.card--chips { padding-bottom: 24px; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ice); background: rgba(238, 242, 248, 0.04); border: 1px solid var(--line); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.chips li:hover { border-color: rgba(224, 40, 58, 0.5); color: #fff; background: rgba(224, 40, 58, 0.1); }

/* ───────── Бегущая строка источников ───────── */
.sources { position: relative; z-index: 1; padding: 120px 0 0; text-align: center; }
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { padding: 0 34px; font-family: var(--body); font-weight: 800; font-size: clamp(24px, 4vw, 42px); letter-spacing: -0.02em; white-space: nowrap; color: rgba(238, 242, 248, 0.38); transition: color 0.3s; }
.marquee__track span::after { content: "✦"; margin-left: 68px; color: var(--red); font-size: 0.5em; vertical-align: middle; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }
.sources__note { margin: 22px auto 0; padding: 0 16px; color: var(--dim); font-size: 14px; }

/* ───────── Приватность / установка ───────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.privacy, .install { padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.privacy { background: radial-gradient(120% 100% at 0% 0%, rgba(72, 214, 164, 0.08), transparent 60%), var(--card); }
.privacy h2, .install h2 { font-size: clamp(26px, 3.4vw, 36px); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(72, 214, 164, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348d6a4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-family: var(--display); font-weight: 700; background: rgba(224, 40, 58, 0.12); color: var(--red); border: 1px solid rgba(224, 40, 58, 0.3); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
.install__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* ───────── Патч-ноуты ───────── */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--red), rgba(224, 40, 58, 0.1) 60%, transparent); }
.timeline__loading { color: var(--dim); }
.release { position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color 0.4s; }
.release::before { content: ""; position: absolute; left: -31px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); }
.release.is-latest::before, .release.is-new::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgba(224, 40, 58, 0.18); }
.release.is-latest { border-color: rgba(224, 40, 58, 0.35); background: radial-gradient(100% 120% at 0% 0%, rgba(224, 40, 58, 0.09), transparent 60%), var(--card); }
.release.is-old { opacity: 0.6; }
.release.is-old:hover, .release.is-old[open] { opacity: 1; }
.release > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 22px 26px; }
.release > summary::-webkit-details-marker { display: none; }
.release__ver { font-family: var(--display); font-weight: 700; font-size: 24px; }
.release__date { color: var(--dim); font-size: 14px; font-weight: 600; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tag--latest { background: var(--red); color: #fff; }
.tag--soon { background: rgba(238, 242, 248, 0.06); color: var(--muted); border: 1px dashed var(--line-2); }
.tag--new { background: rgba(224, 40, 58, 0.14); color: #ff9aa4; border: 1px solid rgba(224, 40, 58, 0.35); }
.tag--yours { background: rgba(72, 214, 164, 0.12); color: var(--mint); border: 1px solid rgba(72, 214, 164, 0.35); }
.release__counts { margin-left: auto; display: flex; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.release__counts span { padding: 3px 9px; border-radius: 8px; background: rgba(238, 242, 248, 0.05); }
.release__chev { width: 22px; height: 22px; flex: none; transition: transform 0.4s var(--ease); fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.release[open] .release__chev { transform: rotate(180deg); }
.release__body { padding: 0 26px 24px; display: grid; gap: 20px; }
.group h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--k); }
.group h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 12px var(--k); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.group li { position: relative; padding-left: 26px; color: #cfd6e1; font-size: 15.5px; }
.group li::before { content: var(--sym); position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-weight: 800; color: var(--k); }
.group--add { --k: #ff5c6b; --sym: "+"; }
.group--change { --k: var(--ice); --sym: "•"; }
.group--fix { --k: var(--mint); --sym: "✓"; }
.group--plain { --k: var(--ice); --sym: "–"; }
.release__dl { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line-2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.release__dl:hover { color: var(--text); border-color: var(--red); }
.timeline__more { justify-self: start; margin-top: 4px; background: none; border: 1px solid var(--line-2); color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.timeline__more:hover { color: var(--text); border-color: var(--red); }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(224, 40, 58, 0.3); background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(224, 40, 58, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0283a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ───────── Финал / футер ───────── */
.final { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 140px auto 0; padding: 0 16px; text-align: center; }
.final img { border-radius: 24px; box-shadow: 0 0 60px -6px var(--red-glow); }
.final h2 { font-size: clamp(32px, 6vw, 64px); font-weight: 900; }
.final .btn--primary { min-height: 62px; padding: 0 36px; font-size: 18px; }
.final__alt { color: var(--dim); font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--line-2); }
.final__alt:hover { color: var(--text); }
.footer { position: relative; z-index: 1; max-width: 1160px; margin: 120px auto 0; padding: 36px 16px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; color: var(--dim); font-size: 13px; }
.footer img { height: 22px; width: auto; opacity: 0.8; }
.footer p { flex: 1; min-width: 240px; }
.footer a { color: var(--muted); font-weight: 700; }
.footer a:hover { color: var(--text); }

/* ───────── Липкая кнопка (телефон) ───────── */
.sticky-dl { display: none; }

/* ───────── Появление при скролле ───────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Анимации за пределами экрана стоят на паузе. */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* ───────── Адаптив ───────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--tall { grid-row: auto; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 88px; }
  .sources { padding-top: 88px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card--wide { grid-column: auto; }
  .card { padding: 24px 22px; }
  .privacy, .install { padding: 28px 22px; }
  .hero { padding-top: 96px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .hero__title br { display: none; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 5px; }
  .release::before { left: -25px; top: 26px; width: 12px; height: 12px; }
  .release > summary { padding: 18px 18px; }
  .release__body { padding: 0 18px 20px; }
  .release__counts { margin-left: 0; width: 100%; order: 5; }
  .release__chev { margin-left: auto; }
  .faq summary { padding: 18px 56px 18px 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; }
  .footer { padding-bottom: 110px; }
  .nav .btn--small { display: none; }

  .sticky-dl {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 20px;
    background: rgba(18, 18, 24, 0.82); border: 1px solid var(--line-2);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .sticky-dl.is-shown { transform: none; }
  .sticky-dl b { display: block; font-size: 15px; }
  .sticky-dl__meta { font-size: 12px; color: var(--dim); }
}

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