/* ==========================================================================
   KadVolt Energy Consulting — strona firmowa
   ========================================================================== */

/* --- Tokeny --------------------------------------------------------------- */
:root {
  /* granat */
  --navy-950: #071728;
  --navy-900: #0A1F33;
  --navy-800: #0D2B47;
  --navy-700: #0E3A63;
  --navy-600: #00467A;
  --navy-100: #DCE7F2;
  --navy-chart: #2F4D70;

  /* żółty */
  --volt-500: #FFC21A;
  --volt-400: #FFCD3C;
  --volt-300: #FFDB70;
  --volt-50:  #FFF7DC;

  /* neutralne */
  --ink:      #0A1F33;
  --ink-2:    #45586B;
  --ink-3:    #5F7183;
  --mist-50:  #F4F7FA;
  --mist-100: #EAF0F5;
  --line:     #DCE4EC;
  --line-2:   #C9D4DF;
  --white:    #FFFFFF;

  /* stany */
  --save:     #0E7A55;
  --save-bg:  #E3F4EC;
  --error:    #B42318;

  /* typografia */
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* kształt */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  /* cień (zawsze granatowy) */
  --shadow-sm: 0 1px 2px rgba(10, 31, 51, 0.06), 0 2px 6px rgba(10, 31, 51, 0.05);
  --shadow:    0 2px 4px rgba(10, 31, 51, 0.04), 0 12px 32px rgba(10, 31, 51, 0.10);
  --shadow-lg: 0 4px 8px rgba(10, 31, 51, 0.05), 0 28px 64px rgba(10, 31, 51, 0.18);

  /* rytm */
  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 76px;

  /* ruch */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.2s var(--ease-out);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--volt-300); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--volt-500); }
html { scrollbar-color: var(--line-2) var(--mist-50); }
input, textarea { caret-color: var(--navy-600); }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 200;
  background: var(--navy-900); color: var(--white); font-weight: 600;
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform var(--t);
}
.skip-link:focus { transform: none; }

