/* ============================================================
   TERMSOLAR — styles.css
   Design System v2 tokens + home page layout
   ============================================================ */

/* ── TOKENS ── */
:root {
  --color-yellow:        #e7b20c;
  --color-yellow-bright: #fff312;
  --color-graphite:      #202020;
  --color-white:         #ffffff;
  --color-yellow-soft:   #fef3c7;
  --color-yellow-deep:   #b8890a;
  --color-graphite-soft: #4a4a4a;
  --color-graphite-mute: #6b7280;
  --color-surface-soft:  #f7f4ed;
  --color-border-soft:   #e2ddd0;
  --color-error:         #b91c1c;
  --color-success:       #166534;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.563rem;
  --text-2xl:  1.953rem;
  --text-3xl:  2.441rem;
  --text-4xl:  3.052rem;
  --text-5xl:  3.815rem;

  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  --section-py: var(--space-32);
  --container:  1200px;
  --container-wide: 1400px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-graphite-soft);
  background: var(--color-surface-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: var(--space-6);
  background: var(--color-yellow); color: var(--color-graphite);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6); border-radius: 0 0 4px 4px;
  text-decoration: none; z-index: 9999;
  transition: top 200ms ease;
}
.skip-link:focus { top: 0; }

/* ── FOCUS WIDOCZNY (a11y, tylko nawigacja klawiaturą) ── */
:focus-visible {
  outline: 3px solid var(--color-yellow-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── CONTAINER ── */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--space-12);
}
.container--wide {
  width: 100%; max-width: var(--container-wide);
  margin: 0 auto; padding: 0 var(--space-12);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-yellow-deep);
  display: block; margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════
   MOTYW 3 KRESEK — DNA WIZUALNE
   Zawsze: 3 linie, wspólny start,
   100/75/50%, opacity 1/.7/.4, skew -25deg
══════════════════════════════════════ */
.rays {
  display: flex; flex-direction: column; gap: 0;
}
.rays span {
  display: block; height: 4px;
  background: var(--color-yellow);
  transform-origin: left center;
  transform: skewX(-25deg);
  margin-bottom: 12px;
}
.rays span:nth-child(1) { width: 100%; opacity: 1;   }
.rays span:nth-child(2) { width: 75%;  opacity: 0.7; }
.rays span:nth-child(3) { width: 50%;  opacity: 0.4; margin-bottom: 0; }

.rays--right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.rays--right span {
  display: block; height: 4px;
  background: var(--color-yellow);
  transform-origin: right center;
  transform: skewX(-25deg);
  margin-bottom: 12px;
}
.rays--right span:nth-child(1) { width: 100%; opacity: 1;   }
.rays--right span:nth-child(2) { width: 75%;  opacity: 0.7; }
.rays--right span:nth-child(3) { width: 50%;  opacity: 0.4; margin-bottom: 0; }

/* Section separator after H2 */
.rays--sep { width: 200px; margin-top: var(--space-4); margin-bottom: var(--space-12); }
.rays--sep span { height: 3px; margin-bottom: 10px; }
.rays--sep span:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  letter-spacing: 0.02em; padding: var(--space-3) var(--space-8);
  border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; transition: all 200ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-yellow); color: var(--color-graphite);
  border-color: var(--color-yellow);
}
.btn--primary:hover {
  background: var(--color-yellow-deep); border-color: var(--color-yellow-deep);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(231,178,12,0.30);
}
.btn--ghost {
  background: transparent; color: var(--color-graphite);
  border-color: var(--color-graphite);
}
.btn--ghost:hover {
  background: var(--color-graphite); color: var(--color-white);
  transform: translateY(-1px);
}
.btn--ghost-light {
  background: transparent; color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12); border-color: var(--color-white);
}

/* ══════════════════════════════════════
   1. HEADER
══════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 96px;
  display: flex; align-items: center;
  padding: 0 48px;
  transition: background 300ms ease, box-shadow 300ms ease, height 300ms ease;
}
.site-header.scrolled {
  background: var(--color-graphite);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  height: 72px;
}
.header-inner {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-8);
}
.header-logo img {
  height: 64px; width: auto; display: block;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.4));
  transition: height 300ms ease;
}
.site-header.scrolled .header-logo img { height: 48px; }

.header-nav { display: flex; align-items: center; gap: var(--space-8); }
.header-nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,0.88); text-decoration: none;
  letter-spacing: 0.01em; position: relative;
  transition: color 200ms ease;
}
.header-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--color-yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms ease;
}
.header-nav a:hover { color: #fff; }
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }
.header-nav a.active { color: #fff; }
.header-nav .has-caret::after { display: none; }
.header-nav .has-caret > span::after { content: ' ▾'; font-size: 10px; opacity: 0.7; }

/* Mobile hamburger */
.header-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: var(--space-2); cursor: pointer;
}
.header-burger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.9);
  transition: all 300ms ease;
}

/* ══════════════════════════════════════
   2. HERO
══════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(32,32,32,0.52) 0%, rgba(32,32,32,0.74) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
/* Subtelny gradient u góry (nie solidny pasek) */
.hero-bg::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  pointer-events: none;
}

