:root {
  color-scheme: light;
  --ink: #202528;
  --muted: #505b5b;
  --paper: #f7f7f3;
  --line: #cdd2cc;
  --accent: #9f3827;
  --dark: #252e2e;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid #356b87; outline-offset: 4px; }
.wrap { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.14rem; font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding-block: 4.5rem 3.6rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 750; margin: 0 0 .7rem; }
h1, h2, h3 { line-height: 1.08; overflow-wrap: anywhere; margin: 0; }
h1 { font-size: 4.4rem; font-weight: 800; }
h2 { font-size: 2.35rem; }
h3 { font-size: 1.35rem; }
.lede { max-width: 36rem; font-size: 1.16rem; margin: 1.2rem 0 1.65rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem .9rem; min-height: 44px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #832e20; }
.secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.secondary:hover { background: #e9eeea; }
.section { padding-block: 3rem; }
.section-head { margin-bottom: 1.45rem; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.service-list article { padding: 1.2rem 1.15rem; }
.service-list article:first-child { padding-left: 0; }
.service-list article + article { border-left: 1px solid var(--line); }
.service-list p, .brief-layout p { color: var(--muted); }
.estimate-band { color: #f4f6f2; background: var(--dark); padding-block: 3rem; }
.estimate-band .eyebrow { color: #f0ab93; }
.estimate-layout, .brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; }
.estimate { margin: 0; font-variant-numeric: tabular-nums; }
.estimate div { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid #637170; }
.estimate dd { margin: 0; white-space: nowrap; }
.total { font-weight: 800; }
.note { font-size: .875rem; margin-block: .65rem 0; }
.estimate-band .note { color: #d5ded9; }
form label { display: block; margin-bottom: .25rem; font-weight: 650; }
input, select, textarea { display: block; width: 100%; min-width: 0; padding: .57rem .65rem; border: 1px solid #8b9893; border-radius: 4px; background: #fff; color: var(--ink); margin-bottom: .85rem; }
textarea { resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
#result { margin-top: 1.5rem; }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .intro { padding-block: 2.5rem; }
  h1 { font-size: 2.65rem; }
  h2 { font-size: 1.85rem; }
  .section, .estimate-band { padding-block: 2rem; }
  .service-list, .estimate-layout, .brief-layout { grid-template-columns: 1fr; }
  .estimate-layout, .brief-layout { gap: 1rem; }
  .service-list article { padding-inline: 0; }
  .service-list article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  h1 { font-size: 2rem; }
  .mast-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .fields { grid-template-columns: 1fr; gap: 0; }
}
