/* Главная страница для человека без входа. Тёмное полотно, на нём светлые листы — те же серый фон и белые карточки, что в кабинете.
   Цвет, размер шрифта и отступ берутся из tokens.css. Образ страницы — луч, призма и веер: один навык расходится в разные возможности. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: var(--night); color: var(--ink); font: 400 var(--t-md)/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* Сбросы стоят в :where() — у них нулевой вес, и правила блоков ниже их спокойно перекрывают. */
:where(.lp) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.lp) :where(ul, ol) { list-style: none; }
:where(.lp) :where(img, svg) { display: block; max-width: 100%; }
:where(.lp) :where(a) { color: inherit; }
:where(.lp) :where(button) { font: inherit; color: inherit; cursor: pointer; }
.lp [hidden] { display: none !important; }
.lp :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.top :focus-visible, .hero :focus-visible, .sec-dark :focus-visible, .foot :focus-visible, .drawer :focus-visible, .dock :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: calc(var(--w-page) + 2 * var(--pad-page)); margin-inline: auto; padding-inline: var(--pad-page); }
.skip { position: absolute; left: -999em; top: var(--s4); z-index: 100; padding: var(--s3) var(--s4); border-radius: var(--r-small); background: var(--lime); color: var(--lime-ink); font-weight: 600; }
.skip:focus { left: var(--s4); }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e3d { user-select: none; -webkit-user-drag: none; }
.e3d-fallback { font-size: var(--t-xl); line-height: 1; }
.ray-1 { --ray: var(--ray-1); } .ray-2 { --ray: var(--ray-2); } .ray-3 { --ray: var(--ray-3); } .ray-4 { --ray: var(--ray-4); } .ray-5 { --ray: var(--ray-5); }

