* {box-sizing:border-box}
:root {color-scheme:light;--ink:#163634;--paper:#ecf0e8;--surface:#fafcf7;--line:#bdcbc0;--muted:#455f56;--teal:#235345}
body {margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,sans-serif}
a {color:var(--teal);text-underline-offset:.17em}
a:focus-visible,input:focus-visible {outline:3px solid #946222;outline-offset:3px}
[hidden] {display:none!important}
.skip {position:absolute;top:-5rem;left:1rem;background:white;padding:.4rem}
.skip:focus {top:.4rem;z-index:5}
.wrap {width:min(1080px,calc(100% - 30px));margin:auto}
header,footer {background:#dce6d9;border-bottom:1px solid var(--line)}
.mast {display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:12px}
.brand {font-weight:850;text-decoration:none}
.brand span {color:var(--muted)}
nav {display:flex;gap:12px;font-size:.89rem}
.hero {padding:clamp(40px,7vw,74px) 0 24px}
h1,h2,p {margin:0 0 12px}
h1 {max-width:17ch;font-size:clamp(2.35rem,6.75vw,5rem);line-height:1.02;letter-spacing:-.052em}
.hero p {font-size:1.08rem;max-width:58ch;color:var(--muted)}
h2 {font-size:clamp(1.18rem,2.6vw,1.42rem)}
.panel {padding:clamp(15px,3vw,24px);border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.windows {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:5px 13px}
.windows label,.tick {display:flex;align-items:center;gap:8px;min-height:34px}
input[type=checkbox] {accent-color:#216354;inline-size:18px;block-size:18px;flex-shrink:0}
input[type=number] {width:100%;min-height:38px;margin-top:4px;border:1px solid #849d91;border-radius:6px;padding:6px;background:#fff;color:inherit;font:inherit}
.fields {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px;font-size:.9rem;font-weight:670}
.extra label {display:block;margin:4px 0 8px;font-size:.87rem;color:var(--muted);max-width:250px}
.hint {color:var(--muted);font-size:.88rem;margin:8px 0 0}
.verdict {font-size:1.1rem;font-weight:750}
table {width:100%;margin-top:9px;border-collapse:collapse;table-layout:fixed;font-size:.94rem}
th,td {text-align:left;vertical-align:top;padding:8px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
td {font-variant-numeric:tabular-nums}
tr:last-child td {font-size:1.05rem;font-weight:760}
.guide {max-width:750px;padding:37px 0}
.guide li {margin-bottom:9px}
.guide ul {padding-left:20px}
footer {padding:18px 0;font-size:.88rem;border-top:1px solid var(--line)}
.error {background:#fae7d7;color:#752e15;padding:8px;border-radius:6px}
@media(max-width:620px) {.layout {grid-template-columns:1fr}.windows {grid-template-columns:1fr 1fr}}
@media(max-width:360px) {.windows {grid-template-columns:1fr}}

.measurements {grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}
#models fieldset {min-width:0}
#models legend {font-weight:750}
#models .fields {margin-bottom:0}
#measure ol {padding-left:20px}
#measure ol li {margin-bottom:9px}
@media(max-width:670px) {.measurements {grid-template-columns:repeat(2,minmax(0,1fr))}}
