/* v7: правки по третьему прогону 11.11.2026 */
.stage:has(.s-title.is-active) #foot-block { visibility: hidden; }
.s-title .pdate.pdate7 { left: auto; right: 120px; bottom: 100px; color: var(--text); z-index: 2; }

/* Рутина А: три справки каскадом, без подписи и заголовка */
.sprav-full.sprav7, .sprav-full.sprb { padding: 0; }
.sprav7 .spr-win { position: absolute; width: 880px; left: calc(110px + var(--k) * 410px); top: calc(64px + var(--k) * 150px); border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .45); opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(200ms + var(--k) * 220ms); }
.sprav7.is-shown .spr-win { opacity: 1; transform: none; }
.spr-win img, .spb img { display: block; }
.spr-win img { width: 100%; }

/* Рутина Б: справки крупно по очереди */
.sprb .spb { position: absolute; left: 50%; top: 70px; border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .45); opacity: 0; transform: translateX(-28%) scale(.94); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-io); }
.sprb .spb.is-shown { opacity: 1; transform: translateX(-50%); }
.sprb .spb.is-shown:has(~ .spb.is-shown) { opacity: 0; transform: translateX(-74%) scale(.9); }
.spb img { height: 880px; width: auto; }

/* Ритмичность: сразу было/стало, даты на краю скриншота */
.rh8 { margin-top: 20px; }
.rh8 .rh-call { right: 0; }
.rh8 .rh-call .rh-date { margin-left: auto; font-size: var(--fs-b); color: var(--text); font-weight: 600; }
.rh8 .rh-lead { font-size: 40px; }
.rh-goal8 { padding: 26px 30px; }
.rh-goal8 > b { font-size: 40px; margin-bottom: 16px; white-space: nowrap; }
.rh-res-h { font-size: var(--fs-b); color: var(--text); font-weight: 600; margin: 0 0 6px; }
.rh-res { list-style: none; padding: 0; margin: 0; display: grid; }
.rh-res li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: 21px; line-height: 1.3; color: var(--text-2); padding: 11px 0; border-top: 1px solid var(--line); }
.rh-res li span { color: var(--flow); font-weight: 600; }

/* Стан: рамки считаются от самой картинки, без отступа подложки */
.cal-img { position: relative; }
.cal-img img { display: block; width: 100%; }

/* Путь к повышению эффективности: плохой посад → близкий к идеальному */
.ps { position: relative; height: 790px; margin-top: 24px; }
.ps-v { position: absolute; left: 0; right: 0; top: 0; margin: 0; transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-io); }
.ps-v figcaption { display: flex; align-items: center; gap: 20px; font-size: var(--fs-b); color: var(--text-2); line-height: 1.3; margin-bottom: 20px; }
.ps-tag { flex: none; font-size: 22px; font-weight: 600; padding: 6px 16px; border-radius: var(--r-p); box-shadow: inset 0 0 0 2px currentColor; }
.ps-tag.bad { color: var(--bad); } .ps-tag.ok { color: var(--ok); }
.ps-v .shot { position: relative; padding: 10px; }
.ps-v img { display: block; width: 100%; }
.ps-bad { --c: var(--bad); } .ps-good { --c: var(--ok); }
.ps-ring { position: absolute; left: 6px; right: 6px; bottom: calc(10px + 0.4%); height: 24.5%; border-radius: 10px; box-shadow: 0 0 0 4px var(--c), 0 0 0 14px rgb(255 255 255 / .1); opacity: 0; }
.slide.is-active .ps-bad .ps-ring { animation: ps-ring 600ms var(--ease-out) 1100ms both; }
.ps .ps-good.is-shown .ps-ring { animation: ps-ring 600ms var(--ease-out) 800ms both; }
@keyframes ps-ring { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.ps:has(.ps-good.is-shown) .ps-bad { opacity: 0; transform: translateX(-6%) scale(.94); }
.ps .ps-good { opacity: 0; transform: translateX(6%) scale(.98); }
.ps .ps-good.is-shown { opacity: 1; transform: none; transition-delay: 150ms; }

/* КПЭ: цифра → растущая зелёная стрелка → предварительный КПЭ */
.kpt3 { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 48px; margin-top: 110px; max-width: 1400px; }
.kpt3 .kpt-base { padding: 40px; }
.kpt3 .kpt-base b { font-size: 120px; }
.kpt3 .kpt-st { padding: 40px; }
.kpt3 .kpt-st h3 { font-size: 48px; }
.kpt3-grow { width: 300px; height: 400px; overflow: visible; }
.kpt3-grow .g-line { fill: none; stroke: var(--ok); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.kpt3-grow.is-shown .g-line { animation: g-draw 1100ms var(--ease-out) 200ms both; }
.kpt3-grow .g-head { fill: var(--ok); opacity: 0; }
.kpt3-grow.is-shown .g-head { animation: g-head 320ms var(--ease-out) 1180ms both; }
.kpt3-grow .g-area { fill: rgb(79 186 119 / .14); opacity: 0; transition: opacity 700ms var(--ease-out); }
.kpt3-grow.is-shown .g-area { opacity: 1; transition-delay: 900ms; }
@keyframes g-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes g-head { from { opacity: 0; transform: translate(-12px, 16px); } to { opacity: 1; transform: none; } }

/* Чему научил первый проект: список с разделителями, справа топ-5 из 12 */
.learn { display: grid; grid-template-columns: 1fr 620px; gap: 0; margin-top: 64px; align-items: stretch; }
.learn-l { list-style: none; margin: 0; padding: 0 72px 0 0; }
.learn-l li { display: flex; align-items: center; gap: 24px; font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; padding: 22px 0; border: none; }
.learn-l li:last-child { border: none; }
.learn-l li span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 42px; min-width: 48px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); }
.learn-r { border-left: 1px solid var(--line); padding-left: 72px; display: flex; flex-direction: column; justify-content: center; }
.learn-big { font-size: 150px; font-weight: 600; line-height: .95; letter-spacing: -0.05em; }
.learn-big small { font-size: 60px; color: var(--text-2); letter-spacing: -0.02em; }
.learn-t { font-size: 40px; font-weight: 600; line-height: 1.15; margin-top: 22px; letter-spacing: -0.02em; text-wrap: balance; }
.learn-d { font-size: var(--fs-b); color: var(--text-2); margin-top: 16px; }