/* ——— Кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 var(--s7); border: 1px solid transparent; border-radius: var(--r-pill); font-size: var(--t-md); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .35s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 var(--s5); font-size: var(--t-sm); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 20%, transparent), 0 14px 44px -10px color-mix(in srgb, var(--lime) 60%, transparent); }
.btn-line { border-color: var(--on-night-line); background: color-mix(in srgb, var(--on-dark) 5%, transparent); color: var(--on-dark); }
.btn-line:hover { border-color: var(--on-dark); background: color-mix(in srgb, var(--on-dark) 10%, transparent); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-dark:hover { background: var(--blue); box-shadow: 0 14px 34px -14px var(--blue); }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); }

/* ——— Шапка ——— */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; }
.top { position: fixed; z-index: 50; top: var(--s3); left: calc(var(--pad-page) - var(--s5)); right: calc(var(--pad-page) - var(--s5)); display: flex; align-items: center; gap: var(--s5); max-width: calc(var(--w-page) + 2 * var(--s5)); margin-inline: auto; padding: var(--s2) var(--s2) var(--s2) var(--s5); border: 1px solid transparent; border-radius: var(--r-pill); color: var(--on-dark); transition: background-color .35s, border-color .35s; }
.top.is-stuck { background: color-mix(in srgb, var(--night) 76%, transparent); border-color: var(--on-night-line); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
.logo { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 600; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-small); background: var(--spectrum); color: var(--lime-ink); font-size: var(--t-xs); font-weight: 800; letter-spacing: 0; }
.menu { display: flex; gap: var(--s1); margin-inline: auto; }
.menu a { padding: var(--s2) var(--s4); border-radius: var(--r-pill); color: color-mix(in srgb, var(--on-dark) 76%, transparent); font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.menu a:hover { background: color-mix(in srgb, var(--on-dark) 10%, transparent); color: var(--on-dark); }
.burger { display: none; position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--on-night-line); border-radius: 50%; background: transparent; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--on-dark); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 40; overflow: auto; padding: 108px var(--pad-page) var(--s8); background: color-mix(in srgb, var(--night) 94%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.drawer nav { display: grid; }
.drawer a { padding: var(--s4) 0; border-bottom: 1px solid var(--on-night-line); color: var(--on-dark); font-size: var(--t-xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-decoration: none; }
.drawer a.drawer-cab { color: var(--lime); }

/* ——— Блок 1. Первый экран: луч подчёркивает первую строку, в призме расходится веером ——— */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: 100svh; overflow: hidden; background: var(--night); color: var(--on-dark); }
.hero-canvas, .hero-rays { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-canvas { z-index: -3; opacity: 0; transition: opacity .8s; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero-rays { z-index: -2; overflow: visible; }
.hero-rays path { fill: none; stroke: var(--ray); stroke-width: 1.5; stroke-linecap: round; opacity: .7; transition: opacity .8s; }
.hero.is-live .hero-rays path { opacity: .2; }
.hero-beam { position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--on-dark) 35%); transform-origin: 0 50%; }
.hero-prism { position: absolute; z-index: -1; left: -99px; top: -99px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--on-dark); background: var(--night); transform: rotate(45deg); box-shadow: 0 0 0 7px color-mix(in srgb, var(--on-dark) 8%, transparent), 0 0 54px 12px color-mix(in srgb, var(--ray-2) 42%, transparent); }
.hero-in { position: relative; align-self: center; padding-top: 136px; padding-bottom: var(--s8); }
.hero-title { font-size: var(--t-hero-wide); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.hl { display: block; width: max-content; max-width: 100%; }
.hl-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-lead { max-width: 35em; margin-top: var(--s8); color: color-mix(in srgb, var(--on-dark) 74%, transparent); font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.hero-author { display: inline-flex; align-items: center; gap: var(--s3); margin-top: var(--s8); padding: var(--s2) var(--s5) var(--s2) var(--s2); border: 1px solid var(--on-night-line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--night) 62%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-author-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--spectrum); color: var(--lime-ink); font-size: var(--t-sm); font-weight: 800; }
.hero-author p, .hero-author figcaption { display: grid; line-height: 1.25; }
.hero-author b { font-weight: 600; }
.hero-author span:not(.hero-author-mark) { color: var(--on-dark-muted); font-size: var(--t-xs); }
.hero-author.has-photo { display: block; position: relative; width: 232px; padding: 0; border-radius: var(--r-card); overflow: hidden; }
.hero-author.has-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-author.has-photo figcaption { position: absolute; inset: auto 0 0; padding: var(--s8) var(--s4) var(--s4); background: linear-gradient(transparent, color-mix(in srgb, var(--night) 90%, transparent)); }
.hero-accents { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); padding-bottom: var(--s7); }
.hero-accents li { display: flex; align-items: baseline; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--on-night-line); color: color-mix(in srgb, var(--on-dark) 82%, transparent); font-size: var(--t-sm); font-weight: 500; }
.hero-accents li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--ray-1); transform: rotate(45deg) translateY(-1px); }
.hero-accents li:nth-child(2)::before { background: var(--ray-3); }
.hero-accents li:nth-child(3)::before { background: var(--ray-5); }

/* Вступление: один раз при открытии. Строки поднимаются по очереди, луч добегает до призмы. */
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes beam { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; transform: rotate(45deg) scale(0); } }
.js .hl-1 { animation: rise .9s var(--ease) .1s both; }
.js .hl-2 { animation: rise .9s var(--ease) .75s both; }
.js .hero-lead { animation: rise .9s var(--ease) 1.05s both; }
.js .hero-actions { animation: rise .9s var(--ease) 1.2s both; }
.js .hero-author { animation: fade 1s ease 1.5s both; }
.js .hero-accents { animation: fade 1s ease 1.6s both; }
.js .hero-beam { animation: beam .7s cubic-bezier(.6, 0, .2, 1) .2s both; }
.js .hero-prism { animation: pop .5s var(--ease) .8s both; }
.js .hero-rays { animation: fade 1.2s ease .9s both; }

/* ——— Светлые листы и общая раскладка блоков ——— */
.sheet { position: relative; border-radius: var(--r-sheet); background: var(--bg); }
.sec { padding-block: var(--gap-section); }
.sheet > .sec + .sec { padding-top: 0; }
.sec-dark { color: var(--on-dark); }
.sec h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.sec-head { display: grid; gap: var(--s5); max-width: 62rem; margin-bottom: var(--gap-head); }
.sec-head p { max-width: 38em; color: var(--muted); font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; }
.sec-dark .sec-head p { color: color-mix(in srgb, var(--on-dark) 66%, transparent); }
.sec-head-split { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s8); }
.empty { display: grid; justify-items: center; gap: var(--s5); padding: var(--s9) var(--s6); border: 1px dashed var(--faint); border-radius: var(--r-card); color: var(--muted); text-align: center; }
.js-live .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-live .rv.in { opacity: 1; transform: none; }

