:root{--ink:#173039;--muted:#75838b;--bg:#f2f5f6;--panel:#fff;--line:#e2e9eb;--accent:#167760;--accent2:#135544;--soft:#eaf5f1;--blue:#e7edf4;--shadow:0 16px 45px rgba(22,53,65,.04)}
*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0}.hidden{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{color:var(--ink);width:100%;border:1px solid #d9e2e4;background:white;border-radius:10px;outline:none;padding:11px 13px}input:focus,select:focus,textarea:focus{border-color:#369d85;box-shadow:0 0 0 3px #369d8522}label{font-size:12px;font-weight:700;color:#465a62;display:block;margin:0 0 9px}label input,label select,label textarea{margin-top:7px}.eyebrow{color:#73918e;font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:800}.brandlogo{font-weight:900;letter-spacing:-.09em;font-size:30px;line-height:1;color:var(--accent2)}.brandlogo span{color:#e9a85c}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;height:76px;background:white;border-bottom:1px solid var(--line);padding:0 29px}.mark{display:flex;align-items:center;gap:18px}.mark>div:last-child{border-left:1px solid #ccd5d8;padding-left:15px;display:flex;flex-direction:column;font-size:15px}.mark span:not(.brandlogo span){font-size:10px;color:var(--muted);margin-top:3px}.top-actions{display:flex;align-items:center;gap:13px}.smallstatus{font-size:12px;color:#4b6c67}.green-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#32a580;margin-right:5px}.ghost{border:0;background:none;color:#496168;padding:8px 9px}.ghost:hover{color:var(--accent)}.workspace{display:grid;grid-template-columns:minmax(255px,0.95fr) minmax(300px,1.15fr) minmax(310px,1.25fr);gap:16px;max-width:1880px;margin:auto;padding:18px}.pane{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:var(--shadow);min-width:0}.paneltitle{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.paneltitle h2{margin:7px 0 0;font-size:20px;letter-spacing:-.035em}.count-pill{border-radius:50px;padding:6px 9px;background:#edf3f4;color:#637780;font-size:11px;font-weight:700;white-space:nowrap}.search{background:#f9fbfb url('data:image/svg+xml,%3Csvg%20xmlns="http://www.w3.org/2000/svg"%20width="15"%20height="15"%20viewBox="0%200%2024%2024"%20fill="none"%20stroke="%2393a4a7"%20stroke-width="2"%3E%3Ccircle%20cx="11"%20cy="11"%20r="8"/%3E%3Cpath%20d="m21%2021-4.3-4.3"/%3E%3C/svg%3E') no-repeat 13px center;padding-left:38px}.collection-tabs{display:flex;overflow-x:auto;gap:6px;padding:13px 0 15px;scrollbar-width:thin}.collection-tabs button{border:1px solid #e4ebed;background:white;border-radius:9px;color:#62747a;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap}.collection-tabs button.active{background:var(--accent2);border-color:var(--accent2);color:white}.model-grid{max-height:min(76vh,950px);overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.model-tile{min-width:0;border:1px solid #e9eef0;background:#fafbfc;border-radius:11px;padding:9px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;transition:.14s}.model-tile:hover,.model-tile.active{border-color:#44a48d;background:#f2f9f6;box-shadow:0 0 0 1px #9bd2c3}.model-tile img{width:100%;height:150px;object-fit:contain;mix-blend-mode:multiply}.model-tile strong{font-size:11px;line-height:1.35}.small-help{font-size:11px;color:#96a2a8;line-height:1.55}.door-tabs{display:flex;align-items:center;gap:6px;margin-bottom:13px;overflow-x:auto}.door-tabs button{border:1px solid var(--line);background:#fbfcfc;border-radius:8px;color:var(--muted);font-size:11px;padding:9px}.door-tabs button.active{background:var(--soft);border-color:#86cbb4;color:#185747;font-weight:800}.preview{background:linear-gradient(#fafbfb,#f1f5f6);border:1px solid #edf0f2;min-height:285px;display:flex;align-items:center;justify-content:center;border-radius:13px;padding:12px}.preview img{height:270px;max-width:90%;object-fit:contain;mix-blend-mode:multiply}.model-info{display:flex;justify-content:space-between;gap:10px;margin:15px 0}.model-info strong{font-size:20px;letter-spacing:-.035em}.model-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.badge{padding:5px 10px;background:var(--soft);color:var(--accent);border-radius:50px;font-size:10px;height:max-content;font-weight:800}.fields-two,.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields-three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.form-section{border-top:1px solid var(--line);padding:14px 0 4px}.form-section h3{font-size:12px;letter-spacing:.015em;margin:0 0 13px}.finish-list{display:flex;gap:7px;overflow:auto;padding:0 0 8px}.finish-item{display:flex;min-width:94px;max-width:94px;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid #e8ecee;background:#fff;border-radius:9px;padding:7px;text-align:left;font-size:10px;line-height:1.35;color:#587179}.finish-item.active{border:2px solid var(--accent);padding:6px;color:var(--ink);font-weight:700}.finish-item img,.missing-swatch{display:block;width:100%;height:46px;border-radius:5px;object-fit:cover;background:linear-gradient(130deg,#e3e5e6,#fafafa);border:1px solid #eceded}.empty-config{text-align:center;padding:90px 25px;color:var(--muted)}.empty-icon{font-size:38px;color:#bdd0ce}.empty-config h3{color:var(--ink)}.outline{border:1px solid #c9d8d9;border-radius:9px;padding:10px 13px;background:white;color:#245849;font-size:12px;font-weight:750}.outline:hover{background:#f1f8f5}.outline.small{padding:8px 10px;font-size:10px}.danger-link{background:none;border:0;color:#b86960;padding:7px 0;font-size:11px}.price-hero{padding:17px 18px;background:linear-gradient(115deg,#154e42,#217d63);color:white;border-radius:13px;display:flex;flex-direction:column;gap:5px}.price-hero span{font-size:11px;color:#cde8df}.price-hero strong{font-size:33px;letter-spacing:-.06em;line-height:1.2}.price-hero small{color:#b7ddd0;font-size:10px}.markup-label{margin-top:16px}.markup-control{display:flex;align-items:center;gap:9px}.markup-control input{max-width:135px}.table-head{display:flex;justify-content:space-between;align-items:center;margin:18px 0 7px;border-top:1px solid var(--line);padding-top:15px}.table-head h3{margin:0;font-size:14px}.line-list{max-height:490px;overflow:auto}.line{padding:11px 0;border-bottom:1px solid #ecf0f1}.line-title{display:flex;justify-content:space-between;gap:9px;align-items:flex-start}.line-title strong{font-size:11px;line-height:1.4}.line-title small{color:#94a5a8;font-size:10px;display:block;margin-top:3px}.line-title>span{font-size:11px;font-weight:800;white-space:nowrap}.line-inputs{display:grid;grid-template-columns:62px 88px 1fr;gap:7px;margin-top:9px;align-items:center}.line-inputs label{font-size:9px;color:#97a4a8;margin:0}.line-inputs input{width:100%;margin-top:4px;font-size:11px;padding:6px 8px;border-radius:6px}.line-inputs .width-in{max-width:100px}.placeholder{text-align:center;color:#9eaaaf;font-size:12px;padding:30px}.export-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.primary-button{background:var(--accent2);color:white;border:1px solid var(--accent2);border-radius:10px;padding:12px 15px;font-weight:800;font-size:12px}.primary-button:hover{background:var(--accent)}.full{width:100%}.export-note{font-size:10px;line-height:1.5;color:#91a0a5;margin-bottom:0}.extras-list{padding-top:6px}.extra-card{border:1px solid #e0e9e9;background:#fafcfc;border-radius:10px;padding:12px;margin-top:9px}.extra-card h4{font-size:11px;margin:0 0 11px}.extra-card select{font-size:11px}.extra-actions{display:flex;justify-content:flex-end;margin-top:5px}.error{color:#ab453b;font-size:12px;min-height:16px}.modal{position:fixed;inset:0;background:#0c2c36a8;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.modal-card{background:white;max-width:500px;width:100%;max-height:90vh;overflow:auto;padding:25px;border-radius:16px;box-shadow:0 30px 70px #081e3050}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:11px}.modal-head h2{margin:7px 0}.modal-card label{margin-bottom:12px}.close{font-size:30px;border:0;background:none;color:#677b81;line-height:1}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(ellipse at 0 0,#e4f2e9,#f5f7f7 55%)}.login-panel{width:100%;max-width:450px;background:white;border:1px solid var(--line);box-shadow:0 20px 60px #122a3030;border-radius:21px;padding:42px}.login-panel .brandlogo{font-size:38px;margin-bottom:35px}.login-panel h1{font-size:36px;line-height:1.07;letter-spacing:-.06em;margin:10px 0}.login-panel p{color:var(--muted);font-size:13px;line-height:1.55}.login-panel form{margin:35px 0 32px}.login-panel form input{margin-bottom:12px}.login-panel small{color:#9caaaf}.small-foot{font-size:10px;color:#96a4a8;margin:9px 0 0}
@media(max-width:1160px){.workspace{grid-template-columns:minmax(250px,.9fr) minmax(330px,1.1fr)}.price-panel{grid-column:1/-1}.line-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px;max-height:none}.line-list .line{min-width:0}}
@media(max-width:700px){.topbar{padding:12px 15px;height:auto}.smallstatus{display:none}.workspace{grid-template-columns:1fr;padding:10px}.pane{padding:15px;border-radius:13px}.price-panel{grid-column:auto}.model-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:350px}.model-tile img{height:115px}.line-list{display:block}.top-actions{gap:0}.top-actions button{font-size:11px}.preview{min-height:230px}.preview img{height:220px}.login-panel{padding:28px}}