/* 3 kreski po prawej */
.hero-rays-right {
  position: absolute; right: 0; top: 20%;
  width: 390px; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.hero-rays-right span {
  display: block; height: 7px;
  background: var(--color-yellow);
  transform-origin: right center;
  transform: skewX(-25deg);
  margin-bottom: 18px;
}
.hero-rays-right span:nth-child(1) { width: 390px; opacity: 0.55; }
.hero-rays-right span:nth-child(2) { width: 290px; opacity: 0.38; }
.hero-rays-right span:nth-child(3) { width: 195px; opacity: 0.22; margin-bottom: 0; }

.hero-body {
  position: relative; z-index: 2;
  text-align: center; padding: 96px var(--space-8) var(--space-16);
  max-width: 900px; width: 100%; margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--color-yellow);
  margin-bottom: var(--space-6);
}
.hero-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-5xl); letter-spacing: -0.02em;
  line-height: 1.05; color: #fff; margin: 0;
  text-wrap: balance;
}
.hero-divider {
  width: 72px; height: 2px; background: var(--color-yellow);
  margin: var(--space-8) auto var(--space-6);
}
.hero-sub {
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-lg);
  color: rgba(255,255,255,0.82); margin: 0; max-width: 62ch;
  line-height: 1.55; letter-spacing: 0.01em; text-wrap: pretty;
}
.hero-scroll {
  position: absolute; bottom: var(--space-10); left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); user-select: none;
}
.hero-scroll-arrow {
  width: 1px; height: 40px; background: rgba(255,255,255,0.45);
  position: relative; animation: scrollpulse 2s ease-in-out infinite;
}
.hero-scroll-arrow::after {
  content: ''; position: absolute; left: -3.5px; bottom: 0;
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(255,255,255,0.6);
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
}
@keyframes scrollpulse {
  0%,100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ══════════════════════════════════════
   3. O FIRMIE TEASER
══════════════════════════════════════ */
.section-ofirmie {
  background: var(--color-white);
  padding: var(--section-py) 0;
}
.ofirmie-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
}
.ofirmie-text {}
.ofirmie-text p {
  font-size: var(--text-lg); line-height: 1.7;
  color: var(--color-graphite-soft); margin: 0 0 var(--space-8);
  max-width: 52ch; text-wrap: pretty;
}
.ofirmie-values {
  list-style: none; margin: 0 0 var(--space-10); padding: 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.ofirmie-values li {
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-graphite-soft); line-height: 1.55;
  padding-left: var(--space-6); position: relative;
}
.ofirmie-values li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 16px; height: 2px; background: var(--color-yellow);
}
.ofirmie-values li strong {
  color: var(--color-graphite); font-weight: 600;
  display: block; margin-bottom: 2px;
}
.ofirmie-visual {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--color-surface-soft);
  border: 1px solid var(--color-border-soft);
}
.ofirmie-visual-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: var(--space-4);
  color: var(--color-graphite-mute);
}
.ofirmie-visual-placeholder svg {
  width: 64px; height: 64px; opacity: 0.3;
}
.ofirmie-visual-placeholder p {
  font-size: var(--text-sm); text-align: center; margin: 0;
  max-width: 20ch; line-height: 1.5;
}
.ofirmie-visual-label {
  position: absolute; bottom: var(--space-4); left: var(--space-4);
  background: var(--color-yellow); color: var(--color-graphite);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}

/* ══════════════════════════════════════
   4. CO OFERUJEMY — USŁUGI
══════════════════════════════════════ */
.section-uslugi {
  background: var(--color-surface-soft);
  padding: var(--section-py) 0;
}
.section-header {
  margin-bottom: var(--space-16);
}
.section-header h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-3xl); letter-spacing: -0.015em;
  line-height: 1.1; color: var(--color-graphite); margin: 0;
}
.uslugi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 8px; padding: var(--space-10) var(--space-10) var(--space-8);
  position: relative; overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 250ms cubic-bezier(0.4,0,0.2,1);
  text-decoration: none; display: block; color: inherit;
}
/* 3 kreski w prawym górnym rogu */
.service-card__rays {
  position: absolute; top: 24px; right: 0;
  width: 90px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 0; pointer-events: none;
}
.service-card__rays span {
  display: block; height: 3px; background: var(--color-yellow);
  transform-origin: right center; transform: skewX(-25deg);
  transition: transform 250ms ease; margin-bottom: 9px;
}
.service-card__rays span:nth-child(1) { width: 90px; opacity: 1;   }
.service-card__rays span:nth-child(2) { width: 68px; opacity: 0.7; }
.service-card__rays span:nth-child(3) { width: 45px; opacity: 0.4; margin-bottom: 0; }
.service-card:hover .service-card__rays span:nth-child(1) { transform: skewX(-25deg) translateX(-14px); }
.service-card:hover .service-card__rays span:nth-child(2) { transform: skewX(-25deg) translateX(-10px); }
.service-card:hover .service-card__rays span:nth-child(3) { transform: skewX(-25deg) translateX(-6px); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(32,32,32,0.10);
}
.service-card__icon {
  width: 48px; height: 48px; color: var(--color-graphite);
  margin-bottom: var(--space-6); flex-shrink: 0;
}
.service-card__icon svg {
  width: 48px; height: 48px; stroke: currentColor;
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); color: var(--color-graphite);
  margin: 0 0 var(--space-3); letter-spacing: -0.005em; line-height: 1.2;
}
.service-card p {
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-graphite-soft); margin: 0 0 var(--space-6);
  line-height: 1.65; text-wrap: pretty;
}
.service-card__more {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs);
  color: var(--color-yellow-deep); text-transform: uppercase;
  letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 6px;
  position: relative;
}
.service-card__more::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--color-yellow-deep);
  transition: width 250ms ease;
}
.service-card:hover .service-card__more::after { width: 100%; }
.uslugi-all-link {
  margin-top: var(--space-10); text-align: center;
}

