:root {
  color-scheme: light;
  --paper: #f5f5ee;
  --white: #fffef8;
  --ink: #192e26;
  --muted: #536358;
  --line: #cfdbcf;
  --dark: #133d32;
  --accent: #ceec94;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input { color: inherit; font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button, summary, label:has(input[type=radio]) { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input { min-height: 44px; }
:focus-visible { outline: 3px solid #2b785a; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 4px; left: 16px; z-index: 2; padding: 8px 14px; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); }
.nav, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav { min-height: 68px; }
.nav a { text-decoration: none; }
.nav > a:last-child, footer { font-size: .875rem; }
.nav > a:last-child:hover, .brand:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.025em; }
.roof-mark { width: 26px; height: 18px; display: block; border-top: 5px solid var(--dark); border-bottom: 5px solid var(--dark); transform: skewY(-14deg); }
.intro { padding: 48px 0 32px; }
.location { margin: 0 0 12px; color: #2e624e; font-weight: 650; font-size: .9rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.75rem, 6vw, 5rem); line-height: .99; letter-spacing: -.062em; }
.intro > p:last-child { color: var(--muted); max-width: 650px; margin-top: 16px; font-size: 1.05rem; }
h2 { font-size: 1.35rem; line-height: 1.25; font-weight: 650; letter-spacing: -.035em; }
h3 { font-size: .9rem; font-weight: 650; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); gap: 18px; }
.panel, .range { border-radius: 12px; padding: clamp(18px, 3.2vw, 34px); }
.panel { background: var(--white); border: 1px solid var(--line); }
.project h2 { margin-bottom: 23px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { display: block; font-weight: 650; font-size: .9rem; }
label:not(.check), legend { margin-bottom: 6px; }
input:not([type=radio]):not([type=checkbox]) { width: 100%; background: #fff; border: 1px solid #a2b3a5; border-radius: 5px; padding: 10px 12px; font-size: 1rem; font-variant-numeric: tabular-nums; }
input:disabled { background: var(--paper); }
.unit-input { display: flex; align-items: center; position: relative; }
.unit-input > span { color: var(--muted); position: absolute; right: 12px; font-size: .86rem; pointer-events: none; }
.unit-input > input { padding-right: 38px !important; }
.currency > span { left: 12px; right: auto; }
.currency > input { padding-left: 29px !important; }
.unit-input input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.unit-input input::-webkit-inner-spin-button, .unit-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.membrane { margin: 20px 0 16px; }
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.materials > label { position: relative; margin: 0; }
.materials input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.materials span { display: grid; gap: 1px; padding: 8px 9px; border: 1px solid #a2b3a5; border-radius: 5px; }
.materials strong { font-size: .95rem; }
.materials small { font-size: .72rem; color: var(--muted); font-weight: 400; }
.materials input:checked + span { background: #e9f3d8; border-color: #436f4c; box-shadow: inset 0 0 0 1px #436f4c; }
.materials input:focus-visible + span { outline: 3px solid #2b785a; outline-offset: 2px; }
.muted, .hint { color: var(--muted); font-weight: 400; }
.hint { font-size: .82rem; margin-top: 6px; }
.range { background: var(--dark); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.range h2 { color: #d2decf; font-size: .98rem; font-weight: 500; letter-spacing: 0; }
.range-value { color: var(--accent); font-size: clamp(1.65rem, 3.4vw, 2.55rem); font-weight: 600; letter-spacing: -.065em; line-height: 1.15; font-variant-numeric: tabular-nums; margin: 9px 0 8px; overflow-wrap: anywhere; }
.range-unit { color: #e1e9da; font-size: .95rem; }
.range-facts { display: flex; gap: 32px; padding-top: 16px; border-top: 1px solid #577165; }
.range-facts div { display: grid; gap: 3px; }
.range-facts span, .range-note { font-size: .82rem; color: #d3dfd7; }
.range-facts strong { font-size: 1.1rem; font-weight: 600; }
.access, .result { margin-top: 18px; }
.access form { max-width: 710px; }
.access-intro { margin-bottom: 19px; }
.access-intro p { color: var(--muted); max-width: 640px; margin-top: 6px; }
#phone, #code { max-width: 255px; }
.demo, #feedback, #callback-status, .cancel-box p { padding: 9px 13px; border-radius: 5px; font-size: .9rem; }
.demo { background: #edf0e5; margin-bottom: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: .9rem; font-weight: 400; }
.check input { accent-color: var(--dark); flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; min-height: 0; }
.callback-block { margin: 15px 0 20px; border-top: 1px solid var(--line); }
.callback-block .hint { padding-left: 28px; }
.disclosure { display: block; margin-top: 4px; }
.primary, .text-button { border: 0; border-radius: 5px; font-size: .95rem; font-weight: 650; }
.primary { background: var(--dark); color: #fff; padding: 10px 17px; }
.primary:hover { background: #205442; }
.primary span { margin-left: 12px; }
.text-button { text-decoration: underline; text-underline-offset: .22em; padding: 6px 0; background: none; color: #24523d; }
.actions, .result-heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 15px; }
.result-heading { justify-content: space-between; margin: 0 0 6px; }
#code-note { margin: 0 0 13px; }
#feedback, .cancel-box p { background: #f8e9d5; margin-top: 13px; }
.result > p { color: var(--muted); }
.table-wrap { margin: 20px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; padding-left: 0; }
thead { color: var(--muted); font-size: .82rem; }
tbody th { font-weight: 450; }
tfoot { font-weight: 700; }
.return { display: flex; flex-wrap: wrap; gap: 20px 60px; }
.return p { font-size: 1.25rem; font-weight: 600; }
#callback-status { background: #eaf1df; margin-top: 15px; }
.cancel-box { margin-top: 12px; }
.notes { margin: 26px 0 44px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; font-weight: 600; }
details p { color: var(--muted); max-width: 80ch; margin: 0 0 14px; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding: 17px 0 28px; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 56px; }
  .nav > a:last-child { font-size: .79rem; }
  .intro { padding: 30px 0 22px; }
  h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
  .calculator-grid { grid-template-columns: 1fr; gap: 12px; }
  .range { gap: 13px; }
  .range-value { font-size: clamp(1.7rem, 6.7vw, 2.3rem); }
  .range-facts { gap: 32px; padding-top: 10px; }
  .access, .result { margin-top: 12px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 20px); }
  .panel, .range { padding: 15px; }
  .pair { gap: 8px; }
  .materials { gap: 4px; }
  .materials span { padding: 7px 5px; }
}
