/* Конфигуратор электрощита — Александр Шнур */
:root { --paper:#f2f1ec; --paper-2:#e8e7e1; --ink:#151715; --char:#20231f; --lime:#d6ff32; --muted:#5b5f59; --line:#d4d5ce; --line-2:#bfc2b8; --focus:#6d791e; --danger:#b74134; --white:#fff; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
html.sh-lock { overflow: hidden; }
body.shield-body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 90; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* шапка */
.sh-header { display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 max(20px, calc((100vw - 1480px) / 2)); background: var(--ink); color: #f2f1ec; }
.sh-logo { width: 196px; line-height: 0; flex: none; }
.sh-logo img { width: 100%; height: auto; }
.sh-nav { display: flex; gap: 22px; margin-right: auto; font-size: 13px; }
.sh-nav a { color: #dddeda; text-decoration: none; }
.sh-nav a:hover { color: var(--lime); }
.sh-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.sh-cta:hover { background: #e4ff78; }
.sh-cta:focus-visible, .sh-nav a:focus-visible { outline-color: var(--lime); }

/* вступление */
.sh-main { display: block; width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 72px; }
.sh-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 26px; }
.sh-eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sh-intro h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.sh-lead { max-width: 720px; margin: 14px 0 0; font-size: 16px; color: #3d413b; text-wrap: pretty; }
.sh-col-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* общие поля */
.sh-label { display: block; font-size: 13px; font-weight: 600; }
.sh-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sh-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sh-seg label, .sh-modes label, .sh-chips label { position: relative; }
.sh-seg input, .sh-modes input, .sh-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sh-seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line-2); margin-left: -1px; font-size: 13px; text-align: center; line-height: 1.25; cursor: pointer; background: #fff; }
.sh-seg label:first-child span { margin-left: 0; }
.sh-seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; z-index: 1; }
.sh-seg input:focus-visible + span, .sh-modes input:focus-visible + span, .sh-chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 2; }
select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 0; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chips span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; cursor: pointer; }
.sh-chips span::before { content: ""; flex: none; width: 11px; height: 11px; border: 1.5px solid var(--muted); }
.sh-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sh-chips input:checked + span::before { background: var(--lime); border-color: var(--lime); }
.sh-modes { display: grid; gap: 6px; }
.sh-modes span { display: grid; gap: 2px; height: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; position: relative; }
.sh-modes span::before { content: ""; position: absolute; left: 12px; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); }
.sh-modes b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sh-modes small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.sh-modes input:checked + span { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--lime); }
.sh-modes input:checked + span::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px); }

