/* ═════════ 3D-модель по умолчанию: экраны ═════════ */

.stage-3d { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 22%, #FFFFFF 0%, #EEF0F3 62%, #E2E6EB 100%); }
.session { background: var(--bg); }
.s-stage-wrap .stage-fill { background: #1A1F27; }

/* старт */
.intro { padding: 0; overflow: hidden; }
.hero-3d { position: absolute; inset: 0 0 34% 0; background: radial-gradient(120% 80% at 50% 30%, #FFFFFF 0%, #EEF0F3 65%, #E4E7EC 100%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 34%; height: 90px; background: linear-gradient(to bottom, rgba(238, 240, 243, 0), var(--bg)); pointer-events: none; }
.brand.over { position: absolute; top: calc(12px + var(--safe-t)); left: 16px; right: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0; }
.level-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 18px; border: 0; font: 600 13.5px var(--font); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.level-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.intro .hero-chip { position: absolute; left: 50%; top: calc(60px + var(--safe-t)); bottom: auto; right: auto; transform: translateX(-50%); z-index: 3; white-space: nowrap; transition: opacity .25s; }
.intro-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 16px calc(16px + var(--safe-b)); max-width: 476px; margin: 0 auto; }
.intro-sheet .hero-title { position: static; margin: 0 0 6px; font-size: 27px; line-height: 1.12; }
.intro-sub { margin: 0 0 10px; font-size: 14.5px; line-height: 1.4; }
.intro .cta { margin-top: 10px; width: 100%; }
.intro-row { margin-top: 10px; }
.intro-row .btn-soft { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.intro-row .btn-soft:last-child { flex: 0 0 auto; }
.intro-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.intro-row em { font-style: normal; font-size: 12px; color: var(--muted); }
.resume-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.resume-ic svg { width: 18px; height: 18px; fill: var(--accent); }
.load-pill { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 22px; font-size: 14px; box-shadow: var(--shadow-sm); }
.load-pill i { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin3d 1s linear infinite; }
@keyframes spin3d { to { transform: rotate(360deg); } }

/* уровень */
.level-note { margin-top: 16px; }

/* карта тела */
.map3d { background: var(--bg); }
.map-hint { position: absolute; left: 50%; top: calc(68px + var(--safe-t)); transform: translate(-50%, -8px); padding: 8px 14px; border-radius: 18px; font-size: 13px; opacity: 0; transition: opacity .4s, transform .4s var(--out); pointer-events: none; z-index: 3; white-space: nowrap; }
.map-hint.on { opacity: 1; transform: translate(-50%, 0); }
.map-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.map-sheet h2 { margin: 6px 0 4px; }
.map-layers { display: grid; gap: 6px; margin: 8px 0; }
.layer-row { display: flex; align-items: center; gap: 10px; }
.layer-row i { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font: 700 12px var(--font); display: grid; place-items: center; font-style: normal; flex: none; }
.layer-row.dim i { background: #B8BEC7; }
.layer-row span { display: grid; }
.layer-row b { font-size: 14.5px; font-weight: 600; }
.layer-row small { color: var(--muted); font-size: 12px; }
.both-row, .band-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 14px; }
.both-row input, .band-row input, .checks input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.map-sheet .cta { width: 100%; }

/* метки на 3D */
.pin-mark { display: block; width: 0; height: 0; position: relative; }
.pin-mark i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #1A1F27; animation: pin-pulse 1.8s ease-out infinite; }
.pin-mark.small i { left: -7px; top: -7px; width: 14px; height: 14px; border-width: 3px; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.tp-dot { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); font: 700 12px/20px var(--font); text-align: center; color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.tp-dot.hot { background: #FFD43B; border-color: #1A1F27; color: #1A1F27; box-shadow: 0 0 0 4px rgba(255, 212, 59, .35), 0 3px 10px rgba(0, 0, 0, .3); }
.tp-dot.done { background: var(--accent); border-color: #fff; color: #fff; }

/* квиз */
.q-3d { position: relative; height: 38vh; min-height: 250px; border-radius: 22px; overflow: hidden; margin: 4px 0 12px; box-shadow: var(--shadow-sm); background: radial-gradient(120% 90% at 50% 25%, #fff, #E8EBEF); }
.palp-card { margin-bottom: 10px; }
.palp-card p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }

/* результат */
.card-3d { position: relative; height: 46vh; min-height: 300px; border-radius: 24px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); background: radial-gradient(120% 90% at 50% 25%, #fff, #E8EBEF); }
.confirm { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 2px; font-size: 13.5px; }
.confirm.no, .confirm.other { background: var(--amber-soft); }
.sci-mini summary, .sci-card summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.sci-mini summary { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.sources { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.sources li { display: grid; gap: 1px; font-size: 13px; }
.sources a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.sources small { color: var(--muted); font-size: 12px; line-height: 1.35; }

/* план */
.item-thumb { position: relative; overflow: hidden; }
.item-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.locked-card { margin-top: 12px; }
.locked-card h3 { display: flex; align-items: center; gap: 8px; }
.locked-card h3 svg, .lock-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.locked-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.locked-row span { flex: 1; display: grid; gap: 2px; }
.locked-row small { color: var(--muted); font-size: 12.5px; }
.lock-note { display: inline-flex !important; align-items: center; gap: 4px; color: var(--amber) !important; }
.opt.locked { opacity: .78; }

/* сеанс */
.demo-badge { position: absolute; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; z-index: 3; box-shadow: var(--shadow-sm); white-space: nowrap; }
.demo-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.lesson-link { border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }

/* точки */
.find-steps { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.checks { display: grid; gap: 6px; margin: 10px 0; }
.checks label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--accent); background: #F4FBF9; }
.checks span { display: grid; gap: 1px; }
.checks b { font-size: 14.5px; }
.checks small { color: var(--muted); font-size: 12.5px; }
.pain-row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin: 10px 0; }
.pain-row button { height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.pain-row button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* школа и урок */
.school-head { display: grid; gap: 8px; }
.school-head small { display: block; color: var(--muted); font-size: 13px; }
.bar-line { height: 8px; border-radius: 4px; background: #E5E8EC; overflow: hidden; }
.bar-line i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .6s var(--out); }
.school-h { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lesson-list { display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lesson-row span { flex: 1; display: grid; gap: 2px; }
.lesson-row b { font-size: 15px; font-weight: 600; }
.lesson-row small { color: var(--muted); font-size: 12.5px; }
.lesson-row .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CBD1D8; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; flex: none; }
.lesson-row.done .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.chev-r { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.sci-card { margin-top: 18px; }
.sci-card p { font-size: 14px; line-height: 1.5; }
.lesson { background: var(--bg); }
.lesson-stage { flex: 0 0 42vh; }
.lesson-body { flex: 1; overflow-y: auto; padding-top: 12px; border-radius: 24px 24px 0 0; background: var(--bg); margin-top: -18px; position: relative; z-index: 2; }
.l-title { font-size: 24px; margin: 4px 0; }
.lesson-body h3 { margin: 18px 0 8px; font-size: 16px; }
.l-points li, .l-mistakes li { font-size: 14.5px; line-height: 1.45; }
.sci { margin-top: 16px; }
.sci p { font-size: 14px; line-height: 1.5; margin: 0; }
.check-q { margin-bottom: 14px; }
.check-q p { margin: 0 0 8px; font-size: 14.5px; }
.check-why { font-size: 13.5px; color: var(--ink-2); background: #F4F6F8; padding: 8px 10px; border-radius: 12px; margin-top: 8px !important; }
.opt.right { border-color: var(--accent); background: #F4FBF9; }
.opt.wrong { border-color: var(--red); background: #FFF6F6; }
#l-done { width: 100%; margin: 8px 0 24px; }

/* регистрация */
.signup-hero { display: grid; place-items: center; margin: 18px 0 8px; }
.signup-hero .brand-mark { width: 56px; height: 56px; border-radius: 18px; }
.signup-hero .brand-mark svg { width: 30px; height: 30px; }
.signup-title { text-align: center; margin: 6px 0 4px; font-size: 24px; }
.signup-sub { text-align: center; margin: 0 0 18px; }
.signup-form { display: grid; gap: 8px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input { height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; font: 500 16px var(--font); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.bad { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field input.good { border-color: var(--accent); }
.field-err { margin: -2px 2px 2px; font-size: 13px; color: var(--red); }
.fix-chip { justify-self: start; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: 600 13.5px var(--font); padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.signup-form .cta { margin-top: 8px; width: 100%; }
.hello { font-size: 14px; color: var(--muted); margin: 0 0 2px; }

/* стрелки раскрывающихся блоков */
details .chev { width: 20px; height: 20px; flex: none; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--spring); }
details[open] > summary .chev { transform: rotate(180deg); }
details > summary::-webkit-details-marker { display: none; }
.sci-card summary b { flex: 1; }
.load-pill.err { background: #FFF1F1; color: var(--red); max-width: calc(100% - 32px); white-space: normal; text-align: center; }
.load-pill.err i { display: none; }
