/* =========================================================
   «Один агент в кадре» — концепция живой презентации (16.09.2026).
   Главный герой — точка из знака «Бизнес-инференс». Она живёт поверх слайдов
   и перетекает между ними: форма — clip-path, положение — transform.
   Холст 1920×1080. Сцены: art (титул), light, dark.
   ========================================================= */
@font-face { font-family: "Geist"; src: url("fonts/geist-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+25CF, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geistmono-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geistmono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+25CF, U+FEFF, U+FFFD; }

:root {
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ink: #0b0b0c; --paper: #f5f4f1; --white: #fdfdfc;
  --steel: #555553; --fog: #86868a; --pewter: #a3a3a0;
  --hair: rgba(11,11,12,.1); --hair-2: rgba(11,11,12,.18);
  --d-bg: #0d0d0f; --d-ink: #f1f0ed; --d-fog: #8e8e8a; --d-hair: rgba(241,240,237,.12); --d-card: #17171a;
  --ok: #3fbf7a; --warn: #d9a13c; --run: #948dff;
  --art-1: #232846; --art-2: #5d6bb0; --art-3: #c9b7a4; --art-4: #efe7dc;
  --morph: 950ms;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #000; overflow: hidden; font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.mono { font-family: var(--mono); }

/* ---------- Сцена ---------- */
.deck { position: fixed; inset: 0; background: var(--white); transition: background-color 900ms ease; }
.deck[data-mode="dark"] { background: var(--d-bg); }
.deck[data-mode="art"] { background: #08080c; }
.slide[data-mode="art"] { color: var(--d-ink); }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--k, .5)); overflow: hidden; }
.slide { position: absolute; inset: 0; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s linear 500ms; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 600ms ease 150ms, visibility 0s; z-index: 2; }
.slide[data-mode="dark"] { color: var(--d-ink); }

/* Появление по шагам */
[data-at] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out) calc(var(--d, 0) * 1ms), transform 850ms var(--ease-out) calc(var(--d, 0) * 1ms); }
[data-at].on { opacity: 1; transform: none; }
[data-at].pop { transform: scale(.94); }
[data-at].pop.on { transform: none; }
[data-at].fade { transform: none; }

/* Подвал */
.foot { position: absolute; left: 120px; right: 120px; bottom: 44px; display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--pewter); pointer-events: none; z-index: 1; }
.foot .mark { width: 18px; height: 25px; }
.foot .n { margin-left: auto; font-family: var(--mono); font-size: 20px; }
.slide[data-mode="dark"] .foot { color: #5f5f5c; }
.mark .a { fill: currentColor; opacity: .5; }
.mark .r { fill: currentColor; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 20; pointer-events: none; }
.progress i { display: block; height: 100%; background: rgba(128,128,128,.4); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease-out); }

/* ---------- Заявление → заголовок ---------- */
/* Кегль задан крупным; в заголовке уменьшается через scale — крупное состояние остаётся резким */
.st { position: absolute; left: 120px; top: 104px; width: 1680px; margin: 0; font-weight: 450; font-size: 148px; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; transform-origin: 0 0; transform: translateY(var(--sy, 250px)); transition: transform var(--morph) var(--ease-in-out); z-index: 3; }
.st.small { transform: scale(.5); }
.st.long { font-size: 112px; line-height: 1.03; letter-spacing: -0.04em; }
.st.long.small { transform: scale(.66); }
.st .tone { color: var(--fog); }
.slide[data-mode="dark"] .st .tone { color: var(--d-fog); }
.lead { position: absolute; left: 120px; width: 1000px; margin: 0; font-size: 34px; line-height: 1.4; letter-spacing: -0.012em; color: var(--fog); text-wrap: pretty; }
.slide[data-mode="dark"] .lead { color: var(--d-fog); }

