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

/* Двери: цитаты в одну строку */
.doors8 .door q { font-size: 34px; white-space: nowrap; letter-spacing: -0.01em; }

/* Ритмичность: без зелёной рамки, одна линия, запас в скобках */
.rh-goal.rh-goal-v8 { box-shadow: none; }
.rh-goal-v8 > b { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.rh-goal-v8 p { font-size: 23px; line-height: 1.4; color: var(--text-2); margin: 0; }
.rh-goal-v8 .rh-paren { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Печи, что дальше: крупный фрагмент посада М1 и М2, звезда по центру точки */
.tech-pic.tech-pic8 { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
.tech-pic8 .shot { position: relative; padding: 10px; }
.tech-pic8 .shot img { display: block; width: 100%; }
.tp-tag { position: absolute; right: 22px; bottom: -18px; font-size: 18px; font-weight: 600; color: var(--bg); background: var(--flow); border-radius: var(--r-p); padding: 4px 14px; }
.tech-pic8 p { display: flex; align-items: baseline; gap: 28px; }
.tech-pic8 p b { flex: none; font-size: 36px; margin: 0; }
.tech-pic8 + .road6 { margin-top: 44px; }
.rp.star .star-ico { left: -19px; top: -21px; width: 68px; height: 68px; fill: var(--warn); filter: drop-shadow(0 0 0 var(--bg)); }
.road6 .rp.star .star-ico { stroke: var(--bg); stroke-width: 1.2; stroke-linejoin: round; }

/* Чему научил первый проект, вариант А: справа по центру, 5 из 12 */
.learn8 .learn-r8 { align-items: center; text-align: center; padding-left: 64px; }
.dots12 { display: grid; grid-template-columns: repeat(6, 40px); gap: 14px; margin-bottom: 40px; }
.dots12 i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.dots12 i.on { background: var(--flow); box-shadow: none; }
.learn-r8.is-shown .dots12 i.on { animation: dot-on 420ms var(--ease-out) both; animation-delay: calc(300ms + var(--k) * 110ms); }
@keyframes dot-on { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.learn-r8 .learn-big { font-size: 140px; }
.learn-r8 .learn-big small { font-size: 56px; }
.learn-r8 .learn-t { max-width: 460px; }
.learn-r8 .learn-d span { display: inline-block; margin-top: 8px; font-size: 24px; font-weight: 600; color: var(--text); background: var(--surface); border-radius: var(--r-p); padding: 8px 22px; }

/* Чему научил первый проект, вариант Б: уроки в ряд, 12 → топ-5 */
.lb-row { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.lb-row li { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; padding: 0 28px; border-left: 1px solid var(--line); text-wrap: balance; }
.lb-row li:first-child { border-left: 0; padding-left: 0; }
.lb-row li span { display: block; font-size: 22px; color: var(--flow); margin-bottom: 18px; letter-spacing: 0; }
.lb-band { margin-top: 80px; background: var(--surface); border-radius: var(--r-l); padding: 40px 48px; display: grid; grid-template-columns: 300px 1fr 360px; gap: 48px; align-items: center; }
.lb-num { font-size: var(--fs-s); color: var(--text-2); line-height: 1.35; }
.lb-num b { display: block; font-size: 96px; color: var(--text); line-height: .95; letter-spacing: -0.04em; margin-bottom: 10px; }
.lb-top b { color: var(--text); }
.lb-top span { display: inline-block; margin-top: 12px; font-size: 22px; font-weight: 600; color: var(--text); background: var(--surface-2); border-radius: var(--r-p); padding: 6px 18px; }
.lb-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lb-cells i { height: 62px; border-radius: var(--r-s); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; }
.lb-cells i.on { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--flow); }
.lb-cells em { font-style: normal; font-size: 19px; font-weight: 600; }
.lb-band.is-shown .lb-cells i.on { animation: dot-on 420ms var(--ease-out) both; animation-delay: calc(400ms + var(--k) * 120ms); }

/* Команда: цех отрезанной плашкой снизу */
.crew.crew8 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.crew8 .mate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--surface); border-radius: var(--r-l); padding: 26px 0 0; overflow: hidden; }
.crew8 .av { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 36px; font-weight: 600; color: var(--text-2); border: 2px dashed var(--line); }
.crew8 b { font-size: 22px; padding: 0 12px; }
.crew8 .stub { align-self: stretch; margin-top: 10px; font-style: normal; font-size: 24px; font-weight: 600; color: var(--bg); background: var(--flow); padding: 12px 8px; border-top: 6px solid var(--bg); }
.team8a .crew-note { margin-top: 18px; }

/* Команда А: путь с подробностями */
.path8 .pt p { font-size: 21px; line-height: 1.35; }
.path8 .pt h3 { font-size: 32px; }

/* Команда Б: формула */
.tf-top { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; margin-top: 36px; }
.tf-date { font-size: var(--fs-b); color: var(--text-2); line-height: 1.3; }
.tf-date b { display: block; font-size: 120px; color: var(--text); letter-spacing: -0.05em; line-height: .9; margin-bottom: 10px; }
.tf-date span { display: block; margin-top: 10px; color: var(--text); font-weight: 600; }
.tf-top .crew8 { margin-top: 0; }
.tf-top .crew8 .mate { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; padding: 16px 0 0 18px; gap: 0 14px; text-align: left; }
.tf-top .crew8 .av { width: 56px; height: 56px; font-size: 24px; }
.tf-top .crew8 b { padding: 0; flex: 1; }
.tf-top .crew8 .stub { flex: 0 0 calc(100% + 18px); margin-left: -18px; margin-top: 16px; padding: 8px; font-size: 21px; }
.tf { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1.1fr; align-items: stretch; margin-top: 44px; }
.tf-c { background: var(--surface); border-radius: var(--r-l); padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.tf-k { font-size: 20px; font-weight: 600; color: var(--flow); }
.tf-c h3 { font-size: 32px; letter-spacing: -0.02em; line-height: 1.12; }
.tf-c p { font-size: 22px; color: var(--text-2); line-height: 1.35; }
.tf-c .wk { align-self: flex-start; margin-top: auto; }
.tf-res { background: var(--surface-2); }
.tf-op { display: grid; place-items: center; font-size: 56px; font-weight: 300; color: var(--text-2); }
.tf-amb { margin-top: 28px; font-size: var(--fs-b); color: var(--text-2); display: flex; gap: 20px; align-items: baseline; }
.tf-amb b { font-size: 40px; color: var(--text); letter-spacing: -0.02em; }

/* Команда В: обычно / у нас */
.tc { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; margin-top: 40px; }
.tc-h { font-size: 22px; font-weight: 600; color: var(--text-2); margin: 0 0 16px; }
.tc-was { padding: 28px 32px; border-radius: var(--r-l); box-shadow: inset 0 0 0 2px var(--line); }
.tc-was ul { list-style: none; margin: 0; padding: 0; }
.tc-was li { font-size: 26px; line-height: 1.3; color: var(--text-2); padding: 14px 0; border-top: 1px solid var(--line); text-decoration: line-through; text-decoration-color: rgb(250 66 33 / .7); text-decoration-thickness: 2px; }
.tc-now { padding: 28px 32px; border-radius: var(--r-l); background: var(--surface-2); }
.tc-now .tc-h { color: var(--text); }
.tc-now ol { list-style: none; margin: 0; padding: 0; counter-reset: tc; }
.tc-now li { counter-increment: tc; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; font-size: 22px; line-height: 1.35; color: var(--text-2); padding: 12px 0; border-top: 1px solid rgb(255 255 255 / .14); }
.tc-now li::before { content: counter(tc); grid-row: span 3; width: 36px; height: 36px; border-radius: 50%; background: var(--flow); color: var(--bg); font-weight: 600; display: grid; place-items: center; font-size: 20px; }
.tc-now li b { font-size: 28px; color: var(--text); }
.tc-now li .wk { justify-self: start; margin-top: 6px; }
.tc-bot { display: grid; grid-template-columns: 760px 1fr; gap: 28px; margin-top: 24px; align-items: stretch; }
.tc-bot .crew8 { margin-top: 0; gap: 12px; }
.tc-bot .crew8 .mate { padding-top: 14px; gap: 6px; }
.tc-bot .crew8 .av { width: 48px; height: 48px; font-size: 20px; }
.tc-bot .crew8 b { font-size: 19px; }
.tc-bot .crew8 .stub { margin-top: 6px; padding: 7px; font-size: 19px; border-top-width: 5px; }
.tc-amb { margin: 0; background: var(--surface); border-radius: var(--r-l); padding: 22px 28px; font-size: 22px; color: var(--text-2); line-height: 1.35; display: flex; flex-direction: column; justify-content: center; }
.tc-amb b { font-size: 36px; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }

/* Open WebUI Б: обычный путь и наш */
.owt { margin-top: 56px; display: grid; gap: 40px; }
.owt-h { font-size: var(--fs-b); color: var(--text-2); margin: 0 0 14px; display: flex; gap: 18px; align-items: baseline; }
.owt-h b { font-size: 40px; color: var(--text); letter-spacing: -0.02em; }
.owt-bar { display: flex; gap: 6px; }
.owt-bar span { flex: 1; font-size: 22px; line-height: 1.25; padding: 20px 18px; background: var(--surface); color: var(--text-2); }
.owt-bar span:first-child { border-radius: var(--r-l) 0 0 var(--r-l); }
.owt-bar span:last-child { border-radius: 0 var(--r-l) var(--r-l) 0; }
.owt-std .owt-bar span:last-child { color: var(--text); }
.owt-note { margin: 12px 0 0; font-size: 21px; color: var(--bad); }
.owt-our .owt-bar { width: 58%; }
.owt-our .owt-bar span { background: var(--surface-2); color: var(--text); }
.owt-our .owt-bar span.res { flex: 1.6; background: var(--flow); color: var(--bg); font-weight: 600; }
.owt-our.is-shown .owt-bar span { animation: bar-in 500ms var(--ease-out) both; }
.owt-our.is-shown .owt-bar span:nth-child(2) { animation-delay: 160ms; }
.owt-our.is-shown .owt-bar span:nth-child(3) { animation-delay: 320ms; }
@keyframes bar-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.owt-sum { margin-top: 48px; }

/* Open WebUI В: идея от сотрудника, настройка на нас */
.ows-big { font-size: 76px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; margin-top: 56px; }
.ows-big span { color: var(--flow); }
.ows3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.ows3 div { background: var(--surface); border-radius: var(--r-l); padding: 28px 30px; font-size: 23px; color: var(--text-2); line-height: 1.35; }
.ows3 b { display: block; font-size: 32px; color: var(--text); letter-spacing: -0.02em; margin-bottom: 8px; }
.ows-vs { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 20px; align-items: center; margin-top: 40px; }
.ows-vs p { margin: 0; font-size: 23px; line-height: 1.35; color: var(--text-2); padding: 20px 26px; border-radius: var(--r-l); }
.ows-vs p b { display: block; font-size: 22px; margin-bottom: 4px; }
.ows-vs .was { box-shadow: inset 0 0 0 2px var(--line); }
.ows-vs .was b { color: var(--text-2); }
.ows-vs .now { background: var(--surface-2); color: var(--text); }
.ows-vs .now b { color: var(--flow); }
.ows-vs .ow-arr { width: 64px; }

/* Пульт: кнопка видео */
.vbtn { position: absolute; left: 260px; top: 470px; display: flex; align-items: center; gap: 18px; background: var(--bg); border-radius: var(--r-p); padding: 12px 28px 12px 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .45), inset 0 0 0 2px var(--flow); font-size: 20px; color: var(--text-2); line-height: 1.25; cursor: pointer; }
.vbtn b { display: block; font-size: 26px; color: var(--text); }
.vbtn-i { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.vbtn-i svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.slide.is-active .vbtn-i { animation: vbtn-pulse 2.4s var(--ease-out) 1.6s infinite; }
@keyframes vbtn-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 0 0 / .5); } 70% { box-shadow: 0 0 0 18px rgb(255 0 0 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 0 0 / 0); } }

