:root {
  --primary: #714b2a;
  --primary-dark: #52351d;
  --surface: #ffffff;
  --background: #f5f4f1;
  --text: #25231f;
  --muted: #6b665f;
  --border: #ded9d0;
  --success: #276749;
  --warning: #8a5a00;
  --error: #a12622;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--background); line-height: 1.55; }
a { color: var(--primary-dark); }
.container { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 20px; }
h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 2rem); }
h2 { margin-top: 0; }
.eyebrow { margin: 0 0 4px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.project-badge { background: #efe3d7; color: var(--primary-dark); padding: 7px 12px; border-radius: 999px; font-weight: 700; }
main { padding: 32px 0 56px; }
.panel { background: var(--surface); padding: clamp(22px, 5vw, 42px); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 30px rgba(40,32,20,.06); }
.intro-panel p { max-width: 720px; }
.hidden { display: none !important; }
.notice { padding: 16px 18px; border-radius: 12px; margin: 20px 0; }
.notice p { margin: 6px 0 0; }
.notice.info { background: #edf5fa; border-left: 4px solid #3b82a0; }
.notice.warning { background: #fff4da; border-left: 4px solid var(--warning); }
.notice.error { background: #fdeceb; border-left: 4px solid var(--error); }
.notice.success { background: #eaf6ef; border-left: 4px solid var(--success); }
.progress-wrap { margin-bottom: 18px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.progress-track { height: 8px; background: #e1ddd6; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); width: 12.5%; transition: width .2s ease; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-weight: 750; margin-bottom: 12px; }
fieldset label, .privacy-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; }
.help { color: var(--muted); margin-top: -4px; font-size: .92rem; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.dwelling-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 5px; }
.field select, .field input { width: 100%; min-height: 46px; padding: 9px 10px; border: 1px solid #8a857e; border-radius: 7px; background: white; font: inherit; }
.unknown-check { font-size: .82rem !important; font-weight: 400 !important; display: flex !important; gap: 6px; margin-top: 7px; }
.remove-row { min-height: 46px; border: 1px solid var(--border); background: white; border-radius: 8px; cursor: pointer; padding: 0 12px; }
.summary-line { padding: 12px 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.checkbox-grid label { display: flex; gap: 8px; padding: 7px 0; }
.conditional { padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.honeypot { position: absolute !important; left: -9999px !important; }
.result-header { padding: 30px; border-radius: 18px; margin-bottom: 20px; }
.result-header.positive { background: #eaf6ef; }
.result-header.open { background: #edf5fa; }
.result-header.negative { background: #fff0e9; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.result-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.result-card.full { grid-column: 1 / -1; }
.result-card ul { padding-left: 21px; }
.amount { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.site-footer { padding: 24px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .dwelling-row, .contact-grid, .result-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .dwelling-row { align-items: stretch; }
  .header-inner { align-items: flex-start; }
}

.inline-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.metric-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0;}
.metric {background:#f7f4ef;border:1px solid var(--border);border-radius:12px;padding:16px;}
.metric strong{display:block;font-size:1.25rem;color:var(--primary-dark);}
.currency-field{display:grid;grid-template-columns:1fr;max-width:420px;}
@media(max-width:720px){.inline-grid,.metric-grid{grid-template-columns:1fr;}}
