/* =========================================================
   Pogromcy Upałów – klimatyzacja-piaseczno.pl
   System: kontur jak w logo (ciemna linia + twardy cień),
   niebieski = Pogromcy / chłód, żółty i pomarańcz = upał / energia.
   ========================================================= */

/* ---------- Fonty (lokalnie, bez Google Fonts – RODO) ---------- */
@font-face {
  font-family: "Boldonse";
  src: url("../fonts/boldonse.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-400i.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #17202A;          /* kontur z logo */
  --ink-2: #3A4856;
  --ink-3: #5A6977;
  --blue: #0078A8;         /* niebieski z logo */
  --blue-text: #006794;    /* niebieski do drobnego tekstu (AA) */
  --blue-light: #9BD3EF;
  --ice: #E2F1F9;          /* strefa chłodu */
  --ice-2: #F2F8FC;
  --white: #FFFFFF;
  --heat: #FFF1C4;         /* strefa upału */
  --sun: #FFC72C;          /* żółty z logo – energia, CTA */
  --orange: #F59B00;       /* pomarańcz z logo – upał */
  --sunlight: #FFE59A;
  --warm: #B86000;          /* ciepły akcent termostatu – cyfry (4.5:1) */
  --warm-text: #A85300;     /* ciepły akcent – drobny tekst (AA) */
  --steel: #C9D3DC;
  --red: #E2452F;

  /* Boldonse: wyłącznie H1 i numer w pasie hero. Cała reszta: Work Sans 400/700. */
  --display: "Boldonse", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --stroke: 2.5px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --hard: 4px 4px 0 var(--ink);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 76px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* Nagłówki poza hero: Work Sans 700 (tylko prawdziwe wagi 400 i 700).
   Im większy stopień, tym ciaśniejsze światło i interlinia. */
h1, h2, h3 {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
  font-synthesis: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--r-s);
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Przyciski: naklejka z konturem jak w logo ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.4em;
  font: 700 1rem/1.15 var(--body);
  text-decoration: none;
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: #FFD24F; }

.text-link {
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  transition: color .15s, text-underline-offset .15s;
}
.text-link:hover { color: var(--ink); text-underline-offset: .4em; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--heat);
  border-bottom: var(--stroke) solid transparent;
  transition: background-color .25s, border-color .25s;
}
.site-header.is-scrolled {
  background: var(--white);
  border-bottom-color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  height: var(--header-h);
}

.brand { flex: none; border-radius: 8px; }
.brand img { height: 50px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
}
.main-nav a {
  display: block;
  padding: .4em 0;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 3px no-repeat;
  transition: background-size .2s ease;
}
.main-nav a:hover { background-size: 100% 3px; }

.header-call { padding: .7em 1.1em; font-size: .95rem; }
.i-phone { width: 1.1em; height: 1.1em; fill: currentColor; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2.5px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero-heat {
  background: var(--heat);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
  padding-top: clamp(16px, 3vw, 40px);
}

.hero-copy {
  align-self: center;
  padding-bottom: clamp(32px, 4.5vw, 64px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-bottom: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-2);
}
.i-pin { width: 1.2em; height: 1.2em; fill: var(--orange); }

.hero-title {
  /* Boldonse ma bardzo wysoką wersalikę (1.19 em):
     mniejszy stopień i większa interlinia niż w typowym kroju. */
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, .9rem + 4.4vw, 5rem);
  line-height: 1.26;
  letter-spacing: 0;
}
.hero-title span { display: block; }
.hero-title .line-cool { color: var(--blue); }

.hero-mascot {
  justify-self: end;
  width: 100%;
  max-width: 620px;
  margin-bottom: -2px;           /* chowa płaskie cięcie za pasem z numerem */
}
.hero-mascot img { width: 100%; }

/* Pas z numerem: granica między upałem a chłodem */
.hero-band {
  position: relative;
  z-index: 2;
  display: block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.band-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding-block: clamp(20px, 2.4vw, 32px);
}
.band-label {
  max-width: 12ch;
  font-weight: 700;
  font-size: clamp(1rem, .85rem + .5vw, 1.25rem);
  line-height: 1.25;
}
.band-number {
  font-family: var(--display);
  font-size: clamp(2.8rem, 1rem + 6.2vw, 7rem);
  line-height: 1.1;
  color: var(--sun);
  white-space: nowrap;
  transition: color .2s ease;
}
.band-go {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(56px, 6vw, 84px);
  aspect-ratio: 1;
  margin-left: auto;
  background: var(--sun);
  border-radius: 50%;
  color: var(--ink);
  transition: transform .25s ease;
}
.band-go svg { width: 44%; height: 44%; fill: currentColor; }
.hero-band:hover .band-number { color: var(--white); }
.hero-band:hover .band-go { transform: rotate(-14deg) scale(1.06); }
.hero-band:focus-visible { outline-offset: -6px; outline-color: var(--sun); border-radius: 0; }

/* Strefa chłodu */
.hero-cool {
  background: var(--ice);
  padding-block: clamp(32px, 4.5vw, 60px);
}
.cool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.lead {
  max-width: 36ch;
  font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem);
  line-height: 1.5;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 28px;
}

