/* v9: правки после просмотра v8 */

/* Логотип Северстали в правом верхнем углу всех слайдов */
.brand { position: absolute; right: 120px; top: 44px; width: 150px; color: #fff; z-index: 5; pointer-events: none; line-height: 0; }
.brand svg { width: 100%; height: auto; display: block; }
.alt-badge { right: 300px; top: 50px; }

/* Ритмичность: цель крупно, два абзаца */
.rh-goal-v8 .rg-h { font-size: 30px; color: var(--text); font-weight: 600; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
.rh-goal-v8 .rg-num { font-size: 96px; line-height: .9; letter-spacing: -0.04em; color: var(--text); }
.rh-goal-v8 p + p { margin-top: 14px; }

/* Справки по одной: текущая по центру, соседняя выглядывает сбоку */
.sprb.sprc .spb, .sprb.sprc .spb.is-shown, .sprb.sprc .spb.is-shown:has(~ .spb.is-shown) {
  transform: translateX(calc(-50% + var(--d, 0) * 1180px)) scale(.8) !important; opacity: 0 !important; z-index: 1;
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-io) !important; }
.sprb.sprc .spb[data-pos="side"] { opacity: .5 !important; }
.sprb.sprc .spb[data-pos="cur"] { transform: translateX(-50%) scale(1) !important; opacity: 1 !important; z-index: 3; }

/* Чему научил первый проект: справа анимация, подпись меньше */
.learn9 .learn-r9 { align-items: center; text-align: center; padding-left: 64px; justify-content: center; }
.lr-cap { margin-top: 36px; }
.lr-top { font-size: 88px; font-weight: 600; line-height: .95; letter-spacing: -0.04em; }
.lr-top small { font-size: 40px; color: var(--text-2); letter-spacing: -0.02em; }
.lr-t { font-size: 30px; font-weight: 600; line-height: 1.2; margin-top: 14px; letter-spacing: -0.01em; text-wrap: balance; }
.lr-d span { display: inline-block; margin-top: 16px; font-size: 22px; font-weight: 600; background: var(--surface); border-radius: var(--r-p); padding: 6px 20px; }

/* А: сито */
.la-grid { display: grid; grid-template-columns: repeat(4, 112px); gap: 12px; }
.la-grid i { height: 60px; border-radius: var(--r-s); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), background-color 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.la-grid em { font-style: normal; font-size: 18px; font-weight: 600; opacity: 0; transition: opacity 400ms var(--ease-out); }
.learn-r9:has(.lr-cap.is-shown) .la-grid i:not(.on) { opacity: .25; transform: scale(.82); transition-delay: 100ms; }
.learn-r9:has(.lr-cap.is-shown) .la-grid i.on { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--flow); transition-delay: calc(500ms + var(--k) * 140ms); }
.learn-r9:has(.lr-cap.is-shown) .la-grid i.on em { opacity: 1; transition-delay: calc(600ms + var(--k) * 140ms); }

/* Б: счётчик 12 → 5 */
.la-count { display: grid; justify-items: center; }
.la-count b { font-size: 220px; font-weight: 600; line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.la-count span { grid-area: 2 / 1; font-size: 26px; color: var(--text-2); margin-top: 12px; transition: opacity 400ms var(--ease-out); }
.la-count .la-c1 { opacity: 0; color: var(--flow); font-weight: 600; }
.learn-r9:has(.lr-cap.is-shown) .la-count .la-c0 { opacity: 0; }
.learn-r9:has(.lr-cap.is-shown) .la-count .la-c1 { opacity: 1; transition-delay: 900ms; }
.learn-r9:has(.lr-cap.is-shown) .la-count b { color: var(--flow); transition: color 400ms var(--ease-out) 900ms; }

/* В: отбор в список */
.la-rows { position: relative; width: 420px; height: 330px; }
.la-rows i { position: absolute; left: 0; right: 0; top: calc(var(--k) * 28px); height: 18px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; gap: 16px; padding: 0 20px; overflow: hidden; transition: top 700ms var(--ease-io), height 700ms var(--ease-io), opacity 500ms var(--ease-out), transform 500ms var(--ease-out), background-color 500ms; }
.la-rows i b, .la-rows i em { font-style: normal; font-size: 22px; font-weight: 600; opacity: 0; transition: opacity 300ms var(--ease-out); }
.la-rows i b { color: var(--flow); width: 18px; }
.learn-r9:has(.lr-cap.is-shown) .la-rows i:not(.on) { opacity: 0; transform: translateX(80px); }
.learn-r9:has(.lr-cap.is-shown) .la-rows i.on { top: calc(var(--j) * 66px); height: 54px; border-radius: var(--r-s); background: var(--surface-2); transition-delay: calc(300ms + var(--j) * 90ms); }
.learn-r9:has(.lr-cap.is-shown) .la-rows i.on b, .learn-r9:has(.lr-cap.is-shown) .la-rows i.on em { opacity: 1; transition-delay: calc(800ms + var(--j) * 90ms); }

/* Топ-5 проектов: шире, без переносов, появляются по очереди */
.eco.is-story.st-list .node.in-list { width: 580px !important; }
.eco.st-list .node.in-list .n-ltitle { white-space: nowrap; }
.slide.s-list.is-active .eco.st-list .node.in-list { animation: li-in 600ms var(--ease-out) both; animation-delay: calc(250ms + var(--li) * 170ms); }
@keyframes li-in { from { opacity: 0; translate: -70px 0; } to { opacity: 1; translate: 0 0; } }

/* Команда: имена и цеха на одном уровне, без переносов */
.crew.crew8 { align-items: stretch; }
.crew8 .mate b { white-space: nowrap; font-size: 20px; padding: 0 8px; }
.crew8 .stub { margin-top: auto; }
.crew8 .mate { padding-bottom: 0; }
.crew8 .mate .av { flex: none; }
.crew8 .mate b + .stub { margin-top: auto; }
.crew8 .mate > b { margin-bottom: 12px; }

/* Пульт: второй скриншот — кадр видео с кнопкой проигрывания */
.proj .media .vposter { left: 330px; top: 360px; width: 600px; cursor: pointer; }
.vposter img { display: block; width: 100%; }
.vplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 12px 30px rgb(0 0 0 / .35); }
.vplay svg { width: 46px; height: 46px; fill: #fff; margin-left: 6px; }
.slide.is-active .vplay { animation: vbtn-pulse 2.2s var(--ease-out) 1.4s infinite; }
.vposter::after { content: ''; position: absolute; inset: 0; background: rgb(0 20 60 / .18); border-radius: inherit; pointer-events: none; }

/* Задачи: маленький отступ между двумя предложениями */
.dd-gap { display: block; height: 12px; }
.rh-goal-v8 .rg-h { display: block; font-size: 28px; white-space: nowrap; }
.rh-goal-v8 .rg-num { display: block; font-size: 104px; margin-top: 8px; }
.learn-r9 .lr-cap.is-shown { transition-delay: 1100ms; }
.sprb.sprc.sprc .spb.spb.spb.spb[data-pos="side"] { opacity: .45 !important; }
.sprb.sprc.sprc .spb.spb.spb.spb[data-pos="cur"] { transform: translateX(-50%) scale(1) !important; opacity: 1 !important; z-index: 3; }
