/* Лендинг. Одна громкая вещь — бочка на первом экране (barrel.js); всё остальное тихое:
   заголовки строчными, как название плеера, текст — слева, без карточек ради карточек */

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.06; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 36em; }
.lead.narrow { max-width: 34em; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--oak) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--rivet-2) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
@media (max-width: 560px) { .top-nav { display: none; } .top-in > .btn { margin-left: auto; } }

/* ---------- первый экран ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.3vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.hero .note { margin-top: 14px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

/* бочка: холст — клёпки-спектр, обручи и горловина; ниже — голосовой канал */
.barrel { margin: 0; display: grid; gap: 18px; }
.barrel-body { position: relative; }
.barrel canvas { width: 100%; height: clamp(300px, 34vw, 430px); }
.barrel-state {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--rivet); color: var(--text-2); box-shadow: 0 0 0 1px var(--rivet-2);
  transition: background-color .3s ease, color .3s ease;
}
.barrel.muffled .barrel-state { background: var(--voice); color: #11131f; box-shadow: none; }

.call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 14px 16px; border-radius: var(--r-m); background: var(--oak-2); box-shadow: inset 0 0 0 1px var(--rivet-2); }
.call-people { display: flex; gap: 16px; }
.person { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.person i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); font-style: normal;
  background: var(--rivet-2); color: var(--text); box-shadow: 0 0 0 0 var(--voice); transition: box-shadow .15s ease;
}
.person b { font-weight: 500; }
.person.talking i { box-shadow: 0 0 0 2.5px var(--voice); }
.person.talking b { color: var(--voice); }
.call-ctl { display: flex; gap: 8px; }
.talk { touch-action: none; user-select: none; -webkit-user-select: none; }
.talk[aria-pressed="true"] { background: var(--voice); color: #11131f; border-color: transparent; }
#sound .wave { opacity: .35; }
#sound[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
#sound[aria-pressed="true"] .wave { opacity: 1; }

/* ---------- возможности ---------- */
.feat { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--rivet); }
.feat-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feat.flip .feat-copy { order: 2; }
.feat h2 { max-width: 12em; }
@media (max-width: 900px) { .feat-in { grid-template-columns: 1fr; } .feat.flip .feat-copy { order: 0; } }

.feat-list { margin: 30px 0 0; display: grid; gap: 22px; max-width: 34em; }
.feat-list dt { font-weight: 600; font-size: 17px; }
.feat-list dd { margin: 4px 0 0; color: var(--text-2); line-height: 1.55; }

.shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--rivet-2), 0 30px 70px -20px rgb(0 0 0 / .7); }

.sources { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.sources li { display: flex; align-items: center; gap: 14px; }
.sources b { display: block; font-weight: 600; }
.sources span { color: var(--text-3); font-size: 15px; }
.src-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.src-ico.files { display: grid; place-items: center; background: var(--rivet-2); color: var(--amber); }
.src-ico.files svg { width: 20px; height: 20px; }
.sources + .feat-list { margin-top: 34px; }

/* остров: копия капсулы из renderer/island.css — свёрнутая и раскрытая */
.island-stage { position: relative; display: grid; justify-items: center; gap: 22px; padding: clamp(28px, 4vw, 48px) 16px; border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 60%), var(--oak-2);
  box-shadow: inset 0 0 0 1px var(--rivet-2); overflow: hidden; }
.island { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); height: 36px; padding: 0 12px 0 6px; border-radius: 22px; background: #000; box-shadow: 0 4px 12px rgb(0 0 0 / .3); }
.island-cover { width: 26px; height: 26px; flex: none; border-radius: 50%; background: conic-gradient(from 40deg, var(--amber), #6d3fd0, var(--voice), var(--amber)); animation: spin 9s linear infinite; }
.island-cover.big { width: 60px; height: 60px; border-radius: 14px; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.island-text { flex: 1; min-width: 0; font-size: 13px; color: #f4f1ec; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.island-text b { font-weight: 600; }
.island-bars { display: flex; align-items: center; gap: 2px; height: 18px; }
.island-bars i { width: 2.5px; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--amber) 72%, #7a7a7a); transform: scaleY(.3); animation: bar 1.1s ease-in-out infinite; }
.island-bars i:nth-child(2) { animation-delay: -.2s; } .island-bars i:nth-child(3) { animation-delay: -.5s; }
.island-bars i:nth-child(4) { animation-delay: -.8s; } .island-bars i:nth-child(5) { animation-delay: -.35s; }
.island-bars i:nth-child(6) { animation-delay: -.65s; } .island-bars i:nth-child(7) { animation-delay: -.15s; }
@keyframes bar { 50% { transform: scaleY(1); } }
.island-open { width: min(380px, 100%); padding: 20px 22px 18px; border-radius: 42px; background: #000; color: #f4f1ec; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.io-head { display: flex; align-items: center; gap: 14px; }
.io-head b { display: block; font-size: 16px; font-weight: 600; }
.io-head span { color: rgb(244 241 236 / .5); font-size: 15px; }
.io-seek { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: rgb(244 241 236 / .6); font-variant-numeric: tabular-nums; }
.io-seek i { flex: 1; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .16); }
.io-seek b { display: block; width: 30%; height: 100%; border-radius: 4px; background: #fff; }
.io-ctl { display: flex; justify-content: center; gap: 34px; margin-top: 16px; }
.io-ctl i { width: 26px; height: 26px; background: #fff; }
.c-play { clip-path: polygon(20% 12%, 42% 12%, 42% 88%, 20% 88%, 20% 12%, 58% 12%, 80% 12%, 80% 88%, 58% 88%, 58% 12%); }
.c-prev { clip-path: polygon(100% 15%, 100% 85%, 55% 50%, 55% 85%, 5% 50%, 55% 15%, 55% 50%); }
.c-next { clip-path: polygon(0 15%, 0 85%, 45% 50%, 45% 85%, 95% 50%, 45% 15%, 45% 50%); }

/* ---------- темы ---------- */
.themes-sec { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--rivet); }
.themes-sec .lead { margin-top: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.swatch { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 14px; }
.swatch i { width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); position: relative; transition: transform .15s ease; }
.swatch i::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--amber); }
.swatch:hover i { transform: scale(1.06); }
.swatch[aria-checked="true"] { color: var(--text); }
.swatch[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--oak), 0 0 0 4px var(--amber); }

/* ---------- установка ---------- */
.install { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--rivet); }
.install-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } }
.platform { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--r-l); background: var(--oak-2); box-shadow: inset 0 0 0 1px var(--rivet-2); }
.platform.main { background: color-mix(in srgb, var(--amber) 10%, var(--oak-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 35%, transparent); }
.platform p { color: var(--text-2); }
.platform .btn { margin-top: auto; }
.platform p + .btn { margin-top: 10px; }
.plat-ico { width: 30px; height: 30px; color: var(--amber); }

/* ---------- подвал ---------- */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--rivet); color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-in p { flex: 1 1 320px; max-width: 46em; }
.foot .logo { color: var(--text); font-size: 18px; }
.foot .logo img { width: 24px; height: 24px; }
.foot a:not(.logo) { color: var(--text-2); }
