:root {
  --ink: #0b0b0b;
  --paper: #fbfbf8;
  --muted: #676767;
  --line: #0b0b0b;
  --soft: #eeeeea;
  --danger: #b00020;
  --ok: #126b38;
  --shadow: 8px 8px 0 #0b0b0b;
  --border: 2px solid var(--line);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 72px;
  background: var(--paper);
  border-bottom: var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-right: var(--border);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: var(--border);
  font-weight: 900;
}
.brand strong { display: block; font-size: 21px; letter-spacing: 0; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.topnav {
  display: flex;
  align-items: center;
}
.topnav a {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 18px;
  border-left: var(--border);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

main { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 42px 0 28px;
  align-items: stretch;
}
.hero-panel {
  border: var(--border);
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(90deg, rgba(11,11,11,.08) 1px, transparent 1px),
    linear-gradient(rgba(11,11,11,.08) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .93;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 690px;
  margin-bottom: 26px;
  color: #242424;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: var(--border);
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.ghost:hover, .button.primary:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.button.small { min-height: 38px; padding: 0 12px; font-size: 12px; }
.button.submit { width: 100%; margin-top: 12px; }

.manual-card {
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.manual-head {
  padding: 14px 18px;
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 900;
}
.manual-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.manual-card li {
  display: flex;
  gap: 14px;
  padding: 22px 18px;
  border-bottom: var(--border);
  font-weight: 850;
}
.manual-card li:last-child { border-bottom: 0; }
.manual-card span { font-family: var(--mono); color: var(--muted); }

.workspace, .info-band, .zones {
  border-top: var(--border);
  padding: 28px 0 36px;
}
.section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.label-number, .block-title span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: var(--border);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 900;
  flex: 0 0 auto;
}
.section-title h2 { margin: 0; font-size: 32px; line-height: 1; }
.section-title p { margin: 5px 0 0; color: var(--muted); }

.step-block, .estimate-panel, .lead-panel {
  border: var(--border);
  background: var(--paper);
  margin-bottom: 14px;
}
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: var(--border);
}
.block-title h3 { margin: 0; font-size: 19px; text-transform: uppercase; }
.block-title.compact { padding: 0 0 14px; border-bottom: 0; }
.block-title.compact span { width: 36px; height: 36px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  padding-top: 2px;
}
.field-grid.one { grid-template-columns: 1fr; background: transparent; padding-top: 0; gap: 10px; }
.field {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: var(--paper);
}
.field span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  border: var(--border);
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 12px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { box-shadow: 4px 4px 0 var(--ink); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  padding-top: 2px;
}
.service-card {
  min-height: 128px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  padding: 14px 10px;
  text-align: center;
}
.service-card .icon { font-size: 30px; line-height: 1; }
.service-card strong { font-size: 13px; text-transform: uppercase; }
.service-card[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.service-card:focus-visible { outline: 4px solid var(--ink); outline-offset: -6px; }

.details-list {
  display: grid;
  gap: 2px;
  background: var(--line);
  padding-top: 2px;
}
.detail-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--paper);
}
.detail-card h4 { margin: 0; text-transform: uppercase; }
.detail-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-fields .field { padding: 0; }
.detail-fields input, .detail-fields select { background: var(--paper); }

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 14px;
  align-items: start;
}
.estimate-panel, .lead-panel { padding: 18px; }
.estimate-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  border-bottom: var(--border);
  padding-bottom: 16px;
  margin-bottom: 10px;
}
.estimate-top h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 54px);
}
.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--muted);
}
.estimate-line strong { text-transform: uppercase; }
.estimate-line span:last-child { font-family: var(--mono); font-weight: 900; }
.empty, .notice { color: var(--muted); margin: 12px 0 0; }
.notice { font-size: 13px; }
.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 800;
}
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: var(--border);
}
.method-grid article {
  min-height: 170px;
  background: var(--paper);
  padding: 18px;
}
.method-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.method-grid strong { display: block; font-size: 22px; line-height: 1.1; }
.method-grid p { margin: 12px 0 0; color: var(--muted); }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: var(--border);
}
.zone-grid span {
  display: grid;
  place-items: center;
  min-height: 76px;
  background: var(--paper);
  font-weight: 900;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: var(--border);
  color: var(--muted);
}
footer strong { color: var(--ink); }

@media (max-width: 920px) {
  .hero, .estimate-layout { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  main, footer { width: min(100% - 18px, 1180px); }
  .topbar { position: static; display: block; min-height: 0; }
  .brand { border-right: 0; border-bottom: var(--border); }
  .topnav a { flex: 1; min-height: 48px; padding: 0 10px; font-size: 11px; }
  h1 { font-size: 43px; }
  .hero { padding-top: 18px; }
  .field-grid, .detail-card, .detail-fields { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid, .zone-grid { grid-template-columns: 1fr; }
  .estimate-top { display: block; }
  .estimate-top .button { margin-top: 12px; }
  footer { display: grid; gap: 4px; }
}
