/* wycenapompy.pl — "Ciepły dom, prosty rachunek" */
:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #5b6670;
  --accent: #d9480f;
  --accent-deep: #b23a0a; /* accent for small text on light backgrounds (AA) */
  --accent-soft: #fbe3d6;
  --secondary: #2b7a78;
  --secondary-deep: #1f5c5a;
  --secondary-soft: #dcecea;
  --line: #eadfce;
  --head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 56px); }
.sec { padding-block: clamp(64px, 9vw, 128px); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; }
.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { margin-top: 16px; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px;
  font-family: var(--head); font-weight: 700; font-size: 1.1875rem; line-height: 1.15;
  text-decoration: none; text-align: center;
  border-radius: 999px; border: 0;
  background: var(--accent); color: #fff;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 46px; padding: 8px 18px; font-size: 1rem; background: var(--accent-deep); white-space: nowrap; }
.btn-small:hover { background: #8f2e07; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Header */
.top { padding-block: 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent-deep); font-weight: 700; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }
@media (max-width: 400px) { .top .wrap { gap: 10px; } .brand { font-size: 1rem; gap: 8px; } .brand svg { width: 28px; height: 28px; } .top .btn { padding-inline: 14px; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { padding-block: clamp(20px, 4vw, 56px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "head" "calc" "art"; }
.hero-head { grid-area: head; }
.hero-head .lead { margin-top: 20px; color: var(--ink); }
.hero-art { grid-area: art; max-width: 520px; margin-inline: auto; width: 100%; }
.calc { grid-area: calc; }
.hero-notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); font-weight: 600; }
.hero-notes li { display: flex; gap: 10px; align-items: flex-start; }
.hero-notes svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); grid-template-areas: "head calc" "art calc"; column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .hero-head { padding-top: clamp(16px, 3vw, 48px); }
  .hero-art { margin: 0; align-self: end; }
}

/* Calculator */
.calc {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 2px 0 var(--line), 0 28px 60px -32px rgba(178, 58, 10, .35);
  border: 1px solid var(--line);
}
.calc-title { font-size: 1.55rem; }
.calc-sub { color: var(--muted); margin-top: 6px; font-size: 1rem; }