/* ——— Блок 2. Направления: плитки разного размера ——— */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(248px, auto); grid-auto-flow: dense; gap: var(--s4); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile a { position: relative; display: flex; flex-direction: column; gap: var(--s3); height: 100%; padding: var(--s7); text-decoration: none; }
.tile-emoji { width: 84px; height: 84px; margin-bottom: auto; transition: transform .6s var(--ease); }
.tile:hover .tile-emoji { transform: translateY(-6px) rotate(-7deg) scale(1.08); }
.tile h3 { max-width: 11em; margin-top: var(--s6); font-size: var(--t-h3); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.tile p { max-width: 31em; color: var(--muted); font-size: var(--t-sm); text-wrap: pretty; }
.tile-foot { display: inline-flex; align-items: center; gap: var(--s3); margin-top: var(--s3); font-size: var(--t-xs); font-weight: 600; }
.tile-foot::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--ray); transform: rotate(45deg); }
.tile-foot.is-soon { color: var(--faint); }
.tile-foot.is-soon::before { background: var(--line); }
.tile-a { grid-column: span 5; grid-row: span 2; background: var(--night); color: var(--on-dark); }
.tile-b { grid-column: span 7; }
.tile-c { grid-column: span 4; }
.tile-d { grid-column: span 3; }
.tile-e { grid-column: span 5; }
.tile-f { grid-column: span 7; background: var(--lime); color: var(--lime-ink); }
.tile-a .tile-emoji { width: 148px; height: 148px; }
.tile-a h3 { font-size: var(--t-xl); }
.tile-a p { color: color-mix(in srgb, var(--on-dark) 66%, transparent); font-size: var(--t-md); }
.tile-a .tile-foot.is-soon { color: var(--on-dark-muted); }
.tile-a .tile-foot.is-soon::before { background: var(--on-dark-muted); }
.tile-fan { position: absolute; left: calc(var(--s7) + 74px); top: calc(var(--s7) + 74px); width: 0; height: 0; pointer-events: none; }
.tile-fan i { position: absolute; left: 0; top: -1px; width: 640px; height: 2px; background: linear-gradient(90deg, var(--ray), transparent 88%); transform: rotate(var(--turn)); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.tile-fan i:nth-child(1) { --ray: var(--ray-1); --turn: -26deg; }
.tile-fan i:nth-child(2) { --ray: var(--ray-2); --turn: -14deg; }
.tile-fan i:nth-child(3) { --ray: var(--ray-3); --turn: -2deg; }
.tile-fan i:nth-child(4) { --ray: var(--ray-4); --turn: 9deg; }
.tile-fan i:nth-child(5) { --ray: var(--ray-5); --turn: 19deg; }
.tile:hover .tile-fan i:nth-child(1) { --turn: -34deg; }
.tile:hover .tile-fan i:nth-child(2) { --turn: -19deg; }
.tile:hover .tile-fan i:nth-child(3) { --turn: -4deg; }
.tile:hover .tile-fan i:nth-child(4) { --turn: 11deg; }
.tile:hover .tile-fan i:nth-child(5) { --turn: 24deg; }
.tile-a .tile-emoji { position: relative; }
.tile-f p { color: color-mix(in srgb, var(--lime-ink) 78%, transparent); }
.tile-f .tile-foot::before { background: var(--lime-ink); }
.tile-f .tile-foot.is-soon { color: color-mix(in srgb, var(--lime-ink) 60%, transparent); }
.tile-f .tile-foot.is-soon::before { background: color-mix(in srgb, var(--lime-ink) 40%, transparent); }

/* ——— Блок 3. Каталог ——— */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s7); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); font-size: var(--t-sm); font-weight: 500; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.chip i { color: var(--faint); font-family: var(--mono); font-size: var(--t-xs); font-style: normal; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--card); }
.chip.is-on i { color: var(--lime); }
.goal-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: var(--t-sm); }
.goal-note button { padding: 0; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s5); }
.product { display: grid; align-content: start; overflow: hidden; overflow: clip; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.cover { position: relative; min-height: 260px; background: var(--night); --mx: 0; --my: 0; }
.cover-in { position: relative; height: 100%; min-height: inherit; overflow: hidden; }
.cover-art { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -10px)); transition: transform .5s var(--ease); }
.cv-beam, .cv-ray { fill: none; stroke-linecap: round; }
.cv-beam { stroke: var(--on-dark); stroke-width: 3; }
.cv-ray { stroke-width: 3; }
.cv-thin { stroke-width: 1; opacity: .4; }
.cv-1 { stroke: var(--ray-1); } .cv-2 { stroke: var(--ray-2); } .cv-3 { stroke: var(--ray-3); } .cv-4 { stroke: var(--ray-4); } .cv-5 { stroke: var(--ray-5); }
.cv-dot { stroke: none; }
.cv-dot.cv-1 { fill: var(--ray-1); } .cv-dot.cv-2 { fill: var(--ray-2); } .cv-dot.cv-3 { fill: var(--ray-3); } .cv-dot.cv-4 { fill: var(--ray-4); } .cv-dot.cv-5 { fill: var(--ray-5); }
.cv-prism { fill: var(--night); stroke: var(--on-dark); stroke-width: 3; }
.cover-emoji { position: absolute; right: 9%; bottom: 9%; width: clamp(104px, 36%, 176px); height: auto; filter: drop-shadow(0 26px 30px color-mix(in srgb, var(--night) 70%, transparent)); transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 16px)) rotate(calc(var(--mx) * 6deg)); transition: transform .5s var(--ease); }
.product-body { display: grid; align-content: start; gap: var(--s5); padding: var(--s7); }
.product-dirs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.product-dirs li { padding: var(--s1) var(--s3); border-radius: var(--r-pill); background: var(--wash); color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.product h3 { font-size: var(--t-xl); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.product-result { color: var(--muted); font-size: var(--t-md); text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s6); padding-block: var(--s5); border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--t-xs); }
.facts dd { font-weight: 600; line-height: 1.3; }
.product-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.inside summary { display: inline-flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-weight: 600; cursor: pointer; list-style: none; }
.inside summary::-webkit-details-marker { display: none; }
.inside summary::after { content: ''; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.inside[open] summary::after { transform: translateY(2px) rotate(225deg); }
.tiers { display: grid; gap: var(--s3); margin-top: var(--s4); }
.tier { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-inner); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.tier-head h4 { font-size: var(--t-lg); font-weight: 800; letter-spacing: -.02em; }
.tier-price { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.tier-price.is-free { color: var(--accent-ink); }
.tier-pitch { margin-top: var(--s2); color: var(--muted); font-size: var(--t-sm); }
.tier-sections { margin-top: var(--s4); }
.tier-sections li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.tier-sections b { font-weight: 600; }
.tier-sections span { grid-column: 1; color: var(--muted); font-size: var(--t-xs); }
.tier-sections i { grid-area: 1 / 2; color: var(--muted); font-size: var(--t-xs); font-style: normal; white-space: nowrap; }
/* Продуктов мало — каждый показывается крупно, во всю ширину. */
.products.is-few { grid-template-columns: minmax(0, 1fr); }
.is-few .product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
/* Обложка не растягивается вместе с раскрытой программой: рисунок держится у верха и едет за прокруткой. */
.is-few .cover { min-height: 460px; }
.is-few .cover-in { position: sticky; top: 84px; height: 460px; min-height: 0; }
.is-few .product-body { padding: var(--s8); }
.is-few .product h3 { font-size: var(--t-h2); }
.is-few .product-result { font-size: var(--t-lead); max-width: 30em; }

/* ——— Блок 4. Один навык — разные возможности ——— */
.uses-stage { position: relative; display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(0, 56%); align-items: center; }
.uses-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.uses-svg path { fill: none; stroke-linecap: round; }
.u-beam { stroke: var(--on-dark); stroke-width: 2; }
.u-ray { stroke: var(--ray); stroke-width: 2; opacity: .3; transition: opacity .35s, stroke-width .35s; }
.u-ray.is-on { opacity: 1; stroke-width: 3; }
.u-flow { stroke: var(--on-dark); stroke-width: 3; stroke-dasharray: 2 16; opacity: 0; transition: opacity .35s; }
.u-flow.is-on { opacity: .9; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.uses-source { grid-column: 1; }
.uses-source span { display: inline-flex; padding: var(--s4) var(--s6); border: 1px solid var(--on-night-line); border-radius: var(--r-pill); background: var(--night-2); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.uses-prism { position: absolute; left: -99px; top: -99px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--on-dark); background: var(--night); transform: rotate(45deg); box-shadow: 0 0 40px 8px color-mix(in srgb, var(--ray-2) 36%, transparent); }
.uses-list { grid-column: 3; display: grid; gap: var(--s3); }
.use { padding: var(--s6) var(--s7); border: 1px solid var(--on-night-line); border-radius: var(--r-card); background: var(--night-2); transition: border-color .35s, background-color .35s; }
.use h3 { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-h3); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.use h3::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--ray); transform: rotate(45deg); }
.use p { max-width: 38em; margin-top: var(--s3); color: color-mix(in srgb, var(--on-dark) 64%, transparent); text-wrap: pretty; }
.use.is-on { border-color: var(--ray); background: color-mix(in srgb, var(--ray) 9%, var(--night-2)); }
.use.is-on p { color: color-mix(in srgb, var(--on-dark) 86%, transparent); }

/* ——— Блок 5. Подход: четыре шага по порядку ——— */
.approach-title { max-width: 17em; }
.approach-title .is-faint { color: var(--faint); }
.approach-lead { max-width: 40em; margin-top: var(--s6); color: var(--muted); font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; }
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--gap-head); }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; top: 23px; height: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: calc(var(--p) * 100%); background: var(--gradient); }
.step { position: relative; padding-top: 76px; }
.step-n { position: absolute; z-index: 1; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); font-family: var(--mono); font-weight: 500; transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease); }
.step.is-done .step-n { border-color: var(--ink); background: var(--ink); color: var(--lime); transform: scale(1.08); }
.step h3 { font-size: var(--t-lg); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.step p { margin-top: var(--s3); color: var(--muted); font-size: var(--t-sm); text-wrap: pretty; }
.approach-note { margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-sm); }

