/* Балка — завод металлоконструкций. Чертёжный лист: холодная калька, графит,
   один сигнальный жёлтый (кран, каска, разметка цеха). Geologica + IBM Plex Mono. */
:root {
  --paper: #e6e9e8; --paper-2: #eef0ef; --card: #f7f8f7;
  --ink: #0f1316; --ink-2: #3b444b; --ink-3: #66717a;
  --line: rgba(15, 19, 22, .16); --line-2: rgba(15, 19, 22, .08);
  --night: #0e1215; --night-2: #161c20; --night-ink: #e6e9e8; --night-2ink: #a9b3ba; --night-3: #87929a;
  --night-line: rgba(230, 233, 232, .14);
  --signal: #f2b300; --signal-2: #ffc81a; --hot: #ff7a1a;
  --f: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1360px; --gut: clamp(20px, 4vw, 48px);
  --edge: max(var(--gut), calc(50vw - 680px + var(--gut)));
  --ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
.mono { font-family: var(--m); font-size: 13px; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

#karkas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity .8s var(--ease); }
body.ready #karkas { opacity: 1; }
main, .foot { position: relative; z-index: 1; }

/* ---------- кнопки и подписи ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; background: var(--signal); color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -.01em; border: 0; border-radius: 2px; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.btn::after { content: ''; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--signal-2); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn-s { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-s::after { display: none; }
.btn-wide { width: 100%; }
.more { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.kick { font-family: var(--m); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.kick::before { content: ''; width: 8px; height: 8px; background: var(--signal); flex: none; }
h2 { font-size: clamp(34px, 4.3vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
h3 { font-weight: 600; letter-spacing: -.02em; }
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 600px; }

/* ---------- шапка ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: rgba(230, 233, 232, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-2); transition: background .35s, color .35s, border-color .35s; }
.top-in { max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.logo-i { width: 20px; height: 20px; fill: var(--signal); }
.top-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-tel { font-family: var(--m); font-size: 13.5px; }
body.on-dark .top { background: rgba(14, 18, 21, .82); color: var(--night-ink); border-color: var(--night-line); }
body.on-dark .top-nav { color: var(--night-2ink); }
body.on-dark .top-nav a:hover { color: #fff; }

/* ---------- первый экран ---------- */
.s3d { background: transparent; }
.hero { min-height: 100vh; min-height: 100svh; position: relative; padding-top: 60px; display: flex; }
.hero-in { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-top: clamp(32px, 7vh, 84px); padding-bottom: clamp(24px, 4vh, 44px); }
.hero-top { display: grid; gap: 24px; width: min(560px, 40vw); }
.hero-text { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(42px, 4.6vw, 70px); line-height: .97; font-weight: 600; letter-spacing: -.05em; }
.hero-side { display: grid; gap: 24px; }
.hero-lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 470px; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-bot { width: min(560px, 40vw); display: grid; gap: 16px; }
.hero-spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.hero-spec div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-spec div:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-spec dt { font-family: var(--m); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.hero-spec dd { font-family: var(--m); font-size: 16px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.hero-live { font-family: var(--m); font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.hero-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 122, 26, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
.no3d-poster { display: none; }
.hero, .raschet .stage { cursor: grab; }
.grabbing { cursor: grabbing !important; }

/* подписи осей и размеры поверх холста */
.ov { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.ov.on { opacity: 1; }
.dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dims line { stroke: var(--ink); stroke-width: 1; }
.dims .ext { stroke: var(--ink-3); stroke-width: .8; stroke-dasharray: 3 3; }
.dims .tick { stroke: var(--ink); stroke-width: 1.6; }
.dims rect { fill: var(--paper); }
.dims text { font-family: var(--m); font-size: 12px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.marks span { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font: 500 11px/22px var(--m); text-align: center; color: var(--ink); }

/* ---------- продукция ---------- */
.prod { background: var(--paper); padding: clamp(80px, 12vh, 150px) 0 clamp(90px, 13vh, 160px); position: relative; }
.prod::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; background: linear-gradient(rgba(14, 18, 21, 0), var(--night)); pointer-events: none; }
.rows { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 170px 120px 168px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.row-n { font-family: var(--m); font-size: 13px; color: var(--ink-3); align-self: start; padding-top: 6px; }
.row-t h3 { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.1; }
.row-t p { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; max-width: 470px; }
.row-v { font-family: var(--m); font-size: 15px; font-weight: 500; white-space: nowrap; }
.row-v small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.row-img { width: 168px; aspect-ratio: 16 / 10; height: auto; object-fit: cover; filter: grayscale(.55) contrast(1.02); transition: filter .4s var(--ease); }
.row:hover .row-img { filter: none; }
.row:hover .row-n { color: var(--ink); }

/* ---------- сборка (тёмная глава) ---------- */
.sborka { height: 440vh; color: var(--night-ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sborka .stage::before { content: ''; position: absolute; inset: 0 auto 0 0; width: min(760px, 58vw); background: linear-gradient(90deg, rgba(14, 18, 21, .92) 0%, rgba(14, 18, 21, .8) 55%, rgba(14, 18, 21, 0) 100%); z-index: 1; pointer-events: none; }
.sb-head { position: absolute; left: var(--edge); top: calc(60px + 7vh); max-width: 480px; z-index: 2; display: grid; gap: 18px; }
.sborka .kick, .ceh .kick { color: var(--night-3); }
.sborka h2 { font-size: clamp(32px, 3.4vw, 52px); }
.steps { position: absolute; left: var(--edge); bottom: 8vh; width: min(420px, 34vw); z-index: 2; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.step { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--night-line); opacity: .38; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step.past { opacity: .62; }
.step-n { font-family: var(--m); font-size: 12px; color: var(--night-3); padding-top: 4px; grid-row: span 2; }
.step.on .step-n { color: var(--signal); }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; color: var(--night-2ink); margin-top: 4px; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .6s var(--ease), visibility 0s .6s; }
.step.on p { max-height: 120px; visibility: visible; transition: max-height .6s var(--ease), visibility 0s; }
.step b { font-family: var(--m); font-weight: 500; color: var(--night-ink); }
.sb-read { position: absolute; right: var(--edge); bottom: 8vh; display: flex; gap: 40px; z-index: 2; font-family: var(--m); }
.sb-read div { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; }
.sb-read span { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-3); margin-bottom: 6px; }
.sb-read b { font-size: clamp(30px, 3vw, 44px); font-weight: 500; letter-spacing: -.03em; color: #fff; }
.sb-read em { font-style: normal; font-size: 14px; color: var(--night-3); }

/* одометр: цифры катятся столбиками, сами цифры рисует CSS, в тексте страницы только итог */
.odo { display: inline-flex; line-height: 1; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; vertical-align: bottom; }
.odo i { display: block; height: 1em; overflow: hidden; font-style: normal; }
.odo i::before { content: '0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9'; white-space: pre; display: block; transform: translateY(calc(var(--d, 0) * -1em)); transition: transform .9s var(--ease); }
.odo i.s { width: .3em; }
.odo i.s::before { content: ''; }
.odo i.c::before { content: ','; transform: none; }
.odo i.u::before { content: attr(data-u); transform: none; }

/* ---------- цех ---------- */
.ceh { background: var(--night); color: var(--night-ink); padding: clamp(90px, 13vh, 160px) 0; position: relative; }
.ceh { padding-bottom: clamp(150px, 20vh, 240px); }
.ceh::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; background: linear-gradient(rgba(230, 233, 232, 0), var(--paper)); pointer-events: none; }
.ceh h2 { max-width: 700px; }
.ceh-photo { position: relative; margin-top: clamp(40px, 6vh, 64px); }
.ceh-photo img { width: 100%; aspect-ratio: 21 / 9; height: auto; object-fit: cover; }
.ceh-photo figcaption { display: flex; gap: 0; border-bottom: 1px solid var(--night-line); font-family: var(--m); font-size: 12.5px; color: var(--night-2ink); }
.ceh-photo figcaption span { padding: 12px 18px 12px 0; }
.ceh-photo figcaption span + span { padding-left: 18px; border-left: 1px solid var(--night-line); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vh, 80px); }
.nums div { padding: 0 20px 0 0; }
.nums div + div { padding-left: 20px; border-left: 1px solid var(--night-line); }
.nums dt { font-family: var(--m); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-3); }
.nums dd { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.nums b { font-size: clamp(44px, 5vw, 80px); font-weight: 400; letter-spacing: -.05em; }
.nums small { font-family: var(--m); font-size: 13px; color: var(--night-3); }
.kit { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 8vh, 96px); align-items: center; }
.kit-ph img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.kit-list { border-top: 1px solid var(--night-line); }
.kit-list li { padding: 14px 0; border-bottom: 1px solid var(--night-line); display: grid; gap: 2px; }
.kit-list span { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.kit-list em { font-style: normal; font-family: var(--m); font-size: 13px; color: var(--night-3); }

/* ---------- расчёт ---------- */
.raschet { height: 160vh; }
.rs-head { position: absolute; left: var(--edge); top: calc(60px + 6vh); z-index: 2; max-width: 440px; display: grid; gap: 16px; }
.rs-head h2 { font-size: clamp(32px, 3.4vw, 52px); }
.rs-ctl { position: absolute; left: var(--edge); bottom: 7vh; width: min(400px, 31vw); z-index: 2; display: grid; gap: 22px; }
.fld-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.fld-top output { font-size: 16px; font-weight: 500; color: var(--ink); }
.rule { position: relative; height: 40px; }
.rule input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 2; touch-action: pan-y; }
.rule input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.rule input::-moz-range-track { height: 40px; background: transparent; }
.rule input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 30px; margin-top: 2px; background: var(--signal); border: 1.5px solid var(--ink); border-radius: 1px; box-shadow: 0 2px 6px rgba(15, 19, 22, .2); }
.rule input::-moz-range-thumb { width: 14px; height: 30px; background: var(--signal); border: 1.5px solid var(--ink); border-radius: 1px; }
.rule input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.rule::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line); }
.rule::after { content: ''; position: absolute; left: 0; top: 17px; height: 2px; width: var(--fill, 50%); background: var(--ink); }
.rule-marks { position: absolute; left: 7px; right: 7px; top: 22px; height: 18px; pointer-events: none; }
.rule-marks i { position: absolute; top: 0; width: 1px; height: 6px; background: var(--ink-3); }
.rule-marks i.big { height: 10px; background: var(--ink); }
.rule-marks i.big::after { content: attr(data-l); position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 10.5px/1.2 var(--m); color: var(--ink-3); white-space: nowrap; }
.rs-out { position: absolute; right: var(--edge); bottom: 7vh; width: min(560px, 44vw); z-index: 2; background: var(--card); border: 1px solid var(--line); padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; box-shadow: 0 24px 60px -30px rgba(15, 19, 22, .35); }
.rs-rows { display: grid; gap: 6px; align-content: start; }
.rs-rows div { display: flex; justify-content: space-between; gap: 18px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.rs-rows dt { color: var(--ink-3); }
.rs-rows dd { font-family: var(--m); font-weight: 500; white-space: nowrap; }
.rs-total { display: grid; align-content: end; justify-items: end; gap: 6px; text-align: right; }
.rs-total p { font-size: 14px; color: var(--ink-3); display: grid; }
.rs-total small { font-family: var(--m); font-size: 12px; }
.rs-total b { font-family: var(--m); font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; }
.rs-out .btn { grid-column: 1 / -1; }

.rs-view { display: none; }

/* ---------- путь партии ---------- */
.put { height: 240vh; background: var(--paper); position: relative; }
.put .stage { display: flex; align-items: center; }
.put-in { width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 28px clamp(24px, 3vw, 48px); padding-top: 76px; padding-bottom: 28px; max-height: 100%; }
.put .sec-head { grid-column: 1 / -1; }
.put h2 { font-size: clamp(32px, 3.4vw, 52px); }
.order { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.order-top { display: flex; justify-content: space-between; color: var(--ink-3); }
.order h3 { font-size: 24px; }
.order-now { font-size: 18px; font-weight: 500; letter-spacing: -.01em; min-height: 1.5em; }
.order-now .now-s { color: var(--ink-3); font-weight: 400; }
.track { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 6px; }
.track li { position: relative; padding-top: 18px; font-size: 13px; }
.track li i { position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: var(--line-2); }
.track li i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }
.track li::before { content: ''; position: absolute; top: 1px; left: 0; width: 10px; height: 10px; background: var(--card); border: 1.5px solid var(--ink-3); border-radius: 50%; z-index: 1; transition: background .3s, border-color .3s; }
.track li.done::before { background: var(--ink); border-color: var(--ink); }
.track li.now::before { background: var(--signal); border-color: var(--ink); }
.track span { display: block; font-weight: 500; }
.track em { font-style: normal; font-family: var(--m); font-size: 11.5px; color: var(--ink-3); }
.log { border-top: 1px solid var(--line); display: grid; }
.log li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; opacity: .28; transition: opacity .4s var(--ease); }
.log li.on { opacity: 1; }
.log time { font-family: var(--m); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.day { position: relative; min-height: 0; background: var(--ink); overflow: hidden; }
.day-ph, .route { position: absolute; inset: 0; margin: 0; transition: opacity .7s var(--ease); }
.day-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.6s var(--ease); }
.day-ph img.on { opacity: 1; transform: none; }
.day-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(rgba(15, 19, 22, 0), rgba(15, 19, 22, .82)); color: #fff; display: flex; gap: 14px; align-items: baseline; }
.day-when { color: var(--signal); }
.day.map .day-ph { opacity: 0; }
.route { background: var(--ink); color: var(--paper); display: grid; grid-template-rows: 1fr auto; min-height: 0; opacity: 0; }
.day.map .route { opacity: 1; }
.route svg { width: 100%; height: 100%; min-height: 0; display: block; color: var(--paper); }
.r-river { fill: none; stroke: #2c3a44; stroke-width: 9; stroke-linecap: round; }
.r-river-s { stroke-width: 5; }
.r-water { fill: #2c3a44; }
.r-topo { fill: none; stroke: rgba(230, 233, 232, .1); stroke-width: 1; }
.r-rail { fill: none; stroke: rgba(230, 233, 232, .26); stroke-width: 1.5; stroke-dasharray: 10 4 2 4; }
.r-lbl text { font-family: var(--m); font-size: 11px; fill: var(--night-3); }
.r-road-bg { fill: none; stroke: rgba(230, 233, 232, .22); stroke-width: 2; stroke-dasharray: 5 6; }
.r-road { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; }
.r-pt circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.r-truck rect { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.route figcaption { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(230, 233, 232, .14); }
.route figcaption p:last-child { text-align: right; }
.route figcaption span { display: block; font-weight: 500; }
.route figcaption em { font-style: normal; font-family: var(--m); font-size: 12px; color: var(--night-3); }
.r-km { color: var(--signal); align-self: center; }

/* ---------- объекты ---------- */
.obekty { background: var(--paper); padding: clamp(90px, 13vh, 160px) 0 clamp(60px, 9vh, 110px); }
.cases { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 6vh, 64px); }
.case { background: var(--card); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.case img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover img { transform: scale(1.03); }
.case-big { grid-row: span 2; grid-template-rows: 1fr auto; }
.case-big img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.case:not(.case-big):nth-child(4) { grid-column: 2 / span 2; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
.case:not(.case-big):nth-child(4) img { height: 100%; aspect-ratio: auto; min-height: 220px; }
.case-t { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.case-t .mono { color: var(--ink-3); font-size: 12px; }
.case-t h3 { font-size: 22px; line-height: 1.1; }
.case-t dl { display: flex; gap: 28px; margin-top: 6px; }
.case-t dt { font-family: var(--m); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.case-t dd { font-family: var(--m); font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; margin-top: 2px; }
.case-big .case-t { position: relative; }
.docs { margin-top: clamp(40px, 6vh, 64px); padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); display: flex; gap: 22px; align-items: baseline; }
.docs span { font-family: var(--m); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); flex: none; }

/* ---------- заявка ---------- */
.zayavka { background: var(--paper); padding: clamp(60px, 9vh, 120px) 0 clamp(100px, 14vh, 170px); }
.zv-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.in { display: grid; gap: 4px; }
.in span { font-family: var(--m); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.in input, .in select { height: 46px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font-size: 17px; padding: 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; }
.in select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 6px top 21px, right 1px top 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; }
.in input::placeholder { color: #9aa3a9; }
.in input:focus, .in select:focus { border-color: var(--signal); box-shadow: 0 1.5px 0 var(--signal); }
.in-wide, .form .btn { grid-column: 1 / -1; }

/* ---------- подвал ---------- */
.foot { background: var(--night); color: var(--night-ink); padding-top: clamp(64px, 10vh, 110px); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; font-size: 16px; }
.foot-cols .mono { color: var(--night-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.foot-cols a { color: var(--night-ink); width: fit-content; border-bottom: 1px solid rgba(230, 233, 232, .25); }
.foot-cols a:hover { border-color: var(--signal); }
.foot-geo { color: var(--signal) !important; text-transform: none !important; letter-spacing: .02em !important; font-size: 13px !important; }
.foot-req { color: var(--night-3); font-size: 14px; }
.foot-word { font-size: calc((min(100vw, 1360px) - 2 * var(--gut)) / 2.86); line-height: .8; font-weight: 700; letter-spacing: -.07em; margin: clamp(40px, 7vh, 80px) 0 0 -.05em; padding-bottom: .06em; color: var(--night-ink); white-space: nowrap; }

/* ---------- без 3D ---------- */
body.no3d #karkas { display: none; }
body.no3d .no3d-poster { display: block; position: absolute; right: 0; bottom: 0; width: 58%; height: auto; z-index: 0; }
body.no3d .sborka { height: auto; background: var(--night); }
body.no3d .sborka .stage { position: relative; height: auto; min-height: 90vh; }
body.no3d .raschet { height: auto; }
body.no3d .raschet .stage { position: relative; height: auto; min-height: 100vh; }

/* ---------- ноутбук и планшет лёжа ---------- */
@media (min-width: 761px) and (max-width: 1100px) {
  .top-nav { gap: 18px; font-size: 14px; }
  .top-tel { display: none; }
  .hero-top, .hero-bot { width: 41vw; }
  .hero-spec dd { font-size: 14px; }
  .hero-live { display: none; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 150px 110px; }
  .row-img { display: none; }
  .steps { width: 360px; }
  .step p { font-size: 14px; }
  .sb-read { gap: 24px; }
  .rs-ctl { width: 330px; gap: 16px; }
  .rs-out { width: 470px; padding: 16px 18px; }
  .kit { grid-template-columns: 1fr 1.4fr; }
  .kit-ph:last-child { display: none; }
  .put-in { gap: 20px; }
  .log li { padding: 6px 0; font-size: 13.5px; }
}

/* ---------- телефон и планшет стоя ---------- */
@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 9/10) {
  body { font-size: 16px; }
  .top-in { height: 56px; gap: 14px; }
  .top-nav, .top-tel { display: none; }
  .logo { margin-right: auto; }
  .hero { padding-top: 56px; }
  .hero-in { padding-top: 26px; padding-bottom: 18px; }
  .hero-top, .hero-bot { width: auto; }
  .hero-top { gap: 18px; }
  .hero-text { gap: 14px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 60px); }
  .hero-side { gap: 16px; }
  .hero-lead { display: none; }
  .hero-cta { gap: 20px; }
  .hero-cta .more { display: none; }
  .hero-spec dd { font-size: 14px; }
  .hero-live { display: none; }
  .marks { display: none; }
  .row { grid-template-columns: 34px 1fr 1fr; gap: 6px 12px; padding: 18px 0; }
  .row-n { grid-row: span 3; }
  .row-t { grid-column: 2 / -1; }
  .row-v { font-size: 14px; }
  .row-img { grid-column: 2 / -1; grid-row: 1; width: 100%; margin-bottom: 8px; }
  .sborka .stage::before { inset: auto 0 0 0; width: auto; height: 34%; background: linear-gradient(0deg, rgba(14, 18, 21, .94) 0%, rgba(14, 18, 21, .82) 60%, rgba(14, 18, 21, 0) 100%); }
  .sb-head { top: calc(56px + 3vh); right: var(--gut); gap: 10px; }
  .sborka h2 { font-size: clamp(26px, 7vw, 40px); }
  .steps { left: var(--gut); right: var(--gut); bottom: 3.5vh; width: auto; border-top: 0; }
  .step { display: none; border: 0; padding: 0; opacity: 1; }
  .step.on { display: grid; }
  .step p { max-height: none; }
  .sb-read { left: var(--gut); right: auto; bottom: auto; top: calc(56px + 3vh + 150px); gap: 24px; }
  .sb-read b { font-size: 24px; }
  .ceh-photo img { aspect-ratio: 4 / 3; }
  .ceh-photo figcaption { flex-direction: column; }
  .ceh-photo figcaption span { padding: 8px 0; }
  .ceh-photo figcaption span + span { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .nums { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .nums div:nth-child(3) { padding-left: 0; border-left: 0; }
  .nums b { font-size: clamp(40px, 11vw, 64px); }
  .kit { grid-template-columns: 1fr; }
  .kit-ph:last-child { display: none; }
  .kit-ph img { aspect-ratio: 16 / 10; }
  .raschet { height: auto; }
  .raschet .stage { position: relative; height: auto; overflow: visible; padding: calc(56px + 4vh) var(--gut) 40px; display: grid; gap: 22px; }
  .rs-head, .rs-ctl, .rs-out { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: none; }
  .rs-head h2 { font-size: clamp(28px, 8vw, 44px); }
  .rs-head .sec-lead { font-size: 15.5px; }
  .rs-view { display: block; height: 42vh; height: 42svh; margin: 0 calc(var(--gut) * -1); }
  .rs-out { grid-template-columns: 1fr; padding: 16px; }
  .rs-total { justify-items: start; text-align: left; grid-template-columns: 1fr auto; align-items: end; }
  .rs-total p { text-align: left; }
  .put { height: auto; }
  .put .stage { position: relative; height: auto; overflow: visible; }
  .put-in { grid-template-columns: 1fr; padding-top: clamp(70px, 10vh, 110px); padding-bottom: 60px; }
  .order { padding: 16px; }
  .track { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .log li { grid-template-columns: 1fr; gap: 0; }
  .day { aspect-ratio: 4 / 3; }
  .route svg { height: 100%; }
  .cases { grid-template-columns: 1fr; }
  .case-big { grid-row: auto; }
  .case-big img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .case:not(.case-big):nth-child(4) { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .case:not(.case-big):nth-child(4) img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .docs { flex-direction: column; gap: 8px; }
  .zv-in { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 20px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .odo i::before { transition: none; }
}