/* ══════════════════════════════════════
   5. AUTORYZOWANY INSTALATOR MAREK
══════════════════════════════════════ */
.section-marki {
  background: var(--color-white);
  padding: var(--section-py) 0;
}
.marki-eyebrow-row {
  display: flex; align-items: center; gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.marki-eyebrow-rays {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}
.marki-eyebrow-rays span {
  display: block; height: 2.5px; background: var(--color-yellow);
  transform-origin: left center; transform: skewX(-25deg); margin-bottom: 7px;
}
.marki-eyebrow-rays span:nth-child(1) { width: 36px; opacity: 1;   }
.marki-eyebrow-rays span:nth-child(2) { width: 27px; opacity: 0.7; }
.marki-eyebrow-rays span:nth-child(3) { width: 18px; opacity: 0.4; margin-bottom: 0; }
.marki-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; gap: 16px; margin-top: var(--space-12);
}
.brand-cell {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft);
  border-radius: 6px; padding: var(--space-4) var(--space-6);
  filter: grayscale(1); opacity: 0.68;
  transition: filter 200ms ease, opacity 200ms ease, transform 200ms ease;
}
.brand-cell:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.brand-cell img {
  max-height: 80px; max-width: 100%; width: auto; object-fit: contain;
}
.marki-note {
  margin-top: var(--space-8); text-align: center;
  font-size: var(--text-sm); color: var(--color-graphite-mute);
}

/* ══════════════════════════════════════
   6. DOTACJE TEASER
══════════════════════════════════════ */
.section-dotacje {
  background: var(--color-yellow-soft);
  padding: var(--section-py) 0;
  position: relative; overflow: hidden;
}
.dotacje-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
}
.dotacje-text h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-3xl); letter-spacing: -0.015em;
  line-height: 1.1; color: var(--color-graphite); margin: 0;
}
.dotacje-text p {
  font-size: var(--text-lg); line-height: 1.7;
  color: var(--color-graphite-soft); margin: var(--space-6) 0 var(--space-8);
  max-width: 50ch; text-wrap: pretty;
}
.dotacje-programs {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
}
.dotacje-badge {
  background: var(--color-white); border: 1px solid var(--color-border-soft);
  border-radius: 4px; padding: var(--space-3) var(--space-6);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-graphite); letter-spacing: 0.02em;
}
.dotacje-deco {
  display: flex; align-items: center; justify-content: center;
}
/* Placeholder zdjęcia — prawa kolumna dotacje */
.dotacje-photo-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.dotacje-photo-placeholder span {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--color-graphite-mute); letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* 3 kreski w prawym górnym rogu sekcji dotacji */
.dotacje-rays-corner {
  position: absolute; right: 0; top: 20%;
  width: 390px; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.dotacje-rays-corner span {
  display: block; height: 7px;
  background: var(--color-yellow-deep);
  transform-origin: right center;
  transform: skewX(-25deg);
  margin-bottom: 18px;
}
.dotacje-rays-corner span:nth-child(1) { width: 390px; opacity: 0.55; }
.dotacje-rays-corner span:nth-child(2) { width: 290px; opacity: 0.38; }
.dotacje-rays-corner span:nth-child(3) { width: 195px; opacity: 0.22; margin-bottom: 0; }

/* ══════════════════════════════════════
   7. FOTOWOLTAIKA TEASER
══════════════════════════════════════ */
.section-fotowoltaika {
  background: var(--color-graphite);
  padding: var(--section-py) 0;
  position: relative; overflow: hidden;
}
.section-fotowoltaika::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(231,178,12,0.12), transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(231,178,12,0.06), transparent 50%);
}
.foto-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center; position: relative; z-index: 1;
}
.foto-text .eyebrow { color: var(--color-yellow); }
.foto-text h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-3xl); letter-spacing: -0.015em;
  line-height: 1.1; color: #fff; margin: 0 0 24px;
}
.foto-hak {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); line-height: 1.3;
  color: var(--color-yellow); margin: var(--space-6) 0 var(--space-4);
  text-wrap: balance;
}
.foto-text p {
  font-size: var(--text-base); line-height: 1.75;
  color: rgba(255,255,255,0.78); margin: 0 0 var(--space-8);
  max-width: 52ch; text-wrap: pretty;
}
.foto-deco {
  display: flex; align-items: center; justify-content: flex-end;
}
/* Placeholder zdjęcia — prawa kolumna fotowoltaika */
.foto-photo-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(231,178,12,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.foto-photo-placeholder span {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   8. REALIZACJE TEASER
══════════════════════════════════════ */
.section-realizacje {
  background: var(--color-surface-soft);
  padding: var(--section-py) 0;
}
.realizacje-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6); margin-top: var(--space-12);
}
.realizacja-card {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--color-border-soft);
  background: var(--color-white);
  aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-graphite-mute); position: relative;
}
.realizacja-card-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; height: 100%;
  background: var(--color-surface-soft);
}
.realizacja-card-placeholder svg { width: 40px; height: 40px; opacity: 0.25; }
.realizacja-card-placeholder p {
  font-size: var(--text-xs); text-align: center;
  margin: 0; max-width: 18ch; line-height: 1.5;
}
.realizacje-all {
  margin-top: var(--space-10); text-align: center;
}

