:root {
  --navy: #123047;
  --navy-deep: #0a2234;
  --teal: #00a7a0;
  --teal-dark: #07857f;
  --mint: #eaf5f4;
  --ice: #f4f8f9;
  --white: #fff;
  --ink: #1c2833;
  --muted: #607887;
  --amber: #f2a65a;
  --line: #dbe6e9;
  --danger: #b83a4b;
  --shadow: 0 26px 70px rgba(15, 44, 62, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body { height: 100%; margin: 0; overflow: hidden; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { height: 82px; display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100% - 1180px) / 2)); background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(18,48,71,.08); position: relative; z-index: 5; }
.brand { display: flex; flex: 0 0 auto; }
.brand img { display: block; width: 192px; height: auto; }
.header-caption { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; border-left: 1px solid var(--line); padding-left: 28px; }
.header-contact { margin-left: auto; text-align: right; display: grid; gap: 3px; }
.header-contact a { text-decoration: none; font-size: 20px; font-weight: 750; color: var(--navy); }
.header-contact span { color: var(--muted); font-size: 12px; }
.header-contact i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #48b36b; margin-right: 5px; box-shadow: 0 0 0 4px rgba(72,179,107,.12); }

main { position: relative; height: calc(100dvh - 82px); overflow: hidden; }
.legal-page { height: auto; min-height: 100%; overflow: auto; }
.legal-page main { position: static; height: auto; overflow: visible; }
.hero { position: absolute; inset: 0; min-height: 0; color: var(--white); background: var(--navy-deep) url("../images/hero.jpg") center/cover no-repeat; display: grid; align-items: center; transition: opacity .28s ease, visibility .28s ease; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,28,45,.94) 0%, rgba(5,28,45,.82) 39%, rgba(5,28,45,.24) 66%, rgba(5,28,45,.08) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: clamp(24px, 5vh, 64px); }
.hero-content > * { max-width: 655px; }
.eyebrow { margin: 0 0 18px; color: #76ddd6; font-weight: 750; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow-dark { color: var(--teal-dark); }
h1 { margin: 0; max-width: 760px !important; font-size: clamp(42px, 5.1vw, 68px); line-height: 1.03; letter-spacing: -.045em; font-weight: 740; }
.hero-lead { margin: 26px 0 30px; color: #dce9ee; font-size: 19px; line-height: 1.55; }
.hero-benefits { list-style: none; padding: 0; margin: 32px 0 18px; display: grid; gap: 12px; }
.hero-benefits li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 44px; color: #f2f7f9; font-size: 15px; line-height: 1.42; }
.hero-benefits span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(86,213,206,.13); border: 1px solid rgba(86,213,206,.4); color: #76ddd6; font-size: 11px; line-height: 1; font-weight: 800; flex: 0 0 36px; }
.hero-company { margin: 0 0 20px; color: #b8cbd3; font-size: 13px; line-height: 1.5; }
.button { border: 0; border-radius: 12px; min-height: 56px; padding: 0 27px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, opacity .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: var(--white); box-shadow: 0 12px 30px rgba(0,167,160,.26); }
.button-primary:hover { background: var(--teal-dark); }
.hero-note { margin: 12px 0 0; color: #a9bdc7; font-size: 12px; }

.trust { margin-top: -44px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.trust article { min-height: 130px; padding: 30px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.trust article:last-child { border: 0; }
.trust strong { color: var(--navy); font-size: 25px; letter-spacing: -.03em; }
.trust span { color: var(--muted); font-size: 13px; margin-top: 4px; }

.quiz-section { position: absolute; inset: 0; z-index: 3; padding: 12px 0; background: var(--ice); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility .28s ease; }
.quiz-section > .shell { height: 100%; }
.quiz-open .hero { opacity: 0; visibility: hidden; pointer-events: none; }
.quiz-open .quiz-section { opacity: 1; visibility: visible; pointer-events: auto; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.quiz-card { height: 100%; min-height: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 22px 18px; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.quiz-progress { margin-bottom: 12px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.progress-track { height: 5px; border-radius: 9px; background: #e4ecee; overflow: hidden; }
.progress-track span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--teal), #49c8c0); border-radius: inherit; transition: width .35s ease; }
.quiz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; overflow: hidden; animation: reveal .3s ease; }
.quiz-step.is-active { display: block; }
fieldset.quiz-step.is-active { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.remaining { margin: 0 0 8px; color: var(--teal-dark); font-size: 12px; font-weight: 750; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.question-copy { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.question-copy legend { color: var(--navy); font-size: clamp(25px, 3vw, 36px); font-weight: 760; letter-spacing: -.035em; float: left; }
.question-copy p { color: var(--muted); font-size: 14px; max-width: 450px; margin: 0 0 4px; }
.image-options { display: grid; gap: 9px; clear: both; min-height: 0; }
.options-4 { grid-template-columns: repeat(4, 1fr); }
.options-3 { grid-template-columns: repeat(3, 1fr); }
.options-5 { grid-template-columns: repeat(5, 1fr); }
.options-4 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.image-option { min-width: 0; min-height: 0; border: 2px solid transparent; background: var(--ice); border-radius: 13px; padding: 5px 5px 8px; cursor: pointer; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; transition: border-color .18s, transform .18s, background .18s, box-shadow .18s; }
.image-option:hover { transform: translateY(-3px); background: #edf6f6; }
.image-option:has(input:checked) { border-color: var(--teal); background: #eefafa; box-shadow: 0 9px 24px rgba(0,167,160,.14); }
.image-option input { position: absolute; opacity: 0; pointer-events: none; }
.image-option input:focus-visible + .option-image { outline: 3px solid var(--amber); outline-offset: 3px; }
.image-option:has(input:checked)::after { content: "✓"; position: absolute; right: 13px; top: 13px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 13px; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.option-image { display: block; width: 100%; min-height: 0; aspect-ratio: 1; border-radius: 10px; background-repeat: no-repeat; background-color: #dce6e9; }
.options-4 .option-image { aspect-ratio: auto; }
.image-option b { display: -webkit-box; min-height: 2.4em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--navy); font-size: 12px; line-height: 1.2; margin: 6px 3px 0; }

.material-1,.material-2,.material-3,.material-4,.material-5,.material-6,.material-7,.material-8 { background-image: url("../images/materials-atlas.jpg"); background-size: 400% 200%; }
.material-1 { background-position: 0 0; }.material-2 { background-position: 33.333% 0; }.material-3 { background-position: 66.667% 0; }.material-4 { background-position: 100% 0; }
.material-5 { background-position: 0 100%; }.material-6 { background-position: 33.333% 100%; }.material-7 { background-position: 66.667% 100%; }.material-8 { background-position: 100% 100%; }
.source-1,.source-2,.source-3,.source-4,.source-5,.source-6,.source-7,.source-8 { background-image: url("../images/sources-atlas.jpg"); background-size: 400% 200%; }
.source-1 { background-position: 0 0; }.source-2 { background-position: 33.333% 0; }.source-3 { background-position: 66.667% 0; }.source-4 { background-position: 100% 0; }
.source-5 { background-position: 0 100%; }.source-6 { background-position: 33.333% 100%; }.source-7 { background-position: 66.667% 100%; }.source-8 { background-position: 100% 100%; }
.area-1,.area-2,.area-3 { background-image: url("../images/areas-atlas.jpg"); background-size: 300% 100%; }
.area-1 { background-position: 0 0; }.area-2 { background-position: 50% 0; }.area-3 { background-position: 100% 0; }
.timing-1,.timing-2,.timing-3,.timing-4,.timing-5 { background-image: url("../images/timing-atlas.jpg"); background-size: 500% 100%; }
.timing-1 { background-position: 0 0; }.timing-2 { background-position: 25% 0; }.timing-3 { background-position: 50% 0; }.timing-4 { background-position: 75% 0; }.timing-5 { background-position: 100% 0; }

.quiz-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; min-height: 52px; }
.quiz-controls .button { min-width: 148px; }
.button-back { color: var(--navy); background: #edf2f3; box-shadow: none; }
.button.is-attention { animation: button-attention .68s ease; background: var(--amber); color: var(--navy-deep); box-shadow: 0 0 0 6px rgba(242,166,90,.22), 0 12px 30px rgba(242,166,90,.34); }
@keyframes button-attention { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.selection-hint { color: var(--muted); font-size: 13px; margin: 0 auto 0 0; }
#nextButton { margin-left: auto; }
.submit-button { display: none; }
.quiz-card[data-current="1"] .button-back { visibility: hidden; }
.quiz-card[data-current="5"] .selection-hint, .quiz-card[data-current="5"] #nextButton { display: none; }
.quiz-card[data-current="5"] .submit-button { display: inline-flex; margin-left: auto; }
.quiz-card[data-current="6"] .quiz-progress, .quiz-card[data-current="6"] .quiz-controls { display: none; }

.contact-step { grid-template-columns: .92fr 1.08fr; align-content: center; gap: 22px; padding: 0 10px; }
.contact-step.is-active { display: grid; }
.contact-copy { position: relative; display: flex; align-items: center; min-width: 0; min-height: 300px; overflow: hidden; border-radius: 17px; padding: 24px; background: var(--navy-deep) url("../images/boiler-promo-background.jpg") 55% center / cover no-repeat; box-shadow: 0 14px 34px rgba(18,48,71,.18); isolation: isolate; }
.contact-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,31,49,.98) 0%, rgba(6,31,49,.9) 47%, rgba(6,31,49,.32) 72%, rgba(6,31,49,.05) 100%); }
.contact-message { width: 58%; min-width: 0; }
.contact-copy h3, .success-step h3 { color: var(--white); font-size: clamp(21px, 2.5vw, 33px); letter-spacing: -.04em; line-height: 1.06; margin: 0; }
.promo-code { margin: 0 0 6px; color: #c9dcdf !important; font-size: 12px; }
.promo-code strong { display: block; color: #62ddd6; font-size: 36px; line-height: 1.05; letter-spacing: .06em; }
.contact-message .promo-offer { color: var(--white); margin: 0 0 14px; font-size: 13px; line-height: 1.34; font-weight: 650; }
.contact-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-copy li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--teal-dark); font-weight: 900; font-size: 12px; margin-right: 10px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px 10px; }
.contact-fields > label { display: grid; gap: 4px; color: var(--navy); font-size: 11px; font-weight: 750; }
.contact-fields input, .contact-fields select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; background: #fbfdfd; color: var(--ink); outline: none; }
.contact-fields input:focus, .contact-fields select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,167,160,.11); }
.contact-fields input.is-invalid, .privacy-check.is-invalid { border-color: var(--danger); }
.privacy-check { grid-column: 1/-1; grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted) !important; }
.privacy-check input { min-height: auto; height: 17px; margin: 2px 0 0; accent-color: var(--teal); }
.privacy-check a { color: var(--teal-dark); }
.contact-value { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.contact-value span { position: relative; padding: 8px 8px 8px 24px; border: 1px solid rgba(0,167,160,.12); border-radius: 9px; background: var(--mint); color: var(--navy); font-size: 10px; line-height: 1.24; font-weight: 700; }
.contact-value span::before { content: "✓"; position: absolute; left: 7px; top: 7px; color: var(--teal-dark); font-weight: 900; }
.form-error { grid-column: 1/-1; color: var(--danger); font-size: 13px; margin: 0; min-height: 19px; }
.success-step { text-align: center; max-width: 690px; margin: 70px auto 0; }
.success-step > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.success-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: white; background: var(--teal); font-size: 34px; font-weight: 800; box-shadow: 0 14px 30px rgba(0,167,160,.22); }
.button-outline { color: var(--navy); border: 1px solid var(--line); background: white; margin-top: 14px; }

.process { padding: 105px 0 120px; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 30px 28px 20px 0; border-right: 1px solid var(--line); min-height: 220px; }
.process li + li { padding-left: 28px; }
.process li:last-child { border: 0; }
.process li > span { color: var(--teal); font-size: 12px; font-weight: 800; }
.process h3 { color: var(--navy); font-size: 21px; margin: 42px 0 10px; }
.process li p { color: var(--muted); font-size: 14px; margin: 0; }

.site-footer { display: none; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.footer-inner img { width: 192px; height: auto; }
.footer-inner p { color: #9fb6c1; font-size: 13px; }
.footer-inner > div { text-align: right; display: grid; gap: 8px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:first-child { color: white; font-size: 19px; font-weight: 750; }
.footer-inner a:last-child { color: #9fb6c1; font-size: 12px; text-decoration: underline; }

@media (max-width: 920px) {
  .site-header { height: 72px; }
  main { height: calc(100dvh - 72px); }
  .brand img { width: 166px; }
  .header-caption { display: none; }
  .hero { min-height: 0; background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,28,45,.96), rgba(5,28,45,.78) 70%, rgba(5,28,45,.45)); }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust article:nth-child(2) { border-right: 0; }
  .trust article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .options-4 { grid-template-columns: repeat(4, 1fr); }
  .options-5 { grid-template-columns: repeat(5, 1fr); }
  .question-copy { align-items: start; flex-direction: column; gap: 5px; }
  .contact-step { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 4px; }
  .contact-copy { min-height: 280px; padding: 18px; background-position: 58% center; }
  .contact-message { width: 60%; }
  .contact-copy h3 { font-size: clamp(18px,2.8vw,26px); }
  .process ol { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { padding-inline: 14px; }
  .brand img { width: 145px; }
  .header-contact a { font-size: 15px; }
  .header-contact span { font-size: 10px; }
  .hero { min-height: 0; background-position: 69% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,28,45,.96), rgba(5,28,45,.78)), linear-gradient(0deg, rgba(5,28,45,.25), transparent); }
  .hero-content { padding-block: 18px; }
  h1 { max-width: 100% !important; font-size: clamp(34px, 10.2vw, 38px); line-height: 1.08; }
  .hero-lead { font-size: 16px; }
  .hero-benefits { margin-top: 23px; margin-bottom: 12px; gap: 6px; }
  .hero-benefits li { grid-template-columns: 34px minmax(0, 1fr); gap: 13px; min-height: 40px; font-size: 13px; line-height: 1.42; }
  .hero-benefits span { width: 34px; height: 34px; border-radius: 10px; flex-basis: 34px; }
  .hero-content .button { width: 100%; }
  .trust { margin-top: -22px; }
  .trust article { min-height: 105px; padding: 19px; }
  .trust strong { font-size: 20px; }
  .quiz-section { padding: 6px 0; }
  .quiz-card { padding: 10px 8px 9px; min-height: 0; border-radius: 18px; }
  .quiz-progress { margin-bottom: 6px; }
  .progress-meta { margin-bottom: 5px; font-size: 9px; }
  .remaining { margin-bottom: 4px; font-size: 9px; }
  .question-copy { gap: 4px; margin-bottom: 6px; }
  .question-copy legend { font-size: 18px; line-height: 1.08; }
  .question-copy p { max-width: none; font-size: 9px; line-height: 1.22; }
  .options-4 { grid-template-columns: repeat(4,1fr); gap: 4px; }
  .options-3 { grid-template-columns: repeat(3,1fr); gap: 5px; }
  .options-5 { grid-template-columns: repeat(3,1fr); gap: 5px; }
  .image-option { padding: 3px 3px 5px; border-radius: 9px; }
  .option-image { border-radius: 7px; }
  .image-option b { margin-top: 3px; font-size: 7.5px; line-height: 1.1; }
  .image-option:has(input:checked)::after { right: 5px; top: 5px; width: 18px; height: 18px; font-size: 9px; }
  .quiz-controls { position: static; bottom: auto; background: transparent; padding: 0; margin: 6px 0 0; border-radius: 0; box-shadow: none; min-height: 44px; }
  .quiz-controls .button { min-width: 0; min-height: 50px; padding: 0 16px; }
  .selection-hint { display: none; }
  #nextButton { margin-left: auto; }
  .contact-step { grid-template-columns: 1fr; gap: 6px; padding: 0 2px; }
  .contact-step.is-active { display: grid; }
  .contact-copy { min-height: 155px; margin: 0; padding: 12px 14px; background-position: center; border-radius: 12px; }
  .contact-copy::before { background: linear-gradient(90deg, rgba(6,31,49,.98) 0%, rgba(6,31,49,.87) 55%, rgba(6,31,49,.16) 82%, rgba(6,31,49,.03) 100%); }
  .contact-message { width: 60%; }
  .contact-copy h3 { font-size: 15px; }
  .promo-code { font-size: 9px; }
  .promo-code strong { font-size: 23px; }
  .contact-message .promo-offer { margin-bottom: 6px; font-size: 8px; line-height: 1.22; }
  .contact-fields { grid-template-columns: 1fr 1fr; gap: 5px 7px; }
  .contact-fields > label { gap: 2px; font-size: 8px; }
  .contact-fields input, .contact-fields select { min-height: 36px; padding-inline: 7px; font-size: 10px; }
  .privacy-check, .form-error { grid-column: 1/-1; }
  .privacy-check { font-size: 7px !important; line-height: 1.2; }
  .contact-value { gap: 3px; }
  .contact-value span { padding: 5px 4px 5px 16px; font-size: 7.5px; }
  .contact-value span::before { left: 4px; top: 4px; }
  .form-error { min-height: 0; font-size: 8px; }
  .process { padding: 80px 0; }
  .process ol { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 26px 0; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process h3 { margin: 22px 0 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > div { text-align: left; }
}

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