/* 01 · ввод и защита */
.sh-setup { margin-bottom: 26px; border: 1px solid var(--line); background: #fbfbf8; }
.sh-setup-head { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sh-setup-head h2 { display: flex; align-items: baseline; gap: 10px; flex: none; margin: 0; font-size: 18px; font-weight: 600; }
.sh-setup-sum { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-setup:not(.is-collapsed) .sh-setup-sum { visibility: hidden; }
.sh-setup-toggle { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sh-setup-toggle:hover { background: var(--ink); color: #fff; }
.sh-setup-body { display: grid; grid-template-columns: 1fr 1.9fr .85fr; }
.sh-setup-col { display: grid; align-content: start; gap: 9px; padding: 16px 18px 18px; border-right: 1px solid var(--line); min-width: 0; }
.sh-setup-col:last-child { border-right: 0; }
.sh-setup-col .sh-label + select { margin-top: -2px; }
.sh-setup-col .sh-seg + .sh-label { margin-top: 6px; }
.sh-setup .sh-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-setup.is-collapsed .sh-setup-body { display: none; }
.sh-setup.is-collapsed .sh-setup-head { border-bottom: 0; }

/* 02 · нагрузки + щит */
.sh-work { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 24px; align-items: start; }
.sh-loads-col { min-width: 0; }
.sh-loads { padding: 4px 16px 14px; border: 1px solid var(--line); background: #fbfbf8; }
.sh-load-group { padding-top: 10px; }
.sh-load-group-t { margin: 0 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sh-load { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e6e6e0; }
.sh-ico { display: grid; place-items: center; width: 46px; height: 46px; align-self: start; background: transparent; color: #365b43; }
.sh-ico-svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-ico-svg .a { fill: var(--lime); stroke: currentColor; }
.sh-ico-svg .a.s { fill: none; stroke: #527529; stroke-width: 1.8; }
.sh-load.is-on .sh-load-txt > span { font-weight: 600; }
.sh-load:last-child { border-bottom: 0; }
.sh-load-txt span { display: block; font-size: 14px; line-height: 1.3; }
.sh-load-txt small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.sh-step { display: flex; }
.sh-step button { width: 36px; height: 38px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; touch-action: manipulation; }
.sh-step button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sh-step button:active { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.sh-step input { width: 46px; height: 38px; border: 1px solid var(--line-2); border-inline: 0; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; appearance: textfield; border-radius: 0; }
.sh-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-unit { font-size: 11.5px; color: var(--muted); }
.sh-kw { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.sh-kw input { width: 58px; height: 30px; padding: 0 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 0; font-variant-numeric: tabular-nums; }
.sh-soon { position: relative; margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--line-2); color: var(--muted); }
.sh-soon b { display: block; color: var(--ink); font-size: 14px; }
.sh-soon p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; }
.sh-soon-tag { position: absolute; right: 12px; top: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; background: var(--paper-2); color: var(--ink); font-weight: 600; }
.sh-to-estimate { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; margin-top: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.sh-to-estimate:hover { background: var(--char); color: var(--lime); }

/* щит закреплён и всегда на виду */
.sh-viewer { position: sticky; top: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); display: flex; flex-direction: column; min-width: 0; }
.sh-viewer-top { flex: none; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sh-meta { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-icon-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.sh-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sh-icon-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sh-view { position: relative; flex: 1; min-height: 0; }
.sh-warn-badge { position: absolute; left: 12px; bottom: 12px; z-index: 4; padding: 7px 11px; background: #fff8e8; border: 1px solid #e0a12b; color: #6b4a07; font-size: 12px; font-weight: 600; text-decoration: none; }
.sh-viewer.is-full { position: fixed; inset: 0; z-index: 80; height: auto; padding: 12px; background: var(--paper); }

/* стена и корпус */
.sh-stage { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; padding: 20px; overflow: auto; background: radial-gradient(120% 90% at 50% 20%, #ecebe5, #d9d8d1 70%, #cfcec7); border: 1px solid var(--line); }
.sh-stage.is-zoomed { align-items: flex-start; }
.sh-enclosure { --m: 40px; --cap: 12; flex: none; margin: auto; padding: calc(var(--m) * .42); background: linear-gradient(180deg, #f7f7f4, #e6e7e2); border: 1px solid #bdbfb8; box-shadow: 0 40px 70px -40px rgba(20, 22, 18, .55), 0 2px 0 #fff inset, inset 0 0 0 calc(var(--m) * .1) #fbfbf9; }
.sh-enc-in { display: grid; gap: calc(var(--m) * .62); padding: calc(var(--m) * .55) calc(var(--m) * .45) calc(var(--m) * .5); background: var(--backplate, linear-gradient(135deg, #d5d7d2, #c6c9c3)) center / calc(var(--m) * 14) auto; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sh-row { position: relative; width: calc(var(--cap) * var(--m)); }
.sh-rail { display: none; }
.sh-row-devs { position: relative; z-index: 0; display: grid; grid-template-columns: repeat(var(--cap), var(--m)); align-items: center; }
.sh-row-devs::before { content: ""; position: absolute; z-index: -1; left: calc(var(--m) * -.3); right: calc(var(--m) * -.3); top: 50%; height: calc(var(--m) * 2); transform: translateY(-50%); background: var(--rail, repeating-linear-gradient(90deg, #b9bcb6 0 calc(var(--m) * .9), #9fa29c calc(var(--m) * .9) calc(var(--m) * 1.05))) left center / auto 100% repeat-x; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.sh-dev { grid-column: span var(--mods); display: block; width: calc(var(--mods) * var(--m)); aspect-ratio: 1 / var(--ar); padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.sh-dev-face { display: block; width: 100%; height: 100%; overflow: hidden; }
.sh-dev img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; user-select: none; -webkit-user-drag: none; }
.sh-blank { cursor: default; }
.sh-dev.is-new { animation: devIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes devIn { from { opacity: 0; transform: translateY(-10%); } }
.sh-dev.is-hot, .sh-dev:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; z-index: 2; }
.sh-dev.is-hot img { filter: none; }

/* заглушки до загрузки фото */
.sh-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(180deg, #fff 0 18%, #f1f1ee 18% 34%, #fff 34% 60%, #e8e8e4 60% 76%, #fff 76%); border: 1px solid #cfd0ca; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.sh-ph b { font-size: calc(var(--m) * .2); font-weight: 700; color: #20231f; writing-mode: vertical-rl; transform: rotate(180deg); }
.sh-ph-blank { background: #fbfbf8; }
.sh-ph.is-wide b { writing-mode: horizontal-tb; transform: none; text-align: center; padding: 0 6%; }
.sh-ph-relay, .sh-ph-meter { background: linear-gradient(180deg, #fff 0 22%, #1d211d 22% 48%, #fff 48%); }

/* маркировочная полоса */
.sh-row-tags { display: grid; grid-template-columns: repeat(var(--cap), var(--m)); margin-top: calc(var(--m) * .2); background: #fdfdfa; border: 1px solid #c4c6bf; }
.sh-tag { grid-column: span var(--mods); min-width: 0; padding: calc(var(--m) * .07) calc(var(--m) * .05); border-right: 1px solid #dddfd8; text-align: center; font-size: max(7px, calc(var(--m) * .17)); line-height: 1.15; overflow: hidden; }
.sh-tag:last-child { border-right: 0; }
.sh-tag b { display: block; font-weight: 700; }
.sh-tag i { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; color: #4a4e47; }
.sh-tag-empty { background: repeating-linear-gradient(45deg, transparent 0 4px, #f0f0eb 4px 5px); }
.sh-tag.is-hot { background: var(--lime); }
.is-tiny .sh-tag i { display: none; }
.is-micro .sh-tag { font-size: 0; min-height: calc(var(--m) * .45); }

/* шины N и PE */
.sh-busrow { display: flex; gap: calc(var(--m) * .6); justify-content: center; padding-top: calc(var(--m) * .1); }
.sh-bus { display: grid; justify-items: center; gap: 2px; font-size: max(8px, calc(var(--m) * .17)); font-weight: 600; color: #3a3e38; }
.sh-bus img { height: calc(var(--m) * 1.35); width: auto; max-width: calc(var(--m) * 6); object-fit: contain; filter: none; }
.sh-ph-bus { display: block; width: calc(var(--m) * 5); height: calc(var(--m) * .7); background: linear-gradient(180deg, #e2c27a, #b48f43); border-bottom: calc(var(--m) * .25) solid #2f5fb4; }
.sh-bus.is-pe .sh-ph-bus { border-bottom-color: #3f8f3a; }
.is-micro .sh-bus span { display: none; }

/* подсказка */
.sh-tip { position: absolute; z-index: 5; width: 300px; display: grid; gap: 3px; padding: 12px 14px; background: rgba(21, 23, 21, .94); color: #f2f1ec; font-size: 12.5px; line-height: 1.45; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); pointer-events: none; }
.sh-tip b { font-size: 13.5px; }
.sh-tip span { color: #c9cec4; }
.sh-tip .sh-tip-price { color: var(--lime); font-weight: 700; }

/* схема */
.sh-schema { height: 100%; overflow: auto; background: #fff; border: 1px solid var(--line); padding: 10px; }
.sch-svg { display: block; }
.sch-svg path, .sch-svg ellipse, .sch-svg rect, .sch-svg circle { stroke: #151715; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sch-svg .fill-bg { fill: #fff; }
.sch-svg .dot { fill: #151715; stroke: none; }
.sch-svg .bus { stroke-width: 3.4; }
.sch-svg .bus.thin { stroke-width: 2.2; }
.sch-svg .dash { stroke-dasharray: 3 3; stroke-width: 1; }
.sch-svg .grid { stroke: #cfd1ca; stroke-width: 1; }
.sch-svg text { fill: #151715; font-family: Manrope, sans-serif; }
.sch-svg .lbl { font-size: 11px; font-weight: 500; }
.sch-svg .strong { font-weight: 700; }
.sch-svg .cell { font-size: 10px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.sch-svg .cell.head { font-weight: 700; fill: #5b5f59; }
.sch-svg .vname { font-size: 11px; font-weight: 600; text-anchor: end; }
.sch-svg .sym-t { font-size: 9px; font-weight: 700; text-anchor: middle; }
.sch-dev { cursor: default; }
.sch-dev.is-hot path, .sch-dev.is-hot ellipse, .sch-dev.is-hot rect { stroke: #6d791e; stroke-width: 2; }
.sch-dev.is-hot text { fill: #4e5a10; }
.sh-empty { padding: 30px; color: var(--muted); }

/* 03 · смета внизу */
.sh-estimate { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.sh-est-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.sh-bom-card { padding: 6px 22px 18px; background: #fff; border: 1px solid var(--line); }
.sh-bom-sec p { display: flex; justify-content: space-between; margin: 16px 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sh-bom-sec p b { color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sh-bom-sec ul { list-style: none; margin: 0; padding: 0; }
.sh-bom-sec li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding: 8px 0; border-bottom: 1px solid #ecece6; font-size: 13.5px; line-height: 1.4; }
.sh-bom-sec li em { grid-row: 2; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-bom-sec li b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-est-card { position: sticky; top: 12px; padding: 22px; background: var(--ink); color: #f2f1ec; }
.sh-est-card .sh-eyebrow { color: #aeb3a8; }
.sh-total { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sh-total span { color: var(--lime); }
.sh-total-note { margin: 8px 0 14px; font-size: 12px; color: #c3c8bd; line-height: 1.5; }
.sh-est-card .sh-checks { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 0; border-block: 1px solid #343832; }
.sh-est-card .sh-checks label { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13.5px; cursor: pointer; }
.sh-est-card .sh-checks input { width: 18px; height: 18px; accent-color: var(--lime); flex: none; }
.sh-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1px solid transparent; font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; text-align: center; }
.sh-btn-primary { background: var(--lime); color: var(--ink); }
.sh-btn-primary:hover { background: #e4ff78; }
.sh-btn-ghost { background: transparent; color: #f2f1ec; border-color: #5d6358; min-height: 42px; flex: 1; }
.sh-btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.sh-est-card :focus-visible { outline-color: var(--lime); }
.sh-btn-hint { margin: 7px 0 12px; font-size: 11.5px; color: #aeb3a8; text-align: center; }
.sh-btn-row { display: flex; gap: 8px; }
.sh-fine { margin: 14px 0 0; font-size: 11px; color: #9ea397; line-height: 1.5; }
.sh-notes { max-width: 900px; margin-top: 26px; }
.sh-notes h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.sh-warnings { display: grid; gap: 6px; }
.sh-warn { margin: 0; padding: 9px 12px; font-size: 13px; line-height: 1.45; background: #fbfbf8; border-left: 3px solid var(--line-2); }
.sh-warn.is-warn { border-left-color: #e0a12b; background: #fff8e8; }
.sh-caption { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }

.sh-mobilebar { display: none; }
/* подвал как на основном сайте: тёмный, с подписью студии */
.sh-footer { padding: 34px max(20px, calc((100vw - 1480px) / 2)) 22px; background: var(--ink); color: #f2f1ec; font-size: 13px; }
.sh-footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sh-footer-home { color: #f2f1ec; font-weight: 600; text-decoration: none; }
.sh-footer-home:hover { color: var(--lime); }
.sh-footer p { margin: 0; max-width: 640px; color: #c3c8bd; line-height: 1.6; }
.sh-footer :focus-visible { outline-color: var(--lime); }
.sh-footer-sign { display: flex; justify-content: flex-end; margin-top: 16px; }
.nhl-credit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 44px; line-height: 1; color: inherit; font-family: inherit; font-weight: 400; text-decoration: none; }
.nhl-credit img { display: block; width: 104px; height: auto; max-width: none; opacity: .85; transition: opacity .2s ease; }
.nhl-credit:hover img, .nhl-credit:focus-visible img { opacity: 1; }
.nhl-credit:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nhl-credit-label { font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap; }

@media (max-width: 1240px) {
  .sh-setup-body { grid-template-columns: 1fr 1fr; }
  .sh-setup-wide { grid-column: 1 / -1; order: 3; border-right: 0; border-top: 1px solid var(--line); }
  .sh-setup-col:last-child { border-right: 0; }
  .sh-work { grid-template-columns: 340px minmax(0, 1fr); }
  .sh-meta { display: none; }
}

/* телефон и планшет: щит закреплён в верхней части экрана, нагрузки прокручиваются под ним */
@media (max-width: 900px) {
  .sh-header { gap: 14px; height: 62px; }
  .sh-logo { width: 150px; }
  .sh-nav { display: none; }
  .sh-cta { margin-left: auto; padding: 0 12px; font-size: 12px; min-height: 40px; }
  .sh-main { width: calc(100% - 28px); padding-top: 22px; padding-bottom: 96px; }
  .sh-intro { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .sh-intro h1 { font-size: 32px; }
  .sh-lead { font-size: 14.5px; margin-top: 10px; }
  .sh-setup { margin-bottom: 0; }
  .sh-setup-head { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
  .sh-setup-head h2 { font-size: 16px; }
  .sh-setup-sum { order: 3; flex-basis: 100%; white-space: normal; font-size: 12px; line-height: 1.45; }
  .sh-setup.is-open .sh-setup-sum { display: none; }
  .sh-setup:not(.is-open) .sh-setup-body { display: none; }
  .sh-setup:not(.is-open) .sh-setup-head { border-bottom: 0; }
  html { scroll-padding-top: calc(46svh + 16px); scroll-padding-bottom: 70px; }
  .sh-setup-toggle { margin-left: auto; min-height: 34px; }
  .sh-setup-body { grid-template-columns: 1fr; }
  .sh-setup-col, .sh-setup-wide, .sh-setup-col:last-child { grid-column: auto; order: 0; border-right: 0; border-top: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .sh-setup-col:last-child { border-bottom: 0; }
  .sh-setup .sh-modes { grid-template-columns: 1fr; }
  .sh-work { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sh-viewer { order: -1; top: 0; z-index: 30; height: 46vh; height: 46svh; margin: 0 -14px; padding: 8px 10px 8px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px -14px rgba(0, 0, 0, .45); }
  .sh-viewer-top { gap: 6px; margin-bottom: 6px; }
  .sh-icon-btn { width: 34px; height: 34px; }
  .sh-stage { padding: 6px; }
  .sh-viewer.is-full { padding: 10px; margin: 0; }
  .sh-warn-badge { left: 8px; bottom: 8px; padding: 5px 8px; font-size: 11px; }
  .sh-tip { width: 250px; }
  .sh-loads-col { padding-top: 18px; }
  .sh-col-title { font-size: 17px; }
  .sh-loads { padding: 2px 12px 12px; }
  .sh-load { gap: 6px; }
  .sh-step button { width: 40px; height: 40px; }
  .sh-step input { width: 44px; height: 40px; }
  .sh-estimate { margin-top: 36px; padding-top: 22px; }
  .sh-est-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-est-card { position: static; order: -1; }
  .sh-bom-card { padding: 4px 14px 14px; }
  .sh-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); color: #f2f1ec; text-decoration: none; font-size: 13px; font-weight: 600; transition: transform .25s ease, visibility .25s; }
  .sh-mobilebar b { color: var(--lime); font-variant-numeric: tabular-nums; }
  .sh-mobilebar.is-hidden { transform: translateY(110%); visibility: hidden; }
  .sh-footer { padding: 28px 16px calc(80px + env(safe-area-inset-bottom)); }
  .sh-footer-sign { justify-content: flex-start; margin-top: 12px; }
}
@media (max-width: 600px) {
  .sh-load-txt small { display: none; }
  .sh-load { grid-template-columns: 38px minmax(0, 1fr) auto 26px; gap: 8px; }
  .sh-ico { width: 38px; height: 38px; align-self: center; }
  .sh-ico-svg { width: 25px; height: 25px; }
  .sh-kw > span { display: none; }
  .sh-kw input { width: 52px; }
}
@media (max-width: 420px) {
  .sh-cta { font-size: 0; width: 40px; padding: 0; justify-content: center; }
  .sh-cta::before { content: "TG"; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sh-dev.is-new { animation: none; } html { scroll-behavior: auto; } .sh-mobilebar, .nhl-credit img { transition: none; } }
@media print {
  .sh-header, .sh-setup, .sh-loads-col, .sh-viewer-top, .sh-mobilebar, .sh-btn, .sh-btn-row, .sh-btn-hint, .sh-footer, .skip-link, .sh-tip, .sh-est-card .sh-checks, .sh-warn-badge { display: none !important; }
  .sh-work, .sh-est-grid { display: block; }
  .sh-viewer { position: static; height: auto; }
  .sh-stage { height: auto; background: none; border: 0; }
  .sh-view[hidden] { display: block !important; }
  .sh-schema { height: auto; overflow: visible; border: 0; }
  .sh-est-card { position: static; background: #fff; color: #000; border: 1px solid #999; }
  body.shield-body { background: #fff; }
}

/* Аудит 15.10.2026: пустой корпус не мелькает до первой сборки; неактивные действия. */
.sh-enclosure:empty { visibility: hidden; }
.sh-btn[aria-disabled="true"], .sh-btn:disabled { opacity: .45; pointer-events: none; }