/* --- Typografia ----------------------------------------------------------- */
.h-display {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.h-section {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.h-sub {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 680;
}
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --- Przyciski ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 650; font-size: 1rem; line-height: 1.1; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--volt-500); color: var(--navy-900); box-shadow: 0 1px 0 rgba(10,31,51,0.12), inset 0 -2px 0 rgba(10,31,51,0.08); }
.btn--primary:hover { background: var(--volt-400); box-shadow: 0 6px 18px rgba(10, 31, 51, 0.16), inset 0 -2px 0 rgba(10,31,51,0.08); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy-600); color: var(--navy-600); }
.btn--outline-light { border-color: rgba(255,255,255,0.28); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 650; color: var(--navy-600);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px;
  transition: text-decoration-color var(--t), gap var(--t);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { text-decoration-color: var(--volt-500); gap: 0.6rem; }
.on-dark .link-arrow { color: var(--volt-500); }

/* --- Nagłówek ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(7, 23, 40, 0.35); }
.site-header :focus-visible { outline-color: var(--volt-500); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-right: auto; }
.site-nav a {
  position: relative;
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  font-weight: 550; font-size: 0.98rem; color: rgba(255, 255, 255, 0.78);
  transition: color var(--t), background-color var(--t);
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px; background: var(--volt-500);
}
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--white); font-variant-numeric: tabular-nums; }
.header-phone svg { width: 18px; height: 18px; color: var(--volt-500); }
.header-phone:hover { color: var(--volt-400); }
.header-actions .btn { min-height: 46px; padding: 0.7rem 1.15rem; font-size: 0.96rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-sm);
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--white); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* --- Sekcje --------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist-50); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.74); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 5.5rem);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  overflow: clip;
}
.hero-bg, .page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 40, 0.97) 0%, rgba(7, 23, 40, 0.9) 38%, rgba(7, 23, 40, 0.45) 72%, rgba(7, 23, 40, 0.3) 100%),
    linear-gradient(0deg, rgba(7, 23, 40, 0.7) 0%, rgba(7, 23, 40, 0) 35%);
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, 0.82); }
.hl { color: var(--volt-500); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.35rem; }
.hero .lead { margin-bottom: 2rem; }

.hero-form {
  max-width: 34rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.hero-form .form-row { display: flex; gap: 0.6rem; }
.hero-form .form-row input { flex: 1 1 auto; min-width: 0; }
.hero-form .consent { margin-top: 0.85rem; padding-inline: 0.15rem; }
.hero-form .form-status { padding-inline: 0.15rem; }

.reassure { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.5rem; }
.reassure li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 550; color: var(--ink-2); }
.reassure svg { width: 18px; height: 18px; color: var(--save); flex: none; }
.on-dark .reassure li { color: rgba(255, 255, 255, 0.86); }
.on-dark .reassure svg { color: var(--volt-500); }

/* karta analizy */
.hero-visual { display: flex; justify-content: flex-end; }

.analysis {
  position: relative;
  width: min(26rem, 100%);
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 31, 51, 0.06);
  overflow: hidden;
}
.analysis-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.analysis-title { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.analysis-title svg { width: 18px; height: 18px; color: var(--navy-600); }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.55rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 650; letter-spacing: 0.01em;
  background: var(--mist-100); color: var(--ink-2);
  white-space: nowrap;
}
.tag--volt { background: var(--volt-50); color: #7A5600; }
.tag--save { background: var(--save-bg); color: var(--save); }
.tag--navy { background: var(--navy-100); color: var(--navy-700); }

.analysis-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--mist-100);
  transition: background-color 0.5s var(--ease-out);
}
.analysis-list li.is-lit { background: var(--volt-50); }
.analysis-list .a-name { font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.analysis-list .a-detail { grid-column: 1; font-size: 0.82rem; color: var(--ink-3); }
.analysis-list .a-value { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; color: var(--save); font-variant-numeric: tabular-nums; font-size: 0.98rem; }
.analysis-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.15rem 1.05rem;
  background: var(--navy-900); color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
}
.analysis-total strong { color: var(--volt-500); font-size: 1.4rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* --- Pasek logotypów ------------------------------------------------------ */
.logos { padding-block: clamp(2rem, 4vw, 2.75rem); background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.logos-inner { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; align-items: center; }
.logos-label { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
.logo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.logo-slot {
  display: grid; place-items: center;
  height: 64px; border-radius: var(--r-sm);
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; font-weight: 550;
  text-align: center;
}
.logo-slot img { max-height: 36px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.75; transition: filter var(--t), opacity var(--t); }
.logo-slot img:hover { filter: none; opacity: 1; }

/* --- Problem / faktura ---------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--top { align-items: start; }
.photo {
  border-radius: var(--r-lg); overflow: hidden; background: var(--mist-100);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }

.leak-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.leak { padding: 1.35rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.leak-cost { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-top: 0.7rem; font-size: 0.88rem; color: var(--ink-3); }
.leak-cost strong { color: var(--save); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon-box { display: inline-grid; place-items: center; color: var(--navy-600); flex: none; }
.icon-box svg { width: 26px; height: 26px; }
.leak h3 { font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.leak p { font-size: 0.97rem; margin-top: 0.3rem; }

/* --- Kroki ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); counter-reset: step; position: relative; }
.step { position: relative; padding-top: 4.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--volt-500);
  font-weight: 750; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 64px; right: -1rem;
  height: 0; border-top: 2px dashed var(--line-2);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.98rem; }

/* --- Wyniki (granat) ------------------------------------------------------ */
.results { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.results .h-section { margin-bottom: 1.1rem; }

.chart {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.chart-head h3 { font-size: 1.05rem; }
.chart-head span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); height: 260px; padding-top: 2.4rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.bar { position: relative; height: 100%; }
.bar-value { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 0.55rem); text-align: center; font-weight: 700; color: var(--white); font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bar-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--h); border-radius: 8px 8px 0 0;
  background: var(--navy-chart);
  transform-origin: bottom; transition: transform 1.1s var(--ease-out);
}
.bar--now .bar-fill { background: var(--volt-500); }
.chart.is-pending .bar-fill { transform: scaleY(0.04); }
.bar-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 0.75rem; text-align: center; font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; }
.chart-note { margin-top: 1.25rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* --- Usługi (lista) ------------------------------------------------------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 2rem 2rem 2.1rem 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.85rem; align-items: start; margin-bottom: 0.2rem; }
.service p { flex: 1; }
.service:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.service p { font-size: 0.98rem; }
.service .link-arrow { margin-top: 0.35rem; justify-self: start; }

/* --- O nas teaser --------------------------------------------------------- */
.quote {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r);
  background: var(--volt-50);
  color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.4; font-weight: 600; letter-spacing: -0.012em;
}
.quote footer { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.lead--dark { color: rgba(255,255,255,0.74); margin-top: 1.1rem; }
.values--first { margin-top: 2rem; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.value { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; }
.value svg { width: 22px; height: 22px; color: var(--navy-600); margin-top: 0.15rem; }
.value h3 { font-size: 1.02rem; }
.value p { font-size: 0.94rem; margin-top: 0.2rem; }

/* --- Panel unijny --------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-body { padding: clamp(2rem, 4.5vw, 3.5rem); }
.feature-body .h-sub { margin: 1rem 0 0.9rem; }
.feature-media { position: relative; min-height: 320px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.65rem; font-size: 0.98rem; color: var(--ink); }
.checks svg { width: 20px; height: 20px; color: var(--save); margin-top: 0.15rem; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-size: 1.12rem; font-weight: 620; color: var(--ink); letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--navy-600); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy-600); }
.faq-body { padding: 0 3rem 1.5rem 0.25rem; max-width: 44rem; }
.faq-body p + p { margin-top: 0.75rem; }

/* --- CTA końcowe ---------------------------------------------------------- */
.cta-band { background: var(--volt-500); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  color: var(--navy-900);
}
.cta h2 { color: var(--navy-900); }
.cta p { color: #3D3200; margin-top: 1rem; max-width: 30em; }
.cta-form { position: relative; background: var(--white); border-radius: var(--r); padding: 1.25rem; box-shadow: 0 18px 40px rgba(10, 31, 51, 0.16); }
.cta-form .form-row { display: flex; gap: 0.6rem; }
.cta-form .form-row input { flex: 1 1 auto; min-width: 0; }
.cta-form .consent { margin-top: 0.85rem; }
.cta-call { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; font-weight: 600; }
.call-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cta-call a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; border-bottom: 2px solid rgba(10,31,51,0.25); transition: border-color var(--t); }
.cta-call a:hover { border-color: var(--navy-900); }
.cta-call svg { width: 20px; height: 20px; }
.cta-call .btn { border-bottom: 0; font-size: 1rem; }
.cta-call .btn svg { width: 18px; height: 18px; }

/* --- Formularze ----------------------------------------------------------- */
input[type="email"], input[type="text"], input[type="tel"], textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--t), box-shadow var(--t);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, textarea:hover { border-color: #AFBDCB; }
input:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(0, 70, 122, 0.14); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }

.field { display: grid; gap: 0.45rem; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 1.1rem; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 450; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.field-row > .field { margin-top: 0; }
.field-error { font-size: 0.86rem; color: var(--error); font-weight: 550; min-height: 0; }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.65rem; font-size: 0.84rem; line-height: 1.5; color: var(--ink-3); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0.08rem 0 0; accent-color: var(--navy-600); cursor: pointer; }
.consent a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--error); }