.client-price{color:#4a6760;font-size:11px;margin-top:7px}

/* SV responsive layout v2: catalog plus a full-width work area on desktop,
   comfortable card grid on tablet, full-width step-by-step on mobile. */
.workspace{display:grid;grid-template-columns:minmax(340px,.85fr) minmax(570px,1.65fr);align-items:start;gap:20px;max-width:1680px;padding:20px 28px}
.catalog-panel{grid-column:1;grid-row:1/span 2;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}
.config-panel{grid-column:2;grid-row:1}
.price-panel{grid-column:2;grid-row:2}
.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:12px}
.model-tile{padding:12px;gap:8px}
.model-tile img{height:180px}
.model-tile strong{font-size:13px}
.pane{padding:26px;border-radius:18px}
.paneltitle h2{font-size:23px}
.config-panel .preview{min-height:350px}
.config-panel .preview img{height:325px}
.price-panel .line-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;max-height:none}
.price-panel .line{min-width:0}
input,select,textarea{min-height:44px}
.finish-item{min-width:118px;max-width:118px;font-size:12px}
.finish-item img,.missing-swatch{height:58px}
.mobile-total{display:none}
@media (max-width:1100px){
 .workspace{grid-template-columns:1fr;gap:14px;padding:14px;max-width:860px}
 .catalog-panel,.config-panel,.price-panel{grid-column:1;grid-row:auto;position:static;max-height:none;overflow:visible}
 .model-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:390px;overflow-y:auto}
 .model-tile img{height:145px}
 .config-panel .preview{min-height:325px}
 .config-panel .preview img{height:300px}
 .price-panel .line-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
 .topbar{padding:12px 14px;gap:10px;flex-wrap:wrap}
 .top-actions{gap:6px}
 .top-actions button{min-height:40px}
 .mark>div:last-child{font-size:13px}
 .workspace{padding:10px;gap:12px}
 .pane{padding:16px;border-radius:13px}
 .paneltitle{align-items:center;gap:8px}
 .paneltitle h2{font-size:20px}
 .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:390px;gap:9px}
 .model-tile img{height:155px}
 .config-panel .preview{min-height:255px}
 .config-panel .preview img{height:240px}
 .fields-three{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fields-three label:last-child{grid-column:1/-1}
 .fields-two{grid-template-columns:1fr}
 .price-panel .line-list{display:block}
 .line-inputs{grid-template-columns:minmax(65px,.5fr) minmax(85px,.65fr) minmax(0,1fr)}
 .export-buttons{grid-template-columns:1fr}
 .mobile-total{display:flex;align-items:center;justify-content:space-between;gap:10px;position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;padding:12px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);box-shadow:0 -8px 35px #0d2b2730}
 .mobile-total small{display:block;color:var(--muted);font-size:11px;margin-bottom:2px}
 .mobile-total strong{font-size:21px;color:var(--accent2);white-space:nowrap}
 .mobile-total .primary-button{font-size:12px;min-height:44px;padding:10px 13px}
 .app{padding-bottom:88px}
 #price-panel{scroll-margin-top:14px}
}
@media (max-width:350px){.model-tile img{height:125px}.mobile-total strong{font-size:18px}.mobile-total .primary-button{font-size:11px}}