/* Списки топ-5: одна рамка, номер вместо фамилий */
.eco.st-list .node.in-list { box-shadow: inset 0 0 0 2px rgb(131 168 227 / .5) !important; padding-left: 82px; }
.eco.st-list .node.in-list .n-owner { display: none !important; }
.eco.st-list .node.in-list::before { position: absolute; left: 24px; top: 50%; translate: 0 -50%; width: 44px; height: 38px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.eco.st-list .node[data-id="plan"]::before { content: '01'; }
.eco.st-list .node[data-id="pult"]::before { content: '02'; }
.eco.st-list .node[data-id="tasks"]::before { content: '03'; }
.eco.st-list .node[data-id="agree"]::before { content: '04'; }
.eco.st-list .node[data-id="pres"]::before { content: '05'; }

/* Команда: цех — заметной плашкой */
.team5 .crew.big { grid-template-columns: repeat(3, 1fr); }
.team5 .crew.big .mate { background: var(--surface); padding: 26px 16px 22px; row-gap: 12px; }
.crew.big .mate i.shop { font-style: normal; font-size: 24px; font-weight: 600; color: var(--text); background: var(--surface-2); border-radius: var(--r-p); padding: 6px 20px; }
.crew-note { margin-top: 20px; font-size: var(--fs-b); color: var(--text-2); }
.team5-sum { box-shadow: none; }

/* Open WebUI: запрос → готовый портал, лёгкая правка */
.ow.ow7 { grid-template-columns: 640px 1fr; gap: 72px; margin-top: 40px; }
.ow-lead { font-size: var(--fs-b); color: var(--text-2); line-height: 1.35; margin-bottom: 34px; }
.ow-lead b { display: block; color: var(--text); font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 14px; }
.ow7 .strike li { font-size: 26px; }
.ow-flow { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.ow-q { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-p); padding: 12px 22px; font-size: 22px; }
.ow-q svg { width: 22px; height: 22px; fill: var(--flow); flex: none; }
.ow-arr { width: 56px; height: 24px; stroke: var(--text-2); stroke-width: 3; fill: none; flex: none; }
.ow-res { font-size: 22px; color: var(--text-2); }
.ow-res b { color: var(--text); }
.ow7 .browser { height: 420px; }
.facts.two { grid-template-columns: 1fr 1fr; }

/* Проекты: одинаковые плашки цифр и сроков, план текстом в правом нижнем углу */
.pstat > span { flex: 0 0 280px; min-width: 0; }
.pplan { position: absolute; right: 120px; bottom: 92px; margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 4px; font-size: 20px; line-height: 1.35; color: var(--text-2); text-align: left; }
.pplan > div { display: contents; }
.pplan b { display: block; font-size: 20px; color: var(--flow); font-weight: 600; margin: 0; text-align: right; }

/* Экосистема: заголовок меняется, когда список разворачивается в схему */
.eco-h { position: relative; }
.eco-h span { transition: opacity 500ms var(--ease-out); }
.eco-h .eh-eco { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; }
#eco-slide:not(:has(.eco.st-list)) .eco-h .eh-list { opacity: 0; }
#eco-slide:not(:has(.eco.st-list)) .eco-h .eh-eco { opacity: 1; }

/* Следующие проекты */
.nx p b { color: var(--text); font-weight: 600; }
.nx-db p:not(.nx-e) { font-size: 19px; }
.nx.star { box-shadow: none; background: var(--surface-2); }
.nx-star { display: inline-flex; align-items: center; gap: 10px; font-size: 20px !important; font-weight: 600; color: var(--text) !important; }
.nx-star svg { width: 26px; height: 26px; fill: var(--warn); }

/* Запрос */
.ask p b { color: var(--text); }
.pstat > span { flex-basis: 320px; }
.nx8 { gap: 18px; margin-top: 32px; }
.nx { min-height: 0; padding: 22px 24px 20px; gap: 8px; }
.nx-db p:not(.nx-e) { font-size: 20px; line-height: 1.3; }
.alt-badge { z-index: 7; }