/* ——— Блок 6. Об авторе ——— */
.author-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--gap-head); }
.author-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--night); box-shadow: var(--shadow-lift); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo .cover-art { transform: none; }
.author-mark { position: absolute; left: var(--s7); bottom: var(--s6); color: var(--on-dark); font-size: var(--t-hero-wide); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.author-text { display: grid; justify-items: start; gap: var(--s5); }
.author-text h2 { font-size: var(--t-h2s); line-height: 1.06; }
.author-text p { max-width: 39em; color: var(--muted); text-wrap: pretty; }
.author-text .author-lead { color: var(--ink); font-size: var(--t-lead); font-weight: 600; line-height: 1.4; }
.author-text .btn { margin-top: var(--s4); }

/* ——— Блок 7. Выбор по цели ——— */
.goals-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: var(--s9); }
.goals-lead { margin-top: var(--s5); color: color-mix(in srgb, var(--on-dark) 66%, transparent); font-size: var(--t-lead); }
.goal-list { margin-top: var(--gap-head); border-top: 1px solid var(--on-night-line); }
.goal-list a { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--on-night-line); color: color-mix(in srgb, var(--on-dark) 62%, transparent); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-decoration: none; transition: color .25s, padding-left .45s var(--ease); }
.goal-list a::before { content: ''; flex: none; width: 10px; height: 10px; border: 2px solid currentColor; transform: rotate(45deg); transition: background-color .25s; }
.goal-list a:hover { padding-left: var(--s3); color: var(--on-dark); }
.goal-list a[aria-pressed="true"] { padding-left: var(--s4); color: var(--lime); }
.goal-list a[aria-pressed="true"]::before { background: var(--lime); }
.goal-result { position: sticky; top: 112px; display: grid; align-content: start; gap: var(--s5); min-height: 300px; padding: var(--s7); border: 1px solid var(--on-night-line); border-radius: var(--r-card); background: var(--night-2); }
.goal-hint, .goal-none { color: color-mix(in srgb, var(--on-dark) 62%, transparent); font-size: var(--t-lead); }
.goal-found { color: var(--on-dark-muted); font-size: var(--t-sm); font-weight: 500; }
.goal-name { font-size: var(--t-lg); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s4); padding: var(--s4); border-radius: var(--r-inner); background: var(--night-3); text-decoration: none; transition: background-color .25s, transform .4s var(--ease); }
.pick:hover { background: color-mix(in srgb, var(--lime) 14%, var(--night-3)); transform: translateX(4px); }
.pick img { width: 56px; height: 56px; }
.pick b { display: block; font-size: var(--t-lg); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pick span { display: block; margin-top: var(--s1); color: color-mix(in srgb, var(--on-dark) 62%, transparent); font-size: var(--t-xs); }
.goal-result .btn { justify-self: start; }

/* ——— Блок 8. Бесплатные материалы ——— */
.free-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4); }
.free-card { display: grid; align-content: start; justify-items: start; gap: var(--s3); padding: var(--s7); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.free-emoji { width: 64px; height: 64px; margin-bottom: var(--s3); }
.free-kind { color: var(--accent-ink); font-size: var(--t-xs); font-weight: 600; }
.free-card h3 { font-size: var(--t-xl); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.free-card h3 span { display: block; margin-top: var(--s2); color: var(--muted); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0; }
.free-text { color: var(--muted); text-wrap: pretty; }
.free-card .btn { margin-top: var(--s4); }
.free-later { display: grid; align-content: center; padding: var(--s7); border: 1px dashed var(--faint); border-radius: var(--r-card); color: var(--muted); }

/* ——— Блок 9. Вопросы ——— */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: var(--s9); }
.faq-grid h2 { position: sticky; top: 112px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s6) 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat, var(--card); transition: transform .4s var(--ease), background-color .3s; }
.qa[open] summary::after { background: linear-gradient(var(--lime), var(--lime)) center / 14px 2px no-repeat, linear-gradient(var(--lime), var(--lime)) center / 2px 14px no-repeat, var(--ink); transform: rotate(45deg); }
.qa p { max-width: 44em; padding-bottom: var(--s6); color: var(--muted); text-wrap: pretty; }

