/* NeoB2B: стили внутри визуалов (коллаж, 3D-цех, карточки модулей, кейсы), форма, cookie. Сетка и типографика - assets/system.css */

/* ---------- коллаж первого экрана: размеры в cqw, телефон показывает ту же картинку меньше ---------- */
.ly-collage { container-type: inline-size; }
.ly-collage .ly-piece { background: #fff; color: #14161a; box-shadow: 0 1px 2px rgb(11 12 14 / .08), 0 22px 48px -22px rgb(11 12 14 / .35);
  font: 400 max(13px, 1.9cqw)/1.3 var(--font-text); padding: 2.6cqw 3cqw; display: grid; align-content: start; gap: 1.4cqw; }
.ly-piece small { color: #5d6470; font-size: max(13px, 1.7cqw); }
.ly-piece b { font-weight: 500; font-size: max(13px, 2.3cqw); }
.pc-h { color: #5d6470; font-size: max(13px, 1.7cqw); }
.pc-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; height: 100%; }
.pc-cols div { background: #eef0f3; border-radius: 1.2cqw; padding: 1.4cqw; display: grid; align-content: start; gap: 1cqw; }
.pc-cols span { color: #5d6470; font-size: max(13px, 1.6cqw); }
.pc-cols i { font-style: normal; background: #fff; border-radius: .9cqw; padding: 1cqw 1.2cqw; font-size: max(13px, 1.7cqw); box-shadow: 0 1px 0 rgb(11 12 14 / .08); }
.pc-cols i.on { outline: 2px solid #1f2de6; }
.pc-cols i.ok { border-left: .6cqw solid #1f9d55; }
.ly-collage .pc-phone { background: #0b0c0e; border-radius: 4.6cqw; padding: 1.2cqw; }
.pc-screen { background: #fff; border-radius: 3.6cqw; height: 100%; padding: 4cqw 3cqw; display: grid; align-content: start; gap: 1.6cqw; }
.pc-screen span { color: #5d6470; }
.pc-btn { margin-top: 2cqw; background: #1f2de6; color: #fff; border-radius: 1.4cqw; text-align: center; padding: 1.8cqw; font-weight: 500; }
.pc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1.4cqw; align-items: center; padding-top: 1.2cqw; border-top: 1px solid #e6e8ec; }
.pc-row em, .m-two span { font-style: normal; font-size: max(13px, 1.6cqw); padding: .6cqw 1.2cqw; border-radius: .8cqw; }
.ok { color: #157a42; background: #e3f4ea; }
.bad { color: #b42318; background: #fbe7e5; }
.ly-collage .pc-map { padding: 0; background: #f6f7f9; }
.pc-map svg, .mod--route svg { width: 100%; height: 100%; display: block; }
.rt { fill: none; stroke: #1f2de6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.rt2 { stroke: #8a93a3; }
.base { fill: #0b0c0e; } .st { fill: #fff; stroke: #0b0c0e; stroke-width: 2; } .car { fill: #1f2de6; }
.pc-bar { display: flex; height: 2.4cqw; border-radius: 1cqw; overflow: hidden; }
.pc-bar i { display: block; } .pc-bar i:nth-child(1) { background: #1f2de6; } .pc-bar i:nth-child(2) { background: #6b78f0; } .pc-bar i:nth-child(3) { background: #aab2f7; } .pc-bar i:nth-child(4) { background: #d6daf9; }
.ly-collage .pc-ai { background: #0b0c0e; color: #eef0f3; } .pc-ai small { color: #9aa0aa; }
.pc-trow { display: grid; grid-template-columns: 1.8fr repeat(5, 1fr); gap: 1cqw; align-items: center; }
.pc-trow i, .m-grid i { font-style: normal; text-align: center; background: #eef0f3; border-radius: .8cqw; padding: .6cqw 0; }
.pc-trow i.flag, .m-grid i.flag { background: #fdecc8; color: #8a5300; }
.pc-skud span { color: #5d6470; }
.pc-spark { display: flex; align-items: end; gap: 1cqw; height: 8cqw; }
.pc-spark i { flex: 1; background: #1f2de6; border-radius: .6cqw .6cqw 0 0; }
@media (max-width: 639px) { .pc-cols div:nth-child(4), .pc-trow:nth-child(n+5) { display: none; } .pc-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 3D-цех ---------- */
#ceh { --ceh-h: clamp(300px, calc(100svh - 430px), 480px); }
.ceh { align-items: stretch; }
.ceh__side { display: grid; align-content: space-between; gap: var(--s-6); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: st; }
.stages li { counter-increment: st; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: var(--s-3);
  padding: 7px 0; color: var(--p-inv-muted); transition: color .3s; font-size: 16px; }
.stages li::before { content: counter(st); font: 500 13px/1 var(--font-mono); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a3d44; }
.stages li::after { content: ""; font: 500 13px/1 var(--font-text); }
.stages li[data-state="done"] { color: var(--p-inv-ink); }
.stages li[data-state="done"]::before { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.stages li[data-state="now"] { color: #fff; }
.stages li[data-state="now"]::before { background: #1f2de6; border-color: #1f2de6; color: #fff; }
.stages li[data-state="now"]::after { content: "в работе"; color: #9aa6ff; }
.ceh__note { color: var(--p-inv-ink); max-width: 34ch; margin: 0; }
.ceh__frame { position: relative; height: var(--ceh-h); border-radius: var(--r-lg); overflow: hidden; background: #1a1c20; border: 1px solid #2a2d33; }
.ceh__frame canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.ceh__frame canvas:active { cursor: grabbing; }
.ceh__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ceh__frame.is-live .ceh__poster { visibility: hidden; }
.ceh__pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.ceh__pause .i-play { display: none; } .ceh__pause[aria-pressed="true"] .i-play { display: inline; } .ceh__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 1023px) {
  #ceh { --h: 2; --hm: 2; --ceh-h: 480px; }
  .stages { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
}
@media (max-width: 639px) { #ceh { --ceh-h: 380px; } }

/* ---------- карточки модулей ---------- */
#modules .panel { --p-h: 168px; }
#modules .panel.mod { height: var(--p-h); aspect-ratio: auto; display: grid; place-items: center; overflow: hidden; }
.m-phone, .m-card { width: min(78%, 280px); display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: #f6f7f9; border: 1px solid #e3e6eb; font-size: 14px; }
.m-phone small, .m-card small { color: var(--muted); font-size: 13px; }
.m-phone b, .m-card b { font-weight: 500; }
.m-time { color: var(--muted); }
.m-done { justify-self: start; background: #1f2de6; color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 500; animation: tap 3s ease-in-out infinite; }
@keyframes tap { 0%, 60%, 100% { transform: scale(1); background: #1f2de6; } 70% { transform: scale(.94); } 78% { background: #1f9d55; } 95% { background: #1f9d55; } }
.m-two { display: flex; gap: 8px; flex-wrap: wrap; }
.m-two .ok { animation: blink-ok 3.2s ease-in-out infinite; }
@keyframes blink-ok { 0%, 40%, 100% { box-shadow: none; } 55%, 80% { box-shadow: 0 0 0 2px #1f9d55; } }
.m-grid { display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; font-size: 14px; text-align: center; }
.m-grid span { color: var(--ink); font-size: 13px; }
.m-grid i { padding: 8px 0; }
.m-grid i.flag { animation: flag 2.8s ease-in-out infinite; }
@keyframes flag { 0%, 30%, 100% { outline: 0 solid transparent; } 50%, 80% { outline: 2px solid #e8a317; } }
.m-rows { width: min(84%, 300px); display: grid; font-size: 14px; background: #fff; border-radius: 12px; padding: 4px 14px; }
.m-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e3e6eb; }
.m-rows b { font-weight: 500; } .m-rows .warn { color: #8a5300; animation: flag 3s ease-in-out infinite; padding: 0 6px; border-radius: 6px; }
.mod--route { padding: 12px 20px; }
.m-bars { display: flex; align-items: end; gap: 10px; height: 130px; width: min(78%, 280px); border-bottom: 1px solid #d5d9df; }
.m-bars i { flex: 1; background: #1f2de6; border-radius: 4px 4px 0 0; height: calc(var(--v) * 100%); transform-origin: bottom; animation: grow 3.6s ease-in-out infinite; }
.m-bars i:nth-child(odd) { background: #9aa6ff; }
.m-bars i:nth-child(2) { animation-delay: .15s } .m-bars i:nth-child(3) { animation-delay: .3s } .m-bars i:nth-child(4) { animation-delay: .45s } .m-bars i:nth-child(5) { animation-delay: .6s } .m-bars i:nth-child(6) { animation-delay: .75s }
@keyframes grow { 0% { transform: scaleY(.2); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }
#modules .card h3 { margin-top: var(--s-4); }
@media (max-width: 639px) { #modules .panel { --p-h: 170px; } }

/* ---------- кейсы ---------- */
.cases__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.cases__list li { border-bottom: 1px solid var(--line); }
.cases__list button { all: unset; box-sizing: border-box; width: 100%; min-height: 56px; padding: var(--s-4) 0; cursor: pointer; font: 400 var(--t-lead)/1.3 var(--font-text); color: var(--muted); transition: color .2s; }
.cases__list button:hover, .cases__list .is-on button, .cases__list button.is-on { color: var(--ink); }
.cases__list button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.cases__pane { position: relative; }
.case { background: #fff; border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; height: 100%; }
.case h3 { margin: 0; font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: -0.02em; }
.case p { margin: 0; max-width: 60ch; }
.case__art { background: #f3f4f7; border-radius: var(--r-md); padding: var(--s-4); }
.case__art svg { width: 100%; height: 120px; display: block; }
.case__facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); margin: var(--s-2) 0 0; }
.case__facts dt { color: var(--muted); font-size: 14px; } .case__facts dd { margin: 0; font: var(--display-weight) var(--t-stat)/1.1 var(--font-display); letter-spacing: -0.02em; }
.cyl rect { fill: #d6daf9; stroke: #1f2de6; stroke-width: 2; } .truck { fill: #fff; stroke: #0b0c0e; stroke-width: 2; } .wheel { fill: #0b0c0e; }
.pipe { fill: none; stroke: #8a93a3; stroke-width: 10; stroke-linecap: round; }
.joint circle { fill: #fff; stroke: #0b0c0e; stroke-width: 2; } .joint.done circle { fill: #1f9d55; stroke: #1f9d55; }
.duct rect { fill: #fff; stroke: #8a93a3; stroke-width: 2; } .duct rect.done { fill: #cdeedd; stroke: #1f9d55; }
.flow rect { fill: #fff; stroke: #8a93a3; stroke-width: 2; rx: 6; } .flow rect.now { fill: #1f2de6; stroke: #1f2de6; } .arr { stroke: #0b0c0e; stroke-width: 2; }
.sheet { fill: #fff; stroke: #c3c8d0; } .line { fill: none; stroke: #0b0c0e; stroke-width: 2; } .tag circle { fill: #fff; stroke: #1f2de6; stroke-width: 2; }
.case__art text { font: 500 11px var(--font-mono); text-anchor: middle; fill: #1f2de6; }
.post rect { fill: #fff; stroke: #8a93a3; stroke-width: 2; } .post rect.now { stroke: #1f2de6; fill: #e7e9fd; } .plan { stroke: #c3c8d0; stroke-width: 8; stroke-linecap: round; } .fact { stroke: #1f2de6; stroke-width: 8; stroke-linecap: round; }
@media (max-width: 1023px) { .cases__list { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); } .cases__list li { border: 0; } .cases__list button { font-size: 16px; min-height: 44px; padding: var(--s-2) 0; } }
@media (max-width: 639px) { #cases { --hm: 2; } .case { padding: var(--s-5); } .case__art svg { height: 90px; } }

/* ---------- запуск: Гант на 30 дней ---------- */
.gantt { --days: 30; display: grid; }
.gantt__scale, .gantt__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-6); }
.gantt__scale { position: relative; height: 24px; }
.gantt__scale > span, .gantt__ticks span { font: 400 13px/1 var(--font-mono); color: var(--p-inv-muted); white-space: nowrap; }
.gantt__ticks { position: relative; }
.gantt__ticks span { position: absolute; left: calc(100% * var(--d) / var(--days)); }
.gantt__row { padding: var(--s-3) 0; border-top: 1px solid rgb(238 240 243 / .16); align-items: center; }
.gantt__txt h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.gantt__txt p { margin: var(--s-1) 0 0; color: var(--p-inv-muted); }
.gantt__track { position: relative; height: 28px; background: repeating-linear-gradient(90deg, rgb(238 240 243 / .08) 0 1px, transparent 1px calc(100% / 30)); border-radius: 6px; }
.gantt__track i { position: absolute; top: 4px; bottom: 4px; left: calc(100% * var(--s) / 30); width: max(10px, calc(100% * (var(--e) - var(--s)) / 30)); background: #4b57f0; border-radius: 5px; }
.gantt__track i.run { background: linear-gradient(90deg, #1f9d55, #1f9d55 60%, rgb(31 157 85 / .25)); background-size: 200% 100%; animation: run 3s linear infinite; }
@keyframes run { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .gantt__track i.run, .m-done, .m-two .ok, .m-grid i.flag, .m-rows .warn, .m-bars i { animation: none; } }
@media (max-width: 639px) { .gantt__scale { display: none; } .gantt__row { grid-template-columns: 1fr; row-gap: var(--s-3); } }
.figs { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-9); margin-top: var(--s-8); }
.figs .t-stat { margin: 0; font: var(--display-weight) var(--t-stat)/1 var(--font-display); letter-spacing: var(--display-tracking); }
@media (max-width: 1023px) { #launch { --h: 2; } }


/* ---------- форма ---------- */
#request .section-head { align-content: start; }
.req-card { margin: var(--s-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-6); }
.req-card dt { color: var(--muted); font-size: 14px; } .req-card dd { margin: var(--s-1) 0 0; }
a.tap { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 639px) { .req-card { grid-template-columns: 1fr; padding: var(--s-5); gap: var(--s-3); } }
body.has-cookie { padding-bottom: 96px; } @media (max-width: 639px) { body.has-cookie { padding-bottom: 150px; } }
@media (max-width: 379px) { .nav__actions .btn { padding-inline: 12px; font-size: 14px; } .nav__actions .btn .m-arrow { display: none; } }
.req-phone a, a.inline { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#request .form { display: grid; grid-template-columns: 1fr; gap: var(--s-4) var(--s-5); align-content: start; }
#request .form > .field:nth-of-type(n+4), #request .form > .btn-row, #request .form > .form__status { grid-column: 1 / -1; }
@media (max-width: 639px) { #request .form { grid-template-columns: 1fr; } }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--action); }
.field--check label { font-size: 14px; line-height: 1.5; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#request textarea { min-height: 96px; }
@media (max-width: 1023px) { #request { --h: 2; } }
@media (max-width: 639px) { #request { --hm: 2; } }
.footer__req li { color: var(--muted); }

/* ---------- cookie ---------- */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--p-surface); border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.cookie__in { display: flex; gap: var(--s-5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie p { margin: 0; font-size: 14px; max-width: 70ch; }
.cookie .btn-row { flex-wrap: nowrap; gap: var(--s-3); }
@media (max-width: 639px) {
  .cookie { padding: var(--s-3) 0 calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .cookie__in { gap: var(--s-3); }
  .cookie p { font-size: 13px; line-height: 1.45; }
  .cookie .btn-row { width: 100%; } .cookie .btn { flex: 1; width: auto; }
  .stages { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); }
  .stages li { font-size: 14px; grid-template-columns: 26px 1fr; gap: var(--s-2); }
  .stages li::after { display: none; }
}
.gantt__row { padding: var(--s-4) 0; } .gantt__track { height: 32px; }
@media (max-width: 639px) {
  .cookie .btn-row { flex-direction: row; }
  #ceh { --hm: 1; --ceh-h: 330px; }
  .ceh__note { display: none; }
}
.case h3, #modules h3 { hyphens: manual; }

.hero--triptych .hero__cta .btn { height: var(--btn-h, 44px); font-size: 16px; padding-inline: var(--s-6); }
#modules .panel { --p-h: 150px; }

.tg-card { background: var(--p-bg); border-radius: var(--r-lg); padding: var(--s-7); display: grid; gap: var(--s-5); align-content: start; }
.tg-card h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.tg-card ul { margin: 0; padding-left: 20px; display: grid; gap: var(--s-3); list-style: disc; }
@media (max-width: 639px) { .tg-card { padding: var(--s-5); } .tg-card .btn { width: 100%; } }
.tg-card { align-self: start; }
