@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212; }

/* фирменные цвета - как в приложении приватки */
:root {
  --bg: #0a0a0b; --card: #17171b; --card2: #1d1d22; --line: #2a2a30;
  --txt: #f4f4f5; --mute: #b4b4bb; --dim: #8a8a93;
  --red: #e5102e; --red2: #ff3b52; --redbg: rgba(229, 16, 46, .12); --ok: #2bd47d;
  --r: 18px; --f: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--f); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--red2); text-decoration: none; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 34px; height: 24px; border-radius: 7px; background: var(--red); display: grid; place-items: center; flex: none; box-shadow: 0 0 18px rgba(229, 16, 46, .45); }
.brand-mark svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.brand-kicker { font-size: 10px; letter-spacing: .18em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.brand-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

.net { margin: 10px 16px 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: #ffd166; background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .25); }

main { padding: 14px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--red2); text-transform: uppercase; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; margin: 0 0 8px; }
.muted { color: var(--mute); }
.hint { font-size: 12px; color: var(--dim); }

.hero { padding: 20px 18px; background: radial-gradient(140% 100% at 100% 0%, rgba(229, 16, 46, .24), transparent 55%), var(--card); }
.hero h1 { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; margin: 8px 0 6px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.price s { color: var(--dim); font-size: 16px; font-weight: 600; }
.price b { color: var(--red2); font-size: 22px; font-weight: 800; text-shadow: 0 0 24px rgba(229, 16, 46, .5); }

.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 16px; padding: 12px 16px; background: var(--redbg); border: 1px solid rgba(229, 16, 46, .4); }
.timer span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.timer b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red2); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li i { width: 26px; height: 26px; border-radius: 50%; background: var(--redbg); border: 1px solid var(--red); color: var(--red2); display: grid; place-items: center; font-weight: 800; font-size: 12px; font-style: normal; flex: none; }

.tag { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--redbg); border: 1px solid rgba(229, 16, 46, .35); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); background: none; border: 0; padding: 4px 0; text-align: left; }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.check[aria-checked='true'] .box { background: var(--red); border-color: var(--red); }
.check[aria-checked='true'] .box svg { opacity: 1; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 16px; border: 0; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 0 18px; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn-red { background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff; box-shadow: 0 8px 24px rgba(229, 16, 46, .35); }
.btn-ghost { background: var(--card); color: var(--txt); border: 1px solid var(--line); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
/* своя кнопка - только вне Telegram MainButton (старые клиенты) */
.cta { position: sticky; bottom: calc(12px + var(--safe-b)); margin-top: 6px; }

.lesson { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
button.lesson { cursor: pointer; }
button.lesson:active { transform: scale(.99); }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; background: radial-gradient(circle at 30% 20%, rgba(229, 16, 46, .55), transparent 60%), #1f1f24; border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.thumb .pl { width: 30px; height: 21px; border-radius: 6px; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 14px rgba(229, 16, 46, .6); }
.thumb .pl svg { width: 10px; height: 10px; fill: #fff; stroke: none; }
.thumb.lock { background: var(--card2); }
.thumb.done .pl { background: var(--ok); box-shadow: 0 0 14px rgba(43, 212, 125, .5); }
.ltitle { font-weight: 800; font-size: 15px; line-height: 1.25; }
.lesson.locked .ltitle { color: var(--mute); }
.bar { height: 6px; background: var(--card2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red2)); border-radius: 3px; box-shadow: 0 0 10px rgba(229, 16, 46, .6); transition: width .4s; }
.meta { font-size: 12px; color: var(--dim); margin-top: 6px; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.badge.on { border-color: rgba(43, 212, 125, .5); color: var(--ok); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.dm { display: flex; flex-direction: column; gap: 8px; }
.dmbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card2); border: 1px solid rgba(229, 16, 46, .5); font-weight: 700; font-size: 14px; text-align: left; }
.dmbtn svg { color: var(--red2); }
.dmbtn:active { transform: scale(.99); }
.dmbtn[disabled] { border-color: var(--line); color: var(--dim); font-weight: 600; cursor: default; }
.dmbtn[disabled]:active { transform: none; }

.player { aspect-ratio: 16 / 9; background: #000; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; position: relative; }
.player > div, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.speed { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--red2); }

.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; }
.center h2 { margin: 0; font-size: 20px; font-weight: 800; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