/* ---------- Агент ---------- */
.agent { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.ag-shadow { position: absolute; inset: 0; filter: blur(34px); opacity: .28; transition: opacity 600ms ease; }
.ag-body, .ag-shadow i { position: absolute; inset: 0; background: var(--ink); clip-path: var(--clip); transition: clip-path var(--morph) var(--ease-in-out), background-color 700ms ease; }
.ag-shadow i { background: #000; }
.agent.light .ag-body { background: var(--d-ink); }
.agent.light .ag-shadow { opacity: .1; }
.ag-dot { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ok); transform: translate(var(--dx), var(--dy)) scale(var(--ds, 1)); transition: transform var(--morph) var(--ease-in-out), opacity 400ms ease; }
.ag-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(63,191,122,.6); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63,191,122,.55); } 100% { box-shadow: 0 0 0 16px rgba(63,191,122,0); } }
.ag-label { position: absolute; left: 0; top: 0; display: grid; justify-items: var(--lji, center); gap: 6px; white-space: nowrap; color: var(--white); transform: translate(var(--lx), var(--ly)) translate(var(--lax, -50%), -50%); transition: transform var(--morph) var(--ease-in-out), opacity 260ms ease, color 700ms ease; }
.agent.light .ag-label { color: var(--ink); }
.ag-label b { font-weight: 450; font-size: var(--lf, 44px); letter-spacing: -0.02em; line-height: 1; }
.ag-label small { font-family: var(--mono); font-size: 20px; opacity: .55; }
.ag-label.swap { opacity: 0; }

/* ---------- Узлы и линии ---------- */
.links { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.draw { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1000ms var(--ease-in-out) calc(var(--d, 0) * 1ms); }
.draw.on { stroke-dashoffset: 0; }
.boot .draw { transition: none !important; }
.faint { stroke: var(--hair-2); }
.slide[data-mode="dark"] .faint { stroke: var(--d-hair); }
.head { fill: currentColor; opacity: 0; transition: opacity 250ms ease calc(var(--d, 0) * 1ms); }
.head.on { opacity: 1; }
.card { position: absolute; border-radius: 28px; background: var(--white); box-shadow: 0 0 0 1.5px var(--hair), 0 30px 70px -40px rgba(20,24,52,.35); }
.slide[data-mode="dark"] .card { background: var(--d-card); box-shadow: 0 0 0 1.5px var(--d-hair); color: var(--d-ink); }
.card .cap { display: block; font-family: var(--mono); font-size: 20px; color: var(--fog); margin-bottom: 12px; }
/* Поток в обычном чате: линия рисуется, потом пунктир течёт слева направо */
.draw--flow.on { animation: march 1.15s linear infinite calc(var(--d, 0) * 1ms + 1000ms); }
@keyframes march { from { stroke-dasharray: 9 12; stroke-dashoffset: 0; } to { stroke-dasharray: 9 12; stroke-dashoffset: -21; } }
.caret { display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -.12em; background: currentColor; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.words span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.words span.on { opacity: 1; transform: none; }

/* ---------- 1. Титул ---------- */
.artbg { position: absolute; inset: 0; overflow: hidden; }
.artbg .fill { position: absolute; inset: -20%; animation: drift 34s ease-in-out infinite alternate;
  background:
    radial-gradient(44% 50% at 90% 6%, rgba(93,107,176,.78) 0%, rgba(93,107,176,0) 70%),
    radial-gradient(38% 46% at 4% 100%, rgba(148,141,255,.2) 0%, rgba(148,141,255,0) 70%),
    radial-gradient(40% 40% at 80% 96%, rgba(201,183,164,.12) 0%, rgba(201,183,164,0) 70%),
    linear-gradient(160deg, #111219, #07070a); }
.artbg::after { content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-5%, 3%, 0) scale(1.08) rotate(2deg); } }
.t-mark { position: absolute; left: 120px; top: 170px; width: 145px; height: 200px; color: var(--d-ink); }
.t-mark .a { opacity: .38; }
.t-h { position: absolute; left: 120px; top: 470px; width: 1560px; margin: 0; font-weight: 450; font-size: 100px; line-height: 1.02; letter-spacing: -0.045em; }
.t-h .w { display: inline-block; opacity: 0; transform: translateY(50px); transition: opacity 700ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--i) * 50ms + 300ms); }
.t-h .w.on { opacity: 1; transform: none; }
.t-h .tone { color: rgba(241,240,237,.42); }
.t-url { position: absolute; left: 120px; bottom: 96px; font-family: var(--mono); font-size: 26px; color: rgba(241,240,237,.45); }
.t-brand { position: absolute; left: 300px; top: 250px; font-size: 40px; letter-spacing: -0.015em; }

/* ---------- 2. Обычный чат ---------- */
.chat-in, .chat-out { top: 490px; height: 180px; display: grid; align-content: center; padding: 0 34px; font-size: 32px; line-height: 1.3; }
.chat-in { left: 150px; width: 470px; }
.chat-out { left: 1300px; width: 470px; }
.chat-out .words { font-size: 32px; }

