:root {
  --gutter: clamp(20px, 4.4vw, 72px);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { display: block; max-width: 100%; }
::selection { color: #102a76; background: #dae5ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sprite { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon {
  width: 21px; height: 21px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon.small { width: 17px; height: 17px; }
.wrap { width: min(100% - var(--gutter) * 2, 1312px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.preview-notice { color: var(--accent); background: var(--accent-tint); }
.preview-notice .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 4px; gap: 0 12px; font-size: .8rem; }
.preview-notice a { padding-block: 10px; text-decoration: underline; text-underline-offset: .18em; }
[data-preview] #lead-form { opacity: .65; }

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 1.36rem; font-weight: 800; letter-spacing: -.035em; }
.wordmark span { overflow-wrap: anywhere; }
.wordmark-img { object-fit: contain; flex: none; }
.mark { width: 30px; height: 30px; color: var(--accent); }
.header-inner nav { display: flex; gap: clamp(20px, 3vw, 46px); align-items: center; color: var(--subtle); font-size: .89rem; }
.header-inner nav a { padding-block: 13px; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--accent); }
.button {
  min-height: 49px; min-width: 0; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; border-radius: 8px; padding: 10px 17px; font-size: .88rem; font-weight: 800;
  line-height: 1.25; transition: background .2s, color .2s, border-color .2s; text-align: center;
}
.button-fill { background: var(--brand-button); color: var(--brand-text); border-color: var(--brand-border); }
.button-fill:hover { background: var(--brand-button-hover); }
.button-outline { border-color: var(--line); background: transparent; color: var(--text); }
.button-outline:hover { border-color: var(--accent); background: var(--accent-tint); }
.top-contact { min-height: 42px; }

.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; align-items: center; padding-block: clamp(26px, 4.3vw, 65px); }
.hero-split, .hero-photo-left { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(24px, 4.1vw, 65px); }
.hero-wide { gap: clamp(19px, 2.8vw, 44px); }
.hero-copy { min-width: 0; }
.hero-visual { min-width: 0; min-height: 0; position: relative; }
.hero-visual::before { content: ""; position: absolute; bottom: 0; left: 0; width: clamp(26px, 4.5vw, 68px); height: 4px; background: var(--accent); }
.hero-photo { width: 100%; height: 100%; min-height: 340px; max-height: 500px; aspect-ratio: 1.42; object-fit: cover; object-position: center; }
@media (min-width: 761px) {
  .hero-photo-left { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .hero-photo-left .hero-visual { grid-row: 1; grid-column: 1; }
  .hero-photo-left .hero-copy { grid-row: 1; grid-column: 2; }
  .hero-wide .hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 1fr); column-gap: clamp(24px, 4vw, 65px); align-items: end; }
  .hero-wide .hero-location { grid-column: 1 / -1; }
  .hero-wide .hero-description { margin: 0; }
  .hero-wide .hero-actions { grid-column: 1 / -1; margin-top: 23px; }
  .hero-wide .hero-lead { justify-self: start; }
  .hero-wide .hero-photo { aspect-ratio: 2.7; object-position: center 58%; }
}
.hero-location { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--subtle); margin: 0 0 20px; font-size: .83rem; font-weight: 700; }
.hero-location .icon { color: var(--accent); }
.hero-location span { width: 3px; height: 3px; border-radius: 50%; background: #7e8ca1; margin-inline: 2px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; max-width: 670px; font-size: clamp(2.55rem, 4.09vw, 4.4rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 750; }
.hero-description { max-width: 430px; margin: 23px 0 28px; color: var(--subtle); line-height: 1.62; font-size: clamp(.94rem, 1.23vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; }
.hero-actions .button-fill { min-height: 55px; gap: 22px; padding-inline: 18px; }
.hero-link { padding-inline: 8px; color: var(--text); }
.hero-link:hover { color: var(--accent); }
.hero-lead { border: 0; background: transparent; min-height: 42px; padding: 10px 0; margin-top: 4px; text-decoration: underline; text-underline-offset: .27em; color: var(--subtle); }
.hero-lead:hover { color: var(--accent); }

.calculator { padding-top: clamp(37px, 5vw, 78px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 36px; margin-bottom: 23px; }
.section-heading > :first-child { min-width: 0; max-width: 100%; }
h2 { font-size: clamp(1.9rem, 4.05vw, 3.65rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.04; margin: 0; }
.section-heading > p { margin: 0 0 2px; max-width: 335px; color: var(--subtle); font-size: .89rem; line-height: 1.62; }

.configurator {
  display: grid; grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
.preview { min-width: 0; min-height: 509px; background: var(--viewport); position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; }
.scene-head, .scene-footer { z-index: 1; display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 17px 20px; }
.scene-title strong { display: block; font-size: .91rem; }
.scene-spec { display: block; color: var(--subtle); font-size: .71rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.scene-modes, .scene-tools { display: flex; align-items: center; gap: 3px; background: var(--panel); border: 1px solid #cad5e5; padding: 3px; border-radius: 8px; }
.scene-modes button, .scene-tools button { display: inline-flex; justify-content: center; align-items: center; gap: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); padding: 5px 8px; min-height: 36px; min-width: 36px; font-size: .73rem; font-weight: 800; }
.scene-modes button[aria-pressed="true"], .scene-modes button:hover, .scene-tools button:hover { background: var(--accent-tint); color: var(--accent); }
.scene-stage { position: relative; min-height: 300px; }
#ceiling-scene, #scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#ceiling-scene { display: block; touch-action: pan-y; cursor: grab; }
#ceiling-scene:focus-visible { outline-offset: -4px; }
#ceiling-scene:active { cursor: grabbing; }
#ceiling-scene[data-view-mode="plan"] { cursor: default; }
#scene-fallback { display: grid; place-content: center; color: var(--subtle); text-align: center; padding: 1rem; }
.scene-footer { align-self: flex-end; }
.scene-footer p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--subtle); font-size: .72rem; }

.config-controls { padding: 18px clamp(17px, 2.2vw, 34px) 17px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.step-tabs { display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.step-tabs button { flex: 1; min-width: 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--subtle); font-size: .84rem; font-weight: 800; min-height: 44px; padding: 7px 3px; }
.step-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.step-tabs button:hover { color: var(--text); }
.step-content { flex: 1; }
.step-content h3 { font-size: clamp(1.3rem, 2vw, 1.79rem); line-height: 1.15; letter-spacing: -.045em; margin: 0 0 7px; }
.step-description, .help-text { color: var(--subtle); font-size: .78rem; line-height: 1.5; }
.step-description { margin: 0 0 20px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 11px; font-size: .9rem; font-weight: 800; margin-bottom: 8px; }
.number-field, .counter { color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 7px; align-items: center; display: inline-flex; max-width: 116px; padding-right: 8px; gap: 3px; }
.number-field span { color: var(--subtle); font-size: .78rem; padding-right: 2px; }
input:not([type="range"]), select, textarea {
  min-height: 42px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--text); padding: 8px 10px;
}
input::placeholder, textarea::placeholder { color: #5b6a81; opacity: 1; }
input[type="number"] { font-variant-numeric: tabular-nums; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }
.number-field input[type="number"], .counter input[type="number"] { width: 100%; min-width: 0; min-height: 38px; border: none; background: transparent; text-align: right; padding-right: 4px; }
.number-field:focus-within { border-color: var(--accent); }
.counter { max-width: 134px; padding-right: 0; }
.counter button { border: 0; border-radius: 6px; background: none; color: var(--accent); min-width: 38px; min-height: 40px; display: grid; place-items: center; }
.counter button:hover { background: var(--accent-tint); }
.counter input[type="number"] { text-align: center; padding: 3px 0; }
input[type="range"] { appearance: none; width: 100%; min-width: 0; height: 26px; padding: 0; margin: 0; background: none; cursor: pointer; vertical-align: middle; --progress: 24%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--progress), #cbd6e8 var(--progress)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--progress), #cbd6e8 var(--progress)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; margin-top: -6px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); }
.range-labels { display: flex; justify-content: space-between; color: var(--subtle); font-size: .72rem; margin-bottom: 13px; }
.dimensions { margin: 1px 0 18px; }
.dimensions summary, .quote-details summary { width: fit-content; color: var(--accent); font-size: .77rem; min-height: 28px; padding: 5px 0; }
.dimensions summary:hover, .quote-details summary:hover { color: var(--accent); }
.dimensions-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; padding-top: 6px; }
.dimensions-fields label { width: 78px; font-size: .72rem; color: var(--subtle); }
.dimensions-fields input { width: 100%; margin-top: 4px; }
.dimensions-fields .button { min-height: 42px; padding-inline: 10px; font-size: .72rem; }
.dimensions #dimensions-note { margin: 5px 0 0; }
.dimensions #dimensions-note:empty { display: none; }
.corners-label { margin-bottom: 9px; }
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.segmented button, .material-option { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--field); color: var(--subtle); border-radius: 7px; min-height: 43px; font-size: .83rem; font-weight: 800; }
.segmented button[aria-pressed="true"], .material-option[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.segmented button:hover, .material-option:hover { border-color: var(--accent); }
.room-shape { width: 12px; height: 12px; background: currentColor; }
.shape-four { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 15% 15%, 15% 85%, 85% 85%, 85% 15%, 15% 15%); }
.shape-five { clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%, 0 0, 15% 15%, 15% 85%, 60% 85%, 85% 60%, 85% 15%, 15% 15%); }
.shape-six { clip-path: polygon(0 0, 100% 0, 100% 51%, 50% 51%, 50% 100%, 0 100%, 0 0, 15% 15%, 15% 85%, 35% 85%, 35% 36%, 85% 36%, 85% 15%, 15% 15%); }
.shape-more { clip-path: polygon(0 0, 100% 0, 100% 56%, 55% 56%, 55% 83%, 32% 100%, 0 100%, 0 0, 15% 15%, 15% 85%, 26% 85%, 40% 75%, 40% 41%, 85% 41%, 85% 15%, 15% 15%); }
.extra-corners { display: flex; justify-content: space-between; align-items: center; font-size: .81rem; margin-top: 8px; }
.extra-corners .number-field { width: 74px; }
.material-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; }
.material-option { overflow: hidden; padding: 4px 4px 8px; text-align: center; flex-direction: column; justify-content: start; gap: 4px; white-space: normal; overflow-wrap: anywhere; }
.material-option .swatch { display: block; width: 100%; height: 51px; border-radius: 4px; background: linear-gradient(153deg, #b5becd, #e1e6ef 44%, #b1bdcc); }
.material-option[data-material="satin"] .swatch { background: linear-gradient(143deg, #96a3b5 15%, #edf2fb 55%, #aebcce 73%); }
.material-option[data-material="gloss"] .swatch { background: linear-gradient(143deg, #9facbf 27%, #d9e2ef 44%, #fff 48%, #f0f5fc 51%, #8b9aad 52%, #c6d1e0 78%); }
.material-option small { color: var(--subtle); font-size: .67rem; min-height: 1em; }
.color-label { margin-top: 17px; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-option { border: 1px solid var(--line); border-radius: 7px; background: transparent; width: 44px; height: 44px; padding: 5px; display: grid; place-items: center; }
.color-option[aria-pressed="true"] { border-color: var(--accent); }
.color-option:hover { background: var(--accent-tint); }
.color-option span { border-radius: 4px; display: block; background: var(--swatch); width: 100%; height: 100%; }
.extra-options { display: grid; gap: 0; }
.extra-row { min-height: 55px; padding: 7px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; }
.extra-row label { font-weight: 800; }
.extra-row small { display: block; margin-top: 3px; color: var(--subtle); font-size: .71rem; line-height: 1.25; }
.extra-row .number-field { width: 88px; flex: 0 0 auto; }
.extra-row .number-field input[type="number"] { min-height: 36px; }
.extra-row .toggle { appearance: none; cursor: pointer; min-height: 0; width: 46px; height: 28px; padding: 0; border-radius: 99px; background: #cbd6e8; margin: 6px 1px; flex: 0 0 auto; position: relative; }
.toggle::after { content: ""; position: absolute; background: #fff; width: 16px; height: 16px; border-radius: 50%; left: 5px; top: 5px; transition: transform .16s; }
.toggle:checked { background: var(--accent); border-color: var(--accent); }
.toggle:checked::after { transform: translateX(18px); background: #fff; }
.calculator-navigation { min-height: 57px; display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.back-step { min-height: 40px; display: flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--subtle); padding: 6px 2px; font-size: .79rem; font-weight: 800; }
.back-step:hover { color: var(--accent); }
.back-step .icon { transform: rotate(180deg); }
.next-step { margin-left: auto; min-height: 40px; gap: 13px; padding-inline: 12px; }

.estimate {
  grid-column: 1 / -1; background: var(--estimate); border-top: 1px solid var(--line); padding: 18px clamp(16px, 2.3vw, 33px);
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 4px 23px;
}
.estimate-value { display: grid; gap: 3px; }
.estimate-value span { color: var(--subtle); font-size: .77rem; }
.quote-number { font-weight: 800; letter-spacing: -.044em; font-size: clamp(1.75rem, 2.8vw, 2.65rem); line-height: 1.06; font-variant-numeric: tabular-nums; }
.estimate-note { color: var(--subtle); font-size: .79rem; justify-self: end; margin: 0; }
.estimate .button { white-space: normal; }
.quote-draft-notice { grid-column: 1 / -1; grid-row: 3; margin: 4px 0; color: var(--text); font-size: .81rem; }
.quote-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.quote-actions .button { min-height: 40px; padding-inline: 11px; font-size: .79rem; }
#quote-share-status, #quote-share-field { grid-column: 1 / -1; margin: 0; }
#quote-share-status:empty { position: absolute; }
#quote-share-field { display: grid; gap: 4px; font-size: .79rem; }
#quote-share-link { min-width: 0; width: 100%; }
.quote-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quote-share-actions input { flex: 1 1 10rem; }
.quote-share-actions .button { min-height: 44px; }
#current-color { overflow-wrap: anywhere; text-align: right; }
#spot-description { margin: 4px 0 12px; }
.quote-details { grid-column: 1 / -1; grid-row: 2; }
.quote-details > dl { padding: 9px 0 0; border-top: 1px solid var(--line); max-width: 500px; margin-block: 4px 6px; font-size: .81rem; }
.quote-details dl > div { display: flex; gap: 9px; align-items: start; justify-content: space-between; margin-bottom: 6px; color: var(--text); }
.quote-details dd { min-width: max-content; margin: 0; color: var(--accent); }
.scene-disclaimer { margin: 10px 0 0; color: var(--subtle); font-size: .74rem; }
.mobile-estimate { display: none; }

.portfolio, .services, .contacts { margin-top: clamp(75px, 8.5vw, 140px); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 13px; }
.project { margin: 0; min-width: 0; display: grid; align-content: start; border-bottom: 1px solid var(--line); }
.project img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; color: var(--subtle); }
.project figcaption { display: grid; gap: 4px; padding: 13px 0 16px; color: var(--text); }
.project figcaption strong { font-size: clamp(.99rem, 1.8vw, 1.26rem); font-weight: 800; }
.project figcaption span { color: var(--subtle); font-size: .82rem; }
.services-list, .advantages { padding: 0; margin: 0; list-style: none; }
.services-list { border-top: 1px solid var(--line); }
.services-list li { display: flex; align-items: center; min-height: 86px; gap: 16px; border-bottom: 1px solid var(--line); padding-block: 13px; }
.services-list img { object-fit: cover; border-radius: 6px; }
.services-list h3, .services-list p { margin: 0; }
.services-list h3 { font-size: 1.13rem; }
.services-list p:not(.service-price) { color: var(--subtle); font-size: .87rem; margin-top: 3px; }
.services-list .service-price { margin-left: auto; font-weight: 800; font-size: .87rem; color: var(--accent); text-align: right; }
.advantages { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 19px; color: var(--subtle); }
.advantages li { display: flex; align-items: start; gap: 6px; font-size: .87rem; }
.advantages .icon { color: var(--accent); }
.reviews-title { margin: 28px 0 12px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 10px; }
.reviews figure { border: 1px solid var(--line); border-radius: 10px; margin: 0; padding: 16px; }
.reviews blockquote { margin: 0 0 11px; color: var(--subtle); font-size: .89rem; }
.reviews figcaption { display: flex; align-items: center; gap: 7px; font-size: .85rem; }
.reviews img { border-radius: 50%; object-fit: cover; }
.reviews figcaption span { color: var(--accent); margin-left: auto; }
.contacts { margin-bottom: 56px; }
.contact-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(21px, 4vw, 54px) 0; }
.contact-panel p { color: var(--subtle); line-height: 1.5; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.contact-panel address { font-style: normal; font-size: .87rem; color: var(--text); }
.contact-panel address p { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; }
.contact-panel address a, .site-footer a:not(.wordmark) { display: inline-flex; align-items: center; gap: 5px; }
.contact-panel address a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 78px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px 25px; color: var(--subtle); font-size: .82rem; }
.footer-inner .wordmark { color: var(--text); margin-right: auto; }

.lead-dialog { border: 1px solid var(--line); background: var(--panel); width: min(510px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border-radius: 15px; color: var(--text); }
.lead-dialog::backdrop { background: #1a2a4b80; }
.dialog-inner { position: relative; padding: clamp(18px, 4vw, 30px); }
.dialog-close { position: absolute; right: 9px; top: 9px; min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--subtle); }
.dialog-close:hover { background: var(--accent-tint); color: var(--accent); }
.dialog-inner h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); padding-right: 19px; line-height: 1.05; }
.dialog-description, .demo-note, .lead-success p { color: var(--subtle); font-size: .84rem; line-height: 1.5; margin: 8px 0; }
.demo-note { color: #79552a; }
.dialog-estimate { display: flex; gap: 10px; justify-content: space-between; align-items: center; border-radius: 7px; background: var(--accent-tint); color: var(--text); font-size: .8rem; padding: 9px 10px; margin: 14px 0 12px; }
.dialog-estimate strong { font-weight: 800; color: var(--accent); white-space: nowrap; font-size: 1rem; }
#lead-form, #lead-form label:not(.consent), .lead-fields { display: grid; gap: 5px; min-width: 0; }
#lead-form { gap: 10px; }
#lead-form label { font-size: .81rem; position: relative; }
#lead-form input, #lead-form select, #lead-form textarea { width: 100%; }
#lead-form textarea { resize: vertical; }
.lead-fields { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; }
.optional { position: absolute; top: 0; right: 0; color: var(--subtle); font-size: .72rem; }
#lead-form .consent { margin-block: 3px; display: flex; align-items: start; gap: 6px; color: var(--subtle); font-size: .75rem; }
#lead-form .consent a { color: var(--accent); text-decoration: underline; }
#lead-form .consent input { width: 17px; height: 17px; min-height: auto; margin: 0 1px 0 0; flex: 0 0 17px; accent-color: var(--accent); }
.website-trap { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.error-line { color: #aa3127; font-size: .79rem; line-height: 1.45; margin: 4px 0; }
.lead-submit { width: 100%; }
.lead-success { padding: 15px 0 5px; }
.success-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 13px; border-radius: 50%; border: 1px solid #b8caf2; background: var(--accent-tint); color: var(--accent); }
.lead-success .button { margin-top: 7px; }

@media (max-width: 1000px) {
  .header-inner nav { gap: 19px; }
  .configurator { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
  .scene-head, .scene-footer { padding-inline: 13px; }
}

@media (max-width: 760px) {
  :root { --gutter: clamp(15px, 4.7vw, 28px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .header-inner nav { display: none; }
  .header-inner .wordmark { font-size: 1.25rem; }
  .top-contact { font-size: .77rem; min-height: 41px; white-space: nowrap; padding: 5px 8px; }
  .top-contact .icon { width: 15px; height: 15px; }
  .hero-inner { padding-block: 26px 19px; }
  .hero-split, .hero-photo-left, .hero-wide { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .hero-photo-left .hero-visual { grid-row: 1; }
  .hero-photo { min-height: 0; max-height: 330px; aspect-ratio: 1.62; object-position: center 43%; }
  .hero-wide .hero-photo { aspect-ratio: 2.15; object-position: center 55%; }
  .hero-visual::before { height: 3px; }
  h1 { font-size: clamp(2.26rem, 9.15vw, 4.1rem); max-width: 560px; }
  .hero-location { font-size: .73rem; margin-bottom: 11px; row-gap: 3px; }
  .hero-description { margin: 14px 0 17px; font-size: .9rem; max-width: 420px; }
  .hero-actions .button-fill { min-height: 46px; padding-inline: 11px; gap: 9px; font-size: .79rem; }
  .hero-link { min-height: 42px; padding-inline: 4px; font-size: .77rem; gap: 4px; }
  .calculator { padding-top: 28px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 16px; gap: 8px; }
  .section-heading > p { font-size: .81rem; max-width: 440px; }
  .configurator { grid-template-columns: minmax(0, 1fr); --radius: 12px; }
  .preview { min-height: 309px; }
  .scene-head, .scene-footer { padding: 8px 10px; gap: 6px; }
  .scene-stage { min-height: clamp(205px, 64vw, 310px); }
  .scene-footer p { font-size: .67rem; max-width: 187px; }
  .scene-modes button, .scene-tools button { min-height: 35px; min-width: 35px; padding-inline: 6px; }
  .config-controls { padding: 7px 14px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .step-tabs { margin-bottom: 15px; }
  .step-tabs button { min-height: 46px; font-size: .79rem; }
  .step-description { margin-bottom: 14px; }
  .calculator-navigation { min-height: 55px; }
  .estimate { padding: 13px 14px; grid-template-columns: 1fr; gap: 6px; }
  .estimate-note { justify-self: start; grid-row: 2; }
  .quote-details { grid-row: 3; }
  .quote-draft-notice { grid-row: 4; }
  .estimate .button { margin-top: 3px; }
  .mobile-estimate {
    position: fixed; inset: auto 0 0; z-index: 5; align-items: center; display: flex; justify-content: space-between; gap: 9px;
    min-height: 67px; border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--panel); box-shadow: 0 -8px 28px #20345712;
  }
  .mobile-estimate > div { display: grid; gap: 2px; }
  .mobile-estimate span { color: var(--subtle); font-size: .68rem; }
  .mobile-estimate strong { font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
  .mobile-estimate .button { min-height: 44px; max-width: 62%; gap: 7px; padding-inline: 10px; overflow-wrap: anywhere; font-size: .77rem; }
  body:has(.mobile-estimate:not([hidden])) { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  body:has(.mobile-estimate:not([hidden])) [role="tabpanel"] :is(input, button, summary),
  body:has(.mobile-estimate:not([hidden])) .calculator-navigation button { scroll-margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .services-list li { min-height: 68px; gap: 8px; }
  .services-list img { width: 64px; height: 58px; }
  .services-list h3 { font-size: .96rem; }
  .services-list .service-price { font-size: .77rem; }
  .footer-inner { padding-block: 13px; min-height: 65px; }
}

@media (max-width: 370px) {
  .scene-footer .icon { display: none; }
  .scene-tools .icon { display: block; }
  .scene-modes .icon { display: none; }
  .material-options { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); }
  .lead-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* The standalone marketing embed sizes to the same configurator as a storefront. */
body[data-marketing] { background: white; }
[data-marketing] .calculator { width: 100%; padding: clamp(8px, 2vw, 24px); margin: 0; }
[data-marketing] .calculator > .section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-marketing] .configurator { margin-top: 0; }
[data-marketing] .scene-disclaimer { margin-bottom: 0; }

[data-marketing] :is(.scene-modes, .scene-tools) button { min-width:44px; min-height:44px; }

#calculator-loading { padding:14px; text-align:center; background:#edf4ff; color:#294b7c; }
