/* Eurohandel veranda offertetool */
:root {
  --navy: #1B3A8C;
  --navy-d: #132B6A;
  --navy-l: #E8EDF8;
  --orange: #F07D1A;
  --orange-d: #D9680A;
  --orange-l: #FEF1E5;
  --red: #E2231A;
  --bg: #F2F4F8;
  --card: #FFFFFF;
  --ink: #16213D;
  --muted: #5D6882;
  --line: #DCE1EB;
  --ok: #1E9E5A;
  --err: #D23B2E;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 33, 61, .06), 0 6px 20px rgba(22, 33, 61, .07);
  --shadow-lg: 0 10px 40px rgba(22, 33, 61, .16);
  --head: 'Rubik', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.optional { font: 500 12px var(--body); color: var(--muted); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; padding: 12px 0 10px; }
.logo img { height: 60px; width: auto; }
.header-meta { text-align: right; display: flex; flex-direction: column; }
.header-title { font: 700 16px var(--head); }
.header-sub { font-size: 13px; opacity: .8; }

.intro { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 55%, var(--bg) 55%); padding: 18px 0 0; }
.intro .wrap {
  color: #fff; border-radius: var(--radius); padding: 40px 32px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 43, 106, .97) 0%, rgba(27, 58, 140, .88) 38%, rgba(27, 58, 140, .35) 68%, rgba(27, 58, 140, .1) 100%),
    url('../img/uls-2.jpg') 70% 45% / cover no-repeat,
    var(--navy-d);
}
.intro h1, .intro p { text-shadow: 0 1px 12px rgba(10, 20, 50, .35); }
.intro h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; letter-spacing: -.5px; margin: 10px 0 6px; }
.intro p { margin: 0; opacity: .9; max-width: 560px; }
.pill { display: inline-block; background: var(--orange); color: #fff; font: 700 11px var(--head); letter-spacing: .8px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 48px; }
.wizard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px 28px; min-width: 0; }
.summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
body.is-done .layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
body.is-done .summary, body.is-done .mobile-bar { display: none !important; }

/* ---------- stepper ---------- */
.stepper { display: flex; align-items: center; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.step:disabled { cursor: default; opacity: .6; }
.step:not(:disabled):hover .step-label { color: var(--navy); }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font: 700 13px var(--head); flex: none; }
.step.is-done .step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.is-active { color: var(--ink); }
.step.is-active .step-num { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 4px var(--orange-l); }
.step-line { flex: 1; height: 2px; background: var(--line); min-width: 8px; }
.progress-mobile { display: none; }

