/* ВайбАгент — страница приложения /app (15-10-26).
   Один шрифт (Golos Text), тёмная канва в цвет приложения и роликов (#090615),
   градиент только у волны-знака и у главных кнопок. */

:root {
    --bg: #090615;
    --bg2: #120f1b;
    --bg3: #1a1527;
    --field: #0e0b17;
    --line: rgba(208, 192, 255, .12);
    --line2: rgba(208, 192, 255, .22);
    --text: #f4f1fa;
    --muted: #a49db8;
    --dim: #6f6886;
    --v1: #8b5cf6;
    --v2: #c750f0;
    --v3: #f050c8;
    --ok: #3ddc84;
    --bad: #ff7a8a;
    --grad: linear-gradient(90deg, #8b5cf6 0%, #c750f0 55%, #f050c8 100%);
    --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wrap: 1200px;
    --gut: clamp(16px, 4vw, 40px);
    --r-s: 12px;
    --r-m: 20px;
    --r-l: 28px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; padding: .1em .4em; border-radius: 6px; background: rgba(199, 80, 240, .14); color: #ead9ff; }
::selection { background: rgba(199, 80, 240, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--v2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.nb { white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Типографика ---------- */
.h2 { margin: 0 0 18px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.h3 { margin: 0 0 16px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.lead { margin: 0 0 28px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #d9d3e8; max-width: 56ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 10px; background: no-repeat center/18px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 20'%3E%3Cpath d='M2 12c3-6 5-6 7 0s5 6 8-4 6-10 8 0 5 6 9 2' fill='none' stroke='%23c750f0' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.numlist { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.numlist li { counter-increment: n; position: relative; padding-left: 44px; color: #d9d3e8; max-width: 60ch; }
.numlist li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--text); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }

/* ---------- Кнопки ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--light { background: var(--text); color: #120c22; }
.btn--light:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(240, 220, 255, .45); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(208, 192, 255, .4); }
.btn--glow { position: relative; color: #fff; background: var(--grad); box-shadow: 0 10px 34px -12px rgba(199, 80, 240, .75); isolation: isolate; }
.btn--glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); z-index: -1; }
.btn--glow:hover { box-shadow: 0 14px 44px -10px rgba(240, 80, 200, .8); }
.btn__ico { flex: none; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 28px; }
.btns__note { font-size: 14px; color: var(--muted); }

/* ---------- Шапка ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.bar.is-scrolled { background: rgba(9, 6, 21, .72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.brand__mark { flex: none; border-radius: 8px; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.bar__nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar__nav a:hover, .bar__nav a.is-here { color: var(--text); }
.bar .btn { margin-left: 8px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-top: var(--bar-h); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "title media" "lead media" "cta media" "more media"; align-content: center; column-gap: 32px; min-height: min(calc(100svh - var(--bar-h) - 150px), 760px); padding-top: clamp(24px, 6vh, 72px); }
.hero__text { display: contents; }
.hero__title { grid-area: title; margin: 0 0 22px; align-self: end; }
.hero__name { display: block; font-size: clamp(64px, 10.4vw, 150px); line-height: .9; font-weight: 600; letter-spacing: -.055em; margin-left: -.04em; }
.hero__tag { display: block; margin-top: 16px; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -.028em; color: #d3cbe9; max-width: 15em; }
.hero__lead { grid-area: lead; margin: 0 0 32px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 52ch; }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.cta-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-main__meta { font-size: 13.5px; color: var(--dim); padding-left: 6px; }
.hero__more { grid-area: more; margin: 26px 0 0; font-size: 15px; color: var(--muted); align-self: start; }
.hero__more a { color: var(--text); text-decoration-color: rgba(199, 80, 240, .6); text-underline-offset: 3px; }
.hero__media { grid-area: media; position: relative; align-self: center; justify-self: center; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.hero__halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(199, 80, 240, .22), rgba(139, 92, 246, .08) 60%, transparent 100%); filter: blur(10px); animation: halo 7s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .75; } }

/* Первое появление: одна оркестрованная сцена, дальше страница спокойна. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .is-ready [data-reveal], .js.is-ready [data-reveal] { opacity: 1; transform: none; }
.js.is-ready .hero__tag { transition-delay: .12s; }
.js.is-ready .hero__lead { transition-delay: .22s; }
.js.is-ready .hero__cta { transition-delay: .32s; }
.js.is-ready .hero__more { transition-delay: .42s; }
.js .hero__media { opacity: 0; transform: scale(.94); transition: opacity 1.2s var(--ease) .15s, transform 1.4s var(--ease) .15s; }
.js.is-ready .hero__media { opacity: 1; transform: none; }

/* Живая волна во всю ширину */
.wave { position: relative; height: clamp(84px, 11vw, 160px); margin-top: clamp(8px, 2vw, 24px); pointer-events: none; }
.wave__svg { width: 100%; height: 100%; overflow: visible; }
.wave__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.wave__line { stroke-width: 3; }
.wave__glow { stroke-width: 12; opacity: .45; filter: blur(10px); }
.wave__echo { stroke-width: 1.2; opacity: .35; }
.js .wave { opacity: 0; transition: opacity 1.4s var(--ease) .45s; }
.js.is-ready .wave { opacity: 1; }

.plats { list-style: none; margin: 0 auto; padding-top: 6px; padding-bottom: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plats li + li { border-left: 1px solid var(--line); }
.plats a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; text-decoration: none; border-radius: var(--r-s); transition: background-color .2s; }
.plats a:hover { background: rgba(255, 255, 255, .03); }
.plats__name { font-weight: 600; font-size: 16px; }
.plats__v { font-size: 13px; color: var(--dim); }

/* ---------- Знакомство ---------- */
.meet { padding: clamp(96px, 12vw, 168px) 0 clamp(72px, 9vw, 128px); }
.meet__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.talk { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; background: #0b0913; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(139, 92, 246, .55); }
.talk__video { width: 100%; height: 100%; object-fit: cover; }
.talk__play { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--text); color: #120c22; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.talk__play:hover { transform: scale(1.03); }
.talk__cc { position: absolute; left: 6%; right: 6%; bottom: 12%; text-align: center; font-size: clamp(15px, 1.9vw, 21px); font-weight: 500; line-height: 1.35; color: #fff; text-shadow: 0 1px 3px #000, 0 0 16px rgba(0, 0, 0, .85); pointer-events: none; }
.talk__meter { position: absolute; right: 18px; bottom: 18px; width: 160px; height: 24px; opacity: 0; transition: opacity .4s; }
.talk.is-playing .talk__play { opacity: 0; pointer-events: none; }
.talk.is-playing .talk__meter { opacity: .9; }

/* ---------- Возможности: прокрутка меняет кадр ---------- */
.feat { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.feat__title { max-width: 20ch; margin-bottom: clamp(24px, 4vw, 56px); }
.feat__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.feat__list { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.feat__list::before { content: ""; position: absolute; left: 0; top: 12vh; bottom: 12vh; width: 2px; border-radius: 2px; background: var(--line); }
.feat__list::after { content: ""; position: absolute; left: 0; top: 12vh; width: 2px; border-radius: 2px; height: calc((100% - 24vh) * var(--feat-p, 0)); background: var(--grad); background-size: 2px 100%; }
.feat__item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.feat__pic { display: none; }
.feat__name { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--dim); transition: color .5s var(--ease); }
.feat__text { margin: 0; font-size: 18px; color: var(--dim); max-width: 40ch; transition: color .5s var(--ease); }
.feat__item.is-on .feat__name { color: var(--text); }
.feat__item.is-on .feat__text { color: var(--muted); }
.feat__stage { position: sticky; top: calc(var(--bar-h) + 6vh); display: flex; align-items: center; gap: 18px; height: calc(100vh - var(--bar-h) - 12vh); }
.feat__frame { position: relative; flex: 1; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: #120f1a; box-shadow: 0 0 0 1px var(--line), 0 50px 120px -50px rgba(139, 92, 246, .6); }
.feat__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.feat__shot.is-on { opacity: 1; transform: none; }
.feat__dots { display: flex; flex-direction: column; gap: 10px; }
.feat__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); transition: background-color .4s, transform .4s; }
.feat__dot.is-on { background: var(--v2); transform: scale(1.5); }

/* ---------- Скачать ---------- */
.dl { padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .05) 30%, transparent); }
.dl__lead { margin-bottom: 44px; }
.dl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dlc { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px 24px; border-radius: 24px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.dlc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line2), 0 30px 60px -40px rgba(139, 92, 246, .7); }
.dlc__os { color: var(--text); margin-bottom: 18px; }
.dlc__name { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.dlc__req { margin: 0 0 4px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.dlc__ver { margin: 0 0 22px; font-size: 13.5px; color: var(--dim); min-height: 1.4em; }
.dlc .btn { margin-top: auto; width: 100%; }
.dlc__note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--dim); }
.dlc__steps { margin: 6px 0 22px; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); display: grid; gap: 6px; }
.dlc__mine { position: absolute; top: 16px; right: 16px; display: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); }
.dlc.is-mine { background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -40px rgba(199, 80, 240, .7); }
.dlc.is-mine .dlc__mine { display: inline-block; }
.dlc.is-mine .btn--light { background: var(--grad); color: #fff; }
.dlc.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line); } 25% { box-shadow: inset 0 0 0 2px var(--v2), 0 0 60px -10px rgba(199, 80, 240, .7); } }
.news { margin-top: 28px; border-radius: var(--r-m); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.news summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.news summary::-webkit-details-marker { display: none; }
.news summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.news[open] summary::after { transform: rotate(45deg); }
.news__body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.news__body p { margin: 0 0 10px; max-width: 80ch; }
.news__body b { color: var(--text); font-weight: 600; }

/* ---------- Подключить: три шага на волне ---------- */
.connect { padding: clamp(72px, 9vw, 120px) 0; }
.connect__in { position: relative; margin-top: 24px; }
.connect__wave { width: 100%; height: 120px; overflow: visible; }
.connect__path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.steps { list-style: none; margin: -78px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.step { text-align: center; padding: 0 8px; }
.step__n { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%; font-weight: 600; font-size: 20px; background: var(--bg); box-shadow: 0 0 0 1px var(--line2), 0 0 0 8px var(--bg), 0 0 30px 4px rgba(199, 80, 240, .35); }
.step__t { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin: 0 auto; color: var(--muted); max-width: 30ch; font-size: 16px; }
.connect__no { margin: 48px 0 0; text-align: center; color: var(--muted); }
.connect__no a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(199, 80, 240, .6); }

/* ---------- Обучение ---------- */
.learn { padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.learn__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.film { border-radius: var(--r-m); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 40px 100px -50px rgba(139, 92, 246, .7); }
.film__video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.chapters { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-m); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); max-height: var(--film-h, 430px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.chapter { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; transition: background-color .2s; }
.chapter:hover { background: rgba(255, 255, 255, .04); }
.chapter__n { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.chapter__t { font-size: 15px; color: #d9d3e8; }
.chapter__d { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.chapter.is-on { background: rgba(199, 80, 240, .12); }
.chapter.is-on .chapter__t { color: var(--text); font-weight: 500; }
.chapter.is-on .chapter__n { color: var(--v2); }
.learn__sub { margin-top: clamp(56px, 7vw, 96px); }
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - var(--gut)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - var(--gut)), transparent); }
.reel::-webkit-scrollbar { display: none; }
.reel__item { position: relative; flex: 0 0 auto; width: clamp(200px, 22vw, 260px); margin: 0; scroll-snap-align: start; }
.reel__video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-m); background: #000; box-shadow: 0 0 0 1px var(--line); }
.reel__play { position: absolute; left: 50%; top: calc(50% - 24px); transform: translate(-50%, -50%); width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 241, 250, .92); color: #120c22; cursor: pointer; transition: transform .25s var(--ease), opacity .25s; }
.reel__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.reel__item.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 15px; }
.reel figcaption span { color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- Пары «картинка + текст» ---------- */
.pair { padding: clamp(72px, 9vw, 128px) 0; }
.pair__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pair--flip .pair__media { order: 2; }
.pair__media img { width: 100%; border-radius: var(--r-l); -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.pair .h2 { max-width: 16ch; }
.tabs { margin-top: 8px; }
.tabs__bar { display: inline-flex; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs__bar button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 500; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs__bar button[aria-selected="true"] { background: var(--text); color: #120c22; }


/* Кнопка «Посмотреть урок» — перематывает фильм на нужную главу */
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; background: rgba(199, 80, 240, .12); color: #ead9ff; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.watch:hover { background: rgba(199, 80, 240, .22); }
.watch svg { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--text); color: #120c22; }
.connect__watch { margin: 40px 0 0; text-align: center; }

/* ---------- Купить ---------- */
.buy { padding: clamp(72px, 9vw, 128px) 0; }
.buy__card { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: radial-gradient(120% 120% at 100% 0%, rgba(199, 80, 240, .16), transparent 55%), radial-gradient(90% 90% at 0% 100%, rgba(139, 92, 246, .14), transparent 60%), var(--bg2); border: 1.5px solid transparent; background-clip: padding-box; box-shadow: 0 60px 140px -70px rgba(199, 80, 240, .7); overflow: hidden; isolation: isolate; }
.buy__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .7; pointer-events: none; z-index: 1; }
.buy__plan { margin: 0 0 4px; font-size: 18px; color: #d3cbe9; font-weight: 500; }
.buy__price { margin: 0 0 26px; font-size: clamp(52px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.buy__from { font-size: .32em; font-weight: 500; letter-spacing: -.01em; color: var(--muted); vertical-align: .9em; margin-right: .1em; }
.buy__per { font-size: .26em; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.buy__note { margin: 0; font-size: 14px; color: var(--dim); max-width: 60ch; }
.buy__media img { width: 100%; max-width: 420px; margin-left: auto; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }

/* ---------- Заявка ---------- */
.lead-sec { padding: clamp(72px, 9vw, 128px) 0; }
.lead-sec__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.lead-sec__form { padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-l); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 500; color: #d9d3e8; padding: 0; }
.opt { color: var(--dim); font-weight: 400; margin-left: 4px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--field); color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--v2); box-shadow: 0 0 0 4px rgba(199, 80, 240, .2); }
.field__err, .form__err { font-size: 13.5px; color: var(--bad); }
.field--bad input { border-color: var(--bad); }
.field__hint { font-size: 13px; color: var(--dim); }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: var(--muted); background: var(--field); box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip input:checked + span { color: #fff; background: rgba(199, 80, 240, .22); box-shadow: inset 0 0 0 1.5px var(--v2); }
.chip input:focus-visible + span { outline: 2px solid var(--v2); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--v2); }
.consent a { color: var(--text); text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sent { display: grid; justify-items: start; gap: 8px; padding: 12px 0; }
.sent__title { margin: 8px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.sent__text { margin: 0; color: var(--muted); }
.form.is-busy .btn[type="submit"] { opacity: .65; pointer-events: none; }

/* ---------- Вопросы ---------- */
.faq { padding: clamp(72px, 9vw, 128px) 0 clamp(96px, 11vw, 150px); }
.faq__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-size: 26px; line-height: .9; font-weight: 300; color: var(--muted); transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- Подвал ---------- */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.foot__nav a { color: var(--muted); text-decoration: none; }
.foot__nav a:hover { color: var(--text); }
.foot__copy { margin: 0 0 0 auto; font-size: 14px; color: var(--dim); }

/* ---------- Липкая панель (телефон) ---------- */
.dock { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1099px) {
    .dl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .learn__in { grid-template-columns: minmax(0, 1fr); }
    .chapters { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 979px) {
    .bar__nav { display: none; }
    .bar .btn { margin-left: auto; }
}

@media (max-width: 899px) {
    :root { --bar-h: 56px; }
    body { font-size: 16px; }
    .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "title" "cta" "lead" "more"; min-height: 0; padding-top: 8px; }
    .hero__media { max-width: 420px; aspect-ratio: 16 / 11; margin-bottom: -8px; }
    .hero__video { -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
    .hero__title { margin-bottom: 22px; }
    .hero__tag { margin-top: 10px; }
    .hero__cta { flex-direction: column; align-items: stretch; margin-bottom: 26px; }
    .hero__cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding: 10px 20px; font-size: 16px; }
    .cta-main { align-items: stretch; }
    .cta-main__meta { text-align: center; padding-left: 0; }
    .hero__lead { margin-bottom: 0; }
    .hero__more { margin-top: 16px; }
    .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plats li:nth-child(3) { border-left: 0; }
    .plats li:nth-child(n+3) { border-top: 1px solid var(--line); }

    .meet__in, .pair__in, .lead-sec__in, .faq__in, .buy__card { grid-template-columns: minmax(0, 1fr); }
    .pair--flip .pair__media { order: 0; }
    .buy__media { order: -1; }
    .buy__media img { max-width: 300px; margin: 0 auto; }

    .feat__in { grid-template-columns: minmax(0, 1fr); }
    .feat__stage { display: none; }
    .feat__list { padding-left: 0; display: grid; gap: 52px; }
    .feat__list::before, .feat__list::after { display: none; }
    .feat__item { min-height: 0; padding: 0; }
    .feat__pic { display: block; margin-bottom: 20px; }
    .feat__pic img { width: 100%; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
    .feat__name { color: var(--text); }
    .feat__text { color: var(--muted); }

    .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 0; }
    .connect__wave { display: none; }
    .step { text-align: left; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 0; }
    .step__n { grid-row: span 2; margin: 0; }
    .step p { margin: 0; }
    .connect__no, .connect__watch { text-align: left; }

    .dock { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(9, 6, 21, .82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
    .dock .btn { flex: 1; --h: 48px; padding: 0 12px; }
    .dock.is-on { transform: none; }
    .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .foot__copy { margin-left: 0; }
}

@media (max-width: 639px) {
    .dl__grid { grid-template-columns: minmax(0, 1fr); }
    .chapters { grid-template-columns: minmax(0, 1fr); }
    .btns .btn { flex: 1 1 auto; }
    .bar .btn { --h: 36px; padding: 0 14px; }
    .talk__play { left: 12px; bottom: 12px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal], .js .hero__media, .js .wave { opacity: 1; transform: none; }
}