/* ══════════════════════════════════════
   9. CTA KONTAKT
══════════════════════════════════════ */
.section-cta {
  background: var(--color-white);
  padding: var(--section-py) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
/* 3 kreski prawy górny róg — echo hero */
.cta-rays-corner {
  position: absolute; right: 0; top: 20%;
  width: 390px; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.cta-rays-corner span {
  display: block; height: 7px;
  background: var(--color-yellow);
  transform-origin: right center;
  transform: skewX(-25deg);
  margin-bottom: 18px;
}
.cta-rays-corner span:nth-child(1) { width: 390px; opacity: 0.55; }
.cta-rays-corner span:nth-child(2) { width: 290px; opacity: 0.38; }
.cta-rays-corner span:nth-child(3) { width: 195px; opacity: 0.22; margin-bottom: 0; }
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-4xl); letter-spacing: -0.02em;
  line-height: 1.05; color: var(--color-graphite); margin: 0;
  text-wrap: balance;
}
.cta-inner p {
  font-size: var(--text-lg); line-height: 1.65;
  color: var(--color-graphite-soft); margin: var(--space-6) 0 var(--space-10);
  text-wrap: pretty;
}
.cta-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4); flex-wrap: wrap;
}

/* ══════════════════════════════════════
   10. FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--color-graphite);
  color: rgba(255,255,255,0.78);
}
.footer-inner {
  padding: var(--space-16) var(--space-12) 0;
  max-width: var(--container-wide); margin: 0 auto;
}
/* 3 kreski — wariant L, max-width 280px, oś kolumny logo */
.footer-rays-top {
  margin-bottom: var(--space-12);
}
.footer-rays-top .rays {
  width: 280px;  /* explicit width — nie max-width bez width */
}
.footer-rays-top .rays span { margin-bottom: 13px; }
.footer-rays-top .rays span:last-child { margin-bottom: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45); margin: 0 0 var(--space-6);
}
.footer-logo { margin-bottom: var(--space-6); }
.footer-logo img { height: 50px; width: auto; display: block; }
.footer-address {
  font-style: normal; font-size: 14px; line-height: 1.9;
  color: rgba(255,255,255,0.78);
}
.footer-address strong { color: #fff; font-weight: 600; }
.footer-address a { color: var(--color-yellow); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a {
  font-size: 14px; color: rgba(255,255,255,0.78);
  text-decoration: none; transition: color 200ms ease;
}
.footer-col a:hover { color: var(--color-yellow); }
.footer-socials {
  display: flex; gap: var(--space-3); margin-bottom: var(--space-6);
}
.footer-socials a {
  width: 40px; height: 40px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms ease;
}
.footer-socials a:hover {
  background: var(--color-yellow); border-color: var(--color-yellow);
}
.footer-socials a:hover svg { stroke: var(--color-graphite); }
.footer-socials svg {
  width: 18px; height: 18px; stroke: rgba(255,255,255,0.78);
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 200ms ease;
}
.footer-bar {
  max-width: var(--container-wide); margin: 0 auto;
  padding: var(--space-6) var(--space-12);
  background: rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bar a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bar a:hover { color: var(--color-yellow); }

/* ══════════════════════════════════════
   FADE-UP ANIMATION (on scroll)
══════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.4,0,0.2,1);
}
.fade-up.revealed { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 100ms; }
.fade-up.delay-2 { transition-delay: 200ms; }
.fade-up.delay-3 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (768px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .container, .container--wide { padding: 0 var(--space-8); }
  .ofirmie-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .ofirmie-visual { max-width: 500px; }
  .dotacje-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .dotacje-deco { display: none; }
  .foto-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .foto-deco { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  :root { --section-py: var(--space-16); }
  .site-header { padding: 0 var(--space-6); height: 72px; }
  .site-header.scrolled { height: 60px; }
  .header-logo img { height: 48px; }
  .site-header.scrolled .header-logo img { height: 40px; }
  .header-nav { display: none; }
  .header-burger { display: flex; }

  .hero-h1 { font-size: var(--text-3xl); }
  .hero-rays-right { display: none; }
  .hero-scroll { display: none; }
  .cta-rays-corner { display: none; }
  .dotacje-rays-corner { display: none; }
  .hero-body { padding-top: 72px; }

  .uslugi-grid { grid-template-columns: 1fr; }
  .marki-grid { grid-template-columns: repeat(2, 1fr); }
  .realizacje-grid { grid-template-columns: 1fr; }
  .realizacje-grid .realizacja-card:nth-child(n+2) { display: none; }

  .cta-inner h2 { font-size: var(--text-3xl); }
  .section-header h2 { font-size: var(--text-2xl); }
  .dotacje-text h2, .foto-text h2 { font-size: var(--text-2xl); }

  .footer-inner { padding: var(--space-12) var(--space-6) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-bar { padding: var(--space-4) var(--space-6); font-size: 12px; }
  .footer-rays-top .rays { width: 200px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; }
  .marki-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }
}


/* ══════════════════════════════════════
   v4.0 — SUBPAGE COMPONENTS
══════════════════════════════════════ */

/* Header — always dark on subpages */
.site-header.site-header--subpage {
  background: var(--color-graphite);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  height: 72px;
}
.site-header.site-header--subpage .header-logo img { height: 48px; }

/* Sub-hero */
.sub-hero {
  background: var(--color-graphite);
  padding: calc(72px + var(--space-16)) 0 var(--space-20);
  position: relative; overflow: hidden;
}
.sub-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 50%, rgba(231,178,12,.08), transparent 55%);
}
.sub-hero-rays {
  position: absolute; right: 0; top: 30%; width: 390px;
  z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.sub-hero-rays span {
  display: block; height: 7px; background: var(--color-yellow);
  transform-origin: right center; transform: skewX(-25deg); margin-bottom: 18px;
}
.sub-hero-rays span:nth-child(1) { width: 390px; opacity: .55; }
.sub-hero-rays span:nth-child(2) { width: 290px; opacity: .38; }
.sub-hero-rays span:nth-child(3) { width: 195px; opacity: .22; margin-bottom: 0; }
.sub-hero-inner { position: relative; z-index: 2; }
.sub-hero-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-4xl); letter-spacing: -.02em;
  line-height: 1.05; color: #fff; margin: 0; text-wrap: balance;
}
.sub-hero-sub {
  font-size: var(--text-lg); color: rgba(255,255,255,.78);
  margin: var(--space-6) 0 0; max-width: 60ch; line-height: 1.6; text-wrap: pretty;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-2); margin-bottom: var(--space-6); font-size: var(--text-sm);
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color 200ms ease; }
.breadcrumb a:hover { color: var(--color-yellow); }
.breadcrumb-sep { color: rgba(255,255,255,.25); user-select: none; }
.breadcrumb-current { color: rgba(255,255,255,.88); }