/* ——— Блок 10. Финал и подвал ——— */
.final { position: relative; overflow: hidden; }
.final .wrap { position: relative; }
/* Тот же веер, что на первом экране, только неподвижный: луч приходит слева, из призмы расходятся пять лучей. */
.final-fan { position: absolute; left: 66%; top: 50%; width: 0; height: 0; pointer-events: none; }
.final-fan::before { content: ''; position: absolute; right: 0; top: -1px; width: 100vw; height: 2px; background: linear-gradient(90deg, transparent 55%, var(--on-dark)); opacity: .5; }
.final-fan::after { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 2px solid var(--on-dark); background: var(--night); transform: rotate(45deg); box-shadow: 0 0 54px 12px color-mix(in srgb, var(--ray-2) 40%, transparent); }
.final-fan i { position: absolute; left: 0; top: -1px; width: 60vw; height: 2px; background: linear-gradient(90deg, var(--ray), transparent 90%); transform: rotate(var(--turn)); transform-origin: 0 50%; }
.final-fan i:nth-child(1) { --ray: var(--ray-1); --turn: -34deg; }
.final-fan i:nth-child(2) { --ray: var(--ray-2); --turn: -17deg; }
.final-fan i:nth-child(3) { --ray: var(--ray-3); --turn: 0deg; }
.final-fan i:nth-child(4) { --ray: var(--ray-4); --turn: 17deg; }
.final-fan i:nth-child(5) { --ray: var(--ray-5); --turn: 34deg; }
.final h2 { max-width: 13em; font-size: var(--t-hero-wide); line-height: 1.04; letter-spacing: -.045em; }
.final p { max-width: 36em; margin: var(--s7) 0 var(--s8); color: color-mix(in srgb, var(--on-dark) 68%, transparent); font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; }
.foot { padding-block: var(--s9) var(--s7); border-top: 1px solid var(--on-night-line); color: var(--on-dark); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
.foot-brand p { max-width: 24em; margin-top: var(--s4); color: var(--on-dark-muted); font-size: var(--t-sm); }
.foot-nav { display: grid; align-content: start; justify-items: start; gap: var(--s3); }
.foot-nav a { color: color-mix(in srgb, var(--on-dark) 74%, transparent); font-size: var(--t-sm); text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--lime); }
.foot-copy { margin-top: var(--s9); color: var(--on-dark-muted); font-size: var(--t-xs); }
.dock { position: fixed; z-index: 45; left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + var(--safe-bottom)); display: none; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s2); border: 1px solid var(--on-night-line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--night) 80%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .5s var(--ease), opacity .3s; }
.dock.is-away { opacity: 0; transform: translateY(150%); pointer-events: none; }