/* База документов: прежний скриншот, крупнее */
.proj .media .shot-docs { left: -40px; top: 10px; width: 1040px; }

/* Следующие проекты: полярная звезда крупно */
.nx.star8 { position: relative; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--warn); }
.nx.star8 .nx-bigstar { width: 72px; height: 72px; fill: var(--warn); filter: drop-shadow(0 0 18px rgb(231 168 4 / .45)); }
.nx.star8 .nx-star { font-size: 22px !important; color: var(--warn) !important; margin-top: 2px; }
.nx.star8 h3 { font-size: 32px; }
.slide.is-active .nx.star8.is-shown .nx-bigstar { animation: star-in 700ms var(--ease-out) 200ms both; }
@keyframes star-in { from { transform: scale(.3) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Запрос */
.ask-money { display: grid; gap: 4px; }
.ask-money p { margin: 0; font-size: 22px; color: var(--text); }
.ask-money .am-h { color: var(--text-2); margin-bottom: 4px; }
.ask-money b { font-weight: 600; }

/* доводка вариантов команды */
.tf-c .wk, .tc-now .wk { display: inline-block; font-size: 18px; color: var(--bg); background: var(--flow); border-radius: var(--r-p); padding: 4px 12px; font-weight: 600; width: fit-content; }
.tf-top .crew8 .stub { text-align: center; }
.tf-top { margin-top: 48px; }
.tf { margin-top: 64px; }
.tf-c { padding: 34px 34px 30px; min-height: 300px; }
.tf-amb { margin-top: 40px; background: var(--surface); border-radius: var(--r-l); padding: 24px 32px; }
.team8a { grid-template-columns: 720px 1fr; }
.team8a .path8 { gap: 24px; }
.tc-was { display: flex; flex-direction: column; }
.tc-was li { font-size: 28px; padding: 18px 0; }
.rp.star .star-ico { fill: var(--warn) !important; stroke: var(--bg) !important; stroke-width: 1.2; }

/* доводка Open WebUI Б и В: заполнить экран */
.owt { margin-top: 80px; gap: 72px; }
.owt-bar span { padding: 30px 22px; font-size: 25px; }
.owt-h b { font-size: 48px; }
.owt-sum { margin-top: 80px; }
.ows-big { font-size: 100px; margin-top: 72px; }
.ows3 { margin-top: 72px; gap: 24px; }
.ows3 div { padding: 36px 36px; font-size: 25px; }
.ows3 b { font-size: 36px; }
.ows-vs { margin-top: 56px; }
.ows-vs p { font-size: 26px; padding: 26px 30px; }

/* доводка следующих проектов: уместить по высоте */
.nx8 { margin-top: 26px; gap: 16px; }
.nx { padding: 20px 22px 18px; gap: 6px; }
.nx h3 { font-size: 27px; }
.nx p { font-size: 19px; line-height: 1.3; }
.nx-db p:not(.nx-e) { font-size: 18px; line-height: 1.28; }
.nx .nx-e { padding-top: 8px; }
.nx.star8 .nx-bigstar { width: 58px; height: 58px; }
.nx.star8 h3 { font-size: 29px; }
.proj .media .shot-docs { top: 130px; }
.road .rp.star .star-ico path { fill: var(--warn); stroke: var(--bg); stroke-width: 1.2; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.proj .media .shot-docs { left: -24px; width: 948px; top: 150px; }
