/* ============================================================
   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; }

/* ── 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;
}
.dotacje-deco-inner {
  width: 100%; max-width: 320px;
}
.dotacje-deco-rays {
  width: 100%;
}

/* ══════════════════════════════════════
   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;
}
.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-8) 0 var(--space-5);
  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 h4 {
  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; }
  .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; }
}