/* Mini-termostat – lekka zabawa marką, nie panel sterowania.
   16–22 °C: chłodzenie (niebieski), 23–30 °C: grzanie (ciepły akcent).
   Układ: temperatura po lewej, opis, pionowy przycisk (+ / −) po prawej. */
.thermo-block {
  position: relative;               /* punkt odniesienia dla podpowiedzi (wersja A) */
  justify-self: end;
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}
.thermostat {
  --mode: var(--blue);
  --mode-text: var(--blue-text);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 28px;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hard);
}
.thermostat[data-mode="heat"] {
  --mode: var(--warm);
  --mode-text: var(--warm-text);
}

/* Pionowy przycisk (rocker): jedna bryła, cienka kreska pośrodku */
.thermo-rocker {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 46px;
  margin-left: 4px;
  overflow: hidden;
  background: var(--ice-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.thermo-step {
  display: grid;
  place-items: center;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease;
}
.thermo-step--up   { border-radius: 999px 999px 6px 6px; }
.thermo-step--down { border-radius: 6px 6px 999px 999px; }
.thermo-step svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round;
  transition: transform .1s ease;
}
.thermo-step:hover { background: var(--ice); }
.thermo-step:active { background: #D3E6F1; }
.thermo-step:active svg { transform: translateY(1px); }
.thermo-step:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: -5px;
}
.thermo-step--up:focus-visible   { border-radius: 999px 999px 6px 6px; }
.thermo-step--down:focus-visible { border-radius: 6px 6px 999px 999px; }
.thermo-step[aria-disabled="true"],
.thermo-step[aria-disabled="true"]:hover,
.thermo-step[aria-disabled="true"]:active {
  cursor: not-allowed;
  background: transparent;
}
.thermo-step[aria-disabled="true"] svg { opacity: .28; transform: none; }
.thermo-rocker-line {
  height: 1.5px;
  margin-inline: 11px;
  background: rgba(23, 32, 42, .3);
}

.thermo-display {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 1.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--mode);
  font-variant-numeric: lining-nums tabular-nums;
  transition: color .25s ease;
}
.thermo-value { display: inline-block; }
.thermo-value.is-tick { animation: thermo-tick .22s ease-out; }
@keyframes thermo-tick {
  from { opacity: .25; transform: translateY(var(--tick-from, .18em)); }
  to   { opacity: 1;   transform: none; }
}
.thermo-unit { font-size: .4em; margin: .12em 0 0 .08em; letter-spacing: 0; }
.thermo-caption {
  max-width: 13ch;
  font-weight: 700;
  line-height: 1.25;
}
.thermo-mode {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 6px;
  font-size: .875rem;
  color: var(--mode-text);
  transition: color .25s ease;
}
.thermo-mode svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.thermo-mode .i-heat,
.thermostat[data-mode="heat"] .thermo-mode .i-cool { display: none; }
.thermostat[data-mode="heat"] .thermo-mode .i-heat { display: block; }

