:root {
  --ink: #111827;
  --muted: #637184;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #dce5ee;
  --navy: #071428;
  --steel: #26384f;
  --blue: #0d5a9c;
  --ice: #dceff9;
  --gold: #f3ad2f;
  --red: #c94435;
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 24px 64px rgba(15, 23, 42, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0, #f7f9fc 100%);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(13, 90, 156, 0.28);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.site-header,
.site-footer {
  width: min(1220px, calc(100% - 36px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px auto 0;
  padding: 10px 14px 10px 18px;
  color: #fff;
  background: rgba(7, 20, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(7, 20, 40, 0.2);
}

.site-footer {
  margin-top: 14px;
  margin-bottom: 24px;
}

.brand,
.header-call {
  text-decoration: none;
}

.brand img {
  width: clamp(136px, 12vw, 172px);
  height: auto;
}

.header-call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(243, 173, 47, 0.74);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.header-call:hover {
  color: var(--gold);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #171100;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(243, 173, 47, 0.26);
}

.button--primary:hover {
  background: #ffc85d;
  border-color: #ffc85d;
}

.button--dark {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 14px 30px rgba(7, 20, 40, 0.18);
}

.calculator-panel {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.calculator-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px;
  margin-top: 14px;
  border: 1px solid rgba(220, 229, 238, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.calculator-panel__intro {
  display: grid;
  gap: 10px;
}

.estimate-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.estimate-app {
  display: grid;
  gap: 18px;
}

.estimate-step {
  display: grid;
  gap: 18px;
}

.step-head {
  display: grid;
  gap: 6px;
}

.step-head span {
  width: fit-content;
  padding: 7px 10px;
  color: var(--navy);
  background: rgba(243, 173, 47, 0.16);
  border: 1px solid rgba(243, 173, 47, 0.3);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-head h3 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-card,
.choice-button,
.package-card,
.estimate-breakdown__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.system-card,
.choice-button {
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.system-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  text-align: left;
  font-weight: 900;
}

.system-card:hover,
.choice-button:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 20, 40, 0.22);
}

.system-card.is-selected,
.choice-button.is-selected {
  border-color: rgba(243, 173, 47, 0.64);
  background: linear-gradient(180deg, rgba(255, 249, 237, 1), #fff);
  box-shadow: 0 18px 38px rgba(243, 173, 47, 0.16);
}

.system-card__photo {
  min-height: 176px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.system-card__photo--ac {
  background-image: url("./assets/family-ac.webp");
}

.system-card__photo--furnace {
  background-image: url("./assets/family-furnace-20260420-1300.webp");
}

.system-card__photo--full {
  background-image: url("./assets/family-full-20260420-1548.webp");
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid--complexity {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-button {
  min-height: 104px;
  padding: 22px;
  text-align: center;
  font-weight: 900;
}

.choice-button--detail {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 176px;
  text-align: left;
}

.choice-button--detail small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.wizard-actions {
  justify-content: flex-start;
}

.estimate-summary {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.estimate-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.estimate-breakdown__item {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 14px;
  box-shadow: none;
}

.estimate-breakdown__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.estimate-breakdown__value {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.package-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.package-card--recommended {
  border-color: rgba(243, 173, 47, 0.72);
  box-shadow: 0 20px 46px rgba(243, 173, 47, 0.16);
}

.package-card__badge,
.package-card__premium-mark {
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: #171100;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package-card__premium-mark {
  color: #fff;
  background: var(--navy);
}

.package-card__eyebrow,
.package-card__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package-card h4 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.package-card__price-block {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--soft);
}

.package-card--premium .package-card__price-block {
  background: linear-gradient(180deg, rgba(7, 20, 40, 0.98), rgba(38, 56, 79, 0.98));
}

.package-card--premium .package-card__label,
.package-card--premium .package-card__finance {
  color: rgba(255, 255, 255, 0.72);
}

.package-card--premium .package-card__price {
  color: #fff;
}

.package-card__price {
  color: var(--navy);
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.package-card__finance {
  color: var(--muted);
  font-weight: 800;
}

.package-card__summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.estimate-cta {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 20, 40, 0.96), rgba(38, 56, 79, 0.94)),
    var(--navy);
}

.estimate-cta h3 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.cta-phone {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.request-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.request-form span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.request-form input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.request-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(243, 173, 47, 0.28);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.form-status--error {
  border-color: rgba(255, 120, 120, 0.36);
  color: #ffd4d4;
}

.estimator-info {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 20, 40, 0.98), rgba(38, 56, 79, 0.96)),
    var(--navy);
  box-shadow: var(--shadow-md);
}

.estimator-info::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -52px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(243, 173, 47, 0.14);
  pointer-events: none;
}

.estimator-info__head,
.estimator-info__grid {
  position: relative;
  z-index: 1;
}

.estimator-info__head {
  display: grid;
  gap: 7px;
}

.estimator-info h3 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.06;
}

.estimator-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.estimator-info__grid div {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 178px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.estimator-info__grid strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.18;
}

.estimator-info__grid p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

.estimator-info__number {
  width: fit-content;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #171100;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1080px) {
  .calculator-panel,
  .estimate-cta {
    grid-template-columns: 1fr;
  }

  .calculator-panel__intro {
    position: static;
  }

  .system-grid,
  .choice-grid--complexity,
  .estimate-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    width: min(100% - 18px, 1220px);
    flex-direction: column;
    align-items: stretch;
    margin-top: 9px;
    padding: 12px;
  }

  .brand {
    display: grid;
    justify-items: center;
  }

  .header-call {
    width: 100%;
  }

  h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .calculator-panel {
    width: min(100% - 18px, 1220px);
    padding: 18px;
    margin-top: 9px;
  }

  .system-grid,
  .choice-grid,
  .choice-grid--complexity,
  .estimate-breakdown,
  .package-grid,
  .request-form,
  .estimator-info__grid {
    grid-template-columns: 1fr;
  }

  .system-card__photo {
    min-height: 190px;
  }

  .button,
  .wizard-actions {
    width: 100%;
  }

}
