/* Лендинг Shum (index.html) и страница загрузки (download.html). Цвета и шрифты — из tokens.css приложения.
   CSP сайта (backend/lib/webSecurity.js SITE_CSP): только свои файлы — без встроенных <style> и атрибутов style=,
   поэтому все размеры, задержки и цвета мини-иллюстраций — здесь, через классы и :nth-child. */
:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-alt: #0f0f12;
  --card: #151518;
  --card-2: #1b1b20;
  --tile: #111114;
  --text: #f4f4f6;
  --text-2: #a4a4ad;
  --text-3: #6e6e78;
  --text-dim: #7a7a85;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hair: rgba(255, 255, 255, 0.07);
  --accent: #ff5500;
  --accent-end: #ff8a3d;
  --accent-2: #ffcc00;
  --glow: rgba(255, 85, 0, 0.35);
  --green: #10b981;
  --green-text: #34d399;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
/* Иконки — те же контуры, что в приложении (scripts/site-icons.js берёт их из frontend/src/components/Icon.jsx), и та же
   толщина на экране: stroke-width в единицах сетки 24 = 1,5 × 24 / размер (1,5 px у 12–20 px), от 24 px — 1,75 */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }
.section { padding: 112px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 12, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo-bars i { width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: bar 1.4s var(--ease) infinite; }
.logo-bars i:nth-child(1) { height: 45%; animation-delay: -0.2s; }
.logo-bars i:nth-child(2) { height: 80%; animation-delay: -0.5s; }
.logo-bars i:nth-child(3) { height: 100%; animation-delay: -0.9s; }
.logo-bars i:nth-child(4) { height: 65%; animation-delay: -0.3s; }
.logo-bars i:nth-child(5) { height: 35%; animation-delay: -0.7s; }
.logo-bars.small { height: 16px; }
.logo-bars.small i { width: 3px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 10px; }
.nav-ghost { font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 10px; color: var(--text-2); transition: color 0.2s ease, background 0.2s ease; }
.nav-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { position: relative; overflow: hidden; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 85, 0, 0.3); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-ghost { display: none; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: 14px; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: left 0.6s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.btn-secondary { color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-row.center { justify-content: center; }
.cta-wrap { position: relative; display: inline-flex; }
.pulse-ring { position: absolute; inset: -8px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-end)); filter: blur(18px); animation: pulseGlow 3.2s ease-in-out infinite; }
.cta-wrap .btn-primary { position: relative; z-index: 1; }
@media (max-width: 480px) { .cta-row .btn, .cta-row .cta-wrap { width: 100%; } .cta-wrap .btn { flex: 1; } }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background-image: radial-gradient(rgba(255, 140, 80, 0.06) 1px, transparent 1px); background-size: 22px 22px; }
/* перелив — слой вдвое шире экрана, который едет transform'ом: без перерисовки всего первого экрана каждый кадр */
.hero-wash { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-wash::before { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 100%; background: linear-gradient(110deg, rgba(255, 85, 0, 0.16), transparent 22%, rgba(255, 204, 0, 0.07) 36%, transparent 50%, rgba(255, 85, 0, 0.12) 68%, transparent 86%); animation: washMove 16s ease-in-out infinite alternate; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.blob-a { top: -140px; right: -100px; width: 480px; height: 480px; opacity: 0.45; background: radial-gradient(circle at 35% 35%, var(--accent), #7a2200 70%, transparent 100%); animation: floatA 9s ease-in-out infinite; }
.blob-b { bottom: -170px; left: -120px; width: 420px; height: 420px; opacity: 0.32; background: radial-gradient(circle at 65% 65%, var(--accent-2), var(--accent) 70%, transparent 100%); animation: floatB 11s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
/* полоса «Вышел Shum …» над заголовком (download.js newsFor): маленькая ссылка на «Что нового» страницы загрузки; видна только
   первые 14 дней после выпуска и только с ответом сервера. Длинный заголовок выпуска на телефоне переносится в две строки */
.hero-news { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: -8px; padding: 5px 12px 5px 5px; border-radius: 16px; font-size: 13px; line-height: 1.4; color: var(--text-2); background: rgba(255, 85, 0, 0.07); border: 1px solid rgba(255, 85, 0, 0.26); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.hero-news:hover { color: var(--text); border-color: rgba(255, 85, 0, 0.55); background: rgba(255, 85, 0, 0.11); }
.hero-news-tag { flex: none; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); }
.hero-news-text { min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.hero-news-arrow { width: 16px; height: 16px; stroke-width: 2.25; color: var(--accent-end); transition: transform 0.2s var(--ease); }
.hero-news:hover .hero-news-arrow { transform: translateX(2px); }
.hero-title { font-weight: 800; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -0.04em; }
/* одна колонка: заголовок снова крупный, по ширине экрана */
@media (max-width: 980px) { .hero-title { font-size: clamp(36px, 8.4vw, 64px); } }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hero-note { font-size: 13px; color: var(--text-3); }
.hero-shot { position: relative; }
.shot-glow { position: absolute; inset: 8% 6%; border-radius: 30px; background: radial-gradient(ellipse at 50% 60%, var(--glow), transparent 70%); filter: blur(40px); animation: pulseGlow 5s ease-in-out infinite; }

.app-window { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 40px 80px rgba(0, 0, 0, 0.55); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.app-bar .dot:nth-child(1) { background: #ff5f57; }
.app-bar .dot:nth-child(2) { background: #febc2e; }
.app-bar .dot:nth-child(3) { background: #28c840; }
.app-bar-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.app-window img { width: 100%; aspect-ratio: 1400 / 880; object-fit: cover; object-position: top left; background: var(--bg); transition: opacity 0.16s ease; }
.app-window img.swap { opacity: 0; }
.hero-shot .app-window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s var(--ease); }
.hero-shot:hover .app-window { transform: perspective(1600px) rotateY(0) rotateX(0); }
@media (max-width: 980px) { .hero-shot .app-window { transform: none; } }

.eq { position: absolute; right: -6px; bottom: -26px; display: flex; align-items: flex-end; gap: 5px; height: 56px; padding: 10px 14px; border-radius: 14px; background: rgba(21, 21, 24, 0.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.eq i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: bar 1.2s var(--ease) infinite; }
.eq i:nth-child(odd) { animation-duration: 1.5s; }
.eq i:nth-child(1) { height: 40%; animation-delay: -0.1s; } .eq i:nth-child(2) { height: 70%; animation-delay: -0.4s; }
.eq i:nth-child(3) { height: 100%; animation-delay: -0.8s; } .eq i:nth-child(4) { height: 55%; animation-delay: -0.2s; }
.eq i:nth-child(5) { height: 85%; animation-delay: -0.6s; } .eq i:nth-child(6) { height: 35%; animation-delay: -0.3s; }
.eq i:nth-child(7) { height: 65%; animation-delay: -0.9s; } .eq i:nth-child(8) { height: 90%; animation-delay: -0.5s; }
.eq i:nth-child(9) { height: 50%; animation-delay: -0.7s; } .eq i:nth-child(10) { height: 30%; animation-delay: -0.15s; }
.eq i:nth-child(11) { height: 75%; animation-delay: -0.45s; } .eq i:nth-child(12) { height: 45%; animation-delay: -0.85s; }
@media (max-width: 560px) { .eq { display: none; } }

/* ---------- скачивание под систему (download.js) ---------- */
/* hidden сильнее display у .btn и ссылок: скрытая кнопка «Открыть в браузере» не должна оставаться на месте */
[hidden] { display: none !important; }
/* колонка первого экрана не растягивается длинной командой (строка команды прокручивается внутри своей рамки) */
.hero-copy { min-width: 0; }
.dl-other { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--text-3); margin-top: -10px; }
.dl-other a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.dl-other a:hover { color: var(--text); text-decoration-color: var(--accent); }
.dl-hint { display: flex; flex-direction: column; gap: 10px; max-width: 540px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; color: var(--text-2); }
/* команда переносится, а не прокручивается; на узком экране кнопка «Копировать» уходит под неё */
.dl-cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dl-cmd code { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; padding: 9px 12px; border-radius: 10px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.dl-copy { flex: none; padding: 9px 12px; border-radius: 10px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong); cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.dl-copy:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.dl-small { font-size: 13px; color: var(--text-3); }
.qa code { font-family: var(--mono); font-size: 0.88em; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- страница загрузки /download (download.html, download.js) ---------- */
.dlp-hero { position: relative; overflow: hidden; padding: 88px 0 80px; background-image: radial-gradient(rgba(255, 140, 80, 0.06) 1px, transparent 1px); background-size: 22px 22px; }
.dlp-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.dlp-title { font-weight: 800; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.dlp-sub { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.btn-xl { padding: 17px 32px; border-radius: 16px; font-size: 18px; }
.btn-xl .ic { width: 24px; height: 24px; stroke-width: 1.75; }
.dlp-btn-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.2; min-width: 0; }
.dlp-btn-meta { font-size: 13px; font-weight: 500; opacity: 0.85; white-space: normal; text-align: left; }
.dlp-btn-meta:empty { display: none; }
.dlp-status { max-width: 640px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--text); background: rgba(255, 85, 0, 0.1); border: 1px solid rgba(255, 85, 0, 0.3); }
.dlp-status a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.dlp-hint { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 640px; padding: 16px 18px; border-radius: 14px; text-align: left; font-size: 14px; line-height: 1.6; color: var(--text-2); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.dlp-hint strong { color: var(--text); font-weight: 600; }
.dlp-hint-title { font-size: 15px; font-weight: 650; color: var(--text); }
.dlp-hint code, .dlp-section .section-head code { font-family: var(--mono); font-size: 0.88em; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.dlp-hint .dl-cmd code { background: var(--bg); padding: 9px 12px; border-radius: 10px; }
@media (max-width: 480px) { .dlp-inner .cta-row { width: 100%; } .btn-xl { padding: 15px 20px; font-size: 16px; } }

.dlp-section { padding: 88px 0; }
@media (max-width: 720px) { .dlp-section { padding: 64px 0; } }
.dlp-alt { background: var(--bg-alt); }
.dlp-narrow { max-width: 860px; }
/* пять карточек: компьютеры (Windows, Linux, ARM64) — первым рядом по трети, телефоны (Android, браузер и iPhone) — вторым по половине */
.dlp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.dlp-grid > .dlp-card { grid-column: span 2; }
.dlp-grid > .dlp-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1080px) { .dlp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dlp-grid > .dlp-card, .dlp-grid > .dlp-card:nth-child(n+4) { grid-column: auto; } .dlp-grid > .dlp-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .dlp-grid { grid-template-columns: 1fr; } }
.dlp-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.dlp-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.dlp-card.is-current { border-color: rgba(255, 85, 0, 0.5); box-shadow: 0 0 0 1px var(--glow), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 44px rgba(255, 85, 0, 0.18); }
.dlp-card.is-current h3::after { content: 'для вас'; margin-left: 10px; vertical-align: 3px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0; padding: 3px 8px; border-radius: 999px; color: var(--accent); background: rgba(255, 85, 0, 0.1); border: 1px solid rgba(255, 85, 0, 0.25); }
.dlp-card.is-missing { opacity: 0.6; }
.dlp-card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.dlp-card p { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.dlp-card-meta { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--text-3); overflow-wrap: anywhere; }
.dlp-card-meta:empty { display: none; }
.dlp-card .btn { margin-top: auto; padding: 12px 18px; font-size: 15px; white-space: normal; text-align: center; }
.dlp-qr { align-self: center; width: 132px; height: 132px; padding: 6px; border-radius: 12px; background: #fff; }
@media (max-width: 600px) { .dlp-qr { display: none; } }

.dlp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .dlp-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dlp-note { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.dlp-note strong { font-size: 16px; font-weight: 650; color: var(--text); }
.dlp-note span { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.dlp-more { margin-top: 16px; padding: 11px 18px; border-radius: 12px; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); transition: background 0.2s ease, border-color 0.2s ease; }
.dlp-more:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.dlp-table-wrap { border-radius: 18px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.dlp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dlp-table thead th { padding: 14px 18px; text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-3); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.dlp-table tbody tr + tr > * { border-top: 1px solid var(--border); }
.dlp-table tbody th, .dlp-table tbody td { padding: 16px 18px; text-align: left; vertical-align: top; }
.dlp-ver { white-space: nowrap; }
.dlp-ver-num { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--text); }
.dlp-badge { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; color: var(--accent); background: rgba(255, 85, 0, 0.1); border: 1px solid rgba(255, 85, 0, 0.25); }
.dlp-date { color: var(--text-2); white-space: nowrap; }
/* ячейка таблицы остаётся ячейкой (flex у td ломает раскладку строки) — отступы у самих строк файлов */
.dlp-file + .dlp-file { margin-top: 8px; }
.dlp-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.dlp-file-link { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.dlp-file-link:hover { text-decoration-color: var(--accent); }
.dlp-file-os { font-weight: 600; }
.dlp-file-size { font-size: 13px; color: var(--text-3); }
.dlp-sha { font-family: var(--mono); font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.dlp-copy { padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); transition: background 0.2s ease, color 0.2s ease; }
.dlp-copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.dlp-offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }
/* телефон: строка таблицы — карточкой, без горизонтальной прокрутки */
@media (max-width: 720px) {
  .dlp-table thead { display: none; }
  .dlp-table, .dlp-table tbody, .dlp-table tr, .dlp-table tbody th, .dlp-table tbody td { display: block; width: 100%; }
  .dlp-table tbody th { padding: 16px 16px 4px; }
  .dlp-table tbody td { padding: 4px 16px; }
  .dlp-table tbody td.dlp-files { padding-bottom: 16px; }
  .dlp-table tbody tr + tr > * { border-top: 0; }
  .dlp-table tbody tr + tr { border-top: 1px solid var(--border); }
  .dlp-date { font-size: 13px; }
  /* начало SHA-512 на телефоне не нужно: ссылка и кнопка «SHA-512» — одной строкой */
  .dlp-sha { display: none; }
}

/* ---------- заголовки секций ---------- */
.section-head { max-width: 680px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.section-head h2, .together-copy h2, .final h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.section-head p, .together-copy p, .final p { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--accent); background: rgba(255, 85, 0, 0.1); border: 1px solid rgba(255, 85, 0, 0.22); }
.card-icon .ic { width: 24px; height: 24px; stroke-width: 1.75; }
/* лендинг: крупные заголовки; вторая половина — приглушённая */
h2.display { font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.display .dim { display: block; color: var(--text-dim); }
.features .section-head, .screens .section-head { max-width: 860px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; align-items: center; text-align: center; }

/* ---------- полоса фактов ---------- */
.facts { position: relative; background: var(--bg-alt); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.facts-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-list li { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 30px 28px; border-left: 1px solid var(--hair); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list b { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.facts-list span { font-size: 14px; line-height: 1.45; color: var(--text-2); }
@media (max-width: 760px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li { padding: 22px 0 22px 20px; }
  .facts-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* ---------- возможности: бенто ---------- */
/* Области (grid-area) — только внутри медиазапросов вместе с grid-template-areas: в одной колонке без областей
   несуществующее имя положило бы все плитки в одну ячейку. Порядок в разметке — порядок чтения и порядок на телефоне. */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "wave wave" "lyrics lyrics" "room karaoke" "room mix" "theme files" "every every"; }
  .tile--wave { grid-area: wave; }
  .tile--lyrics { grid-area: lyrics; }
  .tile--room { grid-area: room; }
  .tile--karaoke { grid-area: karaoke; }
  .tile--mix { grid-area: mix; }
  .tile--theme { grid-area: theme; }
  .tile--files { grid-area: files; }
  .tile--every { grid-area: every; }
}
/* четыре колонки — когда плитка шире ~270px (контейнер уже во всю ширину 1136px) */
@media (min-width: 1200px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "wave wave lyrics lyrics" "wave wave room karaoke" "mix theme room files" "every every every every"; }
}
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; container-type: inline-size; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--tile); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: border-color 0.3s ease; }
.tile:hover { border-color: var(--border-strong); }
.tile-art { position: relative; flex: 1; min-width: 0; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 24px 0; transition: transform 0.5s var(--ease); }
.tile:hover .tile-art { transform: translateY(-3px); }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 24px; }
.tile-body h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.tile-body p { max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.nowrap { white-space: nowrap; }
/* плитки одного ряда: подписи низом — заголовки на одной линии при разной длине текста */
@media (min-width: 560px) { .tile:not(.tile--wave):not(.tile--lyrics):not(.tile--every) .tile-body p { min-height: 3em; } }
@media (min-width: 1200px) { .tile:not(.tile--wave):not(.tile--lyrics):not(.tile--every) .tile-body p { min-height: 4.5em; } }

/* общие детали мини-иллюстраций */
.tag { flex: none; font-family: var(--mono); font-size: 11px; line-height: 1.4; white-space: nowrap; padding: 3px 7px; border-radius: 6px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); }
.chip { flex: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 7px 13px; border-radius: 999px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); }
.chip.is-on { color: #0a0a0c; background: var(--text); border-color: transparent; }
.track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track-meta b, .track-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta b { font-size: 13.5px; font-weight: 600; }
.track-meta small { font-size: 12px; color: var(--text-3); }
.cover { flex: none; width: 38px; height: 38px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cover--1 { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.45), transparent 32%), linear-gradient(135deg, #ff5500, #ec4899); }
.cover--2 { background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.35), transparent 30%), linear-gradient(135deg, #6366f1, #0ea5e9); }
.cover--3 { background: radial-gradient(circle at 50% 50%, #111 16%, transparent 17%), linear-gradient(135deg, #f59e0b, #ff3b4e); }
.cover--4 { background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 45%, transparent 45%), linear-gradient(135deg, #10b981, #0ea5e9); }
.cover--5 { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 35%), linear-gradient(135deg, #a855f7, #312e81); }
.av { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px var(--tile); }
.av--1 { background: linear-gradient(135deg, #ec4899, #a855f7); }
.av--2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.av--3 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.av--4 { background: linear-gradient(135deg, #f59e0b, #ff3b4e); }
.av--more { font-size: 12px; color: var(--text-2); background: #25252b; }
.av--xs { width: 24px; height: 24px; font-size: 10px; box-shadow: none; }
.live, .rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; }
.live i, .rec i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }

/* «Моя волна» — большая плитка */
.tile--wave { background: radial-gradient(120% 70% at 50% 0%, rgba(255, 85, 0, 0.16), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--tile); }
.tile--wave .tile-art { justify-content: flex-start; gap: 20px; padding: 26px 26px 0; }
.tile--wave .tile-body h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.tile--wave .tile-body { padding: 22px 26px 26px; }
.wv-chips { display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.wv-viz { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(3px, 1.1%, 7px); min-height: 120px; padding: 6px 2px; background: radial-gradient(closest-side, rgba(255, 85, 0, 0.18), transparent); }
.wv-viz i { flex: 1 1 0; max-width: 10px; height: 50%; border-radius: 99px; background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%, #ff3b4e); transform-origin: center; animation: wv 1.5s ease-in-out infinite; }
.wv-viz i:nth-child(3n) { animation-duration: 1.9s; }
.wv-viz i:nth-child(3n+1) { animation-duration: 1.3s; }
.wv-viz i:nth-child(1) { height: 16%; animation-delay: -0.2s; } .wv-viz i:nth-child(2) { height: 26%; animation-delay: -0.9s; }
.wv-viz i:nth-child(3) { height: 38%; animation-delay: -0.4s; } .wv-viz i:nth-child(4) { height: 30%; animation-delay: -1.1s; }
.wv-viz i:nth-child(5) { height: 48%; animation-delay: -0.6s; } .wv-viz i:nth-child(6) { height: 62%; animation-delay: -0.1s; }
.wv-viz i:nth-child(7) { height: 50%; animation-delay: -0.8s; } .wv-viz i:nth-child(8) { height: 72%; animation-delay: -0.3s; }
.wv-viz i:nth-child(9) { height: 58%; animation-delay: -1.2s; } .wv-viz i:nth-child(10) { height: 82%; animation-delay: -0.5s; }
.wv-viz i:nth-child(11) { height: 68%; animation-delay: -0.95s; } .wv-viz i:nth-child(12) { height: 92%; animation-delay: -0.15s; }
.wv-viz i:nth-child(13) { height: 78%; animation-delay: -0.7s; } .wv-viz i:nth-child(14) { height: 100%; animation-delay: -1.3s; }
.wv-viz i:nth-child(15) { height: 86%; animation-delay: -0.35s; } .wv-viz i:nth-child(16) { height: 96%; animation-delay: -0.85s; }
.wv-viz i:nth-child(17) { height: 74%; animation-delay: -0.25s; } .wv-viz i:nth-child(18) { height: 90%; animation-delay: -1.05s; }
.wv-viz i:nth-child(19) { height: 66%; animation-delay: -0.55s; } .wv-viz i:nth-child(20) { height: 80%; animation-delay: -0.05s; }
.wv-viz i:nth-child(21) { height: 56%; animation-delay: -0.75s; } .wv-viz i:nth-child(22) { height: 70%; animation-delay: -1.25s; }
.wv-viz i:nth-child(23) { height: 46%; animation-delay: -0.45s; } .wv-viz i:nth-child(24) { height: 60%; animation-delay: -0.9s; }
.wv-viz i:nth-child(25) { height: 40%; animation-delay: -0.2s; } .wv-viz i:nth-child(26) { height: 50%; animation-delay: -1.15s; }
.wv-viz i:nth-child(27) { height: 32%; animation-delay: -0.65s; } .wv-viz i:nth-child(28) { height: 42%; animation-delay: -0.3s; }
.wv-viz i:nth-child(29) { height: 26%; animation-delay: -1s; } .wv-viz i:nth-child(30) { height: 30%; animation-delay: -0.5s; }
.wv-viz i:nth-child(31) { height: 20%; animation-delay: -0.8s; } .wv-viz i:nth-child(32) { height: 14%; animation-delay: -0.1s; }
.wv-next { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border-radius: 18px; background: rgba(10, 10, 12, 0.6); border: 1px solid var(--hair); }
.wv-next-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wv-cap { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.smooth { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.switch { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--accent); }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

/* «Тексты в такт» */
.tile--lyrics { background: radial-gradient(90% 90% at 0% 0%, rgba(236, 72, 153, 0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--tile); }
.tile--lyrics .tile-art { padding: 26px 26px 0; }
.ly { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent); }
.ly-line { max-width: 100%; font-size: 20px; font-size: clamp(17px, 5.2cqi, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.26); }
/* заливка звучащей строки по словам: фон вдвое шире строки едет справа налево; без движения — стоит на 40 % */
.ly-now { width: max-content; background: linear-gradient(90deg, var(--text) 50%, rgba(255, 255, 255, 0.3) 50%) 60% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lyricFill 5s linear infinite; }
.ly-past { color: rgba(255, 255, 255, 0.22); }
.ly-next { color: rgba(255, 255, 255, 0.34); }
.ly-time { position: absolute; top: 22px; right: 22px; }

/* «Живые комнаты» */
.tile--room { background: radial-gradient(110% 50% at 100% 0%, rgba(168, 85, 247, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--tile); }
/* высокая плитка: свободное место — поровну между блоками, а не одной дырой */
.tile--room .tile-art { justify-content: space-between; gap: 16px; }
.rm-head { display: flex; flex-direction: column; gap: 12px; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live { color: #fff; background: #ff3b4e; }
.rm-count { font-size: 12.5px; color: var(--text-2); }
.rm-title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.avs { display: flex; }
.avs .av + .av { margin-left: -8px; }
.rm-player { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); }
.rm-prog { display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.rm-prog i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0.42); animation: prog 16s linear infinite; }
.rm-queue { display: flex; flex-direction: column; gap: 10px; padding: 0 2px; }
.rm-queue .cover { width: 30px; height: 30px; border-radius: 7px; }
.rm-queue .track-meta b { font-size: 13px; }
.rm-chat { display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.msg--me { justify-content: flex-end; }
.bubble { display: inline-flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 82%; padding: 7px 12px 8px; border-radius: 14px 14px 14px 4px; font-size: 13px; line-height: 1.35; background: #1f1f25; }
.bubble b { font-size: 11px; font-weight: 600; color: var(--text-3); }
.msg--me .bubble { color: #fff; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, var(--accent), var(--accent-end)); }
.hearts { position: absolute; right: 18px; bottom: 56px; width: 22px; height: 110px; pointer-events: none; }
.hearts svg { position: absolute; bottom: 0; left: 0; width: 18px; height: 18px; fill: #ff3b4e; opacity: 0; animation: floatUp 3.6s ease-out infinite; }
.hearts svg:nth-child(2) { left: 8px; fill: #ec4899; animation-delay: 1.2s; }
.hearts svg:nth-child(3) { left: -6px; fill: var(--accent); animation-delay: 2.4s; }

/* «Караоке с минусом» */
.tile--karaoke .tile-art { gap: 10px; }
.ko-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ko-mic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ec4899, var(--accent)); box-shadow: 0 10px 26px rgba(236, 72, 153, 0.28); }
.rec { color: #ff6b7a; background: rgba(255, 59, 78, 0.1); border: 1px solid rgba(255, 59, 78, 0.3); }
.ko-track { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); }
.ko-name { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ko-bars { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 26px; min-width: 0; }
.ko-bars i { flex: 1 1 0; min-width: 2px; max-width: 5px; height: 50%; border-radius: 2px; transform-origin: center; }
.ko-bars i:nth-child(1) { height: 40%; } .ko-bars i:nth-child(2) { height: 70%; } .ko-bars i:nth-child(3) { height: 55%; }
.ko-bars i:nth-child(4) { height: 90%; } .ko-bars i:nth-child(5) { height: 60%; } .ko-bars i:nth-child(6) { height: 35%; }
.ko-bars i:nth-child(7) { height: 80%; } .ko-bars i:nth-child(8) { height: 50%; } .ko-bars i:nth-child(9) { height: 100%; }
.ko-bars i:nth-child(10) { height: 45%; } .ko-bars i:nth-child(11) { height: 65%; } .ko-bars i:nth-child(12) { height: 30%; }
.ko-bars i:nth-child(13) { height: 75%; } .ko-bars i:nth-child(14) { height: 55%; } .ko-bars i:nth-child(15) { height: 85%; }
.ko-bars i:nth-child(16) { height: 40%; } .ko-bars i:nth-child(17) { height: 60%; } .ko-bars i:nth-child(18) { height: 45%; }
.ko-bars i:nth-child(19) { height: 70%; } .ko-bars i:nth-child(20) { height: 35%; } .ko-bars i:nth-child(21) { height: 90%; }
.ko-bars i:nth-child(22) { height: 55%; } .ko-bars i:nth-child(23) { height: 75%; } .ko-bars i:nth-child(24) { height: 40%; }
.ko-bars i:nth-child(25) { height: 65%; } .ko-bars i:nth-child(26) { height: 30%; } .ko-bars i:nth-child(27) { height: 50%; }
.ko-bars i:nth-child(28) { height: 25%; }
.ko-track--vox { opacity: 0.6; }
.ko-track--vox .ko-name { text-decoration: line-through; text-decoration-color: #ff6b7a; }
.ko-track--vox .ko-bars i { background: rgba(255, 255, 255, 0.28); transform: scaleY(0.3); }
.ko-track--inst .ko-bars i { background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: bar 1.2s var(--ease) infinite; }
.ko-track--inst .ko-bars i:nth-child(odd) { animation-duration: 1.6s; }
.ko-track--inst .ko-bars i:nth-child(3n) { animation-delay: -0.4s; }
.ko-track--inst .ko-bars i:nth-child(3n+1) { animation-delay: -0.9s; }
.ko-track--inst .ko-bars i:nth-child(4n) { animation-delay: -0.2s; }

/* «Плеер без пауз»: кроссфейд двух треков */
.tile--mix .tile-art { gap: 14px; }
.xf { display: block; width: 100%; height: auto; overflow: visible; }
.xf-a, .xf-b { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.xf-a { stroke: var(--accent); }
.xf-b { stroke: var(--accent-2); }
.xf-area { stroke: none; }
.xf-area--a { fill: rgba(255, 85, 0, 0.16); }
.xf-area--b { fill: rgba(255, 204, 0, 0.1); }
.xf-head { transform: translateX(124px); animation: xfHead 7s linear infinite; }
.xf-head line { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.2; stroke-dasharray: 3 3; }
.xf-head circle { fill: #fff; }
.xf-labels { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag--a { color: var(--accent); }
.tag--b { color: var(--accent-2); }

/* «Под себя»: три темы веером и акценты */
.tile--theme .tile-art { align-items: center; gap: 22px; }
.th-wins { position: relative; width: 130px; height: 88px; margin-top: 10px; }
.sw { position: absolute; inset: 0; overflow: hidden; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); transition: transform 0.6s var(--ease); }
.sw::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 28%; }
.sw::after { content: ''; position: absolute; left: 38%; bottom: 12px; width: 34%; height: 11px; border-radius: 6px; }
.sw i { position: absolute; top: 13px; left: 38%; right: 12%; height: 34px; opacity: 0.2; background: linear-gradient(currentColor, currentColor) 0 0 / 70% 6px no-repeat, linear-gradient(currentColor, currentColor) 0 14px / 100% 6px no-repeat, linear-gradient(currentColor, currentColor) 0 28px / 50% 6px no-repeat; }
.sw--light { color: #0a0a0c; background: #f6f6f8; border-color: rgba(0, 0, 0, 0.08); transform: translate(-34px, 8px) rotate(-10deg); }
.sw--light::before { background: #e9e9ee; }
.sw--light::after { background: #6366f1; }
.sw--dark { color: #fff; background: #0a0a0c; transform: translate(34px, 8px) rotate(10deg); }
.sw--dark::before { background: #141418; }
.sw--dark::after { background: var(--accent); }
.sw--gray { z-index: 1; color: #fff; background: #1d1d22; transform: translateY(-4px); }
.sw--gray::before { background: #26262c; }
.sw--gray::after { background: var(--green); }
.tile--theme:hover .sw--light { transform: translate(-48px, 4px) rotate(-14deg); }
.tile--theme:hover .sw--dark { transform: translate(48px, 4px) rotate(14deg); }
.tile--theme:hover .sw--gray { transform: translateY(-10px); }
.th-dots { display: flex; gap: 9px; }
.th-dots i { width: 14px; height: 14px; border-radius: 50%; }
.th-dots i:nth-child(1) { background: var(--accent); box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px var(--accent); }
.th-dots i:nth-child(2) { background: #ff3b4e; }
.th-dots i:nth-child(3) { background: #ec4899; }
.th-dots i:nth-child(4) { background: #a855f7; }
.th-dots i:nth-child(5) { background: #6366f1; }
.th-dots i:nth-child(6) { background: #0ea5e9; }
.th-dots i:nth-child(7) { background: var(--green); }

/* «Плейлисты и файлы» */
.tile--files .tile-art { gap: 12px; }
.fl-types { display: flex; flex-wrap: wrap; gap: 6px; }
.fp { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }
.fp--on { color: var(--green-text); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
.fl-list { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hair); }
.fl-list .cover { width: 32px; height: 32px; border-radius: 8px; }
.fl-ok { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #04140d; background: var(--green); }
.fl-ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.fl-ring { flex: none; width: 20px; height: 20px; fill: none; stroke-width: 3; transform: rotate(-90deg); }
.fl-ring circle { stroke: rgba(255, 255, 255, 0.12); }
.fl-ring .fl-ring-v { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 56.6; stroke-dashoffset: 22; animation: ring 3.2s ease-in-out infinite; }
.fl-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--green-text); }
.fl-status .ic { width: 16px; height: 16px; stroke-width: 2.25; }

/* «Windows, Linux и браузер» — во всю ширину */
.tile--every { background: radial-gradient(70% 140% at 100% 100%, rgba(255, 85, 0, 0.1), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--tile); }
.tile--every .tile-body { gap: 8px; }
.pf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-item { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-width: 0; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hair); }
.pf-item .ic { width: 24px; height: 24px; margin-bottom: 16px; stroke-width: 1.75; }
.pf-item b { font-size: 15px; font-weight: 650; }
.pf-item small { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.tile-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; transition: color 0.2s ease, gap 0.25s var(--ease); }
.tile-link .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.tile-link:hover { gap: 10px; color: var(--accent-2); }
.tile-link--muted { color: var(--text-2); }
@media (min-width: 900px) {
  .tile--every { flex-direction: row-reverse; align-items: stretch; }
  .tile--every .tile-body { flex: 0 0 42%; justify-content: center; padding: 36px 40px; }
  .tile--every .tile-art { padding: 28px 28px 28px 0; }
}
/* телефон: короче — платформы одной строкой без подписей, у комнаты без очереди */
@media (max-width: 559px) {
  .pf { gap: 8px; }
  .pf-item { justify-items: center; padding: 14px 6px 12px; text-align: center; }
  .pf-item .ic { margin-bottom: 8px; }
  .pf-item b { font-size: 13px; }
  .pf-item small { display: none; }
  .rm-queue { display: none; }
}

/* узкая плитка (телефон): меньше полей, у меток BPM — без тональности */
@container (max-width: 360px) {
  .tile-art, .tile--wave .tile-art, .tile--lyrics .tile-art { padding: 20px 20px 0; }
  .tile-body, .tile--wave .tile-body { padding: 18px 20px 22px; }
  .tag-key { display: none; }
}

/* ---------- скриншоты ---------- */
.screens { background: var(--bg-alt); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
/* вкладки не переносятся: не поместились — полоса листается сама (без полосы прокрутки), а не вылезает за подложку и
   край экрана; scrollIntoView выбранной вкладки (site.js) тогда двигает только её, а не всю страницу */
.gallery { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-tab { flex: none; font-family: var(--font); font-size: 14px; font-weight: 600; white-space: nowrap; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--text-2); background: transparent; border: 0; transition: color 0.2s ease, background 0.2s ease; }
.gallery-tab:hover { color: var(--text); }
.gallery-tab.active { color: #0a0a0c; background: var(--text); }
.gallery-tab:focus-visible { outline-offset: 1px; border-radius: 999px; }
/* телефон и узкое окно: вкладки одной строкой с прокруткой. Пять вкладок в подложке — около 553 px, а подложка
   помещается в строку только с ~640 px окна: порог с запасом на ширину шрифта и полосу прокрутки страницы */
@media (max-width: 700px) {
  /* край к краю экрана; scroll-padding — иначе прилипание к началу вкладки съедает отступ первой; 4 px сверху и снизу —
     рамка фокуса вкладки (2 px + отступ 1 px) не обрезается краем прокрутки */
  .gallery { width: auto; max-width: none; margin-inline: calc(-1 * clamp(16px, 5vw, 32px)); padding: 4px clamp(16px, 5vw, 32px); scroll-padding-inline: clamp(16px, 5vw, 32px); gap: 6px; scroll-snap-type: x proximity; border: 0; border-radius: 0; background: none; }
  .gallery-tab { scroll-snap-align: start; background: rgba(255, 255, 255, 0.05); }
  /* поместились (окно шире ~640 px) — по центру, как подложка; не поместились — auto-отступы нулевые, листается с начала */
  .gallery-tab:first-child { margin-inline-start: auto; }
  .gallery-tab:last-child { margin-inline-end: auto; }
}
.gallery-frame { position: relative; max-width: 1080px; margin: 0 auto; border-radius: 16px; }
.gallery-frame::before { content: ''; position: absolute; inset: 10% 8% -4%; border-radius: 40px; background: radial-gradient(ellipse, var(--glow), transparent 70%); filter: blur(60px); opacity: 0.5; }
.gallery-caption { min-height: 1.6em; margin: 22px auto 0; max-width: 640px; text-align: center; text-wrap: balance; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ---------- вместе ---------- */
.together { overflow: hidden; }
.together-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
@media (max-width: 900px) { .together-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.together-copy { display: flex; flex-direction: column; gap: 18px; }
.together-copy p { max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--text); }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.friends { position: relative; padding: 0 0 64px 0; }
.friends::before { content: ''; position: absolute; inset: 10% -10% 10% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 85, 247, 0.18), transparent); pointer-events: none; }
.fr-card { position: relative; padding: 22px 22px 8px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--tile); border: 1px solid var(--border); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; font-size: 16px; font-weight: 650; }
.fr-online { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--green-text); }
.fr-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.fr-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 0; border-top: 1px solid var(--hair); }
.fr-row .av { position: relative; width: 42px; height: 42px; font-size: 15px; box-shadow: none; }
.av--on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #15151a; }
.fr-row--off { opacity: 0.5; }
.fr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fr-who b { font-size: 15px; font-weight: 600; }
.fr-who small { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-eq { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 18px; padding-right: 6px; }
.mini-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: bar 1.1s var(--ease) infinite; }
.mini-eq i:nth-child(1) { height: 60%; animation-delay: -0.3s; } .mini-eq i:nth-child(2) { height: 100%; animation-delay: -0.7s; }
.mini-eq i:nth-child(3) { height: 45%; animation-delay: -0.1s; } .mini-eq i:nth-child(4) { height: 80%; animation-delay: -0.5s; }
.fr-join { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #0a0a0c; background: var(--text); }
.fr-mic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #f472b6; background: rgba(236, 72, 153, 0.14); }
.fr-mic .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.fr-recap { position: absolute; right: -20px; bottom: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 18px; width: 268px; padding: 16px 18px; border-radius: 20px; background: rgba(27, 27, 32, 0.94); border: 1px solid var(--border-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fr-recap-label { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.fr-recap-num { font-size: 28px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.fr-recap-num small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.fr-recap-bars { display: flex; align-items: flex-end; gap: 4px; height: 32px; }
.fr-recap-bars i { width: 7px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.fr-recap-bars i:nth-child(1) { height: 40%; } .fr-recap-bars i:nth-child(2) { height: 65%; } .fr-recap-bars i:nth-child(3) { height: 50%; }
.fr-recap-bars i:nth-child(4) { height: 85%; } .fr-recap-bars i:nth-child(5) { height: 70%; } .fr-recap-bars i:nth-child(6) { height: 100%; }
.fr-recap-bars i:nth-child(7) { height: 60%; }
.fr-match { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); }
.fr-match b { color: var(--accent-2); font-weight: 700; }
@media (max-width: 900px) { .fr-recap { right: 0; } }
@media (max-width: 560px) {
  .friends { padding: 0; }
  .fr-recap { position: relative; right: auto; width: auto; margin: -18px 14px 0; }
}

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 32px 72px; align-items: start; }
.faq-head { position: sticky; top: 112px; margin-bottom: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-head { position: static; } }
.faq-list { border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-size: 18px; font-weight: 600; transition: color 0.2s ease; }
.qa summary:hover { color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
/* «+» — иконка plus из Icon.jsx маской (24 px, линия 1,75): у символа моноширинного шрифта своя толщина; открытый — «×» */
.qa summary::after { content: ''; flex: none; width: 24px; height: 24px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform 0.3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
@media (forced-colors: active) { .qa summary::after { background: CanvasText; forced-color-adjust: none; } }
.qa p { padding: 0 2px 22px; font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 720px; }

/* ---------- финал ---------- */
.final { overflow: hidden; text-align: center; border-top: 1px solid var(--hair); background: radial-gradient(60% 80% at 50% 100%, rgba(255, 85, 0, 0.12), transparent 70%), var(--bg); }
.final-glow { position: absolute; left: 50%; top: 50%; width: 720px; max-width: 100%; height: 320px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 85, 0, 0.2), transparent 70%); filter: blur(40px); pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final h2.display { max-width: 900px; font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.045em; }
.final .cta-row { margin-top: 8px; }
.final-mark { display: inline-flex; align-items: center; gap: 6px; height: 56px; margin-bottom: 4px; }
.final-mark i { width: 7px; height: 50%; border-radius: 4px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transform-origin: center; animation: wv 1.4s ease-in-out infinite; }
.final-mark i:nth-child(1) { height: 30%; animation-delay: -0.3s; } .final-mark i:nth-child(2) { height: 60%; animation-delay: -0.8s; }
.final-mark i:nth-child(3) { height: 85%; animation-delay: -0.1s; } .final-mark i:nth-child(4) { height: 100%; animation-delay: -0.6s; }
.final-mark i:nth-child(5) { height: 75%; animation-delay: -1s; } .final-mark i:nth-child(6) { height: 50%; animation-delay: -0.4s; }
.final-mark i:nth-child(7) { height: 25%; animation-delay: -0.9s; }
.final-platforms { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }

/* ---------- подвал (общий с /download) ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 64px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.footer-brand .logo { font-size: 16px; }
.footer-muted { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; min-width: 128px; }
.footer-h { margin-bottom: 3px; font-size: 13px; font-weight: 600; color: var(--text); }
.footer-col a, .footer-legal a { width: max-content; font-size: 14px; color: var(--text-2); transition: color 0.2s ease; }
.footer-col a:hover, .footer-legal a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 30px; }
.footer-bottom::before { content: ''; flex: 0 0 100%; height: 1px; margin-bottom: 12px; background: var(--hair); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { font-size: 13px; color: var(--text-3); }
@media (max-width: 560px) { .footer-links { gap: 28px 48px; } .footer-col { min-width: 0; } }

/* ---------- появление ---------- */
.reveal-1 { animation: fadeUp 0.7s var(--ease) both; }
.reveal-2 { animation: fadeUp 0.7s var(--ease) 0.08s both; }
.reveal-3 { animation: fadeUp 0.7s var(--ease) 0.16s both; }
.reveal-4 { animation: fadeUp 0.7s var(--ease) 0.24s both; }
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.tile.fade { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s ease; }
.bento .tile:nth-child(even), .friends.fade { transition-delay: 0.08s; }
.tile.fade.in:hover { transition-delay: 0s; }

/* анимации идут только у видимых блоков: класс .is-live ставит site.js (IntersectionObserver); без него — как обычно */
.js-io .tile:not(.is-live) *, .js-io .tile:not(.is-live) *::before, .js-io .tile:not(.is-live) *::after,
.js-io .hero:not(.is-live) *, .js-io .hero:not(.is-live) *::before, .js-io .hero:not(.is-live) *::after,
.js-io .friends:not(.is-live) *, .js-io .final:not(.is-live) * { animation-play-state: paused !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 18px); } }
@keyframes washMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.06); } }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }
@keyframes wv { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.42); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lyricFill { 0% { background-position: 100% 0; } 88%, 100% { background-position: 0 0; } }
@keyframes prog { from { transform: scaleX(0.3); } to { transform: scaleX(0.78); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-96px) scale(1.1); } }
@keyframes xfHead { from { transform: translateX(0); } to { transform: translateX(240px); } }
@keyframes ring { from { stroke-dashoffset: 56.6; } to { stroke-dashoffset: 0; } }
.logo-bars i, .eq i { transform-origin: bottom; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