/* ---------- WERSJA A: tooltip (ikonka „i” + podpowiedź) ----------
   Pokazuje się: po najechaniu (tylko urządzenia z myszką), po fokusie z klawiatury,
   po kliknięciu / tapnięciu (klasa .is-open z JS). Esc zamyka. */
.thermo-info {
  position: absolute;
  top: -12px;
  right: 78px;                      /* nad prawym końcem opisu, obok przycisku */
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  padding: 0;
  color: var(--ink-2);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.thermo-info::before {             /* większe pole dotyku niż sama ikonka */
  content: "";
  position: absolute;
  inset: -9px;
}
.thermo-info svg {
  width: 14px; height: 14px;
  fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round;
}
.thermo-info svg circle { stroke: none; }
.thermo-info svg path { fill: none; }
.thermo-info:hover,
.thermo-help.is-open .thermo-info { color: var(--ink); background: var(--sunlight); }
.thermo-info:focus-visible { border-radius: 50%; outline-offset: 2px; }

.thermo-tip {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 20px);
  z-index: 5;
  margin: 0;
  padding: 11px 16px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--ink-2);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-s);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .2s;
  pointer-events: none;
}
.thermo-tip::after {               /* strzałka wskazująca ikonkę */
  content: "";
  position: absolute;
  bottom: -7px;
  right: calc(78px + 12px - 6px);
  width: 12px; height: 12px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.thermo-help.is-open .thermo-tip,
.thermo-help:not(.is-dismissed) .thermo-info:focus-visible + .thermo-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
  pointer-events: auto;
}
@media (hover: hover) {
  .thermo-help:not(.is-dismissed):hover .thermo-tip {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
    pointer-events: auto;
  }
}
/* ---------- /WERSJA A ---------- */

