/* X-Ray Facts — стиль обложек канала: тёмно-синяя сетка, белый капс с красным неоном,
   циановый HUD, жёлтое табло, стеклянные подставки. */
:root {
  --navy: #050C1C;
  --navy-2: #0A1630;
  --navy-3: #10214A;
  --line: rgba(80, 200, 255, .10);
  --line-2: rgba(80, 200, 255, .22);
  --white: #F4F8FF;
  --text: #CFDAF0;
  --mute: #8597BC;
  --red: #FF2B3A;
  --red-soft: rgba(255, 43, 58, .14);
  --cyan: #35D6FF;
  --yellow: #FFD21F;
  --mint: #3EF2A5;
  --display: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --digit: 'Share Tech Mono', ui-monospace, monospace;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --neon: 0 0 2px #fff, 0 0 8px rgba(255, 43, 58, .95), 0 0 22px rgba(255, 43, 58, .75), 0 0 46px rgba(255, 43, 58, .45);
  --read: 720px;
  --tab-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0; min-height: 100vh; color: var(--white); background: transparent;
  font: 500 16.5px/1.62 var(--body); -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
input, textarea { -webkit-user-select: text; user-select: text; font: inherit; }
button { font: inherit; cursor: pointer; }
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img { -webkit-user-drag: none; display: block; max-width: 100%; }

/* Фон всех экранов: плывущая стена обложек (заранее размытые копии) + сетка с точками */
.bgwall { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--navy); }
.bgwall-in { position: absolute; inset: -14% -10%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; transform: rotate(-6deg); opacity: .75; }
.bgwall-col { display: flex; flex-direction: column; gap: 14px; animation: drift 80s linear infinite; will-change: transform; }
.bgwall-col:nth-child(even) { animation-direction: reverse; animation-duration: 95s; }
.bgwall-col img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 16px; filter: blur(2px); }
.bgwall::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, rgba(5, 12, 28, .58), rgba(5, 12, 28, .8)); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.film { display: none; }