/* ---------- 3. Пирог ---------- */
.rings circle { fill: none; stroke: var(--d-hair); stroke-width: 2; transform-origin: 820px 715px; transform: scale(.7); opacity: 0; transition: transform 900ms var(--ease-out), opacity 500ms ease, stroke 400ms ease; }
.rings circle.on { transform: none; opacity: 1; }
.rings circle.lit { stroke: rgba(241,240,237,.55); }
.ring-lbl { position: absolute; left: 820px; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--d-bg); box-shadow: inset 0 0 0 1.5px var(--d-hair); font-size: 21px; white-space: nowrap; transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity 400ms ease 250ms, transform 700ms var(--ease-out) 250ms, box-shadow 400ms ease; }
.ring-lbl.on { opacity: 1; transform: translate(-50%, -50%); }
.ring-lbl.lit { box-shadow: inset 0 0 0 1.5px rgba(241,240,237,.6); }
.answer { left: 1420px; top: 580px; width: 340px; height: 120px; display: grid; place-items: center; font-size: 32px; }

/* ---------- 4. Руки ---------- */
.ask-col { position: absolute; left: 120px; top: 290px; width: 760px; display: grid; gap: 26px; }
.ask-col .card.prompt { position: relative; padding: 24px 30px; font-size: 30px; line-height: 1.3; min-height: 124px; }
.think { font-size: 28px; line-height: 1.35; text-wrap: balance; }
.shimmer { background: linear-gradient(90deg, #6d6d6a 0%, #f1f0ed 45%, #6d6d6a 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.tools { position: absolute; left: 1080px; top: 290px; width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool { height: 76px; padding: 0 16px; display: grid; align-content: center; gap: 2px; border-radius: 16px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); font-family: var(--mono); font-size: 20px; color: var(--d-ink); transition: box-shadow 400ms ease, background-color 400ms ease; }
.tool small { font-family: var(--sans); font-size: 15px; color: var(--d-fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool.hit { background: rgba(63,191,122,.12); box-shadow: inset 0 0 0 2px var(--ok); }
.flowbar { position: absolute; left: 120px; right: 120px; top: 860px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fb { padding: 18px 22px; border-radius: 18px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); transition: box-shadow 400ms ease; }
.fb b { display: block; font-weight: 450; font-size: 26px; margin-bottom: 4px; }
.fb code { font-family: var(--mono); font-size: 18px; color: var(--warn); }
.fb.lit { box-shadow: inset 0 0 0 2px var(--ok); }

/* ---------- 5. Окна ---------- */
.wins { position: absolute; left: 120px; right: 120px; top: 520px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 80px; }
.wins > div { position: relative; }
.win { position: relative; height: 250px; border-radius: 24px; background: var(--white); color: var(--ink); overflow: hidden; transition: transform 600ms var(--ease-out), box-shadow 500ms ease; box-shadow: 0 0 0 1.5px rgba(255,255,255,.08); }
.win.active { transform: translateY(-12px); box-shadow: 0 0 0 3px var(--ok), 0 40px 80px -30px rgba(0,0,0,.7); }
.win-top { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 22px; border-bottom: 1.5px solid var(--hair); font-family: var(--mono); font-size: 18px; color: var(--steel); }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.win-body { padding: 22px 24px; }
.win .what { font-family: var(--mono); font-size: 18px; color: var(--fog); margin-bottom: 12px; }
.win .val { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; }
.win .val.nowrap { white-space: nowrap; font-size: 26px; }
.perm { display: inline-flex; margin-top: 20px; height: 38px; padding: 0 16px; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--d-hair); font-family: var(--mono); font-size: 18px; color: var(--d-fog); }
.arrow { position: absolute; right: -66px; top: 118px; width: 52px; height: 14px; color: var(--d-fog); }

/* ---------- 6. Что внутри ---------- */
.orbit { position: absolute; width: 330px; height: 116px; display: grid; place-content: center; gap: 4px; text-align: center; border-radius: 24px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity 500ms ease calc(var(--d, 0) * 1ms), transform 800ms var(--ease-out) calc(var(--d, 0) * 1ms); }
.orbit.on { opacity: 1; transform: translate(-50%, -50%); }
.orbit b { font-weight: 450; font-size: 34px; letter-spacing: -0.02em; }
.orbit span { font-family: var(--mono); font-size: 19px; color: var(--d-fog); }
.orbit.dash { background: var(--d-bg); box-shadow: none; outline: 2.5px dashed rgba(241,240,237,.4); outline-offset: -2px; }

/* ---------- Окно докладчика ---------- */
.presenter { position: fixed; inset: 0; z-index: 50; display: none; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 28px; background: #0c0c0d; color: #f1f0ed; }
body.is-presenter .presenter { display: grid; }
body.is-presenter .deck, body.is-presenter .progress { display: none; }
.pr-notes { overflow: auto; font-size: 30px; line-height: 1.5; padding: 30px 34px; border-radius: 22px; background: #151517; white-space: pre-wrap; }
.pr-side { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; }
.pr-box { padding: 22px 26px; border-radius: 22px; background: #151517; }
.pr-box .l { font-family: var(--mono); font-size: 16px; color: #7d7d7a; margin-bottom: 8px; }
.pr-box .v { font-size: 34px; letter-spacing: -0.02em; }
.pr-timer { font-family: var(--mono); font-size: 64px; }
.pr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-btns button { height: 96px; border: 0; border-radius: 20px; font: inherit; font-size: 30px; background: #f1f0ed; color: #0b0b0c; cursor: pointer; }
.pr-btns button:first-child { background: #232326; color: #f1f0ed; }

@media (prefers-reduced-motion: reduce) {
  :root { --morph: 1ms; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* =========================================================
   Раскатка на 20 слайдов (16.09.2026)
   ========================================================= */
/* Агент с «богатым» содержимым: карточка на таймлайне, блок «Агент», строка архитектуры */
.ag-rich { position: absolute; left: 0; top: 0; display: grid; align-content: var(--rac, center); overflow: hidden; color: var(--white); transform: translate(var(--rx), var(--ry)); width: var(--rw); height: var(--rh); transition: transform var(--morph) var(--ease-in-out), opacity 300ms ease, color 700ms ease; }
.agent.light .ag-rich { color: var(--ink); }
.ag-rich.swap { opacity: 0; }
.ag-rich .r-lbl { font-family: var(--mono); font-size: 22px; opacity: .55; }
.ag-rich .n-t { display: block; font-weight: 450; font-size: 34px; letter-spacing: -0.02em; margin-bottom: 8px; font-family: var(--mono); }
.ag-rich .n-p { font-size: 28px; line-height: 1.4; opacity: .7; }
.ag-rich h3 { margin: 20px 0 16px; font-weight: 450; font-size: 50px; letter-spacing: -0.03em; }
.ag-rich p { margin: 0; font-size: 30px; line-height: 1.42; opacity: .8; }
.ag-rich .who { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; }
.ag-rich .who b { font-weight: 450; font-size: 44px; letter-spacing: -0.03em; }
.ag-rich .who span { font-size: 25px; line-height: 1.38; opacity: .78; }
.ag-rich .row { display: grid; grid-template-columns: 250px 60px 1fr; align-items: center; padding-inline: 20px; }
.ag-rich .row .r-lbl { font-size: 24px; }
.ag-rich .row i { width: 16px; height: 16px; border-radius: 50%; background: currentColor; justify-self: center; }
.ag-rich .chip { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 24px; justify-self: start; }
.ag-rich .big { font-weight: 450; font-size: 40px; letter-spacing: -0.02em; text-align: center; }
.ag-dot.warn { background: var(--warn); }
.ag-dot.warn::after { animation-name: ping-w; }
@keyframes ping-w { 0% { box-shadow: 0 0 0 0 rgba(217,161,60,.6); } 100% { box-shadow: 0 0 0 16px rgba(217,161,60,0); } }

.lbl { font-family: var(--mono); font-size: 22px; color: var(--pewter); }
.slide[data-mode="dark"] .lbl { color: var(--d-fog); }

/* ---------- 2. Почему доступны ---------- */
.tl { position: absolute; left: 120px; right: 120px; top: 470px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.tl-item { position: relative; padding-top: 58px; }
.tl-item .dot { position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.tl-item h3 { margin: 20px 0 16px; font-weight: 450; font-size: 50px; letter-spacing: -0.03em; }
.tl-item p { margin: 0; font-size: 30px; line-height: 1.42; color: var(--steel); max-width: 480px; }

/* ---------- 3. Разница ---------- */
.task { position: absolute; left: 120px; right: 120px; top: 250px; height: 100px; border-radius: 24px; background: var(--ink); color: var(--d-ink); display: flex; align-items: center; gap: 20px; padding: 0 38px; font-family: var(--mono); font-size: 31px; }
.task .k { color: var(--ok); }
.drow { position: absolute; left: 120px; right: 120px; height: 230px; display: grid; grid-template-columns: 740px 660px 1fr; gap: 40px; align-items: center; }
.drow .who { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; height: 100%; padding: 0 36px; border-radius: 28px; background: var(--paper); }
.drow .who b { font-weight: 450; font-size: 44px; letter-spacing: -0.03em; }
.drow .who span { font-size: 25px; line-height: 1.38; color: var(--steel); }
.illu-win { position: relative; height: 230px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1.5px var(--hair), 0 30px 70px -40px rgba(20,24,52,.35); overflow: hidden; }
.illu-win .win-top { border-color: var(--hair); }
.bubbles { padding: 16px 22px; display: grid; gap: 10px; }
.bub { border-radius: 18px; padding: 12px 16px; display: grid; gap: 8px; }
.bub i { display: block; height: 10px; border-radius: 5px; background: #e4e1dc; }
.bub--me { justify-self: end; width: 62%; background: var(--paper); }
.bub--me span { font-family: var(--mono); font-size: 15px; color: var(--fog); }
.bub--ai { width: 86%; box-shadow: inset 0 0 0 1.5px var(--hair); }
.bub--ai i:nth-child(2) { width: 90%; } .bub--ai i:nth-child(3) { width: 64%; }
.mail { display: grid; grid-template-columns: 170px 1fr; height: calc(100% - 56px); }
.mail-side { background: var(--paper); padding: 16px; display: grid; align-content: start; gap: 6px; font-size: 19px; color: var(--steel); }
.mail-side span { padding: 7px 12px; border-radius: 10px; }
.mail-side .cur { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.mail-main { padding: 20px 24px; display: grid; align-content: start; gap: 10px; }
.mail-main .subj { font-size: 26px; letter-spacing: -0.015em; }
.mail-main .to { font-size: 18px; color: var(--fog); }
.mail-main .att { display: flex; gap: 10px; }
.mail-main .att span { font-family: var(--mono); font-size: 16px; padding: 7px 11px; border-radius: 9px; background: #eeebe6; }
.ready { position: absolute; right: 16px; top: 10px; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 999px; background: #e7f4ec; color: #1f7a45; font-size: 18px; }
.ready::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.clock { display: grid; justify-items: start; gap: 14px; }
.clock svg { width: 60px; height: 60px; }
.clock b { font-weight: 450; font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; }
.clock .hand { transform-origin: 30px 30px; animation: spin 2.4s linear infinite; }
.clock.fast .hand { animation-duration: .6s; animation-iteration-count: 3; animation-fill-mode: forwards; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 9. Где что лежит ---------- */
.tree { position: absolute; left: 120px; top: 290px; width: 1180px; border-radius: 26px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); overflow: hidden; }
.tree .win-top { border-color: var(--d-hair); color: var(--d-fog); }
.tree-body { padding: 26px 40px 30px; font-family: var(--mono); font-size: 29px; line-height: 1.62; }
.tr { display: grid; grid-template-columns: 540px 1fr; opacity: 0; transform: translateX(-12px); transition: opacity 300ms ease, transform 420ms var(--ease-out), background-color 500ms ease; border-radius: 10px; padding-inline: 12px; margin-inline: -12px; }
.tr.on { opacity: 1; transform: none; }
.tr .c { color: var(--d-fog); }
.tr.env .f { color: var(--warn); }
.tr.glow { background: rgba(217,161,60,.13); }
.tr.glow-b { background: rgba(148,141,255,.13); }
.note { position: absolute; left: 1370px; width: 430px; padding: 28px 30px; border-radius: 24px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); font-size: 28px; line-height: 1.4; color: var(--d-fog); }
.note b { display: block; font-weight: 450; font-size: 32px; color: var(--d-ink); margin-bottom: 8px; }

/* ---------- 10. Конвейер ---------- */
.pipe { position: absolute; left: 180px; right: 180px; top: 500px; display: grid; grid-template-columns: repeat(6, 1fr); }
.pn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; text-align: center; opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out) calc(var(--i) * 70ms), transform 700ms var(--ease-out) calc(var(--i) * 70ms); }
.pipe.run .pn { opacity: 1; transform: none; }
.pn b { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 2.5px var(--hair-2); font-family: var(--mono); font-weight: 400; font-size: 30px; color: var(--pewter); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.pn span { font-size: 29px; line-height: 1.25; color: var(--fog); max-width: 230px; transition: color 300ms ease; }
.pn.on b { background: var(--ink); color: var(--white); box-shadow: none; }
.pn.on span { color: var(--ink); }
.pn.last.on b { background: var(--warn); }
.pipe-line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 45px; height: 3px; }
.pipe-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 500ms linear; }
.pipe-big { position: absolute; left: 120px; right: 120px; top: 760px; margin: 0; text-align: center; font-weight: 450; font-size: 64px; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }

/* ---------- 11 и 13. Карточка со строками ---------- */
.kv-card { position: absolute; left: 1000px; right: 120px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1.5px var(--hair), 0 40px 90px -40px rgba(20,24,52,.35); overflow: hidden; }
.kv-card .win-top { border-color: var(--hair); color: var(--steel); }
.kv-card .win-top .m { margin-left: auto; color: var(--pewter); }
.kv-body { padding: 6px 40px 30px; }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1.5px solid var(--hair); font-size: 32px; line-height: 1.3; }
.kv:last-child { border-bottom: 0; }
.kv dt { font-family: var(--mono); font-size: 20px; color: var(--pewter); }
.kv dd { margin: 0; }
.kv dd.w { color: #b07a17; }
.btns { display: flex; gap: 14px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; height: 68px; padding: 0 26px; border-radius: 999px; font-size: 25px; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--hair-2); transition: background-color 300ms ease, color 300ms ease, transform 160ms var(--ease-out), opacity 300ms ease; }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: none; }
.btn.press { transform: scale(.96); }
.btn.done { background: var(--ok); color: var(--white); }
.btns.decided .btn:not(.btn--ink) { opacity: .35; }
.cursor { position: absolute; left: 0; top: 0; z-index: 12; width: 46px; height: 46px; opacity: 0; transform: translate(var(--x, 1500px), var(--y, 1000px)); transition: transform 1000ms var(--ease-in-out), opacity 300ms ease; }
.cursor.on { opacity: 1; }

/* ---------- 12. Калькулятор ---------- */
.calc3 { position: absolute; left: 90px; right: 90px; top: 380px; display: grid; grid-template-columns: 560px 80px 580px 80px 1fr; align-items: start; }
.calc3 .arrow-h { margin-top: 218px; }
.calc3 .cap2 { display: block; margin-top: 24px; text-align: center; }
.arrow-h { width: 80px; height: 20px; color: var(--ink); }
.arrow-h path { stroke: currentColor; stroke-width: 2.5; fill: none; stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 600ms var(--ease-out); }
.arrow-h.on path { stroke-dashoffset: 0; }
.w-light { border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1.5px var(--hair), 0 30px 70px -40px rgba(20,24,52,.35); overflow: hidden; }
.w-dark { border-radius: 24px; background: var(--ink); color: var(--d-ink); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.6); }
.w-dark .win-top { border-color: var(--d-hair); color: var(--d-fog); }
.tg-body { padding: 18px 20px 22px; background: var(--paper); display: grid; gap: 12px; height: 400px; align-content: start; }
.msg { max-width: 88%; padding: 13px 18px; border-radius: 20px; font-size: 22px; line-height: 1.35; background: var(--white); box-shadow: 0 0 0 1.5px var(--hair); opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 600ms var(--ease-out); }
.msg.on { opacity: 1; transform: none; }
.msg--me { justify-self: end; }
.msg .files { display: flex; gap: 8px; margin-top: 10px; }
.msg .files span { font-family: var(--mono); font-size: 15px; padding: 5px 10px; border-radius: 8px; background: #eeebe6; }
.code-body { padding: 22px 34px 26px; font-family: var(--mono); font-size: 28px; line-height: 1.62; height: 400px; }
.code-body .ln { opacity: 0; white-space: pre; transition: opacity 200ms ease; }
.code-body .ln.on { opacity: 1; }
.code-body .k { color: var(--ok); } .code-body .y { color: var(--warn); } .code-body .g { color: var(--d-fog); }
.doc-body { position: relative; padding: 30px 34px; height: 400px; }
.doc-body .lblt { font-size: 28px; color: var(--steel); }
.doc-body .total { display: block; margin: 12px 0 30px; font-family: var(--mono); font-size: 58px; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.doc-body .bar { display: block; height: 12px; border-radius: 6px; background: #e4e1dc; margin-top: 18px; width: 80%; }
.doc-body .bar--s { width: 55%; }
.stamp { position: absolute; right: 26px; top: 26px; transform: rotate(-8deg) scale(1.3); opacity: 0; transition: transform 500ms var(--ease-out), opacity 300ms ease; padding: 8px 16px; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--ok); color: var(--ok); font-family: var(--mono); font-size: 20px; }
.stamp.on { opacity: 1; transform: rotate(-8deg); }

/* ---------- 14. Архитектура ---------- */
.arch { position: absolute; left: 120px; right: 120px; top: 292px; display: grid; gap: 8px; }
.arch-line { position: absolute; left: 299px; top: 30px; bottom: 30px; width: 2px; background: var(--hair-2); transform-origin: top; transform: scaleY(0); transition: transform 1800ms var(--ease-in-out); }
.arch-line.on { transform: none; }
.ar { position: relative; display: grid; grid-template-columns: 250px 60px 1fr; align-items: center; min-height: 82px; padding-inline: 20px; }
.ar .lbl { font-size: 24px; color: var(--fog); opacity: 0; transition: opacity 400ms ease var(--rd, 0ms); }
.ar .dt { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); justify-self: center; opacity: 0; transition: opacity 400ms ease var(--rd, 0ms); }
.ar .chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ar .chip { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; background: #eeebe6; font-size: 24px; white-space: nowrap; opacity: 0; transform: scale(.88); transition: opacity 300ms ease, transform 500ms var(--ease-out); transition-delay: calc(var(--rd, 0ms) + var(--c) * 60ms); }
.ar.on .lbl, .ar.on .dt, .ar.on .chip { opacity: 1; transform: none; }
.ar--ctrl .dt { background: var(--warn); }
.ar--ctrl .chip { background: #f6ebd3; }

/* ---------- 15. Где живёт ---------- */
.live-l { position: absolute; left: 120px; top: 280px; width: 780px; display: grid; gap: 34px; }
.live-l h3 { margin: 0 0 8px; font-weight: 450; font-size: 40px; letter-spacing: -0.02em; }
.live-l p { margin: 0; font-size: 28px; line-height: 1.4; color: var(--steel); }
.warnbox { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; padding: 26px 28px; border-radius: 24px; background: #f6ebd3; font-size: 28px; line-height: 1.4; }
.warnbox b { width: 48px; height: 48px; border-radius: 50%; background: var(--warn); color: var(--white); display: grid; place-items: center; font-weight: 500; font-size: 28px; }
.stack { position: absolute; left: 1000px; right: 120px; top: 280px; display: grid; }
.stb { display: grid; place-items: center; height: 116px; padding: 0 30px; border-radius: 26px; font-size: 32px; text-align: center; box-shadow: inset 0 0 0 1.5px var(--hair-2); background: var(--white); }
.stb--soft { background: var(--paper); box-shadow: none; }
.stb--slot { box-shadow: none; background: transparent; }
.sta { position: relative; height: 56px; display: grid; place-items: center; }
.sta::before { content: ""; width: 2.5px; height: 100%; background: var(--hair-2); }
.sta i { position: absolute; top: 0; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--run); opacity: 0; }
.stack.flowing .sta i { animation: drop 1.6s var(--ease-in-out) infinite; animation-delay: var(--td, 0s); }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }

/* ---------- 16. Практика ---------- */
.mini { position: absolute; left: 120px; top: 330px; width: 760px; }
.mini .lbl { display: block; padding-bottom: 18px; border-bottom: 1.5px solid var(--hair); }
.mini-r { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; padding: 26px 0; border-bottom: 1.5px solid var(--hair); font-size: 40px; letter-spacing: -0.015em; }
.mini-r .num { font-family: var(--mono); font-size: 40px; }
.folder { position: absolute; left: 1000px; right: 90px; top: 60px; bottom: 230px; border-radius: 30px; overflow: hidden; isolation: isolate; }
.folder .artbg { border-radius: 30px; }
.folder .fwin { position: absolute; left: 80px; right: 80px; top: 160px; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 40px 80px -40px rgba(20,24,52,.5); z-index: 2; }
.frow { display: grid; grid-template-columns: 62px 1fr; gap: 22px; align-items: center; padding: 16px 0; border-bottom: 1.5px solid var(--hair); font-family: var(--mono); font-size: 32px; }
.frow:last-child { border-bottom: 0; }
.frow b { width: 62px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #eeebe6; font-weight: 400; font-size: 17px; color: var(--steel); }
.frow b.dir { background: var(--ink); color: var(--white); font-size: 26px; }

/* ---------- 17. Десять шагов ---------- */
.ten { position: absolute; left: 120px; right: 120px; top: 330px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 90px; }
.ten-i { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; padding: 25px 0; border-top: 1.5px solid var(--hair); font-size: 38px; letter-spacing: -0.015em; }
.ten-i .num { font-family: var(--mono); font-size: 24px; color: var(--pewter); }
.ten-i:nth-child(5), .ten-i:nth-child(10) { border-bottom: 1.5px solid var(--hair); }

/* ---------- 18. Подготовка ---------- */
.prep { position: absolute; left: 120px; right: 120px; top: 300px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pc { padding: 34px 36px 24px; border-radius: 30px; background: var(--paper); }
.pc .nb { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 28px; }
.pc h3 { margin: 28px 0 20px; font-weight: 450; font-size: 44px; letter-spacing: -0.025em; }
.pc ul { margin: 0; padding: 0; list-style: none; }
.pc li { padding: 17px 0; border-top: 1.5px solid var(--hair); font-size: 27px; line-height: 1.35; }
.prep-note { position: absolute; left: 120px; top: 906px; margin: 0; font-size: 29px; color: var(--steel); }

/* ---------- 19. Установка ---------- */
.inst { position: absolute; left: 120px; right: 120px; top: 296px; display: grid; grid-template-columns: 1120px 1fr; gap: 70px; }
.inst-term { border-radius: 26px; background: var(--d-card); box-shadow: inset 0 0 0 1.5px var(--d-hair); overflow: hidden; }
.inst-term .win-top { border-color: var(--d-hair); color: var(--d-fog); }
.inst-body { padding: 26px 40px 34px; font-family: var(--mono); font-size: 30px; line-height: 1.8; height: 500px; }
.inst-body .ln { display: grid; grid-template-columns: 44px 1fr; white-space: pre; }
.inst-body .ln[hidden] { display: none; }
.inst-body .k { color: var(--ok); } .inst-body .b { color: #9bb0ff; }
.isteps { display: grid; align-content: start; gap: 22px; padding-top: 10px; }
.is { display: grid; grid-template-columns: 68px 1fr; gap: 24px; align-items: center; font-size: 33px; line-height: 1.25; color: #6d6d6a; transition: color 400ms ease; }
.is b { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: #1d1d20; color: #7d7d7a; font-family: var(--mono); font-weight: 400; font-size: 27px; transition: background-color 400ms ease, color 400ms ease; }
.is.on, .is.done { color: var(--d-ink); }
.is.on b { background: var(--d-ink); color: var(--ink); }
.is.done b { background: var(--ok); color: var(--ink); }
.inst-note { margin: 26px 0 0; padding-top: 24px; border-top: 1.5px solid var(--d-hair); font-size: 26px; color: var(--d-fog); }
.inst-note code { font-family: var(--mono); color: var(--d-ink); }

/* ---------- 20. Финал ---------- */
.final-q { position: absolute; left: 120px; top: 440px; width: 880px; margin: 0; font-weight: 450; font-size: 72px; line-height: 1.08; letter-spacing: -0.036em; text-wrap: balance; }
.final-q .tone { color: rgba(241,240,237,.42); }
.final-c { position: absolute; left: 120px; bottom: 110px; }
.final-c b { display: block; font-weight: 450; font-size: 44px; letter-spacing: -0.02em; }
.final-c span { font-family: var(--mono); font-size: 26px; color: rgba(241,240,237,.5); }
.qr { position: absolute; left: 1180px; top: 250px; color: var(--ink); width: 520px; padding: 44px; border-radius: 32px; background: var(--white); text-align: center; box-shadow: 0 60px 120px -50px rgba(20,24,52,.6); }
.qr img { width: 360px; height: 360px; display: block; margin: 0 auto 24px; image-rendering: pixelated; }
.qr b { display: block; font-weight: 450; font-size: 42px; letter-spacing: -0.02em; }
.qr span { font-family: var(--mono); font-size: 20px; color: var(--fog); }