/* Contact page */
.section-kontakt { background: var(--color-white); padding: var(--section-py) 0; }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start;
}
.kontakt-form-wrap h2,
.kontakt-info-wrap h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl);
  letter-spacing: -.01em; color: var(--color-graphite); margin: 0 0 var(--space-8);
}
.form-group { margin-bottom: var(--space-6); }
.form-label {
  display: block; font-weight: 600; font-size: var(--text-sm);
  color: var(--color-graphite); margin-bottom: var(--space-2);
}
.form-label abbr { text-decoration: none; color: var(--color-error); margin-left: 2px; }
.form-control {
  width: 100%; padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--text-base); color: var(--color-graphite);
  background: var(--color-surface-soft); border: 1.5px solid var(--color-border-soft);
  border-radius: 4px; outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  border-color: var(--color-yellow-deep);
  box-shadow: 0 0 0 3px rgba(231,178,12,.18);
  background: var(--color-white);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a4a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer;
}
.form-checkbox-wrap { display: flex; gap: var(--space-3); align-items: flex-start; }
.form-checkbox-wrap input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
  accent-color: var(--color-yellow-deep); cursor: pointer;
}
.form-checkbox-wrap label { font-size: 13px; color: var(--color-graphite-soft); line-height: 1.55; cursor: pointer; }
.form-checkbox-wrap label a { color: var(--color-yellow-deep); }
.form-success {
  display: none; padding: var(--space-6); background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 6px; text-align: center; font-weight: 600;
  color: var(--color-success); margin-top: var(--space-4);
}
.form-success.is-error {
  background: #fef2f2; border-color: #fecaca; color: var(--color-error);
}
/* Honeypot — pole-pulapka na boty, ukryte wizualnie i dla czytnikow */
.hp-field {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.kontakt-info-list {
  list-style: none; margin: 0 0 var(--space-8); padding: 0;
  display: flex; flex-direction: column; gap: var(--space-6);
}
.kontakt-info-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.kontakt-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.kontakt-info-icon svg {
  width: 20px; height: 20px; stroke: var(--color-graphite);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.kontakt-info-label {
  display: block; font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--color-graphite-mute); margin-bottom: 2px;
}
.kontakt-info-value { font-size: var(--text-base); color: var(--color-graphite-soft); line-height: 1.5; }
.kontakt-info-value a { color: var(--color-graphite); font-weight: 600; text-decoration: none; transition: color 200ms ease; }
.kontakt-info-value a:hover { color: var(--color-yellow-deep); }
.kontakt-phone-big {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700;
  color: var(--color-graphite); text-decoration: none; letter-spacing: -.01em;
  transition: color 200ms ease; display: inline-block;
}
.kontakt-phone-big:hover { color: var(--color-yellow-deep); }
.kontakt-map { margin-top: var(--space-8); border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border-soft); }
.kontakt-cta-tel {
  text-align: center; margin-top: var(--space-16); padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--text-lg); color: var(--color-graphite-soft);
}
.kontakt-cta-tel a { font-family: var(--font-display); font-weight: 700; color: var(--color-graphite); text-decoration: none; }
.kontakt-cta-tel a:hover { color: var(--color-yellow-deep); }

/* Process timeline */
.section-proces { background: var(--color-white); padding: var(--section-py) 0; }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4); margin-top: var(--space-12); position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 27px; left: 10%; right: 10%;
  height: 2px; background: var(--color-border-soft); z-index: 0;
}
.process-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.process-step__num {
  width: 56px; height: 56px; flex-shrink: 0; background: var(--color-graphite);
  color: var(--color-yellow); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl);
  margin-bottom: var(--space-4); border: 3px solid var(--color-surface-soft);
}
.process-step__content { flex: 1; }
.process-step__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base);
  color: var(--color-graphite); margin: 0 0 var(--space-2); line-height: 1.2;
}
.process-step__desc { font-size: var(--text-sm); color: var(--color-graphite-soft); line-height: 1.5; margin: 0; text-wrap: pretty; }