/* Дополнительный каталог и честный показ выбранного цвета */
.chosen-finish{display:flex;align-items:center;gap:12px;padding:13px 16px;margin:11px 0;background:#f5f8f5;border:1px solid #dce6df;border-radius:13px}
.chosen-finish img,.chosen-finish .swatch-placeholder{width:64px;height:64px;object-fit:cover;border-radius:9px;border:1px solid #d5ddda;flex:none}
.chosen-finish .swatch-placeholder{display:grid;place-items:center;text-align:center;font-size:10px;color:#82908a;background:#f0f1ef}
.chosen-finish b{font-size:15px;display:block}.chosen-finish small{display:block;color:#61726a;font-size:12px;margin-top:3px;line-height:1.4}
.finish-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0 13px}.finish-toolbar button{border:1px solid #d4ddd7;border-radius:12px;padding:10px 14px;background:#fff;cursor:pointer;color:#294338;font-size:13px;min-height:42px}
.finish-toolbar button.active{background:#1b6650;color:white;border-color:#1b6650}
.finish-item .site-color{display:block;color:#43785e;font-size:10px;line-height:1.2;margin-top:2px}
.missing-swatch{display:grid;place-items:center;color:#899a91;font-size:10px;padding:5px;text-align:center}
@media(max-width:700px){.chosen-finish{margin:10px 0}.finish-toolbar button{flex:1}}


/* SV: color photo catalog and full-screen detail view */
.finish-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(122px,1fr));gap:10px;max-height:440px;overflow:auto;overscroll-behavior:contain;padding:3px 3px 14px;align-items:stretch}
.finish-card{position:relative;min-width:0;display:flex;align-items:stretch}
.finish-item,.finish-item.active{min-width:0;max-width:none;width:100%;min-height:148px;align-items:stretch;text-align:left;padding:8px 8px 12px;font-size:12px;border-radius:12px;justify-content:flex-start;transition:box-shadow .12s ease}
.finish-item.active{padding:7px 7px 11px}
.finish-item img,.finish-item .missing-swatch{height:75px;width:100%;object-fit:cover;border-radius:7px}
.finish-item>span:not(.missing-swatch){font-size:12px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;padding-right:15px}
.finish-zoom{position:absolute;top:12px;right:6px;min-width:32px;min-height:32px;border:1px solid #b8d2c7;color:#164c3d;font-size:25px;line-height:1;border-radius:8px;background:#fffef4ed;box-shadow:0 1px 5px #12332920}
.finish-zoom:hover,.chosen-zoom:hover,.preview-zoom:hover{outline:2px solid var(--accent)}
.chosen-zoom{width:72px;height:72px;padding:0;position:relative;border:0;background:transparent;flex:none;border-radius:9px}
.chosen-zoom img{width:72px;height:72px;border-radius:9px;object-fit:cover}
.chosen-zoom>span{position:absolute;right:-3px;bottom:0;min-width:23px;background:white;color:#145544;font-size:22px;border-radius:7px;border:1px solid #cbdcd4}
.preview-zoom{position:relative;border:0;background:transparent;width:100%;display:flex;align-items:center;justify-content:center;min-height:inherit}
.preview-zoom img{height:325px;max-width:94%;object-fit:contain;mix-blend-mode:multiply}
.preview-zoom-hint{position:absolute;bottom:9px;right:10px;background:#fffef4ec;border:1px solid #d6e4db;border-radius:7px;padding:7px 10px;font-size:12px;color:#135544;font-weight:700}
.image-lightbox{position:fixed;inset:0;z-index:100;background:#122b25d9;display:flex;align-items:center;justify-content:center;padding:18px}
.lightbox-open{overflow:hidden}
.lightbox-shell{background:white;width:min(960px,100%);max-height:calc(100dvh - 26px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px;box-shadow:0 18px 80px #0b221b6e}
.lightbox-header,.lightbox-footer{padding:13px 20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lightbox-header{justify-content:space-between;border-bottom:1px solid #e5eee9}
.lightbox-header strong{font-size:17px;overflow-wrap:anywhere}
.lightbox-header button{font-size:30px;border:0;background:#eff4f0;color:#193d32;border-radius:9px;width:46px;height:46px}
.lightbox-stage{height:min(69dvh,680px);min-height:190px;display:flex;justify-content:center;align-items:center;overflow:auto;overscroll-behavior:contain;background:#edf1ef;touch-action:pan-x pan-y pinch-zoom}
.lightbox-stage img{display:block;max-width:calc(100% - 30px);max-height:calc(100% - 26px);object-fit:contain;transform-origin:center;transition:transform .12s}
.lightbox-footer{justify-content:center;border-top:1px solid #e5eee9}
.lightbox-footer>button{min-width:43px;height:43px;border:1px solid #c8d9d0;background:white;border-radius:9px;font-size:23px;color:#154f3e}
.lightbox-footer output{font-size:15px;min-width:52px;text-align:center}
.lightbox-footer small{color:#74817a}
@media(max-width:680px){.finish-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:410px;gap:9px}.finish-item,.finish-item.active{min-height:145px}.preview-zoom img{height:240px}.image-lightbox{padding:8px}.lightbox-header,.lightbox-footer{padding:10px 12px}.lightbox-footer small{display:none}.lightbox-stage{height:70dvh}}

/* Three user-supplied hidden-door edge colors. Images are used as-is, without re-rendering. */
.edge-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 12px}
.edge-item{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;min-height:133px;text-align:center;padding:8px;border:1px solid #d7dfdb;border-radius:12px;background:#fff;color:#34483e}
.edge-item.active{border:2px solid #1b6650;padding:7px;background:#eff8f3;box-shadow:0 0 0 1px #1b665040}
.edge-item img{display:block;width:100%;height:76px;object-fit:contain;background:#fff;border-radius:7px}
.edge-item b{font-size:12px;line-height:1.3}.edge-selected{font-size:10px;color:#1b6650;font-weight:800}
.edge-none{border:0;background:none;color:#657a71;text-decoration:underline;font-size:12px;padding:9px 3px;text-align:left}
.edge-none:disabled{opacity:.55;text-decoration:none;cursor:default}
@media(max-width:680px){.edge-list{gap:6px}.edge-item,.edge-item.active{padding:5px}.edge-item img{height:65px}.edge-item b{font-size:11px}}

/* Opening orientation and original user's 2x2 straight/reverse diagram. */
.opening-type,.opening-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.opening-choice,.opening-side{border:1px solid #d7e0df;border-radius:12px;min-height:56px;padding:13px;background:#fff;color:#173d32;font-size:13px;font-weight:750;text-align:center;line-height:1.45}
.opening-choice.active,.opening-side.active{border:2px solid #1b6650;background:#edf7f0;padding:12px;color:#174b38}
.opening-choice small{display:block;color:#9b672b;font-size:11px;font-weight:600;margin-top:4px}
.opening-guide{display:flex;flex-direction:column;gap:8px;width:100%;max-width:680px;margin:14px auto;background:#fff;border:1px solid #dce3e0;border-radius:12px;padding:8px;color:#486156;font-size:12px;align-items:center}
.opening-guide img{display:block;width:100%;height:auto;object-fit:contain}
.opening-guide span{font-size:12px}
.notice-warn{background:#fff6e6;color:#704c18;border:1px solid #e6cf9f;border-radius:11px;padding:11px 13px;font-size:12px;line-height:1.6;margin:10px 0}
.stabilizer-section{background:#f7faf7;border:1px solid #dce8dd;border-radius:12px;padding:13px 15px;margin:12px 0}
.stabilizer-section .checkboxline{display:flex;align-items:center;gap:10px;line-height:1.5;font-size:13px}
.stabilizer-section .checkboxline input{width:20px;height:20px;flex:none;margin:0}
.edge-list .edge-item img{height:84px;object-fit:contain}
@media(max-width:680px){.opening-type,.opening-sides{gap:7px}.opening-choice{padding:9px;font-size:12px}.opening-choice.active{padding:8px}.opening-guide{padding:6px}.stabilizer-section{padding:10px 12px}}
/* ========================================================================
   SIMBIRSK-SV — THE OFFICIAL 2026 BRAND BOOK
   Logo and palette: original user's September 24, 2026 assets.
   Presentation only: no pricing or catalog logic is altered.
   ======================================================================== */
:root{
  --ink:#161616;--muted:#63666b;--bg:#f5f5f5;--panel:#ffffff;
  --line:#e7e1d9;--accent:#c99b60;--accent2:#161616;--soft:#f9f3e9;
  --blue:#f4f1eb;--gold-dark:#9b713c;--gold-light:#e7c98f;
  --shadow:0 14px 42px rgba(22,22,22,.045);
}
html{font-family:Montserrat,'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--ink);scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}
h1,h2,h3,h4{color:#161616;letter-spacing:-.027em}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold-light);outline-offset:2px}
input,select,textarea{color:#161616;background:white;border:1px solid #dcd8d0;border-radius:11px;min-height:46px;font-size:14px;padding:11px 13px}
input:focus,select:focus,textarea:focus{border-color:#bd9459;box-shadow:0 0 0 3px rgba(201,155,96,.18)}
input[type=checkbox],input[type=radio]{accent-color:#a7793c}
label{font-size:13px;color:#363331;font-weight:700;line-height:1.45}
button{transition:background .17s,border-color .17s,box-shadow .17s,transform .17s}
button:hover:not(:disabled){filter:none}
.eyebrow{color:#a77e46;font-size:11px;letter-spacing:.13em;font-weight:800}
.small-help,.small-foot{font-size:12px;line-height:1.65;color:#6e6a64}
/* LOGO + BLACK PREMIUM HEADER */
.topbar{background:#161616;color:white;border-bottom:3px solid #c99b60;min-height:92px;height:auto;padding:14px clamp(18px,3vw,55px);gap:24px}
.mark{min-width:0;gap:24px}
.header-brand-image{display:block;width:235px;height:74px;object-fit:contain;flex:none;max-width:100%}
.header-product{min-width:0;border-left:1px solid rgba(201,155,96,.57);padding-left:22px;display:flex;flex-direction:column;gap:4px}
.header-product strong{font-size:17px;line-height:1.2;color:#fff;letter-spacing:-.025em}
.header-product span{font-size:12px;color:#c9bbaa;margin:0;line-height:1.4}
.top-actions{gap:12px;flex-wrap:wrap;justify-content:flex-end}
.topbar .ghost{color:#f7f0e7;border:1px solid rgba(255,255,255,.26);border-radius:10px;background:transparent;font-size:13px;font-weight:700;min-height:42px;padding:9px 15px}
.topbar .ghost:hover{border-color:#c99b60;color:#e7c98f;background:rgba(201,155,96,.10)}
.smallstatus{font-size:12px;color:#e8ddcd}
.green-dot{background:#c99b60;width:8px;height:8px}
/* INTRO & CLICKABLE PROGRESS */
.intro-strip{max-width:1780px;margin:0 auto;padding:28px 30px 4px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.intro-strip h1{font-size:clamp(23px,2.25vw,32px);line-height:1.17;margin:7px 0 8px;font-weight:800}
.intro-strip p{margin:0;color:#68625d;font-size:14px;max-width:760px}
.progress-steps{display:flex;align-items:center;gap:8px;padding-bottom:4px;flex-shrink:0}
.progress-steps a{white-space:nowrap;text-decoration:none;color:#463c31;border:1px solid #ded8ce;background:#fff;border-radius:10px;font-size:12px;font-weight:750;padding:10px 12px;display:inline-flex;gap:7px;align-items:center}
.progress-steps a:hover{border-color:#c99b60;box-shadow:0 0 0 2px rgba(201,155,96,.12)}
.progress-steps span{color:#a77d45;font-weight:900;font-size:11px}
/* CALM TWO-COLUMN DESKTOP: CATALOG LEFT; WORK AREA RIGHT */
.workspace{max-width:1780px;width:100%;grid-template-columns:minmax(330px,355px) minmax(0,1fr);gap:21px;padding:20px 30px 48px;align-items:start}
.catalog-panel{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;scrollbar-color:#c9b8a0 transparent}
.config-panel{grid-column:2;grid-row:1}.price-panel{grid-column:2;grid-row:2}
.pane{background:#fff;border:1px solid #e6e0d7;border-radius:18px;padding:clamp(19px,2.1vw,31px);box-shadow:var(--shadow)}
.paneltitle{align-items:center;gap:12px;margin-bottom:19px}
.paneltitle h2{font-size:clamp(19px,1.55vw,24px);font-weight:800;letter-spacing:-.045em;margin:4px 0 0}
.count-pill{background:#f7f1e8;border:1px solid #e9d8be;color:#8c673a;padding:7px 10px;font-weight:800;font-size:11px}
.search{background-color:#fdfcfb;border-color:#e1d9cc;font-size:14px;min-height:48px}
.collection-tabs{gap:7px;padding:16px 0 16px;margin-bottom:3px}
.collection-tabs button{background:#f8f7f5;border:1px solid #e8e3dc;color:#504940;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700;min-height:39px}
.collection-tabs button:hover{border-color:#b68b54;background:#fffaf1}
.collection-tabs button.active{background:#161616;color:#fff;border-color:#161616}
.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:none;overflow:visible}
.model-tile{background:#fdfcfb;border:1px solid #e9e5de;border-radius:13px;min-height:214px;padding:13px 10px;gap:10px}
.model-tile img{height:160px;max-height:160px;width:100%;object-fit:contain;mix-blend-mode:multiply}
.model-tile strong{font-size:13px;font-weight:800;color:#302c27;line-height:1.45}
.model-tile:hover{border-color:#b58a50;background:#fffaf2;transform:translateY(-1px)}
.model-tile.active{border:2px solid #c99b60;padding:12px 9px;background:#fffaf1;box-shadow:0 0 0 2px rgba(201,155,96,.1)}
/* PRODUCT IMAGERY */
.door-tabs{gap:8px;margin-bottom:17px;padding-bottom:2px}
.door-tabs button{background:#f9f7f3;border:1px solid #e1dacd;border-radius:9px;min-height:42px;padding:10px 13px;font-size:13px;color:#4d453c;font-weight:700}
.door-tabs button.active{background:#161616;border-color:#161616;color:#fff}
.preview{background:#f8f7f4;border:1px solid #e9e5dd;border-radius:15px;padding:12px;min-height:380px;overflow:hidden}
.config-panel .preview{min-height:380px}
.config-panel .preview img{height:360px;max-width:100%;mix-blend-mode:multiply}
.preview-zoom{max-width:100%;border-radius:12px}
.preview-zoom:focus-visible{outline-color:#c99b60}
.preview-zoom-hint{font-size:12px;color:#3b332d}
.model-info{margin:19px 0 17px;align-items:center}
.model-info strong{font-size:23px;font-weight:800;line-height:1.22}
.model-info small{font-size:12px;line-height:1.5;color:#726d66;max-width:710px;margin-top:6px}
.badge{background:#faf1e4;color:#926634;font-size:11px;border:1px solid #eddbbe;padding:7px 11px}
.form-section{border-top:1px solid #eae4db;padding:21px 0 11px;margin-top:5px}
.form-section h3{font-size:16px;line-height:1.35;font-weight:800;letter-spacing:-.025em;margin:0 0 14px}
.fields-two,.fields-three{gap:15px}
.chosen-finish{background:#faf7f1;border:1px solid #eaddc9;border-radius:13px;padding:15px 18px;gap:16px}
.chosen-finish b{font-size:16px;color:#201e1a}
.chosen-finish small{font-size:12px;color:#6c6157}
.chosen-finish img,.chosen-finish .swatch-placeholder{height:72px;width:72px;border-color:#ddd3c1}
.finish-toolbar{gap:9px;margin:11px 0 16px}
.finish-toolbar button{font-size:12px;font-weight:800;min-height:43px;color:#514538;border:1px solid #dbd1c3}
.finish-toolbar button.active{background:#161616;border-color:#161616;color:white}
.finish-toolbar button:not(.active):hover{border-color:#bd9459;background:#fff9ef}
.finish-list{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;padding:4px 4px 13px;max-height:470px;scrollbar-color:#c5ac86 transparent}
.finish-card{min-width:0}
.finish-item,.finish-item.active{border-radius:12px;min-height:160px;font-size:13px;color:#39342f;background:#fff;border:1px solid #e8e1d7;padding:9px 9px 18px;line-height:1.4}
.finish-item:hover{background:#fffaf2;border-color:#c99b60}
.finish-item.active{border:2px solid #c99b60;padding:8px 8px 17px;background:#fff9ee;color:#171410;box-shadow:0 0 0 1px rgba(201,155,96,.15)}
.finish-item img,.finish-item .missing-swatch{height:85px;border:1px solid #e9e4db;border-radius:8px}
.finish-item .site-color{color:#8c6b3f;font-size:11px;font-weight:800}
.finish-zoom{color:#171717;background:#f9f1e7;border:1px solid #dbc6a6;border-radius:8px;min-width:34px;min-height:34px}
.finish-zoom:hover{background:#e7c98f}
/* EDGE & OPENING WITH USER-PROVIDED REFERENCE PICTURES */
.edge-list{gap:12px;margin:16px 0 12px}
.edge-item{min-height:165px;background:#fff;border:1px solid #e5dfd6;border-radius:13px;padding:12px;gap:9px;text-align:center;color:#282520}
.edge-item img{height:98px;border-radius:8px;object-fit:contain}
.edge-list .edge-item img{height:98px}
.edge-item b{font-size:13px;line-height:1.4}
.edge-item.active{background:#fff8ef;border:2px solid #c99b60;box-shadow:0 0 0 2px rgba(201,155,96,.10);padding:11px;color:#272017}
.edge-item:hover{border-color:#c99b60}
.edge-selected{color:#977145;font-size:11px;font-weight:800}
.opening-type,.opening-sides{gap:12px;margin:15px 0}
.opening-choice,.opening-side{min-height:63px;padding:14px 16px;border:1px solid #ded7ce;background:#fff;border-radius:12px;color:#29241e;font-size:14px;font-weight:800}
.opening-choice small{font-size:12px;color:#9c7242}
.opening-choice.active,.opening-side.active{background:#fff8ed;border:2px solid #c99b60;color:#2e271c;padding:13px 15px;box-shadow:0 0 0 2px rgba(201,155,96,.09)}
.opening-choice:hover,.opening-side:hover{border-color:#bd9459;background:#fffbf3}
.opening-guide{max-width:700px;border-color:#e7e0d4;border-radius:12px;background:#fcfaf7;padding:12px;font-size:13px;color:#4f4941}
.notice-warn{background:#fff5e5;color:#775326;border-color:#e8d3b2;border-radius:11px;padding:14px 16px;font-size:13px;line-height:1.62}
.stabilizer-section{background:#faf7ef;border:1px solid #e9ddc9;border-radius:13px;padding:17px 19px;margin-top:16px}
.stabilizer-section .checkboxline{font-size:14px;color:#2d281f}
/* BUTTONS & ORDER TOTAL */
.primary-button{min-height:46px;font-size:13px;font-weight:800;background:#c99b60;color:#17130f;border:1px solid #c99b60;border-radius:11px;padding:11px 17px}
.primary-button:hover{background:#e0b777;border-color:#e0b777;box-shadow:0 5px 18px rgba(169,115,42,.15)}
.outline{min-height:43px;border:1px solid #d7c6aa;background:#fff;color:#433424;font-size:13px;font-weight:750;border-radius:11px;padding:10px 14px}
.outline:hover{background:#fff8eb;border-color:#b98e58}
.outline.small{padding:9px 11px;font-size:12px}
.danger-link{color:#a14e43;font-size:12px}
.price-hero{background:#161616;border:1px solid #312c27;border-top:4px solid #c99b60;border-radius:14px;padding:22px 25px;gap:7px;box-shadow:0 12px 28px rgba(0,0,0,.06)}
.price-hero span{color:#e0cdb0;font-size:13px;letter-spacing:.02em}
.price-hero strong{font-size:clamp(30px,2.8vw,41px);font-weight:850;letter-spacing:-.055em;color:#fff;line-height:1.2}
.price-hero small{color:#c2b6a7;font-size:12px}
.markup-label{margin-top:18px}
.table-head{margin:22px 0 10px;border-color:#e6dfd6;padding-top:21px}
.table-head h3{font-size:17px}
.price-panel .line-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;max-height:none}
.line{padding:15px 0;border-color:#ede8e0}
.line-title strong{font-size:13px;line-height:1.5;font-weight:700;color:#24201b}
.line-title small{font-size:11px;color:#777169}
.line-title>span{font-size:14px;font-weight:900;color:#1c1916;white-space:nowrap}
.line-inputs{grid-template-columns:minmax(65px,76px) minmax(94px,114px) 1fr;gap:9px;margin-top:11px}
.line-inputs label{font-size:11px;color:#625d55}
.line-inputs input{border-radius:8px;font-size:12px;min-height:37px;padding:8px 9px}
.extras-list .extra-card{border-color:#e9dfd1;background:#fffcf7}
.extras-list .extra-card h4{font-size:13px}
.export-buttons{gap:11px;margin-top:22px}
.export-buttons .primary-button,.export-buttons .outline{min-height:49px}
.export-note{font-size:11px;color:#787067;line-height:1.6;margin-top:10px}
.error{font-size:13px;color:#a44332}
/* LOGIN */
.login-screen{background:linear-gradient(135deg,#eee7dd 0%,#f5f5f5 52%,#e9ddcd 100%);padding:30px}
.login-panel{max-width:515px;background:#fff;padding:clamp(27px,4vw,51px);border:1px solid #e3d6c5;border-top:5px solid #c99b60;border-radius:19px;box-shadow:0 26px 78px rgba(28,20,12,.1)}
.login-brand-image{display:block;width:min(100%,305px);height:auto;margin:0 0 31px}
.login-panel .eyebrow{color:#9d7139}
.login-panel h1{font-size:clamp(30px,4vw,40px);line-height:1.16;letter-spacing:-.05em;margin:12px 0}
.login-panel p{font-size:14px;line-height:1.68;color:#655c52}
.login-panel form{margin:27px 0 24px}
.login-panel form label{font-size:14px}
.login-panel form input{font-size:15px;min-height:50px}
.login-panel small{color:#80756b;font-size:12px}
/* MODALS & IMAGE DETAIL */
.modal{background:rgba(22,22,22,.72)}
.modal-card{max-width:560px;border-radius:19px;border-top:4px solid #c99b60;padding:28px}
.modal-card h2{font-size:23px}
.close{color:#6e6356}
.image-lightbox{background:rgba(18,18,18,.86)}
.lightbox-shell{border-radius:15px;overflow:hidden}
.lightbox-header{background:#161616;color:#fff}
.lightbox-header strong{color:#fff}
.lightbox-footer{border-top:1px solid #e7dfd3;background:#fff}
.lightbox-footer button{border-color:#c99b60}
/* TABLET */
@media(max-width:1180px){
 .intro-strip{padding:22px 19px 0;align-items:stretch;flex-direction:column;gap:18px}
 .progress-steps{padding:0}
 .workspace{grid-template-columns:1fr;max-width:1000px;padding:18px 19px 35px;gap:18px}
 .catalog-panel,.config-panel,.price-panel{grid-column:1;grid-row:auto;position:static;max-height:none;overflow:visible}
 .catalog-panel .model-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:410px;overflow-y:auto}
 .catalog-panel .model-tile img{height:145px}
 .config-panel .preview{min-height:360px}
 .config-panel .preview img{height:340px}
}
/* MOBILE */
@media(max-width:700px){
 html{scroll-padding-top:14px}
 .topbar{padding:10px 14px;flex-wrap:wrap;gap:7px;min-height:80px}
 .mark{gap:7px;max-width:100%}
 .header-brand-image{width:155px;height:55px}
 .header-product{padding-left:10px;border-left-color:#8e7453}
 .header-product strong{font-size:12px}
 .header-product span{font-size:10px;line-height:1.3}
 .top-actions{width:100%;gap:8px;justify-content:flex-start;padding-bottom:3px}
 .top-actions .ghost{min-height:39px;padding:7px 12px;font-size:12px}
 .smallstatus{display:none}
 .intro-strip{padding:20px 15px 3px;gap:15px}
 .intro-strip h1{font-size:25px;margin:5px 0 7px;line-height:1.22}
 .intro-strip p{font-size:13px;line-height:1.6}
 .intro-strip .eyebrow{font-size:10px}
 .progress-steps{gap:6px;overflow-x:auto;max-width:100%;padding-bottom:7px;scrollbar-width:none}
 .progress-steps a{font-size:11px;padding:8px 9px}
 .workspace{padding:12px 12px 28px;gap:13px}
 .pane{padding:17px 15px;border-radius:14px}
 .paneltitle h2{font-size:20px}
 .count-pill{font-size:10px}
 .catalog-panel .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:450px;gap:10px}
 .catalog-panel .model-tile{min-height:175px;padding:9px 7px}
 .catalog-panel .model-tile.active{padding:8px 6px}
 .catalog-panel .model-tile img{height:125px}
 .model-tile strong{font-size:12px}
 .collection-tabs button{font-size:11px;min-height:37px;padding:7px 10px}
 .door-tabs button{font-size:12px;padding:9px}
 .config-panel .preview{min-height:245px;padding:10px}
 .config-panel .preview img{height:235px}
 .model-info strong{font-size:19px}
 .model-info small{font-size:11px}
 .form-section{padding:17px 0 10px}
 .form-section h3{font-size:15px}
 .finish-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:395px}
 .finish-item,.finish-item.active{min-height:151px;font-size:12px;padding:7px 7px 15px}
 .finish-item.active{padding:6px 6px 14px}
 .finish-item img,.finish-item .missing-swatch{height:76px}
 .chosen-finish{gap:10px;padding:10px 12px}
 .chosen-finish img,.chosen-finish .swatch-placeholder{width:60px;height:60px}
 .chosen-finish b{font-size:14px}
 .edge-list{gap:7px}
 .edge-item,.edge-item.active{min-height:128px;padding:6px;gap:7px}
 .edge-item.active{padding:5px}
 .edge-list .edge-item img{height:68px}
 .edge-item b{font-size:11px}
 .opening-type,.opening-sides{gap:9px}
 .opening-choice,.opening-side{font-size:12px;padding:9px;min-height:56px}
 .opening-choice.active,.opening-side.active{padding:8px}
 .fields-three{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fields-three label:last-child{grid-column:1/-1}
 .fields-two{grid-template-columns:1fr}
 .price-panel .line-list{display:block}
 .line-title strong{font-size:12px}
 .line-title>span{font-size:13px}
 .line-inputs{grid-template-columns:minmax(60px,76px) minmax(82px,114px) minmax(0,1fr)}
 .export-buttons{grid-template-columns:1fr}
 .mobile-total{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#161616;color:#fff;border-top:3px solid #c99b60;box-shadow:0 -8px 35px rgba(0,0,0,.14);padding:11px 13px max(11px,env(safe-area-inset-bottom))}
 .mobile-total small{font-size:10px;color:#d8c4a7;margin-bottom:0}
 .mobile-total strong{font-size:22px;color:#fff;letter-spacing:-.055em}
 .mobile-total .primary-button{min-height:43px;font-size:11px;padding:9px 11px;white-space:nowrap}
 .app{padding-bottom:90px}
}
@media(max-width:365px){
 .header-brand-image{width:133px;height:47px}
 .header-product strong{font-size:11px}.header-product span{font-size:9px}
 .catalog-panel .model-tile img{height:108px}
 .edge-list .edge-item img{height:53px}
 .mobile-total strong{font-size:19px}
 .mobile-total .primary-button{font-size:10px;padding:8px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}

/* One photo-confirmed finish gallery. The enlargement control remains available. */
.finish-list{max-height:560px}
.chosen-finish{background:#FAF8F5;border-color:#E7E1D9}
.export-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
#pdfNeutralBtn{background:#FFFFFF;border:1.5px solid #161616;color:#161616;font-weight:700}
#pdfNeutralBtn:hover{background:#F7F5F0}
@media(max-width:700px){.export-buttons{grid-template-columns:1fr}}

/* СВ: dedicated portal and entrance-overlay product sections */
.product-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 13px}
.product-sections button{border-radius:10px;border:1px solid #d8c9b5;background:#fff;color:#302a24;padding:10px 8px;min-height:45px;font-weight:700;font-size:13px;cursor:pointer}
.product-sections button.active{background:#161616;border-color:#C99B60;color:#f4ddb5;box-shadow:inset 0 -2px #C99B60}
.model-tile.portal-choice{width:min(100%,370px)}.model-tile.portal-choice img{width:100%;height:auto;aspect-ratio:1.8;object-fit:contain}
.special-preview{background:#f5f5f5;border:1px solid #e8dfd3;border-radius:15px;display:flex;flex-direction:column;gap:9px;padding:14px;margin-top:10px}
.special-preview button{border:0;background:transparent;cursor:zoom-in;max-height:390px;display:flex;justify-content:center}
.special-preview img{max-width:100%;max-height:340px;object-fit:contain}.special-preview p{color:#645e58;font-size:12px;margin:2px 0}
@media(max-width:600px){.product-sections button{font-size:12px;padding:7px 5px}.special-preview img{max-height:260px}}

/* Six approved catalog sections: horizontal, wrapping navigation and comfortably tappable cards. */
.product-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.product-sections button{min-height:48px;font-size:13px;line-height:1.25;white-space:normal;padding:9px 8px}
.special-preview img{object-fit:contain;max-height:335px;background:#fff}
@media(max-width:900px){.product-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.product-sections button{font-size:12px;min-height:50px}}

/* Unified owner/dealer quote markup control */
.quote-markup{border:1px solid #DBC7A9;background:#FFFCF8;border-radius:14px;padding:14px;margin:12px 0 17px}.quote-markup label{font-weight:700;display:flex;flex-direction:column;gap:8px}.quote-markup input{max-width:180px;font-size:17px;font-weight:650;padding:11px 12px;border-radius:10px;border:1px solid #C99B60;color:#161616;background:white}.quote-markup .small-foot{margin:6px 0 0;color:#57524b}

/* Wide, readable navigation: categories are independent from the model list. */
.section-navigation{max-width:1780px;margin:20px auto 0;padding:0 30px;min-width:0}
.section-navigation-heading{margin-bottom:10px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.section-navigation-heading .eyebrow{font-size:12px;letter-spacing:.07em}
.nav-scroll-hint{display:none;color:#816341;font-size:12px;font-weight:750}
.section-navigation .product-sections{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0}
.section-navigation .product-sections button{display:flex;justify-content:center;align-items:center;min-width:0;min-height:72px;padding:15px 13px;font-size:15px;line-height:1.4;overflow-wrap:break-word;hyphens:auto;text-align:center;border-radius:13px;background:#fff;box-shadow:0 2px 11px rgba(40,24,8,.025)}
.section-navigation .product-sections button.active{background:#161616;border-color:#C99B60;color:#f3dbb4;box-shadow:inset 0 -3px #C99B60}
.section-navigation .product-sections button:focus-visible{outline:3px solid #C99B60;outline-offset:3px}
.workspace{grid-template-columns:minmax(385px,460px) minmax(0,1fr);gap:21px;padding-top:19px}
.catalog-panel{scrollbar-gutter:stable}
.catalog-panel .paneltitle{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.catalog-panel .paneltitle h2{font-size:clamp(20px,1.65vw,25px);line-height:1.22;overflow-wrap:normal}
.catalog-panel .count-pill{white-space:normal;font-size:12px;line-height:1.4;text-align:center;padding:8px 12px}
.catalog-panel .collection-tabs{gap:8px;scrollbar-width:thin;padding:15px 0 11px}
.catalog-panel .collection-tabs button{min-height:41px;padding:10px 12px;font-size:13px;white-space:nowrap}
.collection-qty{display:inline-flex;margin-left:4px;align-items:center;justify-content:center;min-width:22px;padding:2px 5px;border-radius:6px;background:rgba(0,0,0,.045);font-size:11px;font-weight:800}
.collection-tabs button.active .collection-qty{background:rgba(255,255,255,.15)}
.catalog-shown{font-size:13px;font-weight:650;color:#60584c;margin:0 0 15px;min-height:20px}
.catalog-panel .model-grid{max-height:min(63vh,780px);overflow-y:auto;padding:1px 3px 5px 1px}
.catalog-panel .model-tile{min-height:220px;padding:13px 10px}
.catalog-panel .model-tile strong{font-size:14px;line-height:1.38;overflow-wrap:normal}
.catalog-panel .model-tile img{height:163px}
@media(max-width:1180px){
 .section-navigation{padding:0 19px;margin-top:18px}
 .section-navigation .product-sections{grid-template-columns:repeat(3,minmax(0,1fr))}
 .section-navigation .product-sections button{min-height:60px;font-size:14px}
 .workspace{grid-template-columns:1fr}
 .catalog-panel{scrollbar-gutter:auto}
 .catalog-panel .model-grid{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
 .section-navigation{padding:0 12px;margin-top:10px}
 .section-navigation-heading{margin-bottom:9px}
 .nav-scroll-hint{display:inline}
 .section-navigation .product-sections{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch;padding:2px 2px 12px}
 .section-navigation .product-sections button{flex:0 0 177px;min-height:64px;padding:10px 14px;font-size:14px;line-height:1.35;white-space:normal;scroll-snap-align:start}
 .workspace{padding-top:10px}
 .catalog-panel .paneltitle{align-items:flex-start;gap:10px}
 .catalog-panel .paneltitle h2{font-size:22px;line-height:1.25}
 .catalog-panel .count-pill{font-size:11px;padding:7px 10px}
 .catalog-panel .collection-tabs button{font-size:12px;min-height:43px}
 .catalog-panel .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}
 .catalog-panel .model-tile{min-height:190px;padding:10px 8px}
 .catalog-panel .model-tile img{height:138px}
 .catalog-panel .model-tile strong{font-size:13px}
}

/* ========================================================================
   30.09.2026 — PREMIUM CATALOG UI V1
   Presentation-only layer. Calculation engine and pricebook are unchanged.
   ======================================================================== */
:root{
  --sv-black:#161616;
  --sv-gold:#c99b60;
  --sv-gold-dark:#9f7440;
  --sv-cream:#fbf7f0;
  --sv-bg:#f5f5f5;
  --sv-line:#e5ddd2;
  --sv-text:#161616;
  --sv-muted:#716b64;
  --sv-shadow:0 18px 55px rgba(39,28,15,.055);
}
body{background:linear-gradient(180deg,#f8f7f5 0,#f5f5f5 360px,#f5f5f5 100%)}

/* Header */
.topbar{min-height:86px;padding:12px clamp(18px,3vw,46px);position:relative;z-index:5}
.header-brand-image{width:218px;height:62px}
.header-product{padding-left:20px}
.header-product strong{font-size:18px}.header-product span{font-size:11px}
.top-actions{gap:10px}.topbar .ghost{min-height:40px;border-radius:9px;padding:8px 14px}

/* Intro */
.intro-strip{padding:24px 30px 5px;max-width:1780px;align-items:center}
.intro-strip h1{font-size:clamp(29px,2.7vw,41px);max-width:920px;margin:7px 0 5px}
.intro-strip p{font-size:14px;color:#706a64}
.progress-steps{gap:10px}
.progress-steps a{min-height:52px;padding:9px 14px;border-radius:12px;background:rgba(255,255,255,.86);box-shadow:0 5px 18px rgba(22,22,22,.025)}
.progress-steps a span{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;background:#f6ead8;color:#a07137}

/* Six product categories */
.section-navigation{max-width:1780px;margin:20px auto 0;padding:0 30px}
.section-navigation-heading{margin-bottom:10px}
.section-navigation .product-sections{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.section-navigation .product-sections button{
  min-height:82px;display:flex;align-items:center;justify-content:flex-start;gap:13px;
  border:1px solid #e3dbd0;background:#fff;color:#1c1a18;border-radius:14px;
  padding:14px 16px;text-align:left;font-size:14px;font-weight:800;line-height:1.25;
  box-shadow:0 6px 18px rgba(36,23,9,.025)
}
.section-navigation .product-sections button:hover{border-color:#c99b60;transform:translateY(-1px);box-shadow:0 10px 24px rgba(84,55,22,.065)}
.section-navigation .product-sections button.active{background:#171717;color:#f4dfbd;border-color:#c99b60;box-shadow:inset 0 -3px #c99b60,0 12px 28px rgba(0,0,0,.08)}
.section-icon{width:42px;height:42px;display:grid;place-items:center;flex:none;color:#a7773b}
.section-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.product-sections button.active .section-icon{color:#e0b777}

/* Whole page working grid */
.workspace{max-width:1780px;width:100%;margin:0 auto;padding:19px 30px 55px;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,370px);gap:20px;align-items:start}
.catalog-panel{grid-column:1/-1;position:static;max-height:none;overflow:visible;padding:0;background:transparent;border:0;box-shadow:none}
.config-panel{grid-column:1;grid-row:auto;padding:23px}
.price-panel{grid-column:2;grid-row:auto;position:sticky;top:18px;padding:21px}

/* Catalog: series / model cards / preview */
.catalog-shell{display:grid;grid-template-columns:220px minmax(0,1fr) 315px;gap:16px;align-items:stretch}
.catalog-shell.special-mode{grid-template-columns:minmax(0,1fr) 315px}
.series-sidebar,.catalog-main,.catalog-preview-panel{background:#fff;border:1px solid #e6dfd6;border-radius:17px;box-shadow:var(--sv-shadow);min-width:0}
.series-sidebar{padding:18px 14px;overflow:hidden}
.series-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0 5px 12px;border-bottom:1px solid #eee7de}
.series-heading strong{font-size:15px}.series-heading span{font-size:10px;color:#958a7d;text-transform:uppercase;letter-spacing:.09em}
.series-sidebar .collection-tabs{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;max-height:650px;padding:10px 0 0}
.series-sidebar .collection-tabs button{width:100%;min-height:42px;border:0;background:transparent;border-radius:10px;color:#59534c;text-align:left;padding:8px 10px;font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:space-between;gap:8px;white-space:normal}
.series-sidebar .collection-tabs button:hover{background:#faf6f0;color:#2f2820}
.series-sidebar .collection-tabs button.active{background:linear-gradient(90deg,#f8ecda,#fff8ef);color:#1b1815;box-shadow:inset 3px 0 #c99b60;font-weight:850}
.series-sidebar .collection-qty{margin-left:auto;background:#f2ece3;color:#8b6a3f;min-width:25px}
.series-sidebar .collection-tabs button.active .collection-qty{background:#fff;color:#916738}
.catalog-main{padding:19px 18px 18px}
.catalog-main .paneltitle{margin-bottom:15px;align-items:flex-start}
.catalog-main .paneltitle h2{font-size:28px;margin:3px 0 4px;line-height:1.15}
.catalog-subtitle{margin:0;color:#817970;font-size:12px;line-height:1.5;max-width:720px}
.catalog-main .count-pill{background:#fbf1e2;color:#9b6f37;border:1px solid #eedcc0;padding:8px 11px;font-size:11px}
.catalog-main .search{min-height:47px;border-color:#dfd8cf;background:#fff;padding-left:41px;font-size:13px}
.catalog-shown{font-size:11px;color:#8b8379;margin:11px 0 10px;min-height:17px}
.catalog-main .model-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:615px;overflow-y:auto;padding:1px 3px 7px 1px;scrollbar-color:#c9b594 transparent}
.catalog-main .model-tile{position:relative;min-height:264px;align-items:stretch;text-align:left;border:1px solid #ebe5dc;background:#fff;border-radius:13px;padding:9px 9px 12px;gap:3px;overflow:hidden;box-shadow:0 4px 12px rgba(20,12,5,.018)}
.catalog-main .model-tile:hover,.catalog-main .model-tile.active{border-color:#c99b60;background:#fffaf3;box-shadow:0 9px 25px rgba(124,82,31,.09)}
.catalog-main .model-tile.active{box-shadow:0 0 0 1px #c99b60,0 9px 25px rgba(124,82,31,.08)}
.model-photo{height:188px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#faf9f7,#f1efeb);border-radius:9px;margin-bottom:7px;overflow:hidden}
.catalog-main .model-tile img{height:176px;width:100%;object-fit:contain;mix-blend-mode:multiply}
.catalog-main .model-tile>img{height:176px;margin-bottom:7px;object-fit:contain;background:#f8f7f4;border-radius:9px}
.model-meta{font-size:9px;color:#94897d;text-transform:uppercase;letter-spacing:.055em;font-weight:750;padding-right:28px}
.catalog-main .model-tile strong{font-size:13px;line-height:1.3;color:#1a1714;overflow-wrap:anywhere}
.catalog-main .model-tile small{font-size:10px;line-height:1.35;color:#82776b}
.tile-arrow{position:absolute;right:10px;bottom:10px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f6eee2;color:#9b6a31;font-size:15px;font-weight:800}
.catalog-main .model-tile:hover .tile-arrow,.catalog-main .model-tile.active .tile-arrow{background:#c99b60;color:#161616}
.catalog-preview-panel{padding:14px;display:flex;flex-direction:column;align-self:stretch;min-height:420px;position:relative;overflow:hidden}
.catalog-preview-image{height:335px;background:linear-gradient(145deg,#f1eee9,#faf8f4);border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.catalog-preview-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.catalog-preview-copy{padding:15px 5px 4px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.catalog-preview-copy>span{font-size:10px;color:#a47945;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.catalog-preview-copy>strong{font-size:20px;line-height:1.25}
.catalog-preview-copy p{font-size:11px;color:#827a72;line-height:1.5;margin:0 0 8px}
.catalog-preview-action{width:100%;margin-top:auto}
.catalog-preview-empty{margin:auto;text-align:center;padding:30px 16px;color:#8d857c;display:flex;flex-direction:column;align-items:center;gap:8px}
.catalog-preview-empty .preview-mark{font-size:35px;color:#ccb38f}.catalog-preview-empty strong{font-size:15px;color:#24201c}.catalog-preview-empty p{font-size:11px;line-height:1.55;margin:0}

/* Configuration: product image left, options right */
.config-panel>.paneltitle{margin-bottom:16px}.config-panel>.paneltitle h2{font-size:25px}
.config-form{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);column-gap:23px;align-items:start}
.config-form>.preview{grid-column:1;grid-row:1 / span 12;position:sticky;top:18px;min-height:520px;background:linear-gradient(150deg,#f1eee9,#faf8f4);border-color:#e4ded5}
.config-form>.preview .preview-zoom{min-height:495px}
.config-form>.preview img{height:475px;max-width:100%}
.config-form>.model-info,.config-form>.chosen-finish,.config-form>.form-section,.config-form>.danger-link{grid-column:2}
.config-form>.model-info{margin:0 0 12px;padding:3px 0 8px;border-bottom:1px solid #eee8df}
.config-form>.model-info strong{font-size:25px}
.config-form>.model-info small{font-size:11px}
.config-form>.chosen-finish{margin:0 0 8px;padding:11px 13px}
.config-form>.form-section{margin:0;padding:17px 0 9px}
.config-form>.form-section h3{font-size:15px;margin-bottom:12px}
.finish-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:435px}
.finish-item,.finish-item.active{min-height:128px;padding:7px 7px 14px}
.finish-item.active{padding:6px 6px 13px}.finish-item img{height:63px}.finish-item>span:not(.missing-swatch){font-size:10px}
.edge-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.edge-item{min-height:135px}.edge-list .edge-item img{height:75px}
.opening-choice,.opening-side{min-height:52px;font-size:12px;padding:10px}.opening-choice.active,.opening-side.active{padding:9px}
.preview-zoom-hint{bottom:12px;right:12px;background:rgba(255,255,255,.94)}

/* Calculation column */
.price-panel>.paneltitle h2{font-size:22px}
.price-hero{padding:19px 20px;background:linear-gradient(155deg,#fff8ee,#f8f1e7);border:1px solid #eadbc6;border-top:0;color:#161616;box-shadow:none}
.price-hero span{color:#766a5d}.price-hero strong{color:#161616;font-size:37px}.price-hero small{color:#8c8176}
.price-panel .line-list{display:block;max-height:540px;overflow:auto}
.price-panel .line{padding:11px 0}.line-title strong{font-size:11px}.line-title>span{font-size:12px}.line-inputs{grid-template-columns:62px 100px 1fr}
.price-panel .export-buttons{grid-template-columns:1fr}
.price-panel .export-buttons button{width:100%}

/* Special sections use more room */
.catalog-shell.special-mode .catalog-main .model-grid{grid-template-columns:repeat(2,minmax(0,330px));max-height:none;justify-content:start}
.catalog-shell.special-mode .catalog-main .model-tile{min-height:300px}
.catalog-shell.special-mode .catalog-main .model-tile>img{height:205px}

/* Tablet */
@media(max-width:1280px){
  .section-navigation .product-sections{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-shell{grid-template-columns:200px minmax(0,1fr) 270px}
  .catalog-shell.special-mode{grid-template-columns:minmax(0,1fr) 270px}
  .catalog-main .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-preview-image{height:295px}
  .workspace{grid-template-columns:minmax(0,1fr) 335px}
  .config-form{grid-template-columns:minmax(270px,.75fr) minmax(0,1.25fr)}
  .finish-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1020px){
  .workspace{grid-template-columns:1fr;padding:16px 18px 42px}
  .catalog-panel,.config-panel,.price-panel{grid-column:1;position:static}
  .catalog-shell{grid-template-columns:1fr;gap:12px}
  .catalog-shell.special-mode{grid-template-columns:1fr}
  .series-sidebar{padding:12px 13px}
  .series-heading{display:none}
  .series-sidebar .collection-tabs{flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding:0;gap:6px}
  .series-sidebar .collection-tabs button{width:auto;min-width:max-content;white-space:nowrap;border:1px solid #e8e1d8;padding:8px 11px}
  .series-sidebar .collection-tabs button.active{box-shadow:none;border-color:#c99b60}
  .catalog-preview-panel{display:none}
  .catalog-main .model-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}
  .config-form{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}
  .config-form>.preview{position:static}
  .price-panel .line-list{max-height:none}
}

/* Phone */
@media(max-width:700px){
  .topbar{padding:9px 13px 10px;min-height:72px;display:grid;grid-template-columns:1fr auto;align-items:center}
  .mark{min-width:0}.header-brand-image{width:156px;height:51px}.header-product{display:none}
  .top-actions{width:auto;padding:0;justify-content:flex-end;gap:6px}
  .top-actions #resetBtn{display:inline-flex}.top-actions #logoutBtn{display:none}
  .topbar .ghost{min-height:36px;padding:7px 10px;font-size:10px}
  .intro-strip{padding:18px 13px 4px;display:block}
  .intro-strip h1{font-size:30px;line-height:1.13;margin:7px 0 9px}
  .intro-strip p{font-size:12px;line-height:1.6}
  .progress-steps{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);overflow:visible;gap:6px}
  .progress-steps a{min-width:0;justify-content:center;padding:7px 5px;min-height:43px;font-size:10px;gap:4px}
  .progress-steps a span{width:22px;height:22px;font-size:9px}
  .section-navigation{padding:0 12px;margin-top:14px}
  .section-navigation-heading{display:none}
  .section-navigation .product-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding:0}
  .section-navigation .product-sections button{min-height:72px;min-width:0;flex:auto;padding:9px 10px;gap:8px;font-size:12px;border-radius:12px}
  .section-icon{width:31px;height:31px}.section-icon svg{width:28px;height:28px}
  .workspace{padding:12px 11px 28px;gap:12px}
  .catalog-main,.series-sidebar,.config-panel,.price-panel{border-radius:14px}
  .catalog-main{padding:15px 13px 14px}
  .series-sidebar{padding:10px 10px 9px}
  .series-sidebar .collection-tabs{gap:6px}
  .series-sidebar .collection-tabs button{min-height:38px;font-size:11px;padding:7px 9px}
  .catalog-main .paneltitle{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:11px}
  .catalog-main .paneltitle h2{font-size:25px;margin:2px 0 3px}
  .catalog-subtitle{grid-column:1/-1;font-size:11px;display:none}
  .catalog-main .count-pill{font-size:10px;padding:6px 8px;align-self:start}
  .catalog-main .search{min-height:44px;font-size:12px}
  .catalog-shown{font-size:10px;margin:9px 0}
  .catalog-main .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .catalog-main .model-tile{min-height:235px;padding:7px 7px 10px;border-radius:11px}
  .model-photo{height:167px;margin-bottom:6px}
  .catalog-main .model-tile img{height:160px}
  .catalog-main .model-tile>img{height:160px}
  .model-meta{font-size:8px}.catalog-main .model-tile strong{font-size:12px;line-height:1.25;padding-right:25px}
  .tile-arrow{width:25px;height:25px;right:7px;bottom:7px;font-size:13px}
  .catalog-shell.special-mode .catalog-main .model-grid{grid-template-columns:1fr 1fr}
  .catalog-shell.special-mode .catalog-main .model-tile{min-height:235px}
  .catalog-shell.special-mode .catalog-main .model-tile>img{height:155px}
  .config-panel{padding:15px 13px}.config-panel>.paneltitle h2{font-size:21px}
  .config-form{display:block}
  .config-form>.preview{position:static;min-height:310px;margin-bottom:13px}
  .config-form>.preview .preview-zoom{min-height:290px}
  .config-form>.preview img{height:285px}
  .config-form>.model-info{margin-top:0}.config-form>.model-info strong{font-size:21px}
  .finish-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:420px}
  .finish-item,.finish-item.active{min-height:143px}.finish-item img{height:75px}.finish-item>span:not(.missing-swatch){font-size:10px}
  .edge-list{grid-template-columns:repeat(3,minmax(0,1fr))}.edge-item{min-height:125px;padding:5px}.edge-item.active{padding:4px}.edge-list .edge-item img{height:62px}
  .price-panel{padding:15px 13px}.price-hero strong{font-size:32px}
  .mobile-total{z-index:30}
}
@media(max-width:385px){
  .intro-strip h1{font-size:27px}
  .section-navigation .product-sections button{font-size:11px;padding:8px}
  .section-icon{width:28px;height:28px}.section-icon svg{width:25px;height:25px}
  .catalog-main .model-tile{min-height:218px}.model-photo{height:151px}.catalog-main .model-tile img{height:145px}
}
@media(max-width:700px){
  .topbar .mark .header-product{display:none!important}
  .topbar .mark{gap:0}
  .topbar .header-brand-image{width:164px;height:52px}
}

/* AUTH, DEALER PROFILES AND SAVED QUOTES — 01.10.2026 */
.remember-line{display:flex!important;align-items:center;gap:9px;margin:2px 0 16px!important;font-size:12px!important;font-weight:650!important;color:#5e5952!important}
.remember-line input{width:18px!important;min-height:18px!important;height:18px!important;margin:0!important;flex:none}
.login-divider{display:flex;align-items:center;gap:12px;margin:17px 0;color:#a39b92;font-size:11px;text-transform:uppercase;letter-spacing:.11em}
.login-divider:before,.login-divider:after{content:"";height:1px;background:#e3ded6;flex:1}.guest-entry{margin-bottom:10px}
.account-modal-card{max-width:980px;width:min(980px,100%);max-height:92vh}
.profile-grid{display:grid;grid-template-columns:minmax(220px,290px) minmax(0,1fr);gap:24px;align-items:start}
.profile-logo-box{border:1px solid #e4ded5;background:#faf8f4;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px}
.profile-logo-preview{min-height:145px;border:1px dashed #d5c8b6;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;padding:18px;color:#8e8376;font-size:12px;text-align:center}
.profile-logo-preview img{max-width:100%;max-height:120px;object-fit:contain}
.file-button{display:flex;align-items:center;justify-content:center;margin:0!important;border:1px solid #d7c6aa;background:#fff;color:#433424;border-radius:10px;min-height:43px;padding:9px 12px;font-size:12px!important;cursor:pointer}
.file-button:hover{background:#fff8eb;border-color:#b98e58}.profile-form{min-width:0}.profile-login{font-size:12px;color:#777069;background:#f7f4ef;padding:10px 12px;border-radius:9px}
.success-message{color:#2f765a!important}
.dealer-create{border:1px solid #e7dfd4;background:#fbf9f6;border-radius:14px;padding:17px;margin-bottom:20px}.dealer-create h3{margin:0 0 14px;font-size:16px}.dealer-create-grid{display:grid;grid-template-columns:1fr 1.2fr 1fr auto;gap:10px;align-items:end}.dealer-create-grid label{margin:0}.dealer-create-grid .primary-button{white-space:nowrap;margin-bottom:0}
.dealer-list{display:flex;flex-direction:column;gap:9px}.dealer-row{border:1px solid #e5e0d8;border-radius:12px;padding:14px 15px;display:flex;justify-content:space-between;align-items:center;gap:18px}.dealer-row>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.dealer-row strong{font-size:14px}.dealer-row span{font-size:12px;color:#5f5a54}.dealer-row small{font-size:11px;color:#928a81}.dealer-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.status-chip{border-radius:99px;padding:6px 9px;font-size:10px!important;font-weight:800}.status-chip.active{background:#edf6f0;color:#2d7257}.status-chip.off{background:#f6eeee;color:#95564d}
.account-table-wrap{overflow:auto;border:1px solid #e5e0d8;border-radius:12px}.account-table{width:100%;border-collapse:collapse;min-width:720px}.account-table th{background:#161616;color:#fff;text-align:left;font-size:11px;padding:11px 12px;white-space:nowrap}.account-table td{border-top:1px solid #ece7df;padding:11px 12px;font-size:12px;vertical-align:top}.account-table tbody tr:first-child td{border-top:0}.account-table small{display:block;color:#8d857d;margin-top:3px;font-size:10px}.table-link{color:#8f642f;text-decoration:none;font-weight:800;border-bottom:1px solid #d7ba91}.table-link:hover{color:#161616}
@media(max-width:900px){.dealer-create-grid{grid-template-columns:1fr 1fr}.dealer-create-grid .primary-button{width:100%}.profile-grid{grid-template-columns:1fr}.dealer-row{align-items:flex-start;flex-direction:column}.dealer-row-actions{justify-content:flex-start}}
@media(max-width:700px){.login-panel{padding:27px 21px}.login-panel h1{font-size:31px}.account-modal-card{padding:18px}.dealer-create-grid{grid-template-columns:1fr}.profile-grid .two{grid-template-columns:1fr}.account-table{min-width:650px}.top-actions .account-action,.top-actions .owner-action{font-size:10px;padding:7px 9px;min-height:36px}}

/* Guest contact action: only visible in guest mode, styled as a full-width action. */
.max-contact{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;width:100%;min-height:49px}

/* Price-list note for ordinary complanar / REVERS doors. */
.notice-info,.calc-price-note{background:#fbf7f0;color:#4b4032;border:1px solid #dbc49f;border-radius:11px;padding:12px 14px;font-size:12px;line-height:1.6;margin:11px 0 2px}
.notice-info strong,.calc-price-note strong{color:#161616}
.calc-price-note{margin:12px 0 4px}

/* Visual pognazh selector: 01-10-2026 */
.trim-choice-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:15px 0 9px}.trim-choice-head strong{font-size:12px}.trim-choice-head span{font-size:10px;color:#8a989d}.trim-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.trim-choice{position:relative;min-width:0;border:1px solid #e5e8e9;background:#fff;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:7px;align-items:stretch;text-align:left;color:#4f6268;transition:.15s}.trim-choice:hover{border-color:#c9aa7a;box-shadow:0 4px 18px #5b49300f}.trim-choice.active{border:2px solid #c99b60;padding:7px;background:#fffaf3;box-shadow:0 0 0 2px #f5eadb}.trim-choice img{width:100%;height:105px;object-fit:contain;background:#fff;border-radius:8px}.trim-choice span{font-size:11px;font-weight:800;line-height:1.3}.trim-choice b{position:absolute;top:7px;right:7px;background:#161616;color:#fff;border-radius:999px;padding:4px 6px;font-size:8px;letter-spacing:.03em}.trim-guide-link{margin-top:10px;border:0;background:transparent;color:#6e5a3d;font-weight:750;font-size:11px;padding:5px 0;display:inline-flex;gap:6px;align-items:center}.trim-guide-link:hover{color:#161616}.trim-guide-link span{font-size:16px}.special-preview .small-foot{margin-top:8px;text-align:left}
@media(max-width:900px){.trim-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trim-choice img{height:120px}}
@media(max-width:520px){.trim-choice-head{align-items:flex-start;flex-direction:column;gap:3px}.trim-choice-grid{gap:7px}.trim-choice{padding:7px}.trim-choice.active{padding:6px}.trim-choice img{height:105px}.trim-choice span{font-size:10px}}

.guest-guide{margin:0 auto 18px;max-width:1500px;padding:14px 18px;border:1px solid #e7e2da;border-radius:18px;background:#fff}
.guest-guide>strong{display:block;margin-bottom:10px;font-size:14px}
.guest-guide-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.guest-guide-steps span{display:flex;align-items:center;gap:8px;font-size:13px;color:#4c4a47}
.guest-guide-steps b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#161616;color:#fff;font-size:12px}
.dealer-base-total{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.18);display:flex;justify-content:space-between;align-items:end;gap:16px}
.dealer-base-total span{font-size:12px;opacity:.78}
.dealer-base-total strong{font-size:20px}
.dealer-price-row{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;color:#555}
.dealer-price-row strong{color:#161616}
@media(max-width:760px){.guest-guide{margin:0 12px 14px}.guest-guide-steps{grid-template-columns:1fr 1fr}.guest-guide-steps span{font-size:12px}}

.finish-choice-title{font-size:12px;font-weight:800;color:#3d3935;margin:14px 0 2px}
.obkat-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr);gap:16px;align-items:start}
.obkat-guide{display:block;width:100%;padding:8px;border:1px solid #e6dfd5;border-radius:14px;background:#fff;text-align:left;color:#6c5b46}
.obkat-guide img{display:block;width:100%;max-height:245px;object-fit:contain;border-radius:9px;background:#fff}
.obkat-guide span{display:block;padding:7px 3px 1px;font-size:10px;font-weight:800}
.obkat-note{margin:0 0 10px}
.hidden-box-compare{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(280px,1.35fr);gap:12px;align-items:stretch}
.hidden-box-standard{border:1px solid #e7e1d8;border-radius:14px;background:#faf8f4;padding:10px}
.hidden-box-standard strong{display:block;font-size:11px;margin-bottom:7px}
.hidden-box-standard button{border:0;background:none;padding:0;width:100%;cursor:zoom-in}
.hidden-box-standard img{display:block;width:100%;height:125px;object-fit:contain;background:#fff;border-radius:9px}
.box-choice-card{display:grid;grid-template-columns:auto 130px 1fr;align-items:start;gap:13px;padding:11px;border:1px solid #ded8cf;border-radius:14px;background:#fff;cursor:pointer}
.box-choice-card.active{border:2px solid #c99b60;padding:10px;background:#fff9ee;box-shadow:0 0 0 1px rgba(201,155,96,.12)}
.box-choice-card>input{margin-top:7px}
.box-preview-btn{border:0;background:none;padding:0;width:100%;cursor:zoom-in}
.box-choice-media img{display:block;width:130px;height:125px;object-fit:contain;background:#fff;border-radius:9px;border:1px solid #eee8df}
.box-choice-text strong{display:block;font-size:13px;line-height:1.35;margin-bottom:7px;color:#29251f}
.box-choice-text small{display:block;font-size:11px;line-height:1.5;color:#756f68}
@media(max-width:700px){.obkat-layout{grid-template-columns:1fr}.hidden-box-compare{grid-template-columns:1fr}.box-choice-card{grid-template-columns:auto 100px 1fr}.box-choice-media img{width:100px;height:100px}.hidden-box-standard img{height:110px}}


/* Calculation editor layout fix — 01.10.2026 */
.price-panel .line-inputs{display:grid;gap:10px;margin-top:11px;align-items:end}
.price-panel .line-inputs.two-fields{grid-template-columns:minmax(92px,120px) minmax(180px,1fr)}
.price-panel .line-inputs.has-width{grid-template-columns:minmax(92px,120px) minmax(170px,1fr) minmax(105px,130px)}
.price-panel .line-inputs label{min-width:0;margin:0;font-size:10px;line-height:1.25;color:#746d65;font-weight:700}
.price-panel .line-inputs input{display:block;width:100%;margin-top:6px;min-height:39px;padding:8px 10px;border-radius:8px;font-size:12px}
@media(max-width:1180px){
  .price-panel .line-inputs.two-fields{grid-template-columns:minmax(86px,105px) minmax(145px,1fr)}
  .price-panel .line-inputs.has-width{grid-template-columns:minmax(82px,100px) minmax(140px,1fr) minmax(95px,110px)}
}
@media(max-width:760px){
  .price-panel .line-inputs.two-fields{grid-template-columns:minmax(90px,110px) minmax(0,1fr)}
  .price-panel .line-inputs.has-width{grid-template-columns:minmax(90px,110px) minmax(0,1fr)}
  .price-panel .line-inputs.has-width label:last-child{grid-column:1/-1}
}
@media(max-width:420px){
  .price-panel .line-inputs.two-fields,.price-panel .line-inputs.has-width{grid-template-columns:1fr}
  .price-panel .line-inputs.has-width label:last-child{grid-column:auto}
}

/* Portal, calculation actions and transom auto-size clarity — 01.10.2026 */
.portal-auto-note{margin-top:12px}
.transom-auto-card{display:grid!important;grid-template-columns:auto auto 1fr;gap:10px;align-items:start;border:1px solid #ded8cf;border-radius:14px;background:#faf9f7;padding:13px 14px!important;margin:0 0 14px!important;cursor:pointer;color:#3d3935!important}
.transom-auto-card.active{border:2px solid #c99b60;padding:12px 13px!important;background:#fff9ee;box-shadow:0 0 0 1px rgba(201,155,96,.12)}
.transom-auto-card input{width:18px!important;height:18px!important;min-height:18px!important;margin:2px 0 0!important;flex:none}
.transom-auto-check{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#161616;color:#fff;font-size:13px;font-weight:900;margin-top:-2px}
.transom-auto-card strong{display:block;font-size:13px;line-height:1.35;color:#23201d;margin-bottom:4px}
.transom-auto-card small{display:block;font-size:11px;line-height:1.5;color:#77716b;font-weight:500}
.line-title-actions{display:flex;align-items:center;gap:8px;flex:none}
.line-title-actions>span{font-size:11px;font-weight:800;white-space:nowrap}
.line-remove{display:grid;place-items:center;width:25px;height:25px;border:1px solid #e6d1ce;background:#fff7f5;color:#a14e43;border-radius:7px;font-size:17px;line-height:1;padding:0;opacity:.78}
.line-remove:hover{opacity:1;background:#fff0ed;border-color:#d6a39c}
@media(max-width:520px){.transom-auto-card{grid-template-columns:auto 1fr}.transom-auto-check{display:none}.line-title-actions{gap:5px}.line-remove{width:28px;height:28px}}

/* 01.10.2026 — compact workspace + clear item removal */
.config-item-head{position:sticky;top:-1px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-6px -6px 12px;padding:10px 8px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid #e9e2d9}
.config-item-head>div{min-width:0}.config-item-head strong{display:block;font-size:16px;line-height:1.25;color:#161616}.config-item-head small{display:block;margin-top:3px;color:#777;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.config-remove{flex:0 0 auto;border:1px solid #e2c5c0;background:#fff8f7;color:#9b4d43;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:800}.config-remove:hover{background:#fceceb;border-color:#cf9991}.config-remove span{font-size:13px;margin-right:3px}
.first-section{border-top:0;padding-top:4px}
.compact-special{padding:7px;margin-bottom:0}.compact-special img{max-height:170px;object-fit:contain}
/* One page scroll instead of a second nested scrollbar for colors. */
.finish-list{max-height:none!important;overflow:visible!important;grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;gap:8px!important}
.finish-item,.finish-item.active{min-width:0!important;max-width:none!important;min-height:112px!important;padding:6px!important}.finish-item img,.missing-swatch{height:60px!important}.finish-zoom{right:5px!important;top:5px!important}
.config-panel .preview{min-height:285px!important}.config-panel .preview img{height:265px!important}
.form-section{padding-top:11px}.form-section h3{margin-bottom:9px}.model-info{margin:10px 0}.chosen-finish{margin:8px 0 4px}
@media(max-width:1160px){.finish-list{grid-template-columns:repeat(4,minmax(0,1fr))!important}.config-item-head{position:static}}
@media(max-width:700px){.config-item-head{position:sticky;top:0;margin:-4px -4px 10px;padding:8px 5px 10px}.config-remove{padding:7px 9px}.finish-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.finish-item,.finish-item.active{min-height:104px!important}.finish-item img,.missing-swatch{height:54px!important}.config-panel .preview{min-height:215px!important}.config-panel .preview img{height:205px!important}}

/* Optional installation / delivery — owner and dealer only */
.service-options{margin:18px 0 22px;padding:16px;border:1px solid #e5dfd6;border-radius:18px;background:#faf8f5}
.service-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.service-head h3{margin:2px 0 0;font-size:18px;color:#161616}.service-head small{color:#716b64;text-align:right}
.service-product-list{display:grid;gap:10px}
.service-product-row,.service-delivery-row{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(180px,230px);gap:14px;align-items:center;padding:12px 14px;border:1px solid #e7e1d9;border-radius:14px;background:#fff}
.service-product-name,.service-delivery-row>div{display:flex;flex-direction:column;gap:3px}.service-product-name small,.service-delivery-row small{color:#79736d;font-size:12px}
.service-switch{display:flex;align-items:center;gap:7px;font-weight:700;white-space:nowrap}.service-switch input{width:18px;height:18px;accent-color:#c99b60}
.service-price-input{display:flex;flex-direction:column;gap:5px}.service-price-input span{font-size:11px;color:#6e6861}.service-price-input input{width:100%;min-height:40px}.service-price-input.disabled{opacity:.48}
.service-delivery-row{margin-top:10px;border-color:#d9c5aa;background:#fffdf9}.service-price{color:#5e554a}
@media (max-width:780px){.service-head{align-items:flex-start;flex-direction:column;gap:4px}.service-head small{text-align:left}.service-product-row,.service-delivery-row{grid-template-columns:1fr auto}.service-price-input{grid-column:1/-1}.service-price-input input{min-height:44px}}

/* 01.10.2026 — approved calculation workspace: no nested scrollbars. */
.price-panel .line-list{
  max-height:none!important;
  overflow:visible!important;
  min-width:0;
}
.price-panel .line{
  min-width:0;
  overflow:visible;
}
.price-panel .line-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
}
.price-panel .line-title>div:first-child{min-width:0}
.price-panel .line-title strong,
.price-panel .line-title small{
  overflow-wrap:anywhere;
  word-break:normal;
}
.price-panel .line-title-actions{min-width:max-content}
.price-panel .line-inputs{width:100%;min-width:0}
.price-panel .line-inputs.two-fields{
  grid-template-columns:minmax(76px,96px) minmax(0,1fr)!important;
}
.price-panel .line-inputs.has-width{
  grid-template-columns:minmax(72px,.72fr) minmax(118px,1.35fr) minmax(76px,.83fr)!important;
  gap:8px!important;
}
.price-panel .line-inputs label{min-width:0;overflow-wrap:anywhere}
.price-panel .line-inputs input{min-width:0;padding-left:8px;padding-right:8px}
@media(max-width:420px){
  .price-panel .line-inputs.two-fields{grid-template-columns:minmax(82px,100px) minmax(0,1fr)!important}
  .price-panel .line-inputs.has-width{grid-template-columns:minmax(76px,.75fr) minmax(104px,1.25fr) minmax(72px,.72fr)!important;gap:6px!important}
  .price-panel .line-inputs label{font-size:9px}
  .price-panel .line-inputs input{font-size:11px;padding:7px 6px}
}

/* 07.10.2026 server hotfix: service options live in the narrow price panel.
   Keep mounting/delivery fields inside the panel at every desktop width. */
.price-panel .service-options{padding:12px}
.price-panel .service-head{align-items:flex-start;flex-direction:column;gap:4px}
.price-panel .service-head small{text-align:left}
.price-panel .service-product-row,
.price-panel .service-delivery-row{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:11px}
.price-panel .service-price-input{grid-column:1/-1;min-width:0}
.price-panel .service-price-input input{min-height:42px;max-width:100%;box-sizing:border-box}
.price-panel .service-product-name,
.price-panel .service-delivery-row>div{min-width:0}
.price-panel .service-product-name strong,
.price-panel .service-product-name small,
.price-panel .service-delivery-row strong,
.price-panel .service-delivery-row small{overflow-wrap:anywhere}

/* SV hotfix 09-10-2026: mobile account navigation. Desktop is unchanged. */
.mobile-menu-toggle{display:none}
@media(max-width:700px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;overflow:visible}
  .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid #c99b60;border-radius:10px;background:#24201c;color:#f7e8d0;font-size:13px;font-weight:700;cursor:pointer}
  .mobile-menu-toggle:focus-visible{outline:3px solid #c99b60;outline-offset:2px}
  .topbar .top-actions{display:none;grid-column:1/-1;width:100%;padding:10px 0 4px;gap:8px;flex-wrap:wrap;justify-content:stretch;min-width:0}
  .topbar .top-actions.mobile-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar .top-actions .smallstatus{grid-column:1/-1}
  .topbar .top-actions .ghost,.topbar .top-actions #resetBtn,.topbar .top-actions #logoutBtn{display:flex;align-items:center;justify-content:center;white-space:normal;min-width:0;min-height:44px;font-size:12px;padding:10px 8px;text-align:center}
  .topbar .top-actions .hidden{display:none!important}
}
@media(max-width:370px){.topbar .top-actions.mobile-open{grid-template-columns:1fr}}