/* ---------- WERSJA B: stały tekst pod badge'em ---------- */
.thermo-note {
  contain: inline-size;             /* nie poszerza bloku – dopasowuje się do szerokości badge'a */
  margin-top: 16px;
  padding-inline: 10px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
/* ---------- /WERSJA B ---------- */

/* =========================================================
   Sekcje – wspólne
   ========================================================= */
.section { padding-block: var(--section); }
.section--ice { background: var(--ice-2); }

.section-head {
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.section-head h2,
.contact h2,
.faq-head h2 {
  font-size: clamp(2rem, 1.25rem + 2.3vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section-head p {
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.section-head--split {
  max-width: none;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: end;
}
.section-head--split p { max-width: 46ch; }
/* Pomocnicza informacja pod opisem sekcji (np. o wizualizacjach AI) */
.section-head .section-note {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* Ikony w stylu logo */
.service-icon *,
.audience-card h3 svg * {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .s-ink { stroke: var(--ink); }
svg .s-blue { stroke: var(--blue); }
svg .s-sun { stroke: var(--sun); }
svg .thin { stroke-width: 2.5; }
svg .f-white { fill: var(--white); }
svg .f-blue { fill: var(--blue); }
svg .f-sun { fill: var(--sun); }
svg .f-sunlight { fill: var(--sunlight); }
svg .f-red { fill: var(--red); }
svg .f-steel { fill: var(--steel); }
svg .f-ice { fill: var(--ice); }
svg .f-ink { fill: var(--ink); }
svg .hose-out { stroke-width: 9; }
svg .hose-in { stroke-width: 4; }
svg .roof-out { stroke-width: 10; }
svg .roof-in { stroke-width: 4.5; }

/* ---------- Usługi ---------- */
.service-list {
  list-style: none;
  border-top: var(--stroke) solid var(--ink);
}
.service {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "icon title body";
  align-items: center;
  gap: 14px clamp(20px, 3.5vw, 56px);
  padding-block: clamp(26px, 3.2vw, 44px);
  border-bottom: var(--stroke) solid var(--ink);
}
.service-icon { grid-area: icon; width: 84px; height: 84px; }
.service h3 {
  grid-area: title;
  font-size: clamp(1.45rem, 1.15rem + .9vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.service-body { grid-area: body; }
.service-body p { max-width: 46ch; color: var(--ink-2); }
.service-body .text-link { display: inline-block; margin-top: 12px; }

/* ---------- Dla kogo ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.audience-card:nth-child(2) { margin-top: clamp(0px, 9vw, 128px); }
.audience-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 14px;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.audience-card h3 svg { flex: none; width: 52px; height: 52px; }
.audience-card p { max-width: 48ch; color: var(--ink-2); }
.audience-card .text-link { display: inline-block; margin-top: 14px; }

/* ---------- Zdjęcia: ta sama ramka co ilustracje ---------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ice) url("../images/placeholder-ac.svg") center 38% / min(62%, 320px) no-repeat;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-l);
}
.photo--portrait { aspect-ratio: 5 / 4; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Gdyby plik się nie wczytał: zostaje ramka z rysunkiem klimatyzatora (JS dodaje .is-empty) */
.photo.is-empty img { display: none; }
/* ---------- Wizualizacje (galeria) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}
.g-1 { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: auto; }
.g-2 { grid-column: 8 / 13; }
.g-3 { grid-column: 8 / 13; }
.g-4 { grid-column: 1 / 6; }
.g-5 { grid-column: 6 / 13; aspect-ratio: auto; }

/* ---------- Jak działamy: od upału do chłodu ---------- */
.steps {
  position: relative;
  display: grid;
  --steps-gap: clamp(22px, 3vw, 44px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--steps-gap);
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 31px; left: 32px; right: calc(25% - .75 * var(--steps-gap) - 32px);
  border-top: var(--stroke) dashed var(--ink);
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 24px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
}
.step--1 .step-num { background: var(--orange); }
.step--2 .step-num { background: var(--sun); }
.step--3 .step-num { background: var(--blue-light); }
.step--4 .step-num { background: var(--blue); color: var(--white); }
.step h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -.012em;
}
.step p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  display: grid;
  gap: 20px;
}
.faq-head p { max-width: 34ch; font-size: 1.15rem; color: var(--ink-2); }

.faq-list { border-top: var(--stroke) solid var(--ink); }
.faq-list details { border-bottom: var(--stroke) solid var(--ink); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 13px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 13px no-repeat,
    var(--white);
  transition: transform .2s ease, background-color .2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sun);
}
.faq-list summary:hover { color: var(--blue-text); }
.faq-answer { padding: 0 58px 24px 0; color: var(--ink-2); }
.faq-answer p { max-width: 60ch; }
.faq-answer a { font-weight: 700; color: var(--blue-text); }

/* =========================================================
   Wycena / kontakt
   ========================================================= */
.contact {
  padding-block: var(--section);
  background: var(--blue);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro { max-width: 40ch; margin-top: 20px; font-size: 1.15rem; }
.contact-phone {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.35rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--sun);
  text-decoration: none;
  white-space: nowrap;
}
.contact-phone:hover { color: var(--white); }
.contact-mail {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
}
.contact :focus-visible { outline-color: var(--sun); }

.reasons-title {
  margin-top: clamp(40px, 5vw, 60px);
  font-size: clamp(1.2rem, 1.05rem + .45vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -.018em;
}
.reasons { display: grid; gap: 14px; margin-top: 20px; list-style: none; }
.reasons li { display: flex; align-items: flex-start; gap: 14px; }
.reasons li::before {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317202A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Karta kontaktu: telefon (główne CTA) i e-mail */
.contact-card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  color: var(--ink);
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: 8px 8px 0 var(--ink);
}
.contact-card :focus-visible { outline-color: var(--blue); }
.contact-badge {
  position: absolute;
  top: -40px; right: 28px;
  width: 88px; height: 88px;
  background: var(--sun);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  transform: rotate(6deg);
}
.contact-card-title {
  margin-bottom: 22px;
  padding-right: 96px;
  font-size: clamp(1.4rem, 1.15rem + .7vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.022em;
}
.contact-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  color: var(--ink);
  text-decoration: none;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--hard);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.contact-cta + .contact-cta { margin-top: 16px; }
.contact-cta:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.contact-cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.contact-cta--call { background: var(--sun); }
.contact-cta--call:hover { background: #FFD24F; }
.contact-cta--mail { background: var(--ice-2); }
.contact-cta--mail:hover { background: var(--ice); }
.contact-cta-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.contact-cta-icon svg { width: 22px; height: 22px; fill: var(--ink); }
.i-stroke { fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-cta-icon .i-stroke { color: var(--ink); }
.contact-cta-text { display: grid; min-width: 0; }
.contact-cta-label { font-size: .9rem; line-height: 1.3; color: var(--ink-2); }
.contact-cta-value { font-weight: 700; line-height: 1.2; }
.contact-cta-value--phone {
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem);
  letter-spacing: -.025em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.contact-cta-value--mail { font-size: 1.02rem; overflow-wrap: anywhere; }

.contact-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--heat);
  border-radius: var(--r-s);
}
.contact-hint svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }

/* =========================================================
   Stopka
   ========================================================= */
.site-footer {
  padding-block: 64px 28px;
  color: #CFD9E2;
  background: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr 1fr .8fr;
  gap: 40px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--heat);
  border: var(--stroke) solid var(--white);
  border-radius: var(--r-l, 26px);
  box-shadow: 4px 4px 0 var(--sun);
}
.footer-logo img { width: 132px; }
.footer-brand p { max-width: 30ch; }
.footer-h {
  margin-bottom: 14px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--white);
}
.footer-list { display: grid; gap: 8px; list-style: none; }
.footer-company { font-style: normal; line-height: 1.6; }
.footer-company-name { display: block; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.footer-ids { margin-top: 10px; line-height: 1.6; color: #AEBBC7; font-variant-numeric: tabular-nums; }
.site-footer a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  font-size: .875rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
}
.footer-legal a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .25em; }
.footer-legal a:hover { text-decoration-color: currentColor; }
.footer-legal a[aria-current="page"] { color: var(--sun); text-decoration-color: currentColor; }

/* =========================================================
   Strony prawne: polityka prywatności, regulamin
   ========================================================= */
.simple-nav { margin-left: auto; }
.simple-nav a {
  display: block;
  padding: .4em 0;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 3px no-repeat;
  transition: background-size .2s ease;
}
.simple-nav a:hover { background-size: 100% 3px; }
.site-header--simple .header-call { margin-left: 0; }

.legal-container { max-width: calc(760px + 2 * var(--gutter)); }
.legal-hero {
  padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4.5vw, 60px);
  background: var(--heat);
  border-bottom: var(--stroke) solid var(--ink);
}
.legal-hero h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.legal-lead { max-width: 58ch; margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }
.legal-meta { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}
.back-link:hover { color: var(--ink); }
.back-link svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.prose { padding-block: clamp(40px, 5.5vw, 72px) 0; line-height: 1.7; }
.prose section { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #D5E2EA;
}
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.prose h2 .num { color: var(--blue-text); font-variant-numeric: tabular-nums; }
.prose p,
.prose ul,
.prose .data-card { margin-top: .9em; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose a,
.legal-end a:not(.back-link) {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.prose a:hover,
.legal-end a:not(.back-link):hover { color: var(--ink); }
.data-card {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 16px 22px;
  font-style: normal;
  line-height: 1.6;
  background: var(--ice-2);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
}
.legal-end {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin-top: 48px;
  padding-block: 28px clamp(56px, 7vw, 96px);
  border-top: var(--stroke) solid var(--ink);
}

/* =========================================================
   Strona 404
   ========================================================= */
.error-page { background: var(--heat); }
.error-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px var(--gutter);
}
.error-card {
  width: 100%;
  max-width: 520px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: var(--white);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: 8px 8px 0 var(--ink);
}
.error-logo { display: inline-block; border-radius: var(--r-m); }
.error-logo img { width: 150px; }
.error-card h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
}
.error-phone {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  white-space: nowrap;
}
.error-phone:hover { color: var(--ink); }

/* ---------- Pasek telefonu (mobile) ---------- */
.callbar { display: none; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav a { font-size: .9rem; }
  .header-call-text { display: none; }
  .header-call { width: 48px; height: 48px; padding: 0; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }

  .nav-toggle { display: grid; place-items: center; }
  .header-call { margin-left: auto; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: var(--white);
    border-top: var(--stroke) solid var(--ink);
    border-bottom: var(--stroke) solid var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .main-nav li + li { border-top: 1px solid #D5E2EA; }
  .main-nav a { padding: 14px 0; font-size: 1.15rem; background: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-mascot { justify-self: center; max-width: 480px; }

  .cool-grid { grid-template-columns: 1fr; }
  .thermo-block { justify-self: start; }

  .service {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "icon title" "body body";
  }
  .service-icon { width: 64px; height: 64px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { margin-top: 24px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .thermostat { gap: 14px; padding: 12px 12px 12px 22px; }
  .thermo-rocker { width: 44px; margin-left: 2px; }
  .thermo-step { height: 40px; }
  .thermo-info { right: 70px; }
  .thermo-tip::after { right: calc(70px + 12px - 6px); }

  body.has-callbar { padding-bottom: 92px; }

  .band-inner { flex-wrap: wrap; gap: 6px 16px; }
  .band-label { max-width: none; font-size: .95rem; }
  .band-number { flex-basis: 100%; }
  .band-go { display: none; }

  .audience-grid { grid-template-columns: 1fr; gap: 56px; }
  .audience-card:nth-child(2) { margin-top: 0; }

  .section-head--split { grid-template-columns: 1fr; }

  /* Na telefonie galerię przewija się palcem w bok */
  .gallery {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }
  .gallery .photo {
    flex: 0 0 84%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
  .step-num { grid-row: span 2; margin: 0; }
  .steps::before { display: none; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 64px; bottom: -32px; left: 31px;
    border-left: var(--stroke) dashed var(--ink);
  }

  .faq-answer { padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr; }

  .callbar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    gap: 8px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .callbar.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .callbar-call,
  .callbar-contact {
    display: flex;
    align-items: center;
    border: var(--stroke) solid var(--ink);
    border-radius: 999px;
    box-shadow: var(--hard);
    text-decoration: none;
    font-weight: 700;
  }
  .callbar-call {
    flex: 1;
    gap: 10px;
    padding: 5px 16px 5px 5px;
    font-size: 1.1rem;
    line-height: 1.1;
    background: var(--sun);
  }
  .callbar-call img {
    width: 44px; height: 44px;
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 50%;
  }
  .callbar-call small { display: block; font-size: .78rem; font-weight: 400; }
  .callbar-contact { padding: 0 20px; background: var(--white); }
}

@media (max-width: 380px) {
  .thermostat { gap: 12px; padding: 10px 10px 10px 18px; }
  .thermo-rocker { width: 42px; }
  .thermo-step { height: 38px; }
  .thermo-display { font-size: 2.3rem; }
  .thermo-info { right: 64px; }
  .thermo-tip::after { right: calc(64px + 12px - 6px); }
  .thermo-caption { max-width: 11ch; font-size: .95rem; }
}

/* ---------- Ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
