:root {
  --bg: #0c0b10;
  --surface: #16151d;
  --surface-2: #1f1d28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f6f3ee;
  --muted: #aaa5b3;
  --faint: #77727f;
  --accent: #ff5a36;
  --accent-hover: #ff6d4d;
  --gold: #ffc54d;
  --tg: #2aabee;
  --tg-hover: #41b6f2;
  --ok: #45dc9c;
  --r: 18px;
  --r-lg: 28px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 11, 16, 0.75);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.logo-mark { display: block; border-radius: 8px; }
.nav { display: flex; gap: 24px; margin-left: 16px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 700 12px/1 var(--font); letter-spacing: 0.05em; color: var(--muted);
  padding: 7px 10px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.user-chip { padding-left: 6px; }
@media (max-width: 820px) { .nav { display: none; } }
@media (max-width: 380px) { .logo span { display: none; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 16px/1.1 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 32px -12px rgba(255, 90, 54, 0.75); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-tg { background: var(--tg); color: #fff; box-shadow: 0 12px 32px -12px rgba(42, 171, 238, 0.85); }
.btn-tg:hover { background: var(--tg-hover); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip-free { background: rgba(69, 220, 156, 0.18); color: #86f0c2; }
.chip-lock { background: rgba(255, 197, 77, 0.2); color: var(--gold); }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% -10%; pointer-events: none;
  background:
    radial-gradient(40% 45% at 74% 42%, rgba(255, 90, 54, 0.22), transparent 70%),
    radial-gradient(30% 35% at 92% 10%, rgba(255, 197, 77, 0.1), transparent 70%),
    radial-gradient(35% 40% at 8% 0%, rgba(110, 80, 255, 0.14), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.22); animation: pulse 2.2s ease-in-out infinite; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 800; margin: 20px 0 22px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 36ch; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--faint); }
.note svg { width: 16px; height: 16px; color: var(--ok); }

/* Три вертикальные серии */
.stack { position: relative; height: 540px; }
.ep {
  position: absolute; top: 50%; left: 50%;
  width: 210px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #1a1520;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ep-1 { transform: translate(-118%, -47%) rotate(-7deg); }
.ep-2 { width: 236px; transform: translate(-50%, -52%); z-index: 2; animation: float 6s ease-in-out infinite; }
.ep-3 { transform: translate(18%, -47%) rotate(7deg); }
.art { position: absolute; inset: 0; }
.art::after {
  content: ""; position: absolute; inset: 0; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ep-1 .art { background: radial-gradient(90% 55% at 25% 18%, #ffb067 0%, transparent 62%), radial-gradient(85% 60% at 85% 100%, #8b2fd9 0%, transparent 65%), linear-gradient(170deg, #3d1b30, #120a17); }
.ep-2 .art { background: radial-gradient(80% 50% at 70% 22%, #ff6a3d 0%, transparent 60%), radial-gradient(90% 60% at 15% 95%, #1fb5a8 0%, transparent 62%), linear-gradient(185deg, #2a1420, #0b1416); }
.ep-3 .art { background: radial-gradient(80% 55% at 40% 30%, #ffc54d 0%, transparent 60%), radial-gradient(90% 65% at 80% 90%, #c2185b 0%, transparent 65%), linear-gradient(175deg, #2b1a10, #160912); }
.ep-3 .art { filter: blur(7px) brightness(0.62) saturate(0.8); transform: scale(1.15); }
.ep::before { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(to top, rgba(8, 6, 10, 0.85), transparent); }
.num { position: absolute; top: 18px; right: 12px; font: 800 96px/0.85 var(--display); letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.16); }
.bar { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; }
.play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.play svg { width: 26px; height: 26px; margin-left: 3px; }
.play.lock { background: rgba(255, 197, 77, 0.2); color: var(--gold); }
.play.lock svg { margin: 0; }
.ep-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ep-label { font: 700 12px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; }

/* Секции */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 32px; text-wrap: balance; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); counter-increment: step; }
.step::after { content: counter(step); position: absolute; top: 22px; right: 26px; font: 800 44px/1 var(--display); color: rgba(255, 255, 255, 0.06); }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; background: rgba(255, 90, 54, 0.14); color: var(--accent); }
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); }

.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.s-card::before { content: ""; position: absolute; inset: 35% 0 0; z-index: 1; background: linear-gradient(to top, rgba(8, 6, 10, 0.92), transparent); }
.s-drama .art { background: radial-gradient(70% 50% at 30% 25%, #ff7a45, transparent 65%), radial-gradient(80% 60% at 90% 80%, #6d28d9, transparent 65%), #1d1020; }
.s-comedy .art { background: radial-gradient(70% 50% at 70% 25%, #ffd166, transparent 62%), radial-gradient(80% 60% at 10% 85%, #ef476f, transparent 65%), #22140f; }
.s-mystery .art { background: radial-gradient(70% 50% at 50% 20%, #2ec4b6, transparent 62%), radial-gradient(80% 60% at 85% 90%, #1d4ed8, transparent 65%), #0b1418; }
.s-card .art { transition: transform 0.6s ease; }
.s-card:hover .art { transform: scale(1.05); }
.s-card .chip { position: absolute; top: 18px; left: 18px; z-index: 2; }
.s-body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.s-body h3 { font-size: 24px; margin-bottom: 6px; }
.s-body p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }

.price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 32px;
  background: radial-gradient(60% 90% at 0% 0%, rgba(255, 90, 54, 0.18), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price h2 { margin-bottom: 20px; }
.amount { font: 800 clamp(52px, 7vw, 88px)/1 var(--display); letter-spacing: -0.04em; }
.amount small { font-size: 0.3em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.per { margin-top: 10px; color: var(--muted); }
.features { list-style: none; margin: 0 0 24px; padding: 0; }
.features li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.features svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.methods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pay { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.foot-tag { margin-top: 10px; color: var(--muted); font-size: 15px; }
.foot-legal { color: var(--faint); font-size: 14px; }

/* Вход */
.auth { min-height: calc(100dvh - 65px); display: grid; place-items: center; padding: 40px 16px 64px; }
.card {
  width: min(440px, 100%); padding: 40px 28px 32px; border-radius: 30px; text-align: center;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 90, 54, 0.14), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.card-mark { display: block; margin: 0 auto 22px; border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(255, 90, 54, 0.7); }
.card h1 { font-size: 30px; margin-bottom: 10px; }
.card > .muted { margin-bottom: 28px; }
.hint { margin-top: 12px; font-size: 14px; color: var(--faint); }
.status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.status:empty { margin: 0; min-height: 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--tg); animation: spin 0.8s linear infinite; }
.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gsi { display: flex; justify-content: center; min-height: 44px; }
.gsi:empty { min-height: 0; }
.big-404 { font: 800 96px/1 var(--display); letter-spacing: -0.05em; color: var(--accent); margin-bottom: 12px; }
.card .btn-accent { margin-top: 28px; }

/* Кабинет */
.cab .wrap { display: grid; gap: 20px; }
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.profile h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 4px; }
.avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b2fd9); color: #fff; font: 700 16px/1 var(--display);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.panel { padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cab .panel-title { font-size: 18px; margin-bottom: 18px; }
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.acc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; padding-top: 0; }
.acc-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; font: 700 18px/1 var(--font); }
.acc-icon svg { width: 22px; height: 22px; }
.acc-tg { background: rgba(42, 171, 238, 0.16); color: var(--tg); }
.acc-g { background: #fff; color: #4285f4; }
.acc-body { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.acc-body .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ok); }
.linked svg { width: 18px; height: 18px; }
.gsi-sm { min-height: 0; }
[data-logout] { justify-self: start; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); } }
@keyframes float { 50% { transform: translate(-50%, -54%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Узкий ноутбук и планшет: карточки меньше, чтобы третья не уходила за край */
@media (max-width: 1100px) {
  .ep { width: 168px; }
  .ep-2 { width: 190px; }
  .num { font-size: 76px; }
  .ep-meta { flex-direction: column; align-items: flex-start; }
}

/* Телефон */
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .stack { height: 400px; order: -1; margin: 0 -16px; }
  .ep { width: 150px; border-radius: 18px; }
  .ep-1 { transform: translate(-106%, -47%) rotate(-7deg); }
  .ep-2 { width: 172px; }
  .ep-3 { transform: translate(6%, -47%) rotate(7deg); }
  .num { font-size: 68px; }
  .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .ep-meta { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .series { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .series::-webkit-scrollbar { display: none; }
  .s-card { scroll-snap-align: start; }
  .price { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .cta-row .btn { width: 100%; }
  .top .btn-sm { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