.form-status { font-size: 0.93rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status { margin-top: 0.85rem; display: flex; align-items: center; gap: 0.55rem; }
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status[data-state="ok"] { color: var(--save); }
.form-status[data-state="error"] { color: var(--error); }
form.is-sent .form-row, form.is-sent .consent, form.is-sent .field, form.is-sent .field-row, form.is-sent .form-submit { display: none; }
form.is-sent .form-status {
  margin-top: 0; padding: 1rem 1.1rem; border-radius: var(--r-sm);
  background: var(--save-bg); font-size: 1.02rem;
}

/* --- Podstrony: nagłówek -------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  background: var(--navy-950); color: rgba(255, 255, 255, 0.8);
  border-bottom: 4px solid var(--volt-500);
}
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 23, 40, 0.96) 0%, rgba(7, 23, 40, 0.86) 45%, rgba(7, 23, 40, 0.5) 100%); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.page-hero .checks li { color: rgba(255, 255, 255, 0.84); }
.page-hero .checks strong { color: var(--white); }
.page-hero .checks svg { color: var(--volt-500); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.page-hero h1 { margin-bottom: 1.25rem; }
.crumbs { display: flex; gap: 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.25rem; }
.crumbs a { color: var(--volt-500); font-weight: 550; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Usługi: spis i sekcje ------------------------------------------------ */
.svc-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.svc-toc p { font-size: 0.85rem; font-weight: 650; color: var(--ink-3); margin-bottom: 0.75rem; }
.svc-toc ol { display: grid; gap: 0.15rem; }
.svc-toc a {
  display: block; padding: 0.5rem 0.8rem; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 550; color: var(--ink-2); line-height: 1.35;
  transition: color var(--t), background-color var(--t);
}
.svc-toc a:hover { color: var(--ink); background: var(--mist-50); }
.svc-toc a.is-active { color: var(--ink); font-weight: 700; background: var(--mist-100); }

.svc { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--line); }
.svc:first-child { border-top: none; padding-top: 0; }
.svc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.svc-head .icon-box svg { width: 30px; height: 30px; }
.svc h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.svc-body p + p { margin-top: 1rem; }
.svc-side {
  border-radius: var(--r); background: var(--mist-50); border: 1px solid var(--line);
  padding: 1.35rem 1.4rem;
}
.svc-side h3 { font-size: 0.95rem; margin-bottom: 0.85rem; }
.svc-side .checks { margin: 0; gap: 0.6rem; }
.svc-side .checks li { font-size: 0.94rem; }
.svc-photo { margin-top: 1.75rem; aspect-ratio: 21 / 9; }

