/* Шрифт OFL: Alegreya Sans (Juan Pablo del Peral, Huerta Tipográfica) — Google Fonts, файлы в fonts/; числа — им же, табличными цифрами */
@font-face{font-family:'Alegreya Sans';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/AlegreyaSans-400i-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Alegreya Sans';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/AlegreyaSans-400i-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/AlegreyaSans-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/AlegreyaSans-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/AlegreyaSans-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/AlegreyaSans-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/AlegreyaSans-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/AlegreyaSans-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/AlegreyaSans-800-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/AlegreyaSans-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* «Впору» — окно программы мебельщика. Рабочее поле, тёмная панель, маджента — размеры, выделение, действие. */
:root {
  --ws: #e4e8ea; --ws2: #d5dbde; --paper: #f5f7f7; --white: #fff;
  --ink: #15181c; --ink2: #464d54; --ink3: #5d656c; --line: #c5ccd0; --line2: #dde2e4;
  --dark: #1d2126; --dark2: #252a30; --dark3: #353c43; --on-dark: #eef1f2; --on-dark2: #aab3ba;
  --mag: #c8106f; --mag-d: #9a0a55; --mag-t: #fbe4ef; --mag-l: #ff6aae;
  --f: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --hdr: 64px; --ease: cubic-bezier(.22, .8, .24, 1);
  --sh: 0 1px 2px rgba(21, 24, 28, .08), 0 8px 24px rgba(21, 24, 28, .1);
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --b { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --o { syntax: '<number>'; inherits: false; initial-value: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ws); color: var(--ink); font: 400 19px/1.55 var(--f); font-kerning: normal; font-variant-numeric: lining-nums; caret-color: var(--mag); }
::selection { background: var(--mag); color: #fff; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--f); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; border-radius: 4px; }
.s-mag :focus-visible, .s-fin :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mag); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
html { scrollbar-color: #9aa3aa var(--ws); }

/* пунктир: уточнить у заказчика */
.ask { border-bottom: 1.5px dotted var(--mag); color: inherit; }
.ask-key { border-bottom: 1.5px dotted var(--mag-l); }
.s-mag .ask { border-color: rgba(255, 255, 255, .85); }
.s-dark .ask, .s-fin .ask { border-color: var(--mag-l); }

/* плашка демо */
.demo-s, .lead-s { display: none; }
.demo { background: var(--dark2); color: var(--on-dark2); font-size: 14px; line-height: 1.45; padding: 8px 24px; text-align: center; }

/* кнопки */
.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--mag); color: #fff; font-weight: 700; font-size: 18px; line-height: 1.1; text-decoration: none; box-shadow: 0 6px 16px rgba(21, 24, 28, .2); transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.go:hover { background: #b00d61; }
.go:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(21, 24, 28, .2); }
.go:disabled { background: #c9ced2; color: #464d54; box-shadow: none; cursor: not-allowed; }
.go svg { width: 18px; height: 18px; fill: currentColor; }
.go-s { min-height: 42px; font-size: 16px; padding: 0 18px; }
.go-w { background: #fff; color: var(--mag-d); box-shadow: 0 8px 22px rgba(21, 24, 28, .16), inset 0 0 0 1.5px var(--mag); }
.go-w:hover { background: var(--mag-t); }
.lnk { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mag); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.lnk:hover { color: var(--mag-d); }
.lnk-w { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }
.lnk-w:hover { color: #fff; text-decoration-color: #fff; }
.ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic:hover { border-color: var(--ink); }

/* шапка — заголовок окна программы */
.bar { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 20px; padding: 0 20px 0 18px; background: rgba(29, 33, 38, .97); color: var(--on-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(0, 0, 0, .18); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.sign { width: 34px; height: 34px; fill: none; stroke: var(--on-dark); stroke-width: 2.2; }
.sign .m { stroke: var(--mag-l); stroke-width: 2; }
.brand-t { display: grid; line-height: 1; }
.brand-t b { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.brand-t small { font-size: 13px; color: var(--on-dark2); margin-top: 3px; }
.nav { display: flex; align-items: stretch; height: 100%; margin: 0 auto; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--on-dark2); text-decoration: none; font-size: 16px; font-weight: 500; position: relative; transition: color .2s; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; }
.nav a[aria-current]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mag-l); }
.menu-btn { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1.5px solid var(--dark3); border-radius: 10px; background: transparent; color: var(--on-dark); font-weight: 700; margin-left: auto; }
.mb-i { display: grid; gap: 4px; }
.mb-i i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.bar > .go { flex: none; }

/* ====== Первый экран: окно проекта ====== */
.hero { scroll-margin-top: var(--hdr); }
.win { display: grid; grid-template-columns: 84px minmax(0, 1fr) 344px; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: 'rail stage props' 'status status status'; height: calc(100svh - var(--hdr) - 36px); min-height: 700px; max-height: 960px; }
.rail { grid-area: rail; background: var(--dark2); color: var(--on-dark2); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 8px; }
.rail-sep { height: 14px; flex: none; }
.rail button { display: grid; justify-items: center; gap: 4px; padding: 9px 2px 7px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.1; transition: background .2s, color .2s; }
.rail button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail button:hover { background: var(--dark3); color: #fff; }
.rail button[aria-pressed=true] { background: var(--dark3); color: #fff; }
.rail button[aria-pressed=true] svg { stroke: var(--mag-l); }

.stage { grid-area: stage; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 60% 35%, #f3f5f6 0%, #e6eaec 55%, #d6dcdf 100%); }
.hero-txt { position: absolute; z-index: 3; left: clamp(24px, 3vw, 48px); top: clamp(24px, 4vh, 44px); width: min(480px, 44%); pointer-events: none; }
.hero-txt > * { pointer-events: auto; }
h1 { font-size: clamp(42px, 4.1vw, 62px); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
.lead { margin-top: 18px; font-size: 19px; line-height: 1.45; color: var(--ink2); max-width: 30em; }
.acts { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.vp-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .86); color: var(--ink2); font-size: 14.5px; white-space: nowrap; box-shadow: var(--sh); transition: opacity .5s, translate .5s var(--ease); pointer-events: none; }
.vp-hint svg { width: 18px; height: 18px; fill: none; stroke: var(--mag); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vp-hint.gone { opacity: 0; translate: 0 8px; }

/* 3D-поле */
.vp { position: absolute; inset: 0; overflow: hidden; perspective: 2600px; perspective-origin: 50% 42%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.vp.turning { cursor: grabbing; }
.vp.sizing { cursor: ew-resize; }
.cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.vp.glide .cam { transition: transform .9s var(--ease); }
.bx, .hg, .dw { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.f { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--c); box-shadow: inset 0 0 0 .6px rgba(21, 24, 28, .22); }
.fr, .fl { background: color-mix(in oklab, var(--c) 84%, #1d2126); }
.ft { background: color-mix(in oklab, var(--c) 90%, #fff); }
.fd { background: color-mix(in oklab, var(--c) 72%, #1d2126); }
.fb { background: color-mix(in oklab, var(--c) 80%, #1d2126); }
.wood .fz { background-image: linear-gradient(0deg, rgba(255, 255, 255, .06), rgba(80, 40, 10, .07)), repeating-linear-gradient(0deg, rgba(90, 50, 20, .1) 0 1px, transparent 1px 6px, rgba(90, 50, 20, .05) 6px 7px, transparent 7px 13px); }
.wood.vert .fz { background-image: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(80, 40, 10, .07)), repeating-linear-gradient(90deg, rgba(90, 50, 20, .1) 0 1px, transparent 1px 6px, rgba(90, 50, 20, .05) 6px 7px, transparent 7px 13px); }
.g-m .f { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); }
.g-t .fz, .g-t .ft { background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 7px 7px; }
.g-gl .fz { background: linear-gradient(120deg, #e3ebee 0%, #b4c5cc 38%, #eef4f5 52%, #a9bcc4 70%, #d7e2e6 100%); }
.t-oven .fz { background: linear-gradient(#2a2e33 0 12%, #121417 12% 88%, #2a2e33 88%); box-shadow: inset 0 0 0 3px #2a2e33; }
.t-hob .ft { background: radial-gradient(circle at 28% 35%, transparent 0 9%, rgba(255, 255, 255, .22) 9.5% 11%, transparent 11.5%), radial-gradient(circle at 72% 35%, transparent 0 9%, rgba(255, 255, 255, .22) 9.5% 11%, transparent 11.5%), radial-gradient(circle at 30% 72%, transparent 0 7%, rgba(255, 255, 255, .22) 7.5% 9%, transparent 9.5%), radial-gradient(circle at 70% 72%, transparent 0 11%, rgba(255, 255, 255, .22) 11.5% 13%, transparent 13.5%), #17191c; }
.t-sink .ft { background: radial-gradient(ellipse at 50% 50%, #7f888d 0 30%, #aab3b8 70%); }
.t-fridge .fz { background-image: linear-gradient(transparent 33.6%, rgba(0, 0, 0, .25) 33.6% 34%, transparent 34%), linear-gradient(90deg, transparent 88%, rgba(0, 0, 0, .18) 88% 89.5%, transparent 89.5%); }
/* упаковка модулей */
.g-pk .ft, .g-pk .fz { background-image: linear-gradient(90deg, transparent 46%, rgba(120, 85, 40, .35) 46% 54%, transparent 54%); }
/* комната */
.rm .f { box-shadow: none; }
.rm.floor .ft { background: repeating-linear-gradient(90deg, #d8d3cb 0 98px, #cfcac1 98px 100px), #d8d3cb; }
.rm.floor .fz { background: #c9c3b9; }
.rm.wall .fz { background: linear-gradient(#e9ecec, #f2f3f2); }
.rm.side .fz { background: #c7ced2; }
.rm.side .fr, .rm.side .fl { background: linear-gradient(90deg, #e2e6e7, #edefef); }
.rm.side .ft { background: #c7ced2; }
.rm.ceil .fz { background: #c7ced2; }
.rm.ceil .fd { background: #f0f1f1; }
.rm.sock .fz { background: #fff; box-shadow: inset 0 0 0 1px #b4bcc1; }
.rm .fb, .rm.wall .fr, .rm.wall .fl, .rm.wall .ft, .rm.wall .fd { display: none; }
/* выбранная деталь */
.sel .f { background: color-mix(in oklab, var(--c, #fff) 40%, var(--mag)) !important; box-shadow: inset 0 0 0 1.5px var(--mag-d) !important; }
/* двери, подъёмник, ящики */
.hg { transition: --a 1s var(--ease), --b 1s var(--ease); }
.dw { transition: --o 1s var(--ease); }
.vp.open .hl { --a: -96deg; }
.vp.open .hr { --a: 96deg; }
.vp.open .ht { --b: 72deg; }
.vp.open .dw { --o: 1; }
.arrive { animation: drop .8s var(--ease) both; }
@keyframes drop { from { translate: 0 -220px 0; } }
/* размеры */
.dim { position: absolute; left: 0; top: 0; pointer-events: none; }
.dim b { position: absolute; font: 700 14px/1 var(--f); font-variant-numeric: tabular-nums; color: #fff; background: var(--mag); padding: 4px 7px 3px; border-radius: 5px; white-space: nowrap; }
.dx, .dz { height: 14px; border-top: 2px solid var(--mag); }
.dx::before, .dx::after, .dz::before, .dz::after { content: ''; position: absolute; top: -8px; width: 2px; height: 14px; background: var(--mag); }
.dx::before, .dz::before { left: 0; } .dx::after, .dz::after { right: 0; }
.dx b, .dz b { left: 50%; top: -26px; transform: translateX(-50%); }
.dy { width: 14px; border-left: 2px solid var(--mag); }
.dy::before, .dy::after { content: ''; position: absolute; left: -8px; width: 14px; height: 2px; background: var(--mag); }
.dy::before { top: 0; } .dy::after { bottom: 0; }
.dy b { top: 50%; left: 10px; transform: translateY(-50%); }
.grip { position: absolute; left: 0; top: 0; width: 30px; height: 92px; padding: 0; border: 3px solid #fff; border-radius: 15px; background: var(--mag); cursor: ew-resize; box-shadow: 0 6px 16px rgba(21, 24, 28, .3); touch-action: none; }
.grip span { position: absolute; inset: 26px 8px; background: linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); border-radius: 2px; opacity: .9; }
.grip:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* панель свойств */
.props { grid-area: props; background: #fff; border-left: 1px solid var(--line); padding: 14px 20px 16px; overflow: auto; font-size: 16px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: thin; }
.pr label, .pr-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 500; }
.pr output { font-size: 15px; color: var(--ink2); white-space: nowrap; }
.pr output b { font-weight: 800; font-size: 18px; color: var(--mag); font-variant-numeric: tabular-nums; }
.decor-name { font-weight: 400; color: var(--ink2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink2), var(--ink2)) 0 0 / 100% 100% no-repeat, var(--ws2); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--ws2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--mag); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--mag); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 6px; border-radius: 10px; background: var(--ws); }
.seg button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; font-size: 14.5px; font-weight: 500; line-height: 1.1; padding: 4px 6px; transition: background .2s, color .2s; }
.seg button:hover { background: rgba(255, 255, 255, .6); }
.seg button[aria-pressed=true] { background: #fff; color: var(--mag-d); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), inset 0 0 0 1.5px var(--mag); }
.decors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sw { width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); position: relative; }
.sw.wood { background-image: repeating-linear-gradient(90deg, rgba(90, 50, 20, .14) 0 1px, transparent 1px 5px); }
.sw[aria-pressed=true] { outline: 2.5px solid var(--mag); outline-offset: 2px; }
.sw:disabled { opacity: .28; cursor: not-allowed; }
.sw:disabled::after { content: ''; position: absolute; inset: 15px -2px auto; height: 2px; background: var(--ink); transform: rotate(-45deg); }
.tg { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.tg input { -webkit-appearance: none; appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--ws2); position: relative; cursor: pointer; transition: background .2s; }
.tg input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.tg input:checked { background: var(--mag); }
.tg input:checked::after { transform: translateX(16px); }
.sum { list-style: none; margin: 2px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line2); display: grid; gap: 3px; font-size: 15px; }
.sum li { display: flex; justify-content: space-between; gap: 10px; }
.sum li span { color: var(--ink2); }
.sum li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tot { display: grid; gap: 2px; font-weight: 500; color: var(--ink2); font-size: 15px; }
.tot b { font-size: 34px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tot-n { font-size: 13.5px; line-height: 1.35; color: var(--ink2); }
.props .go { margin-top: auto; }
.more { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; font-weight: 700; font-size: 15.5px; line-height: 1.35; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2.4px solid var(--mag); border-bottom: 2.4px solid var(--mag); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.more-in { display: grid; gap: 12px; padding: 4px 0 14px; }

.status { grid-area: status; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 10px 24px; background: var(--dark); color: var(--on-dark2); font-size: 14px; }
.status span { white-space: nowrap; }
.status .mono { font-size: 14px; font-weight: 500; color: var(--on-dark); }
#st-kind { color: #fff; font-weight: 700; }
.st-sum { margin-left: auto; }
.st-sum b { color: var(--mag-l); font-size: 15px; font-weight: 800; }

/* ====== Разделы ====== */
.sec { padding: 104px 0 112px; scroll-margin-top: var(--hdr); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.s-light { background: var(--paper); }
.s-ws { background: var(--ws); }
.s-dark { background: var(--dark); color: var(--on-dark); }
.s-mag { background: var(--mag); color: #fff; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; margin-bottom: 56px; }
h2 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; }
.head p { font-size: 19px; color: var(--ink2); max-width: 36em; }
.head-1 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.head-1 h2 { max-width: 15em; }
.s-dark .head p { color: var(--on-dark2); }
.s-mag .head p { color: rgba(255, 255, 255, .9); }
h3 { font-size: 21px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.note { margin-top: 28px; font-size: 15px; color: var(--ink3); }
.s-mag .note { color: rgba(255, 255, 255, .82); }

/* Замер */
.vp-zm { position: relative; height: 640px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 30%, #f5f6f7, #dde2e5); }
.rm.plinth .fz { background: #f6f6f4; box-shadow: inset 0 0 0 .6px rgba(21, 24, 28, .25); }
.rm.plinth .ft { background: #fff; }
.zr b { font-size: 16px; padding: 5px 8px 4px; }
.zr b i { font: 400 13px var(--f); opacity: .9; margin-left: 4px; }
.dy.zr b { left: 8px; top: 22%; }
.dx.zr[data-r=mid] b { left: 66%; }
.tag b { background: #fff; color: var(--ink2); font: 500 12px var(--f); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transform: translate(-50%, -50%); }
.zm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.zm-fig { position: sticky; top: calc(var(--hdr) + 24px); }
.zm-read h2 { margin-bottom: 18px; }
.zm-lead { font-size: 19px; color: var(--ink2); margin-bottom: 32px; }
.zm-fig { margin: 0; background: #fff; border-radius: 16px; padding: 20px 20px 16px; box-shadow: var(--sh); }
.zm-svg { width: 100%; height: auto; max-height: 640px; }
.zm-fig figcaption { font-size: 14.5px; color: var(--ink3); margin-top: 10px; }
.zm-svg .wl { fill: #cfd6d9; }
.zm-svg .wl.cl { fill: #bfc7cb; }
.zm-svg .wl.fl { fill: #d8d3cb; }
.zm-svg .sock { fill: #fff; stroke: var(--ink2); stroke-width: 1.5; }
.zm-svg .plint { fill: #eceeee; stroke: var(--line); }
.zm-svg .ml { font: 400 13px var(--f); fill: var(--ink2); }
.zm-svg .rd line, .zm-svg .rd path { stroke: var(--mag); stroke-width: 2.4; fill: none; }
.zm-svg .rd text { font: 500 17px var(--mono); fill: var(--mag); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.zm-svg .rd text.rl { font: 500 13px var(--f); fill: var(--ink2); }
.zm-svg .hgt line { stroke: var(--ink2); stroke-width: 1.6; stroke-dasharray: 5 4; }
.zm-svg .hgt text { fill: var(--ink); text-anchor: start; }
.zm-svg .diag line { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 2 5; }
.read-n { margin: -20px 0 28px; font-size: 15px; color: var(--ink2); }
.read { margin: 0 0 32px; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.read > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.read dt { font-size: 18px; }
.read dd { margin: 0; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.read dd b { font-size: 30px; font-weight: 800; color: var(--mag); font-variant-numeric: tabular-nums; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cols2 p, .when p, .cols3 p { font-size: 17px; color: var(--ink2); }
.when { margin-top: 28px; }
.ready { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ready li { position: relative; padding-left: 30px; font-size: 17px; color: var(--ink2); }
.ready li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border: 2px solid var(--mag); border-radius: 5px; }
.ready b { color: var(--ink); }

/* Проверка */
.ck { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ck-tabs { display: grid; gap: 4px; }
.ck-tabs button { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 0; border-radius: 12px; background: transparent; color: #fff; font-size: 19px; font-weight: 500; text-align: left; transition: background .2s; }
.ck-tabs button svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-tabs button:hover { background: rgba(255, 255, 255, .12); }
.ck-tabs button[aria-selected=true] { background: #fff; color: var(--mag-d); font-weight: 700; box-shadow: 0 8px 22px rgba(80, 0, 40, .25); }
.ck-tabs button[aria-selected=true] svg { background: var(--mag); border-color: var(--mag); }
.ck-panel { display: grid; grid-template-columns: minmax(220px, 5fr) minmax(0, 7fr); gap: 36px; padding: 36px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(70, 0, 35, .3); min-height: 420px; }
.ck-fig { display: grid; align-content: center; gap: 14px; }
.ck-svg { width: 100%; height: auto; }
.ck-svg text { font: 500 14px var(--mono); fill: var(--ink2); text-anchor: middle; }
.ck-svg .o { fill: var(--ws); stroke: var(--ink2); stroke-width: 2; }
.ck-svg .w { fill: none; stroke: var(--ink3); stroke-width: 6; stroke-linecap: round; }
.ck-svg .bad, .ck-svg g.bad rect { fill: rgba(200, 16, 111, .08); stroke: var(--mag); stroke-width: 3; stroke-dasharray: 8 6; }
.ck-svg .ok { fill: var(--ink); stroke: var(--ink); stroke-width: 3; fill-opacity: .9; }
.ck-svg path.ok, .ck-svg path.bad, .ck-svg .arr { fill: none; stroke-linecap: round; stroke-width: 4; }
.ck-svg .arr { stroke: var(--ink); stroke-width: 3; }
.ck-svg .bt { fill: var(--mag); }
.ck-svg .ot { fill: var(--ink); }
.ck-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink2); }
.ck-legend span { white-space: nowrap; }
.ck-legend .ln::before { display: none; }
.ck-legend span { display: flex; align-items: center; gap: 8px; }
.ck-legend span::before { content: ''; width: 22px; height: 12px; border-radius: 3px; }
.ck-legend .lb::before { border: 2.5px dashed var(--mag); }
.ck-legend .lo::before { background: var(--ink); }
.ck-text h3 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.ck-text p { font-size: 18px; line-height: 1.5; color: var(--ink2); padding: 14px 0; border-top: 1px solid var(--line2); }
.ck-text p b { color: var(--ink); }
.ck-text .ck-bad b { color: var(--mag-d); }

/* Детали */
.det-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: -24px 0 28px; font-size: 17px; color: var(--ink2); }
.det-stats b { color: var(--ink); }
.det { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.det-3d, .det-map { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vp-mini { position: relative; height: 460px; border-radius: 16px; background: radial-gradient(110% 90% at 50% 30%, #f5f6f7, #dfe4e6); box-shadow: inset 0 0 0 1px rgba(21, 24, 28, .06); }
.det-3d figcaption, .det-map figcaption { font-size: 15px; color: var(--ink2); }
#det-sel b { color: var(--mag-d); }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 22px; background: #fff; border-radius: 16px; box-shadow: var(--sh); }
.sheet { margin: 0; }
.sheet svg { width: 100%; height: auto; }
.sheet figcaption { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.sheet .sh { fill: #cdd4d8; }
.sheet .pc rect { fill: #f8f7f3; cursor: pointer; transition: fill .2s; }
.sheet .pc.fr rect { fill: var(--dc); }
.sheet .pc:hover rect { fill: var(--mag-t); }
.sheet .pc.on rect { fill: var(--mag); }
.sheet .pc text { font: 800 16px var(--f); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.sheet .pc.on text, .sheet .pc.fr text { fill: #fff; }
.det-cap { font-size: 15px; color: var(--ink2); margin-top: 10px; }
.plist { margin-top: 32px; }
.plist summary { list-style: none; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 17px; cursor: pointer; }
.plist summary::-webkit-details-marker { display: none; }
.plist summary::after { content: ''; width: 9px; height: 9px; border-right: 2.4px solid var(--mag); border-bottom: 2.4px solid var(--mag); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.plist[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.plist summary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tbl-wrap { margin-top: 16px; overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--sh); max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.parts { width: 100%; border-collapse: collapse; font-size: 16px; }
.parts thead th { position: sticky; top: 0; z-index: 1; background: var(--dark); color: var(--on-dark2); font-weight: 500; font-size: 14px; text-align: left; padding: 11px 14px; white-space: nowrap; }
.parts td, .parts tbody th { padding: 9px 14px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: middle; }
.parts tbody th { font-weight: 700; }
.parts tbody tr { cursor: pointer; transition: background .15s; }
.parts tbody tr:hover { background: var(--paper); }
.parts tbody tr.on { background: var(--mag-t); }
.parts tbody tr.on th { color: var(--mag-d); }
.parts td.mono { font-size: 16px; white-space: nowrap; }
.parts .edge { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 14.5px; white-space: nowrap; }
.eg { width: 54px; height: auto; flex: none; }
.eg rect { fill: #f2f2ef; stroke: #a8b0b5; stroke-width: 1; }
.eg .e2 { fill: none; stroke: var(--mag); stroke-width: 3; }
.eg line.e2 { stroke-width: 3.5; }
.eg .e04 { fill: none; stroke: var(--ink2); stroke-width: 1.2; }
.mat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 88px; }
.mat-h { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.mat-text > p { font-size: 17.5px; color: var(--ink2); margin-top: 14px; max-width: 40em; }
.mat-text b { color: var(--ink); }
.seg-m { background: #fff; margin: 0 0 26px; box-shadow: inset 0 0 0 1px var(--line); }
.cut { position: relative; height: 150px; display: flex; flex-direction: column; border-radius: 4px 18px 18px 4px; overflow: hidden; box-shadow: 0 18px 34px rgba(21, 24, 28, .2); transform: perspective(700px) rotateY(-14deg); transform-origin: left; width: 92%; }
.cut i { display: block; }
.cut .film { height: 8px; background: var(--dc); }
.cut .core { flex: 1; background: #cfb38b; }
.cut .core.mdf { background: #bb9d78; }
.cut .band { position: absolute; right: 0; top: 0; bottom: 0; width: 12px; background: var(--dc); box-shadow: inset 3px 0 0 rgba(0, 0, 0, .15); }
.cut.c-plenka { border: 9px solid var(--dc); border-left: 0; border-radius: 4px 60px 60px 4px; }
.cut.c-emal .paint { height: 18px; background: var(--dc); }
.cut-cap { margin-top: 18px; font-size: 15px; color: var(--ink2); }
.edge11 { margin-top: 18px; }
.e11 { display: flex; align-items: center; gap: 14px; font-size: 16.5px; color: var(--ink2); margin-top: 10px; }
.e11 i { flex: none; width: 110px; background: var(--mag); border-radius: 1px; }
.e11 .e2 { height: 2mm; } .e11 .e04 { height: .4mm; min-height: 1px; background: var(--ink); }

/* Смета */
.sm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.sm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 18px; }
.seg-d { background: var(--dark3); margin: 0; width: min(100%, 420px); }
.seg-d button { color: var(--on-dark2); }
.seg-d button:hover { background: rgba(255, 255, 255, .08); }
.seg-d button[aria-pressed=true] { background: #fff; color: var(--mag-d); }
.sm-ctl .decors { margin: 0; }
.sm-ctl .sw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sm-ctl .sw:disabled::after { background: #fff; }
.tg-d input { background: var(--dark3); }
.sm-t { width: 100%; border-collapse: collapse; }
.sm-t th { text-align: left; font-weight: 700; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--dark3); }
.sm-t th small { display: block; font-size: 15px; font-weight: 400; color: var(--on-dark2); margin-top: 2px; }
.sm-t td { text-align: right; font-size: 19px; padding: 14px 0 14px 20px; border-bottom: 1px solid var(--dark3); white-space: nowrap; vertical-align: top; }
.sm-t tfoot th, .sm-t tfoot td { border-bottom: 0; border-top: 2px solid var(--on-dark); padding-top: 18px; }
.sm-t tfoot td { font-size: 34px; font-weight: 800; color: var(--mag-l); }
.sm-per { margin-top: 22px; font-size: 17px; color: var(--on-dark2); }
.sm-per b { color: #fff; }
.sm-side { display: grid; gap: 34px; }
.sm-side p { font-size: 17px; color: var(--on-dark2); }
.pay-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 6px 0 14px; }
.pay-bar .p1 { width: 30%; background: var(--mag-l); }
.pay-bar .p2 { flex: 1; background: #59636c; }
.pay dl { margin: 0 0 14px; display: grid; gap: 8px; }
.pay dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.pay dd { margin: 0; color: #fff; }

/* Сроки */
.sr { position: relative; }
.sr-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sr-track li { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.sr-track li > b { grid-row: 1; font-size: 20px; }
.sr-track li > span { grid-row: 2; grid-column: 1; font-size: 14.5px; color: var(--ink2); }
.sr-track li > i { grid-column: 2; grid-row: 1; position: relative; height: 22px; align-self: center; background: linear-gradient(90deg, var(--line2) 0 1px, transparent 1px) 0 0 / calc(100% / 30) 100%; }
.sr-track li > i::after { content: ''; position: absolute; top: 2px; bottom: 2px; left: var(--x); width: var(--w); min-width: 14px; border-radius: 8px; background: var(--ink); }
.sr-track .sr-ceh > i::after { background: var(--mag); }
.sr-track li > small { grid-column: 2; grid-row: 2; font-size: 15.5px; color: var(--ink2); margin-top: 4px; }
.sr-pays { position: relative; height: 36px; margin-left: 234px; }
.pm { position: absolute; left: var(--x); top: 6px; transform: translateX(-50%); font: 700 13.5px var(--f); color: #fff; background: var(--mag); padding: 4px 8px; border-radius: 5px; }
.pm::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 9px; background: var(--mag); transform: translateX(-50%); }
.sr-line { margin-top: 30px; font-size: 22px; line-height: 1.5; max-width: 46em; }
.sr-line b { font-weight: 800; color: var(--ink); white-space: nowrap; }
.sr-line .ask { font-size: 16px; color: var(--ink2); }
.sr-notes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 48px; align-items: start; }
.sr-law { padding: 28px 30px; border-radius: 16px; background: #fff; box-shadow: var(--sh); }
.sr-law p { font-size: 18px; color: var(--ink2); }
.sr-side { display: grid; gap: 18px; }
.sr-side p { font-size: 17px; color: var(--ink2); }
.sr-side b { color: var(--ink); }
/* Сборка */
.asm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.asm-fig { position: sticky; top: calc(var(--hdr) + 24px); }
.asm-r h2 { margin-bottom: 16px; }
.asm-lead { font-size: 19px; color: var(--ink2); margin-bottom: 26px; }
.asm-fig { margin: 0; }
.vp-asm { position: relative; height: 520px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 30%, #f3f5f6, #d8dee1); box-shadow: inset 0 0 0 1px rgba(21, 24, 28, .06); cursor: grab; }
.asm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.asm-len { margin-left: auto; font-size: 15px; color: var(--ink2); }
.asm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.asm-list button { display: grid; grid-template-columns: 62px 1fr; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: 17px; line-height: 1.4; color: var(--ink2); transition: background .2s, color .2s; }
.asm-list button .mono { font-size: 16px; color: var(--ink3); padding-top: 1px; }
.asm-list button:hover { background: rgba(255, 255, 255, .55); }
.asm-list .on button { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.asm-list .on .mono { color: var(--mag); }
.asm-list .done button { color: var(--ink3); }

/* Гарантия */
.gr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.gr-r { display: grid; gap: 34px; }
.docs .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.docs .chips li { display: inline-flex; align-items: flex-start; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; max-width: 100%; }
.docs .chips svg { width: 22px; height: 22px; }
.pr-box { margin: 0; padding: 24px 24px 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--sh); }
.pr-box legend { float: left; width: 100%; display: flex; justify-content: space-between; gap: 10px; font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.pr-box legend .mono { font-size: 17px; color: var(--mag); padding-top: 3px; }
.pr-box ul { clear: both; list-style: none; margin: 0; padding: 0; }
.pr-box li { border-top: 1px solid var(--line2); }
.pr-box label { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; font-size: 17px; cursor: pointer; }
.pr-box input, .chk input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--ink3); border-radius: 6px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.pr-box input:checked, .chk input:checked { background: var(--mag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--mag); }
.pr-box input:checked + span { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--mag); }
.docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.docs li { display: flex; gap: 12px; font-size: 17px; color: var(--ink2); }
.docs li b { color: var(--ink); }
.docs svg { flex: none; width: 26px; height: 26px; fill: #fff; stroke: var(--mag); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.guar > p { font-size: 17px; color: var(--ink2); }
.guar h3 { margin-top: 24px; }
.g-line { font-size: 19px !important; line-height: 1.5; color: var(--ink) !important; }
.g-line b { color: var(--mag); font-weight: 800; }

/* Справка */
.sp { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.sp-tools { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 18px; }
.sp-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.sp-search:focus-within { box-shadow: inset 0 0 0 2px var(--mag); }
.sp-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; }
.sp-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; }
.sp-search input:focus { outline: none; }
.sp-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-topics button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .6); font-size: 16px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.sp-topics button:hover { background: #fff; }
.sp-topics button[aria-pressed=true] { background: var(--ink); color: #fff; box-shadow: none; }
.sp-list { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 6px 28px; }
.sp-list details { border-bottom: 1px solid var(--line2); }
.sp-list details:last-of-type { border-bottom: 0; }
.sp-list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 20px; font-weight: 700; cursor: pointer; }
.sp-list summary::-webkit-details-marker { display: none; }
.sp-list summary::after { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; background: linear-gradient(var(--mag), var(--mag)) center / 14px 2.5px no-repeat, linear-gradient(var(--mag), var(--mag)) center / 2.5px 14px no-repeat; transition: transform .25s var(--ease); }
.sp-list details[open] summary::after { transform: rotate(45deg); }
.sp-list summary:hover { color: var(--mag-d); }
.sp-list details p { padding: 0 40px 20px 0; font-size: 18px; color: var(--ink2); max-width: 46em; }
.sp-empty { padding: 22px 0; color: var(--ink2); }

/* Финал */
.s-fin { padding: 96px 0; }
.fin { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.fin h2 { font-size: clamp(40px, 4.4vw, 64px); }
.fin p { margin-top: 18px; font-size: 20px; color: rgba(255, 255, 255, .92); max-width: 30em; }
.fin .acts { margin-top: 30px; }
.fin-fig { margin: 0; }
.vp-fin { position: relative; height: 440px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 30%, #f5f6f7, #d8dee1); box-shadow: 0 20px 50px rgba(70, 0, 35, .3); cursor: grab; }
.fin-fig figcaption { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .92); }
.fin-fig figcaption b { color: #fff; white-space: nowrap; }

/* Подвал */
.foot { background: var(--dark); color: var(--on-dark2); padding: 48px 0 56px; font-size: 15px; }
.foot p { max-width: 70em; }
.foot-docs { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: #fff; text-decoration-color: var(--mag-l); }
.foot-dev a { color: var(--on-dark2); }

/* Окно записи */
.dlg { width: min(620px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.dlg::backdrop { background: rgba(21, 24, 28, .62); backdrop-filter: blur(3px); }
.dlg-form, .dlg-done { padding: 30px 32px 28px; display: grid; gap: 14px; }
.dlg h2 { font-size: 32px; }
.dlg-x { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--ws); }
.dlg-x svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.dlg-x:hover { background: var(--ws2); }
.dlg-demo { justify-self: start; font-size: 14px; font-weight: 700; color: var(--mag-d); background: var(--mag-t); padding: 4px 10px; border-radius: 6px; }
.dlg-proj { font-size: 15.5px; line-height: 1.4; color: var(--ink2); background: var(--paper); border-radius: 10px; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--line2); }
.f-row { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.f-row label, .f-row legend { font-weight: 700; font-size: 16px; padding: 0; }
.f-row label span { font-weight: 400; color: var(--ink3); }
.f-row input, .f-row select, .f-row textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; }
.f-row textarea { resize: vertical; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px var(--mag-t); }
.f-help { font-size: 14px; color: var(--ink3); }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-when { display: flex; flex-wrap: wrap; gap: 8px; }
.f-when legend { width: 100%; margin-bottom: 6px; }
.f-when label { position: relative; }
.f-when input { position: absolute; opacity: 0; }
.f-when label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; cursor: pointer; }
.f-when input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.f-when input:focus-visible + span { outline: 3px solid var(--mag); outline-offset: 2px; }
.f-agree { margin: 4px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.chk { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.chk small { grid-column: 2; color: var(--ink3); font-size: 13.5px; }
.chk a { color: var(--mag-d); }
.f-send { width: 100%; margin-top: 4px; }
.f-why, .f-note { font-size: 14px; color: var(--ink3); }

/* Правовые страницы */
.docpage .bar .doc-nav { display: flex; gap: 18px; margin: 0 auto; }
.docpage .bar .doc-nav a { color: var(--on-dark2); text-decoration: none; }
.docpage .bar .doc-nav a:hover, .docpage .bar .doc-nav a[aria-current] { color: #fff; }
.doc { padding: 64px 0 96px; background: var(--paper); }
.doc-in { max-width: 820px; }
.doc .note { margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: 16px; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.doc .ver { margin-top: 10px; color: var(--ink3); font-size: 15px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; letter-spacing: 0; }
.doc p, .doc li { font-size: 18px; color: var(--ink2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--mag-d); }
.e404 { min-height: 60vh; display: grid; align-content: center; gap: 18px; }

/* ====== Ширины ====== */
@media (max-width: 1340px) {
  .nav a { padding: 0 8px; font-size: 15px; }
  .nav a svg { display: none; }
}
@media (max-width: 1160px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: var(--hdr); right: 12px; left: auto; height: auto; flex-direction: column; min-width: 260px; padding: 8px; border-radius: 14px; background: var(--dark); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity .2s, translate .25s var(--ease), visibility 0s .25s; }
  .nav.open { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s, translate .25s var(--ease); }
  .nav a { padding: 12px 14px; font-size: 17px; border-radius: 10px; }
  .nav a svg { display: block; }
  .nav a[aria-current] { background: var(--dark3); }
  .nav a[aria-current]::after { display: none; }
  .bar > .go { margin-left: 0; }
  .win { grid-template-columns: 76px minmax(0, 1fr) 312px; }
  .hero-txt { width: min(440px, 46%); }
  .head { grid-template-columns: 1fr; align-items: start; }
  .ck-panel { grid-template-columns: 1fr; }
  .ck-fig { max-width: 360px; }
  .gr { grid-template-columns: 1fr 1fr; }
  .guar { grid-column: 1 / -1; }
  .mat-notes { grid-template-columns: 1fr 1fr; }
  .mat-notes .edge11 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --hdr: 58px; }
  body { font-size: 18px; }
  .bar { gap: 10px; padding: 0 12px; }
  .brand-t small { display: none; }
  .demo { padding: 7px 16px; font-size: 13.5px; }
  .demo-l, .lead-l, .hero-txt .lnk { display: none; }
  .demo-s, .lead-s { display: inline; }
  .bar > .go { font-size: 15px; padding: 0 14px; min-height: 40px; }
  .win { height: auto; max-height: none; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'stage' 'rail' 'props' 'status'; }
  .stage { display: flex; flex-direction: column; overflow: visible; }
  .hero-txt { position: static; width: auto; padding: 26px 16px 4px; }
  .vp { position: relative; inset: auto; height: clamp(320px, 92vw, 520px); flex: none; }
  .vp-hint { bottom: 12px; font-size: 13.5px; white-space: normal; width: max-content; max-width: calc(100% - 32px); text-align: center; line-height: 1.3; }
  .rail { flex-direction: row; overflow-x: auto; padding: 8px; gap: 2px; scrollbar-width: none; }
  .rail-h { display: none; }
  .rail button { flex: 1 0 72px; }
  .props { border-left: 0; overflow: visible; padding: 20px 16px; gap: 12px; }
  .sum { grid-template-columns: 1fr; }
  .status { padding: 12px 16px; }
  .st-sum { margin-left: 0; }
  .sec { padding: 72px 0 80px; }
  .wrap { padding: 0 16px; }
      .head { margin-bottom: 36px; }
  .head p { font-size: 18px; }
  .zm, .det, .sm, .asm, .sp, .fin, .mat, .sr-notes, .gr, .gr-r { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .zm-fig { position: static; order: 2; }
  .asm-fig { position: static; order: 2; }
  .asm-r { display: contents; }
  .asm-r h2 { order: 0; } .asm-lead { order: 1; margin-bottom: 0; } .asm-list { order: 3; }
  .zm-read { display: contents; }
  .zm-read h2 { order: 0; } .zm-lead { order: 1; margin-bottom: 0; }
  .zm-read > :not(h2):not(.zm-lead) { order: 3; }
  .sheets { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .vp-fin { height: 320px; }
  .sr-line { font-size: 19px; }
  .parts thead { display: none; }
  .parts, .parts tbody, .parts tr { display: block; }
  .parts tr { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
  .parts td, .parts tbody th { padding: 0; border: 0; }
  .parts tbody th { grid-column: 2; }
  .parts td:nth-child(3) { grid-column: 2 / 4; }
  .parts td:nth-child(4) { grid-column: 3; grid-row: 1; }
  .parts td:nth-child(4)::after { content: ' шт.'; }
  .parts .edge, .parts td:nth-child(6) { grid-column: 2 / 4; font-size: 14.5px; color: var(--ink2); }
  .cols2, .cols3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ck { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ck-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ck-tabs button { flex: none; scroll-snap-align: start; font-size: 16px; padding: 10px 14px; background: rgba(255, 255, 255, .12); }
  .ck-panel { padding: 22px 18px; gap: 18px; min-height: 0; }
  .ck-text h3 { font-size: 24px; }
  .ck-text p { font-size: 17px; }
  .vp-mini { height: 340px; }
  .vp-zm { height: 400px; }
  .zr b i { display: none; }
  .cut { transform: none; width: 100%; }
  .vp-asm { height: 360px; }
  .sp-tools { position: static; }
  .sr-track li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 6px; }
  .sr-track li > b, .sr-track li > span, .sr-track li > i, .sr-track li > small { grid-column: 1; grid-row: auto; }
  .sr-track li > b { order: 1; } .sr-track li > span { order: 2; } .sr-track li > i { order: 3; } .sr-track li > small { order: 4; }
  .sr-pays { margin-left: 0; }
  .sr-sum { grid-template-columns: 1fr; }
  .sp-list { padding: 4px 18px; }
  .sp-list summary { font-size: 18px; }
  .sp-list details p { padding-right: 0; font-size: 17px; }
  .dlg { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; }
  .dlg-form, .dlg-done { padding: 22px 16px 28px; }
  .f-2 { grid-template-columns: 1fr; }
  .tbl-wrap { max-height: 480px; }
  .parts { font-size: 15px; }
  .sm-t td { font-size: 16px; }
  .sm-t tfoot td { font-size: 28px; }
}
@media (max-width: 420px) {
  .bar > .go { padding: 0 10px; font-size: 14px; }
  .menu-btn { padding: 0 10px; }
  .menu-btn { font-size: 0; gap: 0; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