/* Неоновый заголовок как на обложках */
.neon { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #fff; text-shadow: var(--neon); letter-spacing: -.01em; line-height: .98; margin: 0; }
.neon-s { display: block; font-size: .44em; font-weight: 800; letter-spacing: .005em; }
.neon-m { display: block; font-size: .5em; font-weight: 800; margin-top: .18em; }
.neon-lime { color: #8FE9FF; text-shadow: 0 0 6px rgba(63, 216, 255, .55), 0 0 18px rgba(63, 216, 255, .3); }

/* HUD-элементы */
.hud { position: relative; }
.hud::before, .hud::after { content: ''; position: absolute; width: 42px; height: 42px; border: 2px solid var(--cyan); pointer-events: none; opacity: .9; filter: drop-shadow(0 0 6px rgba(53, 214, 255, .7)); }
.hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.x-mark { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 43, 58, .9)) drop-shadow(0 0 16px rgba(255, 43, 58, .5)); }
.digits { font-family: var(--digit); color: var(--yellow); text-shadow: 0 0 10px rgba(255, 210, 31, .55); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.chip-digits { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #081227; border: 2px solid #2B3F6B; box-shadow: inset 0 0 12px rgba(0, 0, 0, .6), 0 0 18px rgba(53, 214, 255, .15); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px); background: rgba(5, 12, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.logo svg { filter: drop-shadow(0 0 5px rgba(63, 216, 255, .7)) drop-shadow(0 0 10px rgba(180, 255, 74, .35)); }
.logo b { color: #fff; text-shadow: 0 0 10px rgba(255, 43, 58, .8); }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a:not(.btn) { color: var(--mute); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; }
.top-nav a:not(.btn):hover, .top-nav a.on { color: #fff; background: rgba(53, 214, 255, .08); }

/* Нижнее меню (Mini App и телефоны) */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(5, 12, 28, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); }
.tabbar nav { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 0 auto; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--mute); text-decoration: none; font-size: 11.5px; font-weight: 700; border-radius: 12px; }
.tabbar a svg { width: 23px; height: 23px; color: #3FD8FF; opacity: .55; filter: drop-shadow(0 0 4px rgba(63, 216, 255, .5)); transition: opacity .2s, filter .2s; }
.tabbar a.on { color: #fff; }
.tabbar a.on svg { color: #3FD8FF; opacity: 1; filter: drop-shadow(0 0 4px rgba(63, 216, 255, .95)) drop-shadow(0 0 12px rgba(63, 216, 255, .6)); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 15px 22px;
  font: 800 15px/1.2 var(--body); text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s; text-align: center; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 0 0 1px rgba(255, 120, 130, .5), 0 8px 34px -6px rgba(255, 43, 58, .8); text-transform: uppercase; letter-spacing: .02em; }
.btn-red:hover { box-shadow: 0 0 0 1px rgba(255, 160, 170, .7), 0 10px 44px -4px rgba(255, 43, 58, 1); }
.btn-cyan { background: rgba(53, 214, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 22px -6px rgba(53, 214, 255, .7); }
.btn-ghost { background: rgba(244, 248, 255, .05); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(244, 248, 255, .09); }
.btn-sm { padding: 9px 14px; border-radius: 11px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

main { outline: none; }
.wrap { width: min(100% - 28px, 1080px); margin-inline: auto; }
.read { width: min(100% - 28px, var(--read)); margin-inline: auto; }

/* ---------- Hero: стена из обложек ---------- */
.hero { position: relative; isolation: isolate; padding: 34px 0 30px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 45% at 50% 32%, rgba(5, 12, 28, .55), transparent 80%); }
.hero-in { text-align: center; padding: 26px 18px 0; }
.hero-by { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 12px; border-radius: 999px; background: rgba(5, 12, 28, .8); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 13.5px; }
.hero-by img { width: 22px; height: 22px; border-radius: 6px; }
.hero-by i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { line-height: .95; }
.hero-h .fit { display: block; white-space: nowrap; font-size: 12vw; }
.hero-h .neon-lime { margin-top: .32em; font-weight: 900; }
.hero-sub { max-width: 520px; margin: 20px auto 0; color: var(--text); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; }
.hero-sub b { color: #fff; }
.hero-sub, .hero-by { text-shadow: 0 1px 10px rgba(5, 12, 28, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* Сцена: обложка на стеклянной подставке */
.stage { position: relative; width: min(100%, 340px); margin: 26px auto 0; padding: 22px 0 0; }
.stage-ring { position: absolute; left: 50%; top: 46%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed rgba(53, 214, 255, .45); }
.stage-ring::before, .stage-ring::after { content: ''; position: absolute; background: rgba(53, 214, 255, .35); }
.stage-ring::before { left: -8%; right: -8%; top: 50%; height: 1px; }
.stage-ring::after { top: -8%; bottom: -8%; left: 50%; width: 1px; }
.stage .x-mark { position: absolute; left: 4px; top: 20%; z-index: 2; width: 54px; height: 54px; }
.stage .chip-digits { position: absolute; right: 0; top: 18%; z-index: 2; font-size: 17px; padding: 6px 10px; }
.stage .chip-digits small { display: block; font: 700 10px/1 var(--body); color: var(--mute); letter-spacing: 0; text-shadow: none; margin-top: 3px; }
.stage-card { position: relative; z-index: 1; width: 48%; margin: 0 auto; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(53, 214, 255, .7), 0 0 30px rgba(53, 214, 255, .35), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.stage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.stage-card img.on { opacity: 1; }
.plinth { position: relative; z-index: 0; width: 86%; height: 34px; margin: -14px auto 0; border-radius: 14px; transform: perspective(300px) rotateX(48deg);
  background: linear-gradient(180deg, rgba(53, 214, 255, .25), rgba(10, 22, 48, .9)); box-shadow: 0 0 0 2px rgba(53, 214, 255, .8), 0 0 26px rgba(53, 214, 255, .6), 0 14px 36px rgba(255, 43, 58, .55); }

/* Цифры канала */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 0; }
.strip div { padding: 16px 14px; border-radius: 16px; background: rgba(10, 22, 48, .75); border: 1px solid var(--line-2); text-align: center; }
.strip b { display: block; font-size: clamp(22px, 3.4vw, 32px); line-height: 1; }
.strip span { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; font-weight: 700; }

/* Секции */
.sec { padding: 54px 0 0; }
.sec-h { font-size: clamp(30px, 6vw, 48px); margin: 0 0 10px; }
.sec-p { color: var(--mute); margin: 0 0 22px; max-width: 560px; font-weight: 600; }

/* Лента результатов */
.reel-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 19%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip figure { margin: 0; scroll-snap-align: start; }
.reel-strip img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2); }
.reel-strip figcaption { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.reel-strip figcaption .digits { display: block; font-size: 15px; }

/* Карточка рилса: охват снизу, как в Instagram */
.reel-card, a.reel { position: relative; display: block; scroll-snap-align: start; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .15s, box-shadow .2s; }
.reel-card:active, a.reel:active { transform: scale(.97); }
.reel-card:hover, a.reel:hover { box-shadow: 0 0 0 2px var(--cyan), 0 0 24px rgba(53, 214, 255, .35); }
.reel-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.reel-card::after, a.reel .reel-shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); pointer-events: none; }
.reel-views { position: absolute; left: 10px; bottom: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font: 800 15px/1 var(--body); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a.reel .reel-shot { position: relative; border: 0; }

/* Конвейер */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.pipe li { position: relative; padding: 18px 16px; border-radius: 18px; background: rgba(10, 22, 48, .75); border: 1px solid var(--line-2); }
.pipe small { font: 400 22px/1 var(--digit); color: var(--yellow); text-shadow: 0 0 8px rgba(255, 210, 31, .5); }
.pipe b { display: block; font: 900 16px/1.2 var(--display); text-transform: uppercase; margin: 10px 0 6px; }
.pipe p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.45; }
.pipe li.me { border-color: rgba(255, 43, 58, .55); box-shadow: 0 0 24px -8px rgba(255, 43, 58, .6); }
.pipe li.me b { text-shadow: 0 0 10px rgba(255, 43, 58, .9); }

/* Программа: уроки на «стеклянных подставках» */
.mod { margin: 0 0 22px; }
.mod-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; padding: 0 4px; }
.mod-h h3 { margin: 0; font: 900 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.mod-h span { color: var(--mute); font-size: 13px; font-weight: 700; }
.rows { border-radius: 18px; overflow: hidden; background: rgba(10, 22, 48, .78); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -18px rgba(53, 214, 255, .4); }
.row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(53, 214, 255, .05); }
.row-n { font: 400 20px/1 var(--digit); color: var(--mute); }
.row-t b { display: block; font-weight: 800; font-size: 15.5px; line-height: 1.32; }
.row-t span { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.row-r { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; font-weight: 700; white-space: nowrap; }
.row.free { background: linear-gradient(90deg, var(--red-soft), transparent 75%); }
.row.free .row-n { color: var(--yellow); text-shadow: 0 0 8px rgba(255, 210, 31, .5); }
.row.locked .row-t b { color: #B7C4DF; }
.row.done .row-n { color: var(--mint); }
.pill { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.pill-free { background: var(--red); color: #fff; box-shadow: 0 0 12px rgba(255, 43, 58, .6); }
.ico-lock { color: var(--red); flex: none; filter: drop-shadow(0 0 4px rgba(255, 43, 58, .7)); }
.ico-done { color: var(--mint); flex: none; }

/* Акция */
.sale-bar { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 8px 8px 14px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(255, 43, 58, .16); border: 1px solid rgba(255, 43, 58, .6); box-shadow: 0 0 22px -6px rgba(255, 43, 58, .8); font-weight: 800; font-size: 14px; }
.sale-bar b { text-transform: uppercase; letter-spacing: .02em; }
.sale-bar > span { padding: 5px 10px; border-radius: 999px; background: rgba(5, 12, 28, .85); color: var(--text); font-weight: 700; }
.sale-bar .digits { font-size: 15px; }
.sale-tag { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 10px; background: var(--red); color: #fff; font: 900 13px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 0 18px rgba(255, 43, 58, .6); }
.price.price-sale { flex-direction: column; align-items: center; gap: 4px; }
.price.price-sale s { font-size: 22px; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.countdown span { min-width: 62px; padding: 8px 6px 6px; border-radius: 12px; background: #081227; border: 2px solid #2B3F6B; box-shadow: inset 0 0 12px rgba(0, 0, 0, .6); }
.countdown b { display: block; font-size: 28px; line-height: 1; }
.countdown small { display: block; margin-top: 4px; color: var(--mute); font-size: 11px; font-weight: 800; }

/* Крючок в конце бесплатного урока */
.cliff { position: relative; margin-top: 22px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(10, 22, 48, .6); }
.cliff-text { max-height: 132px; overflow: hidden; padding: 18px 18px 0; filter: blur(4px); opacity: .6; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.cliff-text h4 { margin: 0 0 8px; color: var(--cyan); }
.cliff-text p { margin: 0 0 14px; }
.cliff-lock { position: relative; margin-top: -64px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 18px 18px; text-align: center; }
.cliff-lock b { font-size: 24px; }
.cliff-lock p { margin: 0 0 6px; color: var(--text); font-weight: 600; font-size: 15px; max-width: 420px; }
.cliff-lock .btn { width: 100%; max-width: 360px; }
.cliff-lock .digits, .cliff-lock s { white-space: nowrap; }
.cliff-code { color: var(--mute); font-weight: 700; font-size: 14px; }
.cliff.open .cliff-text { filter: none; opacity: 1; max-height: none; -webkit-mask-image: none; mask-image: none; }
.cliff.open .cliff-lock { margin-top: 0; padding-top: 12px; }

/* Блок покупки */
.buy { position: relative; margin: 54px 0 0; padding: 28px 20px 24px; border-radius: 24px; overflow: hidden; text-align: center;
  background: radial-gradient(420px 220px at 50% 0, rgba(255, 43, 58, .22), transparent 70%), rgba(10, 22, 48, .9); border: 1px solid rgba(255, 43, 58, .4); }
.buy h2 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 12px; }
.buy > p { color: var(--text); margin: 0 auto 18px; max-width: 480px; font-weight: 600; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0 0 6px; }
.price b { font: 900 clamp(34px, 8vw, 46px)/1 var(--display); color: #fff; text-shadow: var(--neon); }
.price s { color: var(--mute); font-weight: 800; font-size: 20px; }
.timer { margin: 4px 0 18px; color: var(--text); font-weight: 700; font-size: 14px; }
.timer .chip-digits { font-size: 26px; margin-top: 8px; }
.buy-steps { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 420px; text-align: left; display: grid; gap: 8px; }
.buy-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(5, 12, 28, .6); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.buy-steps li span { font: 400 20px/1 var(--digit); color: var(--yellow); min-width: 18px; }
.buy .btn { width: 100%; max-width: 420px; }
.code-form { display: flex; gap: 8px; max-width: 420px; margin: 12px auto 0; }
.code-form input { flex: 1; min-width: 0; padding: 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(5, 12, 28, .9); color: #fff; text-transform: uppercase; font-family: var(--mono); font-size: 14px; outline: none; }
.code-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 214, 255, .15); }
.code-form .btn { width: auto; flex: none; padding: 14px 16px; }
.buy .form-err { margin: 8px 0 0; }

.foot { padding: 48px 0 30px; color: var(--mute); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.foot a { color: var(--mute); }

/* ---------- Урок ---------- */
.lesson-top { padding: 22px 0 0; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--mute); font-size: 13.5px; font-weight: 700; }
.crumbs a { color: var(--mute); text-decoration: none; }
.lesson-h { font-size: clamp(30px, 7vw, 52px); margin: 14px 0 0; line-height: 1.02; }
.lesson-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0 0; color: var(--mute); font-size: 14px; font-weight: 700; }
.bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); box-shadow: 0 0 12px var(--red); z-index: 30; }

.prose { padding: 24px 0 8px; }
.prose > * + * { margin-top: 18px; }
.prose h3 { font: 900 clamp(21px, 4.4vw, 27px)/1.12 var(--display); text-transform: uppercase; margin-top: 44px; text-shadow: 0 0 14px rgba(255, 43, 58, .55); }
.prose h4 { font: 800 17px/1.3 var(--body); margin-top: 28px; color: var(--cyan); }
.prose h2 { font: 900 clamp(24px, 5vw, 30px)/1.1 var(--display); text-transform: uppercase; margin-top: 38px; }
.prose p, .prose li { color: var(--text); }
.prose strong { color: #fff; font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--yellow); font-family: var(--digit); }
.prose hr { border: 0; border-top: 1px dashed var(--line-2); margin: 38px 0; }
.prose code { font: 600 .87em var(--mono); background: rgba(53, 214, 255, .08); color: #BDF3FF; padding: .12em .4em; border-radius: 6px; border: 1px solid rgba(53, 214, 255, .16); }
.prose blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--line-2); color: var(--mute); }
.lead { font-size: clamp(17.5px, 2.3vw, 20px); line-height: 1.58; color: #fff !important; font-weight: 600; }

.callout { position: relative; padding: 16px 18px; border-radius: 16px; background: rgba(10, 22, 48, .85); border: 1px solid var(--line-2); }
.callout .c-title { display: block; color: #fff; font-weight: 900; }
.callout p { margin: 6px 0 0; }
.c-tip { border-color: rgba(53, 214, 255, .4); } .c-tip .c-title { color: var(--cyan); }
.c-warn { border-color: rgba(255, 43, 58, .5); background: linear-gradient(120deg, var(--red-soft), rgba(10, 22, 48, .85) 60%); }
.c-warn .c-title { color: #FF6B76; display: flex; align-items: center; gap: 8px; }
.c-warn .c-title::before { content: ''; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF2B3A' stroke-width='2.6' stroke-linejoin='round'%3E%3Cpath d='M5 5h3l4 4 4-4h3v3l-4 4 4 4v3h-3l-4-4-4 4H5v-3l4-4-4-4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.c-key { border-color: rgba(255, 210, 31, .4); background: linear-gradient(120deg, rgba(255, 210, 31, .09), rgba(10, 22, 48, .85) 60%); }
.c-key .c-title { color: var(--yellow); }

.code { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #030914; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: rgba(53, 214, 255, .05); }
.code-bar span { color: var(--mute); font-size: 12.5px; font-weight: 800; }
.code pre { margin: 0; padding: 14px; overflow: auto; font: 500 13.5px/1.6 var(--mono); color: #D4F7FF; white-space: pre-wrap; word-break: break-word; }
.copy { border: 0; background: rgba(53, 214, 255, .12); color: var(--cyan); border-radius: 9px; padding: 7px 12px; font-size: 13px; font-weight: 800; }
.copy.ok { background: rgba(62, 242, 165, .16); color: var(--mint); }

.tbl { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 22, 48, .6); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.tbl th { text-align: left; padding: 12px 16px; color: var(--mute); font-size: 13px; font-weight: 800; background: rgba(53, 214, 255, .05); border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); line-height: 1.5; }
.tbl tr:first-child td { border-top: 0; }

.checks { list-style: none; padding: 0 !important; }
.checks li + li { margin-top: 8px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 22, 48, .55); cursor: pointer; }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: .2s; }
.checks input::after { content: ''; width: 10px; height: 6px; border: 2.5px solid #031A10; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s; }
.checks input:checked { background: var(--mint); border-color: var(--mint); }
.checks input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checks label:has(input:checked) { border-color: rgba(62, 242, 165, .3); background: rgba(62, 242, 165, .06); }
.checks label:has(input:checked) span { color: var(--mute); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 16px; border-radius: 16px; background: rgba(10, 22, 48, .8); border: 1px solid var(--line-2); }
.stat b { display: block; font: 400 clamp(26px, 6vw, 36px)/1 var(--digit); color: var(--yellow); text-shadow: 0 0 10px rgba(255, 210, 31, .5); }
.stat span { display: block; margin-top: 8px; color: var(--mute); font-size: 13.5px; font-weight: 700; }

.flow { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { margin: 0 !important; padding: 9px 13px; border-radius: 12px; border: 1px solid rgba(53, 214, 255, .3); background: rgba(53, 214, 255, .06); }
.flow li b { display: block; color: #fff; font-size: 14px; }
.flow li span { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.3; }

.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel { margin: 0; }
.reel-shot { aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; border: 1px dashed var(--line-2); display: grid; place-items: center; background: var(--navy-2); color: var(--mute); font-weight: 700; font-size: 13px; }
.reel-shot img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { margin-top: 6px; }
.reel figcaption b { display: block; font-size: 13px; line-height: 1.3; }
.reel figcaption span { font: 400 15px/1.2 var(--digit); color: var(--yellow); }

.lesson-end { display: flex; flex-direction: column; gap: 14px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); }
.done-btn { width: 100%; }
.done-btn.is-done { background: rgba(62, 242, 165, .12); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(62, 242, 165, .35); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager a { display: block; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; color: #fff; background: rgba(10, 22, 48, .6); }
.pager small { display: block; color: var(--mute); font-size: 12px; font-weight: 800; }
.pager b { display: block; font-size: 14.5px; line-height: 1.35; margin-top: 3px; }
.pager .next { text-align: right; grid-column: 2; }

/* Формы и кабинет */
.panel { margin: 26px auto 0; width: min(100% - 28px, 460px); padding: 24px 20px; border-radius: 24px; background: rgba(10, 22, 48, .85); border: 1px solid var(--line-2); }
.panel h1 { font-size: 30px; margin: 0 0 10px; }
.panel > p { color: var(--mute); margin: 0 0 18px; font-weight: 600; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(5, 12, 28, .8); border: 1px solid var(--line); margin: 0 0 18px; }
.tabs button { border: 0; background: none; color: var(--mute); padding: 10px; border-radius: 10px; font-weight: 800; }
.tabs button.on { background: var(--navy-3); color: #fff; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 13.5px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.field input { width: 100%; padding: 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(5, 12, 28, .9); color: #fff; outline: none; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 214, 255, .15); }
.field small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 6px; }
.form-err { color: #FF6B76; font-weight: 800; font-size: 14px; min-height: 1.3em; margin: 0 0 10px; }
.panel .btn { width: 100%; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(5, 12, 28, .7); border: 1px solid var(--line); margin: 0 0 18px; }
.ava { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font: 900 18px var(--display); box-shadow: 0 0 16px rgba(255, 43, 58, .6); }
.me-card b { display: block; }
.me-card span { color: var(--mute); font-size: 13.5px; }
.progress { height: 10px; border-radius: 99px; background: rgba(244, 248, 255, .08); overflow: hidden; margin: 6px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); border-radius: 99px; box-shadow: 0 0 12px rgba(255, 43, 58, .6); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.mat-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10, 22, 48, .7); margin: 20px 0 0; }
.file { font: 700 13.5px var(--mono); color: #BDF3FF; }
.mat-row .row-n { font: 700 12px var(--mono); color: var(--cyan); }

/* Админка */
.adm { padding: 24px 0 60px; }
.adm h1 { font-size: 32px; margin: 0 0 18px; }
.adm h2 { font: 900 17px/1.2 var(--display); text-transform: uppercase; margin: 32px 0 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis div { padding: 14px; border-radius: 16px; background: rgba(10, 22, 48, .8); border: 1px solid var(--line-2); }
.kpis b { display: block; font: 400 30px/1 var(--digit); color: var(--yellow); }
.kpis span { color: var(--mute); font-size: 12.5px; font-weight: 700; }
.adm-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.adm-form .field { margin: 0; flex: 1 1 160px; }
.adm .tbl table { min-width: 900px; font-size: 14px; }
.adm .tbl td, .adm .tbl th { padding: 10px 12px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.tag-ok { background: rgba(62, 242, 165, .14); color: var(--mint); }
.tag-no { background: rgba(244, 248, 255, .08); color: var(--mute); }
.tag-bad { background: rgba(255, 43, 58, .16); color: #FF6B76; }
.tag-hot { background: rgba(255, 210, 31, .14); color: var(--yellow); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts button { border: 1px solid var(--line-2); background: rgba(5, 12, 28, .8); color: #fff; padding: 6px 9px; border-radius: 9px; font-size: 12.5px; font-weight: 800; }
.acts button:hover { border-color: var(--cyan); }
.codes-out { font: 600 15px/1.9 var(--mono); color: var(--yellow); white-space: pre-wrap; padding: 14px; border-radius: 14px; background: #030914; border: 1px solid var(--line-2); -webkit-user-select: text; user-select: text; }

.wm { position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: 0; transition: opacity .3s; background-repeat: repeat; }
.wm.on { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: calc(22px + var(--tab-h) + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 40; padding: 12px 18px; border-radius: 14px;
  background: var(--navy-3); border: 1px solid var(--line-2); color: #fff; font-weight: 800; font-size: 14.5px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loader { display: grid; place-items: center; min-height: 50vh; }
.loader i { width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); background-size: 200% 100%; animation: ld 1.1s linear infinite; }
@keyframes ld { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.view { animation: vin .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes vin { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 860px) {
  .pipe { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .reel-strip { grid-auto-columns: 40%; }
}
@media (max-width: 720px) {
  :root { --tab-h: 62px; }
  .tabbar { display: block; }
  .top-nav { display: none; }
  .top { justify-content: center; padding-block: 8px; }
  .logo { font-size: 13px; gap: 8px; }
  .logo svg { width: 22px; height: 22px; filter: drop-shadow(0 0 3px rgba(63, 216, 255, .45)); }
}
.tg { --tab-h: 62px; }
.tg .tabbar { display: block; }
.tg .top-nav { display: none; }
.tg .top { justify-content: center; padding-block: 8px; }
.tg .logo { font-size: 13px; gap: 8px; }
.tg .logo svg { width: 22px; height: 22px; filter: drop-shadow(0 0 3px rgba(63, 216, 255, .45)); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 34px 1fr auto; padding: 13px 14px; gap: 10px; }
  .row-t span { display: none; }
  .row-r .dur { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .prose .tbl { border: 0; background: none; overflow: visible; }
  .prose .tbl table { min-width: 0; }
  .prose .tbl thead { display: none; }
  .prose .tbl tr { display: block; margin: 0 0 10px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 22, 48, .7); padding: 6px 0; }
  .prose .tbl td { display: block; border: 0; padding: 6px 14px; }
  .prose .tbl td::before { content: attr(data-l); display: block; color: var(--mute); font-size: 12px; font-weight: 800; }
  .prose .tbl td:first-child { color: #fff; font-weight: 800; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { body * { display: none !important; } body::after { content: 'Материалы курса X-Ray Facts не предназначены для печати.'; display: block; padding: 40px; color: #000; } }

/* Числа, цены и таймеры никогда не переносятся */
.digits, [data-timer], .price b, .price s, .sale-tag, .strip b, .stat b, .kpis b, .chip-digits, .reel-views, .pill, .lesson-meta span, .row-r { white-space: nowrap; }
.strip b { font-size: clamp(17px, 5.2vw, 32px); }
.stat b { font-size: clamp(18px, 5.6vw, 36px); }
.countdown b { font-size: clamp(22px, 7vw, 28px); }
.countdown span { min-width: 0; flex: 1 1 0; max-width: 72px; }
@media (max-width: 640px) { .bgwall-in { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bgwall-col { animation: none; } }

/* Стикер акции — как наклейки на обложках */
.burst { position: relative; flex: none; z-index: 3; width: 100px; height: 100px; transform: rotate(-14deg); filter: drop-shadow(0 0 14px rgba(255, 210, 31, .55)); animation: wobble 2.6s ease-in-out infinite; pointer-events: none; }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; color: #1A0A00; font: 900 25px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.burst small { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .04em; margin-top: 2px; }
@keyframes wobble { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.07); } }
.price-zone { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 2px; }
.price-zone .price { margin: 0; }
.gift-line { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 210, 31, .1); border: 1px solid rgba(255, 210, 31, .4); color: var(--yellow); font-weight: 800; font-size: 13.5px; }
.gift-line svg, .sale-bar svg { flex: none; filter: drop-shadow(0 0 6px rgba(255, 210, 31, .7)); }
.sale-bar svg { animation: wobble2 1.8s ease-in-out infinite; }
@keyframes wobble2 { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) scale(1.12); } }
@media (max-width: 380px) { .burst { width: 84px; height: 84px; } .burst span { font-size: 20px; } .burst small { font-size: 9px; } .price-zone { gap: 8px; }
  .sale-bar { gap: 7px; padding: 6px 6px 6px 10px; font-size: 12.5px; } .sale-bar > span { padding: 4px 8px; } .sale-bar .digits { font-size: 13.5px; }
  .btn { font-size: 14px; padding-inline: 14px; }
  .sale-bar .when { display: none; } .gift-line { font-size: 12.5px; padding: 6px 10px; gap: 6px; } }
.gift-line { white-space: nowrap; }
.sale-bar, .sale-bar * { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .burst, .sale-bar svg { animation: none; } }

/* Равномерные переносы: заголовки, кнопки и короткие фразы делятся на строки поровну, без «висящих» слов */
h1, h2, h3, h4, .neon, .btn, .lead, .sec-p, .c-title, .gift-line, .buy > p, .buy-steps li, .cliff-lock p, .hero-sub, .row-t b, .pager b, .panel > p, .mod-h h3 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
.ico-open { color: var(--cyan); flex: none; filter: drop-shadow(0 0 4px rgba(53, 214, 255, .7)); }
.row .ico-lock, .row .ico-open { width: 20px; height: 20px; }
@media (max-width: 640px) { .row.free .pill-free { display: none; } }

/* Без пустот: блок покупки в конце урока прилегает к остальному */
.lesson-end { margin-top: 28px; padding-top: 18px; }
.lesson-end .buy { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* Цена в крючке — отдельной плашкой */
.cliff-lock p { font-size: 15.5px; color: var(--text); margin: 0 0 4px; }
.cliff-price { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 6px; padding: 10px 16px; border-radius: 16px;
  background: rgba(5, 12, 28, .9); border: 1px solid rgba(255, 210, 31, .45); box-shadow: 0 0 22px -8px rgba(255, 210, 31, .6); white-space: nowrap; }
.cliff-price .sale-tag { margin: 0; }
.cliff-price b { font: 900 32px/1 var(--display); color: #fff; text-shadow: var(--neon); }
.cliff-price s { font: 800 18px/1 var(--body); color: var(--mute); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
@media (max-width: 360px) { .cliff-price { gap: 8px; padding: 9px 12px; } .cliff-price b { font-size: 27px; } .cliff-price s { font-size: 16px; } }

/* Зачёркивание старой цены — тонкая диагональ, цифры читаются */
.price s, .cliff-price s { text-decoration: none; position: relative; display: inline-block; }
.price s::after, .cliff-price s::after { content: ''; position: absolute; left: -6%; right: -6%; top: 52%; height: 1.5px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 6px rgba(255, 43, 58, .7); transform: rotate(-11deg); pointer-events: none; }
