
:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#1f2933; background:#f4f1ea;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,select{font:inherit}
.page-shell{width:min(1280px,calc(100% - 20px));margin:0 auto;padding:10px 0 22px}
.compact-hero{margin-bottom:8px}
h1{margin:0;font-size:clamp(22px,3vw,32px);line-height:1.05}
.lead{margin:4px 0 0;color:#687480;font-size:13px}

.calculator-shell{
  display:grid;grid-template-columns:minmax(0,1.42fr) minmax(350px,.58fr);
  gap:10px;align-items:stretch
}
.calculator-shell.supply-result-mode{grid-template-columns:1fr}
.calculator-shell.supply-result-mode .result-panel{position:static}
.calculator-shell.offer-stage-mode{display:block}
.control-panel,.result-panel{
  background:#fff;border:1px solid #ded9cf;border-radius:12px;
  box-shadow:0 4px 16px rgba(31,41,51,.05)
}
.control-panel{padding:11px}
.consultation-block{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 13px;border:1px solid #b9d8c3;border-radius:10px;background:#eef8f1;color:#2f5d50}.consultation-block>div:first-child{flex:1 1 260px}.consultation-block h3{margin:0;font-size:16px}.consultation-block p{margin:3px 0 0;color:#52635a;font-size:12px;line-height:1.35}.consultation-actions{display:flex;flex:0 0 220px;flex-direction:column;gap:7px}.consultation-button,.consultation-close{width:100%;box-sizing:border-box;border-radius:8px;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;text-align:center;cursor:pointer}.consultation-button{border:0;background:#2f8f5b;color:#fff}.consultation-button:hover{background:#267a4c}.consultation-close{border:0;background:#000;color:#fff}.consultation-close:hover{background:#222}.consultation-block .offer-contact-block{flex-basis:100%;margin-top:0;padding-top:9px}
.result-panel{padding:12px;position:sticky;top:6px}

.compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 9px}
.field{min-width:0}
.delivery-payment-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.payment-method{min-width:0;margin:0;padding:8px 10px;border:1px solid #ded9cf;border-radius:8px}
.payment-method legend{font-size:12px;font-weight:800;color:#394652}
.payment-method label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;cursor:pointer}
.payment-method input{flex:0 0 auto;margin:0;accent-color:#2f5d50}
.delivery-load-route{display:grid;gap:4px;margin-top:5px;overflow-wrap:anywhere}
.payment-vat-total{margin-top:8px;font-size:14px;color:#394652}
@media(max-width:600px){.delivery-payment-row{grid-template-columns:minmax(0,1fr)}}
.field.full{grid-column:1/-1}
.field label{display:block;font-size:12px;font-weight:800;margin-bottom:4px;color:#394652}
.field input,.field select{
  width:100%;min-width:0;height:35px;border:1px solid #cfc9be;border-radius:8px;
  padding:5px 8px;background:#fff;font-size:13px
}
.field input:focus,.field select:focus{outline:2px solid rgba(47,93,80,.12);border-color:#2f5d50}
.calculator-closing-slogan{margin:14px 0 0;padding:11px 10px 0;border-top:1px solid #e3e8e4;color:#2f5d50;font-size:14px;font-weight:700;line-height:1.4;text-align:center}
.field-note{margin:4px 0 0;color:#6b7280;font-size:11px;line-height:1.35}
.location-field{position:relative}.location-field .location-autocomplete,.location-field>.field-note{width:100%}.next-product-hint{position:absolute;top:0;right:0;max-width:48%;margin:0;color:#2f5d50;font-size:16px;font-weight:800;line-height:1.25;text-align:right}
.location-autocomplete{position:relative}.location-autocomplete.is-open{z-index:20}
.location-suggestions{display:none;margin-top:3px;max-height:320px;overflow:auto;padding:3px;background:#fff;border:1px solid #d5dcd8;border-radius:8px;box-shadow:0 8px 20px rgba(31,41,51,.12)}
.location-autocomplete.is-open .location-suggestions{display:block}
.location-option{display:flex;width:100%;gap:10px;align-items:flex-start;justify-content:space-between;padding:7px 9px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer;color:#1f2933}
.location-option:hover,.location-option.selected{background:#eef4f0}
.location-option-label{font-weight:700}
.location-option-status{flex:0 0 auto;color:#687480;font-size:11px}
.location-empty{padding:10px;color:#687480;font-size:12px}
.section-label{grid-column:1/-1;margin:2px 0 -1px;font-size:12px;color:#6b7280;font-weight:800}
.flow-number{
  display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;
  margin-right:5px;background:#2f5d50;color:#fff;font-size:10px;font-weight:900
}
.category-hint{margin-top:4px;color:#6b7280;font-size:10px;line-height:1.3}
.notice,.error{
  grid-column:1/-1;padding:8px 10px;border-radius:7px;font-size:12px;line-height:1.4
}
.city-change-notice{margin-top:6px;color:#2f5d50;font-size:12px;line-height:1.35}
.notice{background:#fff8e8;border-left:3px solid #b7791f}
.minimum-order-notice{background:transparent;border-left:0;color:#2f7d55;font-size:12px;font-weight:700;line-height:1.35;padding:2px 0}
.minimum-order-result-notice{background:#f2fbf5;border-left:4px solid #2f8f5b;color:#1f7a4d;font-size:17px;font-weight:800;line-height:1.35;padding:12px 14px}
.error{background:#fff0ef;border-left:3px solid #b42318}

.result-head{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:9px}
.result-head h2{margin:0;font-size:20px}
.result-state{color:#6b7280;font-size:11px;text-align:right}
.result-empty{padding:18px 4px;text-align:center;color:#6b7280;font-size:13px}
.result-empty strong{display:block;color:#28343f;font-size:16px;margin-bottom:5px}
.order-list{margin-bottom:10px;padding:11px 12px;background:#fff;border:1px solid #ded9cf;border-radius:12px;box-shadow:0 4px 16px rgba(31,41,51,.05)}
.current-items-panel{grid-column:auto;align-self:start;position:sticky;top:6px}.supply-result-panel{grid-column:1/-1}
.current-order-totals{margin-top:12px;padding:10px 0;border-top:1px solid #e3e8e4;border-bottom:1px solid #e3e8e4;font-size:12px}.current-order-totals h3{margin:0 0 7px;color:#2f5d50;font-size:13px}.current-order-totals>div{display:flex;justify-content:space-between;gap:10px;margin-top:4px}.current-order-totals span{color:#6b7280}.current-order-totals strong{text-align:right}
.order-list-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:7px}
.order-list-head h2{margin:0;font-size:18px}.order-list-head span{color:#6b7280;font-size:11px}
.order-list-city{margin-top:2px;color:#6b7280;font-size:11px}
.order-list-actions,.order-list-controls{display:flex;align-items:center;gap:8px}.order-add-another,.order-clear,.order-line-edit,.cancel-edit-button{border:1px solid #cfc9be;border-radius:7px;padding:6px 8px;background:#fff;color:#2f5d50;cursor:pointer;font-size:11px}.order-add-another{border-color:#2f5d50;background:#2f5d50;color:#fff;font-weight:700}.order-add-another:hover{background:#244a40}.order-clear:hover,.order-line-edit:hover,.cancel-edit-button:hover{background:#f0f5f2}
.order-list ol{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.order-confirmation{margin:0 0 12px;padding:12px;border:1px solid #b9d4c8;border-radius:9px;background:#f0f8f3}.order-confirmation>strong{display:block;color:#245c49;font-size:14px}.order-confirmation p{margin:5px 0 0;color:#53645f;font-size:12px;line-height:1.4}.order-confirmation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.order-confirmation-actions .offer-button,.order-confirmation-actions .order-add-another{flex:1;min-width:190px;min-height:40px;padding:9px 12px}
.order-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:8px 0;border-top:1px solid #eeeae2}
.order-line-main,.order-line-details{display:flex;flex-wrap:wrap;gap:4px 10px;min-width:0}.order-line-main strong{font-size:13px;overflow-wrap:anywhere}.order-line-sku{color:#8a949c;font-size:10px}
.order-line-details{grid-column:1/-1;color:#5f6b73;font-size:11px}.order-line-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:5px;align-self:center}.order-line-remove{border:1px solid #d8c7c2;border-radius:7px;padding:6px 8px;background:#fff;color:#9b3f32;cursor:pointer;font-size:11px}
.flagstone-line-main{display:block}.flagstone-line-main .order-line-sku{display:block;margin-top:2px}.flagstone-line-details{display:block;overflow-wrap:anywhere}.flagstone-line-details>span{display:block;margin-top:2px}
.order-summary{margin-top:10px;padding-top:0;border-top:1px solid #ded9cf}.order-summary-title{font-size:13px;font-weight:800;margin-bottom:6px}.order-section{padding:10px 0;border-bottom:1px solid #ded9cf}.order-section:last-child{border-bottom:0}.order-section-title{margin:0 0 8px;font-size:14px}.order-section-total,.order-total-lines>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.order-section-total{margin-top:9px;padding-top:8px;border-top:1px dashed #e5e1d8}.order-section-total span,.order-total-lines span{color:#6b7280}.order-section-total strong,.order-total-lines strong{text-align:right}.order-delivery{margin-top:9px}.delivery-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:9px 10px;border:1px solid #e0e7e4;border-radius:8px;background:#f8fbfa;font-size:11px}.delivery-summary>div{display:flex;flex-direction:column;gap:3px}.delivery-summary span{color:#6b7280}.delivery-summary strong{font-size:12px}.order-delivery .delivery-shipment{margin-top:7px;padding:8px 0 0;border-top:1px dashed #e5e1d8}.shipment-head{display:flex;justify-content:space-between;gap:10px;align-items:start;font-size:12px}.shipment-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}.shipment-head span{color:#6b7280;font-size:11px}.shipment-details{margin-top:6px;font-size:11px}.shipment-details summary{color:#2f5d50;cursor:pointer}.shipment-details ul{margin:5px 0 0;padding-left:16px}.shipment-details-visible ul{margin-top:7px}.order-total-section{padding-top:12px}.order-total-lines{display:grid;gap:5px}.order-total-main{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:10px;padding-top:10px;border-top:2px solid #2f5d50;font-size:14px;font-weight:800}.order-total-main strong{font-size:20px;text-align:right}.order-total-main .price-needs{font-size:14px}.order-summary .notice{margin-bottom:9px}
.order-trust{margin-top:10px;padding:10px 12px;border:1px solid #e0e7e4;border-radius:8px;background:#f8fbfa;font-size:12px}.order-trust h3{margin:0 0 6px;font-size:14px}.order-trust ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}.order-trust li::before{content:'✓';margin-right:7px;color:#2f5d50;font-weight:800}.order-trust p{margin:8px 0 0;color:#6b7280;font-size:11px;line-height:1.4}
.final-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.order-submit-button{min-height:44px;border:1px solid #2f5d50;border-radius:9px;padding:10px 14px;background:#2f5d50;color:#fff;font:inherit;font-weight:700;cursor:pointer}.order-submit-button:hover{background:#244a40}.final-order-actions .offer-button{width:100%;min-height:44px;border:1px solid #2f5d50;background:#fff;color:#2f5d50}.final-order-actions .offer-button:hover{background:#eef5f1}.order-action-message{margin-top:10px;padding:10px 12px;border:1px solid #d8c8a7;border-radius:8px;background:#fff8e8;color:#6f541d;font-size:12px;line-height:1.4}
.add-line-cta{margin-top:12px}.add-line-button{width:100%;min-height:44px;border:1px solid #2f5d50;border-radius:9px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer;background:#2f5d50;color:#fff;box-shadow:0 2px 5px rgba(47,93,80,.18)}.add-line-button:hover{background:#244a40}.add-line-button:disabled{background:#e6ebe9;border-color:#cbd6d1;color:#7b8983;box-shadow:none;cursor:not-allowed}
.supply-flow-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:2px}.supply-secondary-action{width:100%;min-height:44px;border:1px solid #2f5d50;border-radius:9px;padding:10px 14px;background:#fff;color:#2f5d50;font:inherit;font-weight:700;cursor:pointer}.supply-secondary-action:hover{background:#eef5f1}.current-items-actions{margin-top:12px;padding-top:10px;border-top:1px solid #e3e8e4}
.next-step-hint{margin:12px 0 0;color:#6b7280;font-size:12px;line-height:1.4}
.order-calculation-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 9px;align-items:start}.order-calculation-row.controls-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.order-calculation-row .field{grid-column:auto!important}.order-calculation-row .order-result-navigation{margin-top:0}.order-result-navigation{margin-top:0}.order-result-navigation .field-label-spacer{display:block;height:18px;margin-bottom:4px;visibility:hidden}.result-navigation-button{width:100%;min-height:40px;border:1px solid #b7c9c1;border-radius:8px;padding:9px 12px;background:#f8fbfa;color:#2f5d50;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-align:left}.result-navigation-button:hover{background:#eef5f1}.result-navigation-button:focus-visible{outline:2px solid rgba(47,93,80,.35);outline-offset:2px}
.edit-actions{display:flex;gap:8px;flex-wrap:wrap}.edit-actions .add-line-button{flex:1}.edit-actions .cancel-edit-button{padding:10px 14px}
.product-card{border:1px solid #ded9cf;border-radius:11px;padding:11px}
.product-name{margin:0 0 5px;font-size:17px;line-height:1.25}
.product-sub{margin:0 0 9px;color:#687480;font-size:12px;line-height:1.4}
.metric-list{display:grid;gap:5px}
.metric{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #e5e1d8;padding-bottom:5px;font-size:12px}
.metric span{color:#6b7280}.metric strong{text-align:right}
.result-panel .delivery-details{display:block;margin-top:10px;border:1px solid #b9d8c3;border-radius:9px;background:#eef8f1;overflow:hidden}
.result-panel .delivery-details-summary{padding:11px 12px;color:#2f5d50;cursor:pointer;font-size:13px;font-weight:800;line-height:1.35}
.result-panel .delivery-details-summary::marker{color:#2f5d50}
.result-panel .delivery-details-content{padding:0 12px 10px}
.result-panel .delivery-detail-summary{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #dfe9e4;font-size:12px}
.result-panel .delivery-detail-summary span{color:#687480}.result-panel .delivery-detail-summary strong{text-align:right}
.calculation-quantity-details{margin-top:9px;border:1px solid #dfe4df;border-radius:8px;background:#fff;overflow:hidden}.calculation-quantity-details>summary{padding:9px 10px;color:#2f5d50;cursor:pointer;font-size:12px;font-weight:800}.calculation-quantity-content{padding:0 10px 9px}.calculation-quantity-product,.calculation-quantity-totals{padding:7px 0;border-top:1px dashed #e5e1d8;font-size:12px}.calculation-quantity-row{display:flex;justify-content:space-between;gap:10px;padding-top:4px}.calculation-quantity-row span{color:#687480}.calculation-quantity-row strong{text-align:right}.calculation-quantity-totals>strong{display:block}
.result-panel .delivery-details .delivery-shipment{margin-top:8px;padding-top:8px;border-top:1px dashed #dfe4df;font-size:12px}
.result-panel .delivery-details .delivery-shipment:first-of-type{border-top:0}
.result-panel .delivery-details .delivery-shipment ul{margin:6px 0 0;padding-left:17px;font-size:11px;line-height:1.4}
.total{margin-top:10px;font-size:19px;font-weight:900}.price-needs{color:#9a6700}
.footer-note{text-align:center;color:#6b7280;font-size:11px;padding:9px 8px 0}.loading{padding:20px;color:#6b7280}
@media(max-width:980px){.calculator-shell{grid-template-columns:1fr}.result-panel,.current-items-panel{position:static}}
@media(max-width:760px){.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
  .page-shell{width:min(100% - 10px,1280px);padding-top:7px}
  .compact-grid{grid-template-columns:1fr}
  .location-field .location-autocomplete,.location-field>.field-note{width:100%}.location-field .next-product-hint{position:static;width:100%;margin-top:8px;font-size:14px}
  .field.full,.section-label,.notice,.error{grid-column:auto}
  .order-list-head{flex-direction:column;align-items:flex-start;gap:7px}
  .order-list-head>div:first-child{width:100%}
  .order-list-actions{width:100%;justify-content:space-between;align-items:center}
  .order-list-actions{flex-wrap:wrap}
  .order-list-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}
  .order-list-actions .order-add-another,.order-list-actions .order-clear{min-height:40px;padding:9px 11px}
  .order-confirmation-actions{flex-direction:column}.order-confirmation-actions .offer-button,.order-confirmation-actions .order-add-another{width:100%;min-width:0}
  .current-items-panel{position:static}.supply-flow-actions{grid-template-columns:1fr}
  .final-order-actions{grid-template-columns:1fr}
  .order-calculation-row{grid-template-columns:1fr}
  .order-line{grid-template-columns:1fr;gap:7px;padding:10px 0}
  .order-line-main,.order-line-details{grid-column:1}
  .order-line-main{display:block}
  .order-line-main strong{display:block}
  .order-line-sku{display:block;margin-top:3px}
  .order-line-actions{grid-column:1;grid-row:auto;width:100%;align-items:stretch;gap:7px;margin-top:1px}
  .order-line-actions button{flex:1;min-height:40px;padding:9px 10px}
  .delivery-summary{grid-template-columns:1fr 1fr}.order-total-main{align-items:flex-start;flex-direction:column;gap:4px}
}

.work-field-wide{grid-column:span 2}
.work-field-wide select{min-width:100%}
@media(max-width:760px){.work-field-wide{grid-column:1/-1}}

.client-note{
  margin-top:5px;
  padding:7px 9px;
  border-radius:7px;
  background:#f4f7f5;
  color:#4d5964;
  font-size:11px;
  line-height:1.4;
}
.product-field{grid-column:span 1}

.scenario-note{
  margin-top:5px;
  padding:7px 9px;
  border-radius:7px;
  background:#fff7e8;
  color:#5f4a22;
  font-size:11px;
  line-height:1.4;
}

/* v0.9.1 — dynamic controls */
.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.field.span-1{grid-column:span 1}
.field.span-2{grid-column:span 2}
.field.span-3{grid-column:1/-1}

.product-select{position:relative}
.product-select-button{
  width:100%;min-height:35px;border:1px solid #cfc9be;border-radius:8px;background:#fff;
  padding:7px 34px 7px 9px;font:inherit;font-size:13px;text-align:left;line-height:1.35;
  position:relative;cursor:pointer;white-space:normal;overflow-wrap:anywhere;
}
.product-select-button:focus{outline:2px solid rgba(47,93,80,.12);border-color:#2f5d50}
.product-select-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%)}
.product-select-menu{
  position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);
  max-height:320px;overflow:auto;background:#fff;border:1px solid #cfc9be;border-radius:8px;
  box-shadow:0 8px 24px rgba(31,41,51,.14);padding:4px
}
.product-search{display:block;width:100%;box-sizing:border-box;border:1px solid #cfc9be;border-radius:6px;padding:7px 8px;margin-bottom:4px;font:inherit;font-size:13px}
.product-choice{
  display:block;width:100%;border:0;background:#fff;text-align:left;padding:8px 9px;border-radius:6px;
  font:inherit;font-size:13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer
}
.product-choice-name{display:block}
.product-choice-price{display:block;color:#1d6258;font-weight:800;margin-top:2px}
.product-choice-sku{display:block;color:#8a949c;font-size:10px;margin-top:3px}
.product-choice-details{display:block;color:#687480;font-size:11px;margin-top:3px}
.flagstone-choice{padding-top:6px;padding-bottom:6px}.flagstone-choice .product-choice-name{font-size:14px;font-weight:600;line-height:1.25}.flagstone-name-tail{white-space:nowrap}.flagstone-name-tail small{color:#8a949c;font-size:9px;font-weight:400;white-space:nowrap}.flagstone-choice-parameter{display:block;margin-top:1px;color:#5f6b73;font-size:11px;line-height:1.3}.flagstone-choice-price{color:#1d6258;font-weight:700}
.product-choice:hover,.product-choice.selected{background:#f0f5f2}
.product-empty{padding:9px;color:#6b7280;font-size:12px}
#cityInput{background:#fff}

.upward-select{position:relative}
.upward-select.opens-down .upward-select-menu{top:calc(100% + 4px);bottom:auto;box-shadow:0 8px 24px rgba(31,41,51,.14)}
.upward-select.opens-down .upward-select-button::after{content:'▼'}
.upward-select select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upward-select-button{width:100%;min-width:0;min-height:35px;border:1px solid #cfc9be;border-radius:8px;padding:5px 28px 5px 8px;background:#fff;color:inherit;font:inherit;font-size:13px;text-align:left;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer;position:relative}
.upward-select-button::after{content:'▲';position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:9px;color:#5f6b73}
.upward-select-button:focus{outline:2px solid rgba(47,93,80,.12);border-color:#2f5d50}
.upward-select-button:disabled{cursor:not-allowed;opacity:.65}
.upward-select-menu{position:absolute;z-index:40;left:0;right:0;bottom:calc(100% + 4px);max-height:320px;overflow:auto;background:#fff;border:1px solid #cfc9be;border-radius:8px;box-shadow:0 -8px 24px rgba(31,41,51,.14);padding:4px}
.upward-select-option{display:block;width:100%;border:0;border-radius:6px;padding:8px 9px;background:#fff;color:inherit;font:inherit;font-size:13px;text-align:left;line-height:1.35;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.upward-select-option:hover,.upward-select-option[aria-selected=true]{background:#f0f5f2}
.upward-select-option:disabled{color:#8a949c;cursor:not-allowed}
.product-select-menu-upward{top:auto;bottom:calc(100% + 4px);box-shadow:0 -8px 24px rgba(31,41,51,.14)}

@media(max-width:760px){
  .field.span-2,.field.span-3{grid-column:1/-1}
}
@media(max-width:520px){
  .field.span-1,.field.span-2,.field.span-3{grid-column:1/-1}
  .section-label{grid-column:1/-1}
  .field input,.field select,.product-select-button,.product-search{min-height:44px;height:auto;box-sizing:border-box}
  .upward-select-button{min-height:44px;height:auto;box-sizing:border-box}
}


/* v0.11.0 — коммерческое предложение */
.offer-cta{margin-top:18px}
.offer-button,.offer-download{
  width:100%;border:0;border-radius:10px;padding:13px 16px;font:inherit;font-weight:700;
  cursor:pointer;background:#1d6258;color:#fff
}
.offer-button:hover,.offer-download:hover{filter:brightness(.96)}
.offer-button:disabled,.offer-download:disabled{opacity:.55;cursor:default}
.offer-panel{
  margin-top:16px;padding:18px;border:1px solid #d7dedb;border-radius:12px;background:#f8fbfa
}
.offer-panel h3{margin:0 0 6px;font-size:18px}
.offer-intro{margin:0 0 8px;color:#53645f;font-size:14px;line-height:1.4}.offer-destination{margin:0 0 14px;color:#53645f;font-size:13px;line-height:1.4}.offer-destination strong{color:#283c36}
.offer-grid{display:grid;grid-template-columns:1fr;gap:14px}
.offer-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}
.offer-field input,.offer-field textarea{
  width:100%;box-sizing:border-box;border:1px solid #c8d2ce;border-radius:8px;padding:11px 12px;
  background:#fff;font:inherit;font-weight:400
}
.offer-static-value{display:flex;align-items:center;min-height:42px;padding:10px 12px;border:1px solid #cbd8d0;border-radius:7px;background:#f1f5f2;color:#43534b;font-weight:600;line-height:1.35}
.offer-field textarea{
  min-height:64px;resize:vertical;line-height:1.35
}
.offer-terms{
  margin:14px 0;padding:12px;border-radius:8px;background:#fff;border:1px solid #e0e7e4;
  font-size:13px;line-height:1.55
}
@media(max-width:700px){
  .offer-grid{grid-template-columns:1fr}
}


/* v0.11.3 — cache-busted wide commercial-offer form */
.offer-panel{padding:20px}
.offer-grid{display:flex;flex-direction:column;gap:16px;width:100%}
.offer-field{display:flex;flex-direction:column;width:100%;min-width:0;gap:7px}
.offer-field input,.offer-field textarea{display:block;width:100%;min-width:0;max-width:none}
.offer-field textarea#offerRecipient{height:92px;min-height:92px;font-size:14px;line-height:1.4;resize:vertical}
.offer-success{margin-top:16px;padding:14px;border:1px solid #d7dedb;border-radius:9px;background:#fff}
.offer-success h4{margin:0 0 7px;font-size:16px}.offer-success p{margin:4px 0;color:#53645f;font-size:13px;line-height:1.4}
.offer-success-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.offer-success-actions .offer-button,.offer-success-actions .offer-secondary{min-height:40px;padding:9px 12px;border-radius:8px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none}
.offer-success-actions .offer-secondary{border:1px solid #cfc9be;background:#fff;color:#2f5d50}.offer-success-actions .offer-secondary:hover{background:#f0f5f2}
#offerDate,#offerAddress{height:42px}
@media(min-width:981px){
  .calculator-shell{grid-template-columns:minmax(0,1.25fr) minmax(430px,.75fr)}
}

/* Dedicated commercial-offer stage */
.commercial-offer-stage{width:min(1040px,100%);margin:0 auto;padding:16px;background:#fff;border:1px solid #ded9cf;border-radius:12px;box-shadow:0 4px 16px rgba(31,41,51,.05)}
.offer-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:13px;border-bottom:1px solid #e3e8e4}
.offer-stage-head h2{margin:2px 0 4px;font-size:24px}.offer-stage-head p{margin:0;color:#687480;font-size:13px;line-height:1.4}
.offer-stage-kicker{color:#2f5d50;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.offer-stage-back{flex:0 0 auto;min-height:40px;border:1px solid #cfc9be;border-radius:8px;padding:8px 11px;background:#fff;color:#2f5d50;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.offer-stage-back:hover{background:#f0f5f2}
.offer-stage-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);gap:14px;align-items:start;margin-top:14px}
.offer-stage-summary{display:grid;gap:10px}.offer-stage-section,.offer-stage-summary>.order-trust{margin:0;padding:12px;border:1px solid #e0e7e4;border-radius:10px;background:#f8fbfa}
.offer-stage-section h3{margin:0 0 8px;font-size:15px}.offer-stage-products ol{display:grid;gap:7px;margin:0;padding:0;list-style:none}.offer-stage-products li{padding-top:7px;border-top:1px solid #e5eae7}.offer-stage-products li:first-child{padding-top:0;border-top:0}
.offer-stage-product-name{display:flex;justify-content:space-between;gap:8px;font-size:12px}.offer-stage-product-name span{flex:0 0 auto;color:#8a949c;font-size:10px}
.offer-stage-product-details{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:4px;color:#5f6b73;font-size:11px}.offer-stage-delivery .delivery-summary{background:#fff}.offer-stage-delivery .order-delivery{margin-top:7px}.offer-stage-total .order-total-main{margin-top:8px;padding-top:8px}
.offer-stage-layout>.offer-panel{margin:0;padding:14px}.offer-stage-layout .offer-panel h3{font-size:16px}.offer-stage-layout .offer-intro{font-size:12px}.offer-stage-layout .offer-grid{gap:11px}.offer-stage-layout .offer-field textarea#offerRecipient{height:72px;min-height:72px}.offer-stage-layout .offer-terms{margin:11px 0;padding:10px;font-size:12px}
.offer-contact-block{margin-top:12px;padding-top:10px;border-top:1px solid #e0e7e4}.offer-contact-block h5{margin:0 0 4px;font-size:13px}.offer-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.offer-contact-action{display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #b9d4c8;border-radius:8px;padding:7px 9px;background:#fff;color:#2f5d50;font:inherit;font-size:12px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}.offer-contact-action:hover{background:#eef5f1}.offer-contact-action:disabled{border-color:#d9dedb;background:#f3f5f4;color:#89918d;cursor:not-allowed}
.privacy-settings{margin-left:8px;border:0;background:transparent;color:#2f5d50;text-decoration:underline;cursor:pointer;font:inherit;font-size:12px}
.analytics-consent{position:fixed;z-index:20;left:16px;right:16px;bottom:16px;max-width:560px;margin:auto;padding:14px 16px;border:1px solid #c9d9d1;border-radius:10px;background:#fff;box-shadow:0 8px 30px rgba(31,41,51,.18);font-size:13px;line-height:1.4}.analytics-consent p{margin:5px 0 10px;color:#53645f}.analytics-consent button{min-height:38px;margin-right:8px;padding:7px 12px;border:1px solid #9fbcad;border-radius:7px;background:#f3f8f5;color:#2f5d50;font:inherit;font-weight:700;cursor:pointer}.analytics-consent button:first-child{background:#2f5d50;color:#fff}
@media(max-width:820px){
  .offer-stage-layout{grid-template-columns:1fr}.offer-stage-layout>.offer-panel{order:-1}
}
@media(max-width:520px){
  .commercial-offer-stage{padding:11px}.offer-stage-head{flex-direction:column;gap:10px}.offer-stage-head h2{font-size:21px}.offer-stage-back{width:100%}.offer-stage-layout{gap:10px;margin-top:10px}.offer-stage-section,.offer-stage-summary>.order-trust,.offer-stage-layout>.offer-panel{padding:11px}.offer-stage-product-name{flex-direction:column;gap:2px}.offer-contact-actions{grid-template-columns:1fr}.offer-contact-action{min-height:44px}.consultation-block{align-items:stretch;flex-direction:column;gap:8px}.consultation-actions{flex-basis:auto;width:100%}
}
