:root {
  --ink: #12383d;
  --ink-deep: #0b292d;
  --muted: #60777a;
  --brand: #45b8bf;
  --brand-dark: #1f858d;
  --brand-soft: #e6f7f6;
  --coral: #ec5c75;
  --paper: #fff;
  --canvas: #f5f7f4;
  --line: #d9e3df;
  --error: #b4233a;
  --shadow: 0 24px 70px rgba(16, 59, 64, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
svg { display: block; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink-deep);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.brand img { width: 158px; height: auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.header-phone svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: 38px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: start;
}
.intro { padding: 48px 0 0; position: sticky; top: 18px; }
.intro h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(42px, 5.1vw, 66px);
  line-height: .99;
  letter-spacing: -.045em;
}
.intro-copy { max-width: 580px; margin: 28px 0 34px; color: #49696d; font-size: 20px; line-height: 1.55; }

.estimator-card {
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(16, 59, 64, .08);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-progress-wrap { padding: 24px 34px 20px; border-bottom: 1px solid #eaf0ed; }
.step-status { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 9px; background: #e7efec; }
.form-progress-wrap[hidden] { display: none; }
.progress-track span { display: block; width: 33.333%; height: 100%; background: var(--brand); transition: width .22s ease; }
.step-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; color: #8b9d9f; font-size: 12px; }
.step-labels li.active, .step-labels li.complete { color: var(--ink); font-weight: 700; }
.form-step { min-height: 560px; padding: 34px; }
.js .form-step[hidden] { display: none; }
.form-step h2 { margin: 0; color: var(--ink-deep); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; outline: none; }
.step-copy { margin: 9px 0 28px; color: var(--muted); }
.field, .field-group { margin: 0 0 20px; padding: 0; border: 0; }
.field label, .field-group legend { display: block; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #becdca;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-deep);
  padding: 11px 13px;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input::placeholder { color: #91a2a3; opacity: 1; }
input:hover, select:hover { border-color: #8dacac; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(31, 133, 141, .32);
  outline-offset: 2px;
}
input:focus, select:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(69, 184, 191, .15); }
.choice-grid { display: grid; gap: 10px; }
.two-choice { grid-template-columns: 1fr 1fr; }
.choice-card { position: relative; min-width: 0; margin: 0 !important; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bed0cd;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  text-align: center;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.choice-card input:checked + span { border-color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(31, 133, 141, .32); outline-offset: 2px; }
.address-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(100px, .8fr); gap: 12px; }
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #c7d5d2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 59, 64, .16);
  list-style: none;
}
.autocomplete-list[hidden] { display: none; }
.autocomplete-option {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  color: var(--ink-deep);
  text-align: left;
  cursor: pointer;
}
.autocomplete-option:hover, .autocomplete-option.active { background: var(--brand-soft); }
.former-badge, .former-street span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2f1;
  color: #415e62;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}
.former-street { margin-top: 7px; }
.former-street[hidden] { display: none; }
.former-street strong { margin-left: 2px; font-weight: 700; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 400; }
.complex-field { max-width: calc((100% - 12px) * .75); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { margin: 6px 0 0; color: var(--error); font-size: 13px; font-weight: 700; }
.error-summary { margin: 24px 34px 0; border-left: 4px solid var(--error); background: #fff1f3; padding: 14px 16px; color: #7e1c2d; }
.error-summary p { margin: 4px 0 0; font-size: 14px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 48px; }
.input-suffix span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.operation-panel { margin-top: 6px; }
.operation-panel[hidden] { display: none; }
.checkbox-stack { display: grid; gap: 10px; margin: 6px 0 20px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; min-height: 30px; color: #415e62; font-size: 14px; cursor: pointer; }
.check-row input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--brand-dark);
}
.consent-row { margin-top: 8px; }
.sms-preview { margin: 0 0 24px; }
.sms-preview figcaption { margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 900; }
.sms-preview-screen { overflow: hidden; border: 1px solid #cad8d5; border-radius: 16px; background: #f3f6f5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.sms-preview-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce5e2; background: rgba(255, 255, 255, .86); padding: 10px 14px; color: var(--ink-deep); font-size: 13px; }
.sms-preview-header span { color: var(--muted); font-size: 12px; }
.sms-preview-bubble { width: min(88%, 390px); margin: 18px 14px 20px auto; border-radius: 16px 16px 4px 16px; background: #d9f3ee; padding: 13px 15px; color: var(--ink-deep); font-size: 14px; box-shadow: 0 5px 15px rgba(16, 59, 64, .08); }
.sms-preview-bubble p { margin: 0; }
.sms-preview-bubble p + p { margin-top: 7px; }
.sms-preview-bubble span { color: var(--brand-dark); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.sms-preview-note { margin: 9px 2px 0; color: var(--muted); font-size: 13px; }
.delivery-shell { width: min(680px, calc(100% - 40px)); min-height: calc(100vh - 170px); margin: 0 auto; padding: 70px 0; }
.delivery-card { padding: clamp(28px, 6vw, 52px); border: 1px solid rgba(16, 59, 64, .08); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.delivery-card h1 { margin: 0 0 18px; color: var(--ink-deep); font-size: clamp(32px, 6vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.delivery-card p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.delivery-card form { margin: 28px 0 20px; }
.delivery-home { display: inline-block; margin-top: 12px; font-weight: 700; }
.step-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--coral); color: #fff; box-shadow: 0 9px 24px rgba(236, 92, 117, .2); }
.button.primary:hover { background: #d94c66; }
.button.secondary { border: 1px solid #bdceca; background: #fff; color: var(--ink); box-shadow: none; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.submit-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #75898b;
  font-size: 13px;
}

.result-body { background: #f3f7f5; }
.result-shell {
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: 44px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr);
  gap: 24px;
  align-items: start;
}
.result-main, .result-cta { border: 1px solid rgba(16, 59, 64, .08); background: #fff; box-shadow: var(--shadow); }
.result-main { border-radius: var(--radius); padding: clamp(28px, 5vw, 54px); }
.result-check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); }
.result-check svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.result-main h1 { max-width: 580px; margin: 24px 0 4px; color: var(--ink-deep); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.result-address { margin: 0; color: var(--muted); }
.price-panel { margin: 34px 0 20px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.estimate-focus > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 14px; font-weight: 700; }
.estimate-focus > strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--ink-deep); font-size: clamp(42px, 6vw, 62px); font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.estimate-focus small { color: var(--brand-dark); font-size: 17px; letter-spacing: 0; }
.range-chart { margin-top: 27px; }
.range-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #d7ece8 0%, var(--brand) 50%, #d7ece8 100%); box-shadow: inset 0 0 0 1px rgba(31, 133, 141, .08); }
.range-track::before, .range-track::after { position: absolute; top: -4px; width: 2px; height: 20px; border-radius: 2px; background: #8eb8b5; content: ""; }
.range-track::before { left: 0; }
.range-track::after { right: 0; }
.range-track span { position: absolute; top: 50%; left: var(--marker-position); width: 22px; height: 22px; transform: translate(-50%, -50%); border: 5px solid #fff; border-radius: 50%; background: var(--brand-dark); box-shadow: 0 2px 10px rgba(16, 59, 64, .24); }
.range-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 13px; }
.range-values > span { display: flex; flex-direction: column; }
.range-values > span:last-child { align-items: flex-end; text-align: right; }
.range-values-center { align-items: center; text-align: center; }
.range-values small { color: var(--muted); font-size: 11px; }
.range-values strong { color: var(--ink); font-size: 14px; }
.range-values-center strong { color: var(--brand-dark); }
.range-explanation { max-width: 620px; margin: 21px 0 0; color: var(--muted); font-size: 13px; }
.comparable-summary { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 17px 19px; border-radius: 12px; background: var(--brand-soft); color: #315d61; }
.comparable-summary svg { flex: 0 0 auto; width: 27px; height: 27px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comparable-summary p { margin: 0; }
.comparable-summary strong { color: var(--ink-deep); }
.result-facts { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 18px; margin-bottom: 28px; }
.result-facts div { min-width: 0; }
.result-facts span, .result-facts strong { display: block; }
.result-facts span { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.result-facts strong { color: var(--ink); font-size: 14px; }
.method-note { display: flex; gap: 14px; padding: 17px; background: #f5f8f6; color: #4e6b6e; font-size: 14px; }
.method-note svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--brand-dark); stroke-width: 1.6; stroke-linecap: round; }
.method-note p { margin: 0; }
.method-note + .method-note { margin-top: 10px; }
.result-map { margin-top: 30px; }
.result-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.result-section-heading h2 { margin: 0; color: var(--ink-deep); font-size: 21px; line-height: 1.2; }
.result-section-heading a { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.result-map iframe { width: 100%; height: 280px; display: block; border: 0; border-radius: 14px; background: #e7eeeb; }
.result-map > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.result-cta { position: sticky; top: 24px; border-radius: var(--radius); padding: 28px; }
.agent-illustration { height: 126px; display: grid; place-items: center; margin: -8px -8px 20px; background: var(--brand-soft); }
.agent-illustration svg { width: 170px; height: 115px; fill: none; stroke: var(--brand-dark); stroke-width: 2; stroke-linejoin: round; }
.result-cta h2 { margin: 0 0 12px; color: var(--ink-deep); font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.result-cta p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.cta-actions { display: grid; gap: 10px; }
.full-button { width: 100%; }
.text-link { display: block; min-height: 44px; margin-top: 10px; padding: 10px; text-align: center; font-weight: 700; }


@media (max-width: 920px) {
  .landing-shell { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
  .intro { position: static; padding-top: 28px; }
  .intro h1 { max-width: 760px; }
  .intro-copy { max-width: 700px; }
  .result-shell { grid-template-columns: 1fr; }
  .result-cta { position: static; }
}

@media (max-width: 640px) {
  .site-header, .landing-shell, .site-footer, .result-shell { width: min(100% - 28px, 100%); }
  .site-header { height: 70px; }
  .brand img { width: 138px; }
  .header-phone span { display: none; }
  .header-phone { width: 44px; justify-content: center; }
  .landing-shell { padding: 12px 0 44px; gap: 28px; }
  .intro { padding: 12px 2px 0; }
  .intro h1 { font-size: clamp(36px, 11.5vw, 48px); line-height: 1.01; }
  .intro-copy { margin: 20px 0 26px; font-size: 17px; }
  .estimator-card { min-height: 0; margin: 0 -2px; border-radius: 16px; box-shadow: 0 12px 40px rgba(16, 59, 64, .1); }
  .form-progress-wrap { padding: 19px 20px 16px; }
  .step-labels { font-size: 10px; }
  .form-step { min-height: 0; padding: 26px 20px 24px; }
  .form-step h2 { font-size: 25px; }
  .step-copy { margin-bottom: 24px; }
  .address-grid { grid-template-columns: minmax(0, 1fr) 100px; }
  .complex-field { max-width: 100%; }
  .step-actions { margin-top: 24px; }
  .step-actions .button { flex: 1; padding-inline: 15px; }
  .error-summary { margin: 20px 20px 0; }
  .site-footer { min-height: 88px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .result-shell { padding: 20px 0 46px; gap: 16px; }
  .result-main { padding: 25px 20px; border-radius: 16px; }
  .price-panel { margin: 26px 0 24px; padding: 22px 0; }
  .estimate-focus > strong { font-size: clamp(40px, 13vw, 54px); }
  .range-values { gap: 6px; }
  .range-values small { font-size: 10px; }
  .result-facts { grid-template-columns: 1fr 1fr; }
  .result-facts div:last-child { grid-column: 1 / -1; }
  .result-cta { border-radius: 16px; padding: 22px; }
  .result-map iframe { height: 235px; }
}

@media (max-width: 390px) {
  .two-choice { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
  .split-fields { gap: 9px; }
  .form-step[data-step="3"] .step-actions { flex-direction: column-reverse; }
  .price-range small { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .choice-card input:checked + span { outline: 3px solid CanvasText; }
  .progress-track span { background: Highlight; }
}