/* ---------- step header ---------- */
.step-panel { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: 22px; }
.step-kicker { display: inline-block; color: var(--orange); font: 800 13px var(--head); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.step-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.step-head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.group { margin-top: 26px; }
.group-title { font: 700 17px var(--head); margin-bottom: 12px; color: var(--ink); }
.dim-note { font-size: 13px; color: var(--orange-d); font-weight: 600; margin: 6px 0 0; }
.dim-note:empty { display: none; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.field-error { color: var(--err); font-size: 13px; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-error.center { text-align: center; }
.notice { background: var(--orange-l); border: 1px solid #F9D2AE; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-top: 18px; }
.notice.subtle { background: var(--bg); border-color: var(--line); color: var(--muted); }

/* ---------- model cards ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.model-card {
  text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.model-card:hover { border-color: #AFC0E6; box-shadow: var(--shadow); transform: translateY(-2px); }
.model-card:focus-visible, .option:focus-visible, .color:focus-visible, .roof:focus-visible, .timing:focus-visible, .chip:focus-visible, .btn:focus-visible, .step:focus-visible, .edit:focus-visible, .mc-more:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.model-card.is-selected { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-l); }
.mc-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy-l); overflow: hidden; }
.mc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.model-card:hover .mc-img img { transform: scale(1.04); }
.mc-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.mc-tags span { background: rgba(255,255,255,.94); color: var(--navy); font: 700 11px var(--head); padding: 4px 9px; border-radius: 999px; }
.mc-tags span:first-child { background: var(--orange); color: #fff; }
.mc-check { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; transform: scale(0); transition: transform .2s; }
.model-card.is-selected .mc-check { transform: scale(1); }
.mc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.mc-family { font: 700 11px var(--head); color: var(--orange); text-transform: uppercase; letter-spacing: .8px; }
.mc-name { font: 800 20px/1.15 var(--head); color: var(--navy); }
.mc-tagline { font-size: 14px; color: var(--muted); }
.mc-specs { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mc-specs b { font-weight: 600; color: var(--ink); margin-right: 4px; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.mc-sw { display: flex; gap: 4px; }
.mc-more { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.sw-mini { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); vertical-align: -4px; margin-right: 6px; }
.mc-sw .sw-mini { margin-right: 0; }
.metallic { background-image: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0) 45%, rgba(255,255,255,.18) 60%, rgba(0,0,0,.1)) !important; }

/* ---------- info panel ---------- */
.info-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; background: var(--bg); border-radius: var(--radius); padding: 14px; }
.ip-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ip-thumb { border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); cursor: zoom-in; }
.ip-thumb.big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ip-thumb:hover img { transform: scale(1.04); }
.ip-text { padding: 6px 6px 6px 0; }
.ip-text h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.ip-text p { color: var(--muted); font-size: 14px; margin: 8px 0 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.link { font-weight: 600; font-size: 14px; }

/* ---------- options ---------- */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.option, .roof, .timing, .color, .extra, .consent {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .15s, background .15s;
}
.option:hover, .roof:not(:disabled):hover, .timing:hover, .color:hover, .extra:hover, .consent:hover { border-color: #AFC0E6; }
.is-selected.option, .is-selected.roof, .is-selected.timing, .is-selected.color, .is-selected.extra, .is-selected.consent { border-color: var(--orange); background: #FFFBF7; }
.option-grid.with-img .option { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.option-grid.with-img .opt-text { padding: 12px 14px 14px; }
.option-grid.with-img .radio { position: absolute; top: 10px; right: 10px; background: #fff; }
.opt-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.opt-img img { width: 100%; height: 100%; object-fit: cover; }
.opt-text, .roof-text, .color-text, .extra-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.opt-text strong, .color-text strong, .roof-text strong, .extra-text strong { font: 700 16px var(--head); }
.opt-text small, .color-text small, .roof-text small, .extra-text small { color: var(--muted); font-size: 13px; }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B9C2D4; position: relative; transition: border-color .15s; }
.is-selected .radio { border-color: var(--orange); }
.is-selected .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.swatch { flex: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 -8px 14px rgba(0,0,0,.12), inset 0 2px 0 rgba(255,255,255,.3); }
.color.is-selected .swatch { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }

.roof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.roof { align-items: flex-start; padding: 16px; }
.roof .radio { margin-top: 2px; }
.roof-text span { font-size: 13px; color: var(--ink); margin-top: 6px; }
.roof.is-disabled { opacity: .5; cursor: not-allowed; background: var(--bg); }
.roof-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--navy-l); display: grid; place-items: center; }
.roof-icon svg { width: 38px; height: 38px; }
.ri-s { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ri-glass { fill: #CFE6FB; stroke: var(--navy); stroke-width: 2.5; }
.ri-shine { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.ri-poly { fill: #EEF1F7; stroke: var(--navy); stroke-width: 2.5; }
.ri-ch { stroke: #A3B1CF; stroke-width: 2; }
.ri-steel { fill: #8E99AE; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: #AFC0E6; }
.chip.is-selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip.is-selected small { color: rgba(255,255,255,.75); }

.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.extra, .consent { cursor: pointer; align-items: flex-start; }
.extra input, .consent input { position: absolute; opacity: 0; pointer-events: none; }
.cbox { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #B9C2D4; margin-top: 1px; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.is-selected .cbox { background: var(--orange); border-color: var(--orange); }
.is-selected .cbox::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.extra input:focus-visible + .cbox, .consent input:focus-visible + .cbox { outline: 3px solid var(--orange); outline-offset: 2px; }
.extra-text strong { font-size: 15px; }

.timing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.timing { font-weight: 600; font-size: 15px; }

/* ---------- size ---------- */
.size-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.size-controls { display: flex; flex-direction: column; gap: 22px; }
.dim { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; border: 2px solid transparent; }
.dim.has-error { border-color: #F2B8B2; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dim-top label { font: 700 17px var(--head); }
.dim-range { font-size: 13px; color: var(--muted); }
.dim-input { display: flex; align-items: stretch; gap: 8px; }
.stepper-btn { flex: none; width: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 22px; font-weight: 600; color: var(--navy); }
.stepper-btn:hover { border-color: var(--navy); }
.num-wrap { flex: 1; position: relative; }
.num-wrap input { width: 100%; height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); text-align: center; font: 800 24px var(--head); color: var(--navy); padding: 0 44px 0 12px; -moz-appearance: textfield; }
.num-wrap input::-webkit-outer-spin-button, .num-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-wrap input:focus { outline: none; border-color: var(--navy); }
.num-wrap span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin-top: 10px; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), #8AA0D6); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy), #8AA0D6); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); margin-top: -10px; cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); cursor: grab; }
input[type=range]:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.size-visual { background: linear-gradient(180deg, #F7F9FC, #EAF3E6); border-radius: var(--radius); padding: 10px 10px 14px; border: 1px solid var(--line); position: sticky; top: 16px; }
.size-visual svg { width: 100%; height: auto; display: block; }
.sv-wall { fill: #C9CFDB; }
.sv-walltxt { font: 700 9px var(--body); fill: #5D6882; text-anchor: middle; letter-spacing: 1.5px; }
.sv-roof { fill: rgba(190, 220, 245, .55); }
.sv-outline { fill: none; stroke-width: 3; }
.sv-rafter { stroke: rgba(27, 58, 140, .3); stroke-width: 1.5; }
.sv-post { fill: var(--ink); }
.sv-dim { stroke: var(--orange); stroke-width: 2; marker-start: none; }
.sv-label { font: 800 13px var(--head); fill: var(--navy); text-anchor: middle; }
.sv-label.left { text-anchor: start; }
.size-facts { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.size-facts b { color: var(--ink); font-family: var(--head); font-size: 15px; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font: 400 16px var(--body); color: var(--ink); background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-l); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.group.has-error .timing { border-color: #F2B8B2; }

/* ---------- review ---------- */
.review-hero { display: flex; gap: 16px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; }
.review-hero img { width: 180px; height: 120px; object-fit: cover; flex: none; }
.review-hero div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 0; }
.review-hero strong { font: 800 24px var(--head); }
.review-hero span:last-child { opacity: .85; font-size: 14px; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; margin-top: 16px; }
.review-card h3 { font-size: 16px; font-weight: 700; padding: 12px 0 6px; color: var(--navy); }
.review-card dl { margin: 0; }
.rv-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: start; }
.rv-row dt { color: var(--muted); }
.rv-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rv-row dd.pre { white-space: pre-wrap; font-weight: 400; }
.edit { background: none; border: 0; color: var(--navy); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
.consent { font-size: 14px; }
.consent-wrap { margin-top: 20px; }
.submit-box { text-align: center; margin-top: 22px; }
.submit-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 13px 26px; font: 700 15px var(--head); letter-spacing: .2px; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(240, 125, 26, .35); }
.btn-primary:hover { background: var(--orange-d); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 17px 40px; font-size: 17px; width: 100%; max-width: 420px; text-transform: uppercase; letter-spacing: .6px; }
.btn-sm { padding: 11px 18px; }
.is-loading::before { content: ''; width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-buttons { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- summary ---------- */
.sum-card, .sum-empty, .sum-help { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sum-img { position: relative; aspect-ratio: 16 / 10; }
.sum-img img { width: 100%; height: 100%; object-fit: cover; }
.sum-badge { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff; font: 800 11px var(--head); letter-spacing: 1px; border-radius: 999px; padding: 4px 10px; }
.sum-body { padding: 16px 18px 18px; }
.sum-body h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.sum-body dl { margin: 0; }
.sum-body dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sum-body dt { color: var(--muted); }
.sum-body dd { margin: 0; font-weight: 600; text-align: right; }
.sum-empty { padding: 26px 22px; text-align: center; }
.sum-empty-icon { width: 64px; height: 64px; margin: 0 auto 10px; }
.sum-empty-icon .roof-icon { width: 64px; height: 64px; border-radius: 16px; }
.sum-empty strong { font: 800 18px var(--head); color: var(--navy); }
.sum-empty p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.sum-help { background: var(--navy); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.sum-help strong { font: 800 18px var(--head); }
.sum-help p { margin: 2px 0 12px; font-size: 14px; opacity: .88; }
.sum-visit { background: #fff; border-radius: 10px; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.sum-addr { color: var(--navy); font: 700 14px var(--head); }
.sum-hours { color: var(--muted); font-size: 12px; }
.btn-call { margin-top: 12px; background: var(--orange); color: #fff; width: 100%; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.btn-call:hover { background: var(--orange-d); }
.btn-call svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- done ---------- */
.done { text-align: center; padding: 10px 0; }
.done h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--navy); margin-top: 12px; }
.done .lead { font-size: 17px; max-width: 560px; margin: 12px auto 4px; }
.ref { color: var(--muted); }
.done-icon svg { width: 84px; height: 84px; margin: 0 auto; }
.done-icon circle { fill: var(--ok); }
.done-icon path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next-steps { list-style: none; counter-reset: s; padding: 0; margin: 26px auto; max-width: 560px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.next-steps li::before { content: '0' counter(s); grid-row: span 2; font: 900 26px var(--head); color: var(--orange); }
.next-steps span { color: var(--muted); font-size: 14px; }
.done-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.mail-preview { text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px auto 0; max-width: 640px; font-size: 14px; }
.mp-head { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; flex-direction: column; }
.mp-head span { font-size: 12px; opacity: .8; }
.mail-preview table { width: 100%; border-collapse: collapse; }
.mail-preview th, .mail-preview td { text-align: left; padding: 8px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.mail-preview th { color: var(--muted); font-weight: 500; width: 40%; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-d); color: rgba(255,255,255,.85); font-size: 14px; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; font-family: var(--head); }
.footer-small { max-width: 460px; font-size: 12px; opacity: .75; }
.site-footer a { color: #fff; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 40, .9); z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 36px; }

/* ---------- mobile bar & sheet ---------- */
.mobile-bar, .sheet, .sheet-backdrop { display: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 1180px) {
  .step-label { display: none; }
  .step.is-active .step-label { display: inline; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 14px; padding-bottom: 110px; }
  .summary { display: none; }
  .stepper { display: none; }
  .progress-mobile { display: block; margin-bottom: 20px; }
  .pm-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .pm-top strong { color: var(--navy); font-family: var(--head); }
  .pm-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
  .pm-bar span { display: block; height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s; }
  .nav-buttons { display: none; }
  .info-panel { grid-template-columns: 1fr; }
  .size-layout { grid-template-columns: 1fr; }
  .size-visual { position: static; order: -1; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(22,33,61,.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-sum-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; }
  .msum-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--navy-l); }
  .msum-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .msum-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .msum-text strong { font: 700 14px var(--head); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .msum-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .msum-chev { font-size: 10px; color: var(--muted); transition: transform .2s; }
  .sheet-open .msum-chev { transform: rotate(180deg); }
  .mobile-actions { display: flex; gap: 8px; flex: none; }
  .mobile-actions .btn-ghost { padding: 11px 14px; }

  .sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,18,40,.45); z-index: 38; opacity: 0; transition: opacity .25s; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; background: var(--bg); border-radius: 20px 20px 0 0; max-height: 82vh; overflow: auto;
    padding: 8px 14px calc(84px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease; }
  .sheet[hidden], .sheet-backdrop[hidden] { display: none; }
  .sheet-open .sheet { transform: none; }
  .sheet-open .sheet-backdrop { opacity: 1; }
  .sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #C3CAD8; margin: 4px auto 12px; }
  #sheetBody { display: flex; flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; }
  .logo img { height: 48px; }
  .header-sub { display: none; }
  .intro { padding-top: 10px; }
  .intro .wrap { border-radius: 14px; padding: 24px 20px 26px; margin: 0 16px; width: auto;
    background:
      linear-gradient(180deg, rgba(19, 43, 106, .55) 0%, rgba(19, 43, 106, .92) 70%),
      url('../img/uls-2.jpg') 65% 40% / cover no-repeat,
      var(--navy-d); }
  .intro p { font-size: 15px; }
  .layout { padding-left: 0; padding-right: 0; }
  .wizard { border-radius: 0; box-shadow: none; padding: 20px 16px 24px; }
  .model-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .rv-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .rv-row dt { grid-column: 1; font-size: 13px; }
  .rv-row dd { grid-column: 1; }
  .rv-row .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .review-hero img { width: 110px; height: 100px; }
  .review-hero strong { font-size: 19px; }
  .review-card { padding: 4px 14px; }
  .color-grid { grid-template-columns: 1fr 1fr; }
  .color { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .option-grid.with-img { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .option-grid.with-img .opt-text small { display: none; }
  .option-grid.with-img .opt-text { padding: 8px 10px 10px; }
  .option-grid.with-img .radio { width: 18px; height: 18px; top: 6px; right: 6px; }
  .timing-grid { grid-template-columns: 1fr; }
  .chip-row { flex-direction: column; }
  .chip { text-align: left; border-radius: var(--radius-sm); }
  .footer-inner { flex-direction: column; }
  .mail-preview th, .mail-preview td { display: block; width: 100%; padding: 4px 14px; border: 0; }
  .mail-preview th { padding-top: 10px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