/* thermometer progress: one segment warms up per answered question */
.heat { display: flex; align-items: center; margin: 20px 0 6px; }
.heat-bulb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex: none; margin-right: -6px; position: relative; z-index: 1; }
.heat-tube { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px 4px 4px 8px; height: 16px; border-radius: 0 999px 999px 0; background: var(--secondary-soft); }
.heat-tube i { border-radius: 999px; background: transparent; transition: background-color .35s; }
.heat-tube i:first-child { border-radius: 0 999px 999px 0; }
.calc:has(#q-miejsce input:checked) .heat-tube i:nth-child(1),
.calc:has(#q-metraz input:checked) .heat-tube i:nth-child(2),
.calc:has(#q-ocieplenie input:checked) .heat-tube i:nth-child(3),
.calc:has(#q-ogrzewanie input:checked) .heat-tube i:nth-child(4) { background: var(--accent); }
.heat-status { font-size: .9375rem; color: var(--muted); min-height: 1.5em; }

.q { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.q legend { font-family: var(--head); font-weight: 700; font-size: 1.125rem; padding: 0; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.q legend span { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50px; padding: 8px 10px; text-align: center;
  border: 2px solid var(--line); border-radius: var(--r-s);
  background: var(--bg); font-weight: 700; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--secondary); }
.chip input:checked + span { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chips-num .chip span { min-height: 76px; }
.chips-num strong { font-family: var(--head); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.chips-num small { font-size: .875rem; font-weight: 600; margin-top: 4px; opacity: .85; }
@media (min-width: 520px) { .chips-num { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.calc-send { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }
.calc-send .btn { width: 100%; }
.calc-send p { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.calc-send p a { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); position: relative; }
.step-n { font-family: var(--head); font-weight: 800; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .8; letter-spacing: -0.05em; color: var(--accent); display: block; margin-bottom: 20px; }
.step p { margin-top: 10px; color: var(--muted); }
.step:nth-child(2) { background: var(--accent-soft); border-color: transparent; }
.step:nth-child(2) p { color: var(--ink); }
.step:nth-child(3) { background: var(--secondary-soft); border-color: transparent; }
.step:nth-child(3) .step-n { color: var(--secondary-deep); }
.step:nth-child(3) p { color: var(--ink); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .step:nth-child(2) { margin-top: 40px; }
  .step:nth-child(3) { margin-top: 80px; }
}

/* Receipt */
.bill-sec { background: #f4ebdc; }
.bill-grid { display: grid; gap: 40px; align-items: center; }
.bill-copy p + p { margin-top: 14px; }
.bill-copy .lead { margin-top: 18px; }
.bill-copy .btn { margin-top: 28px; }
.bill {
  background: var(--surface); border-radius: var(--r-m) var(--r-m) 0 0;
  padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) 46px;
  max-width: 520px; width: 100%; margin-inline: auto;
  -webkit-mask: radial-gradient(circle 10px at 50% 100%, transparent 98%, #000) 50% 100% / 30px 100% repeat-x;
  mask: radial-gradient(circle 10px at 50% 100%, transparent 98%, #000) 50% 100% / 30px 100% repeat-x;
}
.bill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.bill-top span:last-child { color: var(--muted); font-family: var(--body); font-weight: 600; font-size: .9375rem; }
.bill dl { margin: 0; }
.bill-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 2px dashed var(--line); align-items: end; }
.bill-row dt { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.bill-row dd { margin: 0; }
.bill-row .unit { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: .9; letter-spacing: -0.03em; color: var(--accent); grid-row: span 2; align-self: center; white-space: nowrap; }
.bill-row .unit.teal { color: var(--secondary); }
.bill-row .desc { color: var(--muted); font-size: 1rem; }
.bill-foot { padding-top: 18px; font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) { .bill-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); } }

/* Area */
.area-grid { display: grid; gap: 32px; align-items: center; }
.area-map { max-width: 440px; width: 100%; margin-inline: auto; }
.area-copy .lead { margin-top: 18px; }
.towns { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.towns li:nth-child(2) { color: var(--secondary); }
.towns li:nth-child(3) { color: var(--accent); }
.area-note { margin-top: 24px; max-width: 34em; }
.area-note a { font-weight: 700; color: var(--accent-deep); overflow-wrap: anywhere; }
@media (min-width: 900px) { .area-grid { grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(48px, 7vw, 112px); } }

/* Installers */
.pros { background: var(--secondary-deep); color: #fff; }
.pros-grid { display: grid; gap: 40px; }
.pros .lead { color: #e4f1f0; margin-top: 18px; }
.pros .btn { margin-top: 30px; }
.pros-mail { margin-top: 14px; font-size: 1rem; color: #e4f1f0; }
.pros-mail a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.pros-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pros-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.pros-list li:last-child { border-bottom: 0; }
.pros-list svg { width: 52px; height: 52px; }
.pros-list p { color: #e4f1f0; margin-top: 4px; }
@media (min-width: 900px) { .pros-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: center; } }

/* FAQ */
.faq-grid { display: grid; gap: 28px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M11 17h12M17 11v12' stroke='%23b23a0a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 54px 24px 0; color: var(--muted); max-width: 40em; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(48px, 7vw, 112px); } .faq-grid .sec-head { margin-bottom: 0; } }

/* Closing + footer */
.close { background: var(--accent); color: #fff; text-align: left; }
.close .wrap { display: grid; gap: 28px; align-items: center; }
.close h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
.close p { font-size: 1.25rem; font-weight: 700; margin-top: 14px; max-width: 30em; }
@media (min-width: 900px) { .close .wrap { grid-template-columns: 1fr auto; } }

.foot { background: var(--ink); color: #e9e4da; padding-block: 48px; }
.foot .wrap { display: grid; gap: 28px; }
.foot .brand { color: #fff; }
.foot .brand b { color: #ff9a6b; }
.foot-mail { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 4.6vw, 2.2rem); letter-spacing: -0.02em; color: #fff; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { padding: 6px 0; }
.foot small { font-size: .9375rem; color: #c3c9cc; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: end; } .foot-right { text-align: right; } .foot nav { justify-content: flex-end; } }

/* One motion moment: the heat pump fan turns */
.fan { transform-origin: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .fan { animation: spin 7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