/* Brand grid 5-col */
.marki-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Dlaczego my */
.section-dlaczego { background: var(--color-surface-soft); padding: var(--section-py) 0; }
.dlaczego-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); margin-top: var(--space-12); }
.dlaczego-item {
  padding: var(--space-8); background: var(--color-white);
  border: 1px solid var(--color-border-soft); border-radius: 8px; position: relative;
}
.dlaczego-item::before {
  content: ''; position: absolute; left: 0; top: var(--space-8); bottom: var(--space-8);
  width: 3px; background: var(--color-yellow); border-radius: 0 2px 2px 0;
}
.dlaczego-item h3 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  color: var(--color-graphite); margin: 0 0 var(--space-3);
}
.dlaczego-item p { font-size: var(--text-base); color: var(--color-graphite-soft); margin: 0; line-height: 1.65; text-wrap: pretty; }

/* Pompy ciepła — typy */
.section-typy-pomp { background: var(--color-white); padding: var(--section-py) 0; }
.typy-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto 1fr; gap: var(--space-8); margin-top: var(--space-12); }
.typ-card {
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft);
  border-radius: 8px; padding: var(--space-10); position: relative; overflow: hidden;
  display: grid; grid-template-rows: subgrid; grid-row: span 5;
}
.typ-card .typ-badge { align-self: end; }
.typ-card__rays {
  position: absolute; top: 24px; right: 0; width: 90px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0; pointer-events: none;
}
.typ-card__rays span {
  display: block; height: 3px; background: var(--color-yellow);
  transform-origin: right center; transform: skewX(-25deg); margin-bottom: 9px;
}
.typ-card__rays span:nth-child(1) { width: 90px; opacity: 1; }
.typ-card__rays span:nth-child(2) { width: 68px; opacity: .7; }
.typ-card__rays span:nth-child(3) { width: 45px; opacity: .4; margin-bottom: 0; }
.typ-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-graphite); margin: 0 0 var(--space-4); }
.typ-card p { font-size: var(--text-base); color: var(--color-graphite-soft); margin: 0 0 var(--space-6); line-height: 1.65; text-wrap: pretty; }
@media (max-width: 768px) {
  .typy-grid { grid-template-rows: none; }
  .typ-card { display: flex; flex-direction: column; grid-template-rows: none; grid-row: auto; }
  .typ-card .typ-badge { align-self: stretch; margin-top: auto; }
}
.typ-card ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.typ-card ul li { font-size: var(--text-sm); color: var(--color-graphite-soft); padding-left: var(--space-6); position: relative; line-height: 1.55; }
.typ-card ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--color-yellow); }
.typ-badge {
  display: inline-block; background: var(--color-white); border: 1px solid var(--color-border-soft);
  border-radius: 4px; padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: 600; color: var(--color-graphite-mute);
  letter-spacing: .06em; text-transform: uppercase; margin-top: var(--space-4);
}
.section-dotacje-cta { background: var(--color-yellow-soft); padding: var(--section-py) 0; position: relative; overflow: hidden; }
.dotacje-cta-inner { max-width: 700px; }
.dotacje-cta-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); letter-spacing: -.015em; color: var(--color-graphite); margin: 0; }
.dotacje-cta-inner p { font-size: var(--text-lg); color: var(--color-graphite-soft); margin: var(--space-6) 0 var(--space-8); line-height: 1.7; text-wrap: pretty; }
.dotacje-badges { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }

/* Fotowoltaika page */
.section-foto-system { background: var(--color-white); padding: var(--section-py) 0; }
.foto-intro-text { max-width: 70ch; font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7; text-wrap: pretty; }
.foto-intro-text p { margin: 0 0 var(--space-6); }
.foto-intro-text p:last-child { margin-bottom: 0; }
.foto-benefits-list { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.foto-benefit-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.foto-benefit-num {
  width: 36px; height: 36px; flex-shrink: 0; background: var(--color-yellow); color: var(--color-graphite);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
}
.foto-benefit-item h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--color-graphite); margin: 0 0 var(--space-2); }
.foto-benefit-item p { font-size: var(--text-sm); color: var(--color-graphite-soft); margin: 0; line-height: 1.6; }
.section-foto-wspolpraca { background: var(--color-surface-soft); padding: var(--section-py) 0; }
.foto-wspolpraca-text { max-width: 65ch; }
.foto-wspolpraca-text p { font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7; text-wrap: pretty; margin: 0 0 var(--space-6); }
.foto-wspolpraca-text p:last-child { margin-bottom: 0; }
.section-kalkulator { background: var(--color-yellow-soft); padding: var(--section-py) 0; }
.calculator-placeholder {
  max-width: 700px; margin: var(--space-12) auto 0;
  background: var(--color-surface-soft); border: 2px dashed var(--color-border-soft);
  border-radius: 8px; padding: var(--space-20); text-align: center;
}
.calculator-placeholder strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-graphite); font-weight: 600; margin-bottom: var(--space-3); }
.calculator-placeholder p { font-size: var(--text-sm); color: var(--color-graphite-mute); letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* Uslugi overview — kolektory */
.section-kolektory { background: var(--color-white); padding: var(--space-16) 0; border-top: 1px solid var(--color-border-soft); border-bottom: 1px solid var(--color-border-soft); }
.kolektory-inner { max-width: 800px; }
.kolektory-inner p { font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7; text-wrap: pretty; margin: var(--space-4) 0 0; }

/* Responsive — subpages */
@media (max-width: 1024px) {
  .typy-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .dlaczego-grid { grid-template-columns: 1fr; }
  .marki-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sub-hero { padding-top: calc(60px + var(--space-12)); padding-bottom: var(--space-12); }
  .sub-hero-h1 { font-size: var(--text-3xl); }
  .sub-hero-rays { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: var(--space-8); }
  .process-steps::before { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: var(--space-4); align-items: flex-start; }
  .process-step__num { margin-bottom: 0; }
  .marki-grid--5 { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE NAV OVERLAY ── */
@media (max-width: 768px) {
  .header-nav.is-open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--color-graphite); padding: var(--space-8) var(--space-6);
    gap: var(--space-6); z-index: 99; overflow-y: auto;
  }
  .header-nav.is-open a { font-size: var(--text-xl); color: rgba(255,255,255,.88); }
  .header-nav.is-open a::after { bottom: -2px; }
  /* Burger → X */
  .header-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .header-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── USLUGI SUBNAV (overview page) ── */
.uslugi-subnav {
  display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-12);
}
.uslugi-subnav a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-graphite); background: var(--color-white);
  border: 1.5px solid var(--color-border-soft); border-radius: 4px;
  padding: var(--space-2) var(--space-4); text-decoration: none;
  transition: all 200ms ease;
}
.uslugi-subnav a:hover { border-color: var(--color-yellow); color: var(--color-yellow-deep); }
.uslugi-subnav a.active { background: var(--color-yellow); color: var(--color-graphite); border-color: var(--color-yellow); }