.code-line {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem;
}
.code-line .tag { font-size: 0.82rem; padding: 0.3rem 0.65rem; }

/* --- O nas ---------------------------------------------------------------- */
.prose-lg p { font-size: 1.12rem; line-height: 1.7; }
.prose-lg p + p { margin-top: 1.1rem; }
.map-card {
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow);
}
.map-card svg.map { width: 100%; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.9rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.map-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }


/* --- Kontakt -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-card .consent { margin-top: 1.35rem; }
.form-submit { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-submit .small { color: var(--ink-3); }
.contact-aside { display: grid; gap: 1rem; }
.contact-item {
  display: grid; grid-template-columns: 26px 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
}
a.contact-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.contact-item .k { display: block; font-size: 0.85rem; color: var(--ink-3); font-weight: 550; }
.contact-item .v { display: block; font-size: 1.08rem; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.next-steps { margin-top: 0.5rem; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--navy-900); color: rgba(255,255,255,0.75); }
.next-steps h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.next-steps ol { display: grid; gap: 0.85rem; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; font-size: 0.95rem; counter-increment: ns; }
.next-steps li::before { content: counter(ns); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--volt-500); color: var(--navy-900); font-weight: 750; font-size: 0.82rem; }

/* --- Polityka (tekst) ----------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 2.75rem 0 0.85rem; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.prose li { position: relative; padding-left: 1.4rem; }
.prose li::before { content: ""; position: absolute; left: 0.2rem; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--volt-500); box-shadow: 0 0 0 2px var(--volt-50); }
.prose a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose-meta { padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--mist-50); border: 1px solid var(--line); margin-bottom: 2.5rem; font-size: 0.97rem; }

/* --- Stopka --------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.66); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 24em; }
.footer-col h2 { font-size: 0.95rem; color: var(--white); font-weight: 650; margin-bottom: 1rem; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { transition: color var(--t); }
.footer-col a:hover { color: var(--volt-500); }
.footer-phone { color: var(--white); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; }
.footer-bottom a:hover { color: var(--volt-500); }
.social { display: inline-flex; align-items: center; gap: 0.5rem; }
.social svg { width: 18px; height: 18px; }

/* --- Wejście (tylko z JS, treść widoczna domyślnie) ----------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }


/* --- O nas: dodatki ------------------------------------------------------- */
.reach-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--mist-100); gap: 3px; }
.reach-bar span { width: var(--w); }
.reach-a { background: var(--volt-500); }
.reach-b { background: var(--navy-600); }
.reach-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.reach-legend div { display: grid; grid-template-columns: 12px 1fr; column-gap: 0.6rem; row-gap: 0.15rem; align-items: center; align-content: start; }
.reach-legend div::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--volt-500); }
.reach-legend div + div::before { background: var(--navy-600); }
.reach-legend span { grid-column: 2; }
.reach-legend strong { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.reach-legend span { font-size: 0.9rem; color: var(--ink-3); line-height: 1.4; }
.diff { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.diff-title { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.diff p + p { margin-top: 0.9rem; }


/* --- Pasma kolorowe ------------------------------------------------------- */
.section--volt { background: var(--volt-500); color: #3D3200; }
.section--volt h2, .section--volt h3 { color: var(--navy-900); }
.section--volt .lead, .section--volt p { color: #3D3200; }
.section--volt .step::before { color: var(--volt-500); }
.section--volt .step:not(:last-child)::after { border-color: rgba(10, 31, 51, 0.35); }
.section--volt :focus-visible { outline-color: var(--navy-900); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.after-list { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.after-list .small { color: var(--ink-3); }
.results-actions { margin-top: 2rem; }

/* pasek "zacznij od analizy" */
.cta-strip { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding-block: clamp(2.25rem, 4.5vw, 3rem); }
.cta-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
.cta-strip p { margin-top: 0.35rem; }
.cta-strip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cta-strip .header-phone { font-size: 1.05rem; }

.svc-side .link-arrow { margin-top: 1rem; }

/* na ciemnym tle cień neutralny (czarny), nie granatowy */
.on-dark .hero-form, .on-dark .analysis { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 28px 60px rgba(0, 0, 0, 0.4); }

/* --- Strona: bezpłatna analiza -------------------------------------------- */
.offer-hero .page-hero-grid { align-items: center; }
.offer-form { background: var(--white); color: var(--ink-2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.25rem); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.offer-form h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.offer-form .intro { font-size: 0.95rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.offer-form .consent { margin-top: 1.2rem; }
.offer-form .form-submit { margin-top: 1.25rem; }
.offer-form .btn { width: 100%; }
.offer-hero .reassure { margin-top: 2rem; }
.price-line { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 1.75rem; color: var(--white); }
.price-line strong { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--volt-500); font-variant-numeric: tabular-nums; }
.price-line span { font-size: 1.05rem; font-weight: 600; max-width: 17em; line-height: 1.35; }

.check-list { border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.check-list .icon-box { grid-row: span 2; margin-top: 0.1rem; }
.check-list h3 { font-size: 1.12rem; }
.check-list p { grid-column: 2; font-size: 0.98rem; }
.check-list .tag { grid-column: 3; grid-row: 1; }

.deliver { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.deliver .checks li { color: rgba(255, 255, 255, 0.86); font-size: 1.02rem; }
.deliver .checks svg { color: var(--volt-500); }
.deliver .analysis { margin-inline: auto; }

.prep { display: grid; gap: 1rem; margin-top: 1.75rem; }
.prep li { display: grid; grid-template-columns: 26px 1fr; gap: 0.85rem; font-size: 1.02rem; color: var(--ink); }
.prep li svg { width: 22px; height: 22px; color: var(--navy-600); margin-top: 0.15rem; }
.prep li span small { display: block; color: var(--ink-3); font-size: 0.92rem; margin-top: 0.15rem; }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .logos-inner { grid-template-columns: 1fr; gap: 1rem; }
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .results, .feature, .cta, .page-hero-grid, .contact-grid, .svc-body { grid-template-columns: minmax(0, 1fr); }
  .feature-media { min-height: 260px; order: -1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service:not(:nth-child(3n+1)) { padding: 1.75rem 1.5rem 1.85rem 0; border-left: none; }
  .service:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-toc { position: static; }
  .svc-toc ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .svc-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.9rem; }
  .svc-toc a.is-active { border-color: var(--navy-600); background: var(--white); }
  .split .photo--tall { aspect-ratio: 3 / 2; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--navy-950);
    border-bottom: 3px solid var(--volt-500);
    box-shadow: 0 24px 40px rgba(7, 23, 40, 0.4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out), visibility 0.25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 0.95rem 0.25rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.08rem; }
  .site-nav a:hover { background: transparent; }
  .site-nav a[aria-current="page"]::after { left: 0.25rem; right: auto; width: 1.5rem; bottom: 0.45rem; }
  .site-nav .nav-mobile-only { display: flex; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .step { padding: 0 0 0 4.5rem; min-height: 48px; }
  .step:not(:last-child)::after { top: 60px; left: 23px; right: auto; bottom: -1.5rem; width: 0; height: auto; border-top: none; border-left: 2px dashed var(--line-2); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
.nav-mobile-only { display: none; }
.site-nav .nav-mobile-only { flex-direction: column; gap: 0.75rem; padding-top: 1.25rem; border: none; }
.site-nav .nav-mobile-only a { border: none; }
.site-nav .nav-mobile-only .btn { border-bottom: none; padding: 0.85rem 1.5rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-form .form-row, .cta-form .form-row { flex-direction: column; }
  .hero-form .btn, .cta-form .btn { width: 100%; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(2n), .service:not(:nth-child(3n+1)) { padding: 1.6rem 0 1.7rem; border-left: none; }
    .bars { height: 220px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-body { padding-right: 0.25rem; }
  .cta-call { flex-direction: column; align-items: flex-start; }
  .leak-cost { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart.is-pending .bar-fill { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .hero-form { display: none; }
}

@media (max-width: 1080px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps--4 .step:nth-child(2)::after { display: none; }
}
@media (max-width: 960px) {
  .hero-visual { justify-content: flex-start; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7, 23, 40, 0.88) 0%, rgba(7, 23, 40, 0.94) 55%, rgba(7, 23, 40, 0.97) 100%); }
  .deliver { grid-template-columns: minmax(0, 1fr); }
  .deliver .analysis { margin-inline: 0; }
}
@media (max-width: 820px) {
  .steps--4 { grid-template-columns: minmax(0, 1fr); }
  .steps--4 .step:nth-child(2)::after { display: block; }
}
@media (max-width: 640px) {
  .check-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .check-list .tag { grid-column: 2; grid-row: auto; justify-self: start; }
  .cta-strip-actions .btn { width: 100%; }
}
