:root {
  color-scheme: light;
  --ink: #17302b;
  --muted: #5b6a63;
  --forest: #1e5748;
  --forest-dark: #134033;
  --moss: #e6efe8;
  --paper: #fafbf8;
  --line: #cbd8ce;
  --warm: #f4eee3;
  --error: #9b2c24;
  --radius: 14px;
  --shadow: 0 8px 24px rgb(24 54 45 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
.site-shell { width: min(100% - 32px, 1120px); margin: 0 auto; padding: clamp(32px, 6vw, 80px) 0 56px; }
.intro { max-width: 760px; margin: 0 0 clamp(32px, 6vw, 60px); }
.eyebrow, .step { margin: 0 0 8px; color: var(--forest); font-size: .8rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; max-width: 660px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 6vw, 4.65rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.025em; }
h3 { margin: 14px 0 4px; font-size: 1.25rem; line-height: 1.2; }
.lead { margin: 22px 0 0; max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.calculator, .results { border-top: 1px solid var(--line); }
.calculator, .results { padding: clamp(26px, 5vw, 46px) 0; }
.section-heading { max-width: 680px; }
.section-heading > p:last-child { margin: 9px 0 0; color: var(--muted); }
form { margin-top: 28px; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
legend { padding: 0; font-size: 1rem; font-weight: 750; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.options-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; }
label { display: block; margin-bottom: 7px; font-weight: 680; }
label span { color: var(--error); font-size: .875rem; }
input, select { width: 100%; min-height: 46px; border: 1px solid #9cafa2; border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 12px; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #cf9b3d; outline-offset: 2px; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 52px; }
.input-with-unit span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: .9rem; transform: translateY(-50%); }
small { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.file-status { min-height: 1.4em; margin: 7px 0 0; color: var(--muted); font-size: .85rem; }
.calculate-button { min-height: 50px; margin-top: 28px; border: 0; border-radius: 8px; background: var(--forest); color: white; padding: 12px 19px; font-weight: 750; cursor: pointer; }
.calculate-button:hover { background: var(--forest-dark); }
.form-errors { margin: 24px 0 -4px; border-left: 4px solid var(--error); background: #fff0ee; color: #6c1c17; padding: 12px 14px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.offer-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .84rem; }
.status { display: inline-block; border-radius: 4px; padding: 4px 7px; font-size: .75rem; font-weight: 750; letter-spacing: .02em; }
.status.exact { background: #dceee3; color: #1b573e; }
.status.calculated { background: #f8edcf; color: #72520a; }
.status.request { background: #f4e0dc; color: #8c2a20; }
.dimensions-copy { margin: 0; color: var(--muted); font-size: .9rem; }
.construction-list { display: grid; gap: 7px; margin: 19px 0 0; }
.construction-list div { display: flex; justify-content: space-between; gap: 15px; }
.construction-list dt { color: var(--muted); }
.construction-list dd { margin: 0; font-weight: 650; text-align: right; }
.construction-note { margin: 9px 0 0; color: var(--muted); font-size: .84rem; }
.price-list { margin: 25px 0 0; border-top: 1px solid var(--line); }
.price-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-list dt { color: var(--muted); }
.price-list dd { margin: 0; font-weight: 650; white-space: nowrap; }
.shipping-note, .request-copy { margin: 17px 0 0; color: var(--muted); font-size: .88rem; }
.total { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 25px; }
.total span { color: var(--muted); font-size: .86rem; }
.total strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.production-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.production-note strong { color: var(--ink); }

@media (max-width: 720px) {
  .site-shell { width: min(100% - 24px, 1120px); padding-top: 28px; }
  .field-grid, .options-grid, .offer-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 16px; }
  .offer-grid { gap: 14px; }
  .calculate-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