/* ── SERVICE ROW (uslugi overview) ── */
.section-service-row {
  padding: var(--section-py) 0;
}
.section-service-row:nth-child(odd) { background: var(--color-white); }
.section-service-row:nth-child(even) { background: var(--color-surface-soft); }
.service-row-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-16); align-items: start;
}
.service-row-grid.reverse { direction: rtl; }
.service-row-grid.reverse > * { direction: ltr; }
.service-row-icon-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.service-row-grid.reverse .service-row-icon-col { align-items: flex-end; }
.service-row-grid.reverse .service-row-icon-col .rays--sep { margin-left: auto; align-items: flex-end; }
.service-row-grid.reverse .service-row-icon-col .rays--sep span { transform-origin: right center; margin-left: auto; }
.service-row-icon {
  width: 64px; height: 64px; color: var(--color-graphite);
}
.service-row-icon svg { width: 64px; height: 64px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.service-row-h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -.01em; color: var(--color-graphite); margin: 0; }
.service-row-p { font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7; margin: 0 0 var(--space-6); text-wrap: pretty; }
@media (max-width: 768px) {
  .service-row-grid, .service-row-grid.reverse { grid-template-columns: 1fr; direction: ltr; gap: var(--space-8); }
}

/* === NEW: fotowoltaika sekcja intro — Wariant B (rownanie + intro 2-kol + grid kart) === */
.eq-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); }
.eq-tile { flex: 1 1 160px; max-width: 220px; background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: 8px; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.eq-tile svg { width: 40px; height: 40px; stroke: var(--color-graphite); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.eq-tile span { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-graphite); line-height: 1.3; }
.eq-op { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); color: var(--color-yellow-deep); flex: 0 0 auto; padding: 0 var(--space-2); }
.eq-result { flex: 1 1 200px; max-width: 260px; background: var(--color-yellow); border: 1px solid var(--color-yellow); border-radius: 8px; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; }
.eq-result strong { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); color: var(--color-graphite); line-height: 1; }
.eq-result span { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--color-graphite); letter-spacing: .02em; }
.intro-wide { max-width: 70ch; }
.intro-wide p { font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7; margin: 0 0 var(--space-6); text-wrap: pretty; }
.intro-wide p:last-child { margin-bottom: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.benefit-card { background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: 8px; padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.benefit-card .benefit-num { width: 36px; height: 36px; background: var(--color-yellow); color: var(--color-graphite); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); }
.benefit-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--color-graphite); margin: 0; }
.benefit-card p { font-size: var(--text-sm); color: var(--color-graphite-soft); margin: 0; line-height: 1.6; }
.graf-placeholder { width: 100%; aspect-ratio: 4/5; background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.graf-placeholder span { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--color-graphite-mute); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 768px) {
  .eq-row { flex-direction: column; align-items: stretch; }
  .eq-tile, .eq-result { max-width: none; }
  .eq-op { padding: var(--space-2) 0; }
}

/* === NEW: rekuperacja — sekcja „Co oferujemy" (opis 2-kol + kafel) === */
.rek-oferta-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-12); align-items: start; margin-top: var(--space-10); }
.rek-oferta-grid .typ-card { grid-row: auto; grid-template-rows: none; }
.rek-oferta-lead { font-size: var(--text-lg); line-height: 1.7; color: var(--color-graphite-soft); text-wrap: pretty; }
.rek-oferta-lead p { margin: 0 0 var(--space-6); }
.rek-oferta-lead p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .rek-oferta-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ══════════════════════════════════════
   MOBILE MENU — overlay (v5.7)
══════════════════════════════════════ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--color-graphite);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.mobile-menu__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 var(--space-6); flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu__bar img { height: 48px; width: auto; display: block; }
.mobile-menu__close {
  width: 44px; height: 44px; border: 0; background: transparent;
  position: relative; cursor: pointer; flex-shrink: 0;
}
.mobile-menu__close::before, .mobile-menu__close::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 21px;
  height: 2px; background: #fff; border-radius: 2px;
}
.mobile-menu__close::before { transform: rotate(45deg); }
.mobile-menu__close::after  { transform: rotate(-45deg); }