/* ——— Планшет ——— */
@media (max-width: 1100px) {
  .menu, .top-cab { display: none; }
  .hero-lead { max-width: 29em; }
  .burger { display: block; margin-left: auto; }
  .bento { grid-auto-rows: minmax(220px, auto); }
  .tile-a { grid-column: span 12; grid-row: span 1; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 6; }
  .tile-f { grid-column: span 12; }
  .tile-a .tile-emoji { width: 112px; height: 112px; }
  .tile-fan { left: calc(var(--s7) + 56px); top: calc(var(--s7) + 56px); }
  .is-few .product { grid-template-columns: minmax(0, 1fr); }
  .is-few .cover { min-height: 320px; }
  .is-few .cover-in { position: relative; height: 320px; }
  .uses-stage { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .uses-source, .uses-list { grid-column: 1; }
  .uses-svg, .uses-prism { display: none; }
  .goals-grid, .faq-grid, .author-grid, .sec-head-split { grid-template-columns: minmax(0, 1fr); }
  .sec-head-split { gap: var(--s5); }
  .goals-grid, .faq-grid { gap: var(--s7); }
  .goal-result, .faq-grid h2 { position: static; }
  .goal-result { min-height: 0; }
  .author-photo { aspect-ratio: 5 / 4; max-height: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) var(--s6); }
  .steps::before, .steps::after { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .final-fan { left: 82%; }
}

/* ——— Телефон: веер стоит полосой над заголовком, каталог всегда под рукой ——— */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .top { left: var(--s2); right: var(--s2); padding-left: var(--s3); }
  .hero-in { align-self: end; padding-top: calc(76px + 30svh); padding-bottom: var(--s6); }
  .hero-title { font-size: var(--t-hero); }
  .hero-lead { margin-top: var(--s5); }
  .hero-actions { flex-direction: column; margin-top: var(--s6); }
  .hero-actions .btn { width: 100%; }
  .hero-author { margin-top: var(--s6); }
  .hero-accents { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: var(--s6); }
  .hero-accents li { padding: var(--s3) 0; }
  .btn { min-height: 54px; padding: 0 var(--s6); }
  .btn-small { min-height: 44px; padding: 0 var(--s4); }
  .bento { grid-auto-rows: auto; gap: var(--s3); }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 12; }
  .tile a { padding: var(--s6); }
  .tile-emoji, .tile-a .tile-emoji { width: 72px; height: 72px; margin-bottom: var(--s2); }
  .tile-fan { left: calc(var(--s6) + 36px); top: calc(var(--s6) + 36px); }
  .tile h3 { margin-top: var(--s3); }
  .chips { flex-wrap: nowrap; margin-inline: calc(-1 * var(--pad-page)); padding-inline: var(--pad-page); overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .cover, .is-few .cover { min-height: 240px; }
  .is-few .cover-in { height: 240px; }
  .product-body, .is-few .product-body { gap: var(--s4); padding: var(--s6); }
  .product-actions .btn { width: 100%; }
  .tier { padding: var(--s4); }
  .use { padding: var(--s5) var(--s6); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before, .steps::after { display: block; left: 23px; top: 0; width: 2px; }
  .steps::before { right: auto; bottom: 0; height: auto; }
  .steps::after { height: calc(var(--p) * 100%); background: linear-gradient(var(--g1), var(--g2) 50%, var(--g3)); }
  .step { min-height: 48px; padding: 0 0 var(--s7) 72px; }
  .step:last-child { padding-bottom: 0; }
  .approach-note { margin-top: var(--s8); }
  .author-photo { aspect-ratio: 1; }
  .goal-list a { padding: var(--s4) 0; }
  .goal-result, .free-card, .free-later { padding: var(--s6); }
  .qa summary { padding: var(--s5) 0; }
  .qa summary::after { width: 36px; height: 36px; }
  .final h2 { font-size: var(--t-h2); }
  .final-fan { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .foot { padding-bottom: calc(96px + var(--safe-bottom)); }
  .dock { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition-duration: .01ms !important; }
  .js-live .rv { opacity: 1; transform: none; }
}