.mobile-menu__panel {
  position: relative; flex: 1;
  padding: var(--space-6) var(--space-6) var(--space-10);
}
/* motyw 3 kresek — skew per-kreska, origin prawa (1:1 z .rays--right) */
.m-rays {
  position: absolute; top: 22px; right: var(--space-6);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.m-rays span {
  display: block; height: 4px; background: var(--color-yellow);
  transform: skewX(-25deg); transform-origin: right center;
}
.m-rays span:nth-child(1) { width: 46px; opacity: 1; }
.m-rays span:nth-child(2) { width: 34px; opacity: .7; }
.m-rays span:nth-child(3) { width: 22px; opacity: .4; }

.m-eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-yellow-deep); margin: 0 0 6px;
}
.m-list { list-style: none; margin: 14px 0 0; padding: 0; }
.m-list > li { border-bottom: 1px solid rgba(255,255,255,.09); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
  padding: 16px 4px 16px 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  color: rgba(255,255,255,.9); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left;
  position: relative;
}
.m-link.is-active { color: #fff; }
.m-link.is-active::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; background: var(--color-yellow); border-radius: 2px;
}
.m-caret {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-yellow); transition: transform 220ms ease;
}
.m-caret svg { width: 16px; height: 16px; }
.m-sub-toggle[aria-expanded="true"] .m-caret { transform: rotate(180deg); }

.m-sub { list-style: none; margin: 0; padding: 0 0 10px 14px; }
.m-sub a {
  display: block; padding: 11px 0 11px 16px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,.62); text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.14);
}
.m-sub a.is-active { color: var(--color-yellow); border-left-color: var(--color-yellow); }

.m-contact {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.m-contact .lbl {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin: 0 0 4px;
}
.m-phone {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: #fff; text-decoration: none; display: inline-block;
}
.m-mail {
  display: block; margin-top: 12px;
  font-family: var(--font-body); font-size: 15px;
  color: rgba(255,255,255,.8); text-decoration: none;
}
.m-hours {
  margin: 10px 0 0; font-family: var(--font-body); font-size: 14px;
  color: rgba(255,255,255,.55);
}
.m-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 15px;
  background: var(--color-yellow); color: var(--color-graphite);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-decoration: none; border-radius: 6px;
}
.m-cta svg { width: 18px; height: 18px; }
@media (min-width: 769px) { .mobile-menu { display: none; } }

/* ══════════════════════════════════════
   O FIRMIE — sekcje (z batcha 3)
══════════════════════════════════════ */
.section-kim-jestesmy { background: var(--color-white); padding: var(--section-py) 0; }
.section-wartosci { padding: var(--section-py) 0; }
.kim-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12); align-items: start; margin-top: var(--space-10);
}
.section-lead {
  font-size: var(--text-lg); color: var(--color-graphite-soft); line-height: 1.7;
}
.section-lead p { margin: 0 0 var(--space-6); text-wrap: pretty; }
.section-lead p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .kim-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ══════════════════════════════════════
   DOTACJE — sekcje (z batcha 3)
══════════════════════════════════════ */
.section-czyste-powietrze { background: var(--color-white); padding: var(--section-py) 0; }
.section-moje-cieplo { background: var(--color-surface-soft); padding: var(--section-py) 0; }
/* podsekcje programu — siatka kafelków 2×2 (wariant A) */
.dot-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.dot-sub-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-left: 3px solid var(--color-yellow);
  border-radius: 10px; padding: var(--space-8);
  box-shadow: 0 12px 32px rgba(32,32,32,.05);
}
.dot-sub-card__top {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.dot-sub-card__ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 9px;
  background: var(--color-yellow-soft); color: var(--color-yellow-deep);
  display: flex; align-items: center; justify-content: center;
}
.dot-sub-card__ico svg { width: 24px; height: 24px; }
.dot-sub-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  color: var(--color-graphite); margin: 0; letter-spacing: -.01em;
}
.dot-sub-card p {
  font-size: var(--text-base); color: var(--color-graphite-soft);
  line-height: 1.7; margin: 0; text-wrap: pretty;
}
.dot-sub-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.dot-sub-card ul li {
  font-size: var(--text-base); color: var(--color-graphite-soft);
  line-height: 1.6; padding-left: var(--space-6); position: relative;
}
.dot-sub-card ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 14px; height: 2px; background: var(--color-yellow);
}
.dot-card-info {
  margin-top: var(--space-8);
  background: var(--color-yellow-soft);
  border-left: 4px solid var(--color-yellow-deep);
  border-radius: 6px; padding: var(--space-6) var(--space-8);
}
.dot-card-info strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-base); color: var(--color-graphite); margin-bottom: var(--space-2);
}
.dot-card-info p { font-size: var(--text-sm); color: var(--color-graphite-soft); margin: 0; line-height: 1.6; }
@media (max-width: 760px) { .dot-sub-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ══════════════════════════════════════
   REALIZACJE — galeria (z batcha 3)
══════════════════════════════════════ */
.section-galeria { background: var(--color-white); padding: var(--section-py) 0; }
.realizacje-gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
.realizacja-gallery-item { display: flex; flex-direction: column; gap: var(--space-3); }
.realizacja-foto {
  aspect-ratio: 4/3; background: var(--color-surface-soft);
  border: 2px dashed var(--color-border-soft); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-6); color: var(--color-graphite-mute);
}
.realizacja-foto svg { width: 48px; height: 48px; opacity: 0.3; }
.realizacja-foto span {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.realizacja-gallery-caption {
  font-size: var(--text-sm); color: var(--color-graphite-soft);
  text-align: center; margin: 0; line-height: 1.5;
}
@media (max-width: 768px) { .realizacje-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .realizacje-gallery-grid { grid-template-columns: 1fr; } }
