/* =========================================================
   BORTECH v16 — Engineering-first redesign
   Design system: tokens, layout, components
   Compatible-back z klasami v15 (.btn, .section, .container,
   .page-hero, .content-card, .faq, .cta-band, .footer, .gallery-card)
   ========================================================= */

/* --- 1. Tokens ---------------------------------------------------- */
:root {
  /* Color */
  --bg:            #fafaf7;
  --bg-alt:        #f2efe8;
  --paper:         #ffffff;
  --ink:           #15130f;
  --ink-2:         #2a2620;
  --muted:         #5b574e;
  --line:          #e5e0d4;
  --line-strong:   #d4cdb9;
  --accent:        #5fa028;        /* zieleń mocna */
  --accent-hover:  #477a1d;
  --accent-soft:   #eaf3dc;
  --steel:         #1e3a4f;        /* stalowy / dane */
  --steel-soft:    #e8eef2;
  --warn:          #c05621;
  --dark:          #15130f;
  --dark-2:        #1f1c17;

  /* Spacing scale (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow (rzadkie) */
  --shadow-hero: 0 30px 80px rgba(15,10,5,.12);
  --shadow-pop:  0 18px 50px rgba(15,10,5,.18);

  /* Typo */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .18s var(--ease);
  --t: .28s var(--ease);
  --t-slow: .5s var(--ease);
}

/* --- 2. Reset / base --------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { padding-left: 1.2rem; margin: 0; }
li + li { margin-top: 6px; }
p, h1, h2, h3, h4 { margin: 0; }

h1, h2, .h-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-variation-settings: "opsz" 144;
}
h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "ss02"; }

::selection { background: var(--accent); color: #fff; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 18px; top: -120px; z-index: 9999;
  background: var(--dark); color: #fff;
  padding: 12px 18px; border-radius: var(--r-pill);
  font-weight: 600;
}
.skip-link:focus { top: 14px; }

/* --- 3. Layout helpers ------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.container-narrow {
  width: min(var(--container-narrow), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: var(--sp-9) 0;
  position: relative;
}
.section.alt    { background: var(--bg-alt); }
.section.dark   { background: var(--dark); color: #fafaf7; }
.section.white  { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: var(--sp-7); flex-wrap: wrap; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--accent-hover);
  margin-bottom: var(--sp-3);
}
.section.dark .kicker { color: var(--accent); }
.section-title {
  font-size: clamp(34px, 4vw, 56px);
  max-width: 760px;
}
.section-lead {
  max-width: 580px; color: var(--muted);
  font-size: 17px; line-height: 1.6;
  margin-top: var(--sp-4);
}
.section.dark .section-lead { color: #c8c2b3; }

/* --- 4. Top note ------------------------------------------------- */
.top-note {
  background: var(--dark);
  color: #d8d3c5;
  font-size: 13px;
  border-bottom: 1px solid #2a2620;
}
.top-note .container {
  min-height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.top-note a { color: #fff; font-weight: 600; }
.top-note a:hover { color: var(--accent); }

/* --- 5. Header / nav --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250,250,247,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}
.logo img { height: 36px; width: auto; max-width: 200px; }
.logo .logo-text {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 22px; letter-spacing: -.02em;
  color: var(--ink);
}
.logo .logo-sub {
  display: block; font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a, .nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  background: none; border: 0;
  cursor: pointer;
}
.nav a:hover, .nav .nav-trigger:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.nav .has-dd { position: relative; }
.nav .nav-trigger svg { width: 12px; height: 12px; opacity: .55; transition: var(--t-fast); }
.nav .has-dd[aria-expanded="true"] .nav-trigger svg { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--shadow-pop);
  display: none;
  z-index: 90;
}
.nav .has-dd[aria-expanded="true"] .nav-dd { display: grid; }
.nav-dd a {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.nav-dd a small {
  display: block; grid-column: 2;
  margin-top: 2px;
  font-size: 12px; font-weight: 500; color: var(--muted);
}
.nav-dd a svg { width: 22px; height: 22px; color: var(--accent-hover); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.mobile-toggle {
  display: none;
  appearance: none; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 14px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: var(--t-fast);
}
.mobile-toggle:hover { border-color: var(--ink); }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-panel.open { display: block; }
.mobile-panel .container { display: grid; gap: 2px; padding: 14px 0 24px; }
.mobile-panel a, .mobile-panel .mob-group-title {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.mobile-panel .mob-group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); padding: 18px 0 8px; border: 0;
}
.mobile-panel a[aria-current="page"] { color: var(--accent-hover); }

/* --- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-dark {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover, .btn-dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ink {
  background: var(--dark); color: #fff;
  border-color: var(--dark);
}
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

.btn-light, .btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-light:hover, .btn-outline:hover { border-color: var(--ink); background: var(--paper); }

.section.dark .btn-light,
.section.dark .btn-outline {
  color: #fafaf7;
  border-color: rgba(255,255,255,.25);
}
.section.dark .btn-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

.cta-band .btn-light,
.cta-band .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.cta-band .btn-light:hover,
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.6);
}

.btn-green { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-green:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }

/* Phone badge */
.phone-badge {
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  min-height: 44px;
  font-weight: 700;
}
.phone-badge svg { width: 16px; height: 16px; }

/* --- 7. Hero (full-screen) -------------------------------------- */
.hero-fs {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: var(--dark);
}
.hero-fs__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-fs__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-fs::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,10,5,.20) 0%, rgba(15,10,5,.12) 38%, rgba(15,10,5,.78) 100%);
}
.hero-fs__inner {
  padding: var(--sp-9) 0 var(--sp-7);
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.hero-fs .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
}
.hero-fs .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-fs h1 {
  margin: var(--sp-5) 0 var(--sp-5);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .96;
  color: #fff;
  max-width: 16ch;
}
.hero-fs h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-fs .lead {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}
.hero-fs__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: var(--sp-7);
}
.hero-fs .btn-light, .hero-fs .btn-outline {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.32);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-fs .btn-light:hover, .hero-fs .btn-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* Hero stats bar */
.hero-stats {
  position: relative;
  margin-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  max-width: 880px;
}
.hero-stats > div small {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero-stats > div strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}

/* --- 8. Services stripe (5 horizontalnych pasków) --------------- */
.services-stripe {
  display: grid;
  border-top: 1px solid var(--line);
}
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 280px) 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
}
.svc-row__inner {
  display: contents;
}
.svc-row > * { position: relative; z-index: 2; }
.svc-row::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: var(--t-slow);
}
.svc-row::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,10,5,.85), rgba(15,10,5,.4) 50%, rgba(15,10,5,0));
  opacity: 0;
  transition: var(--t-slow);
}
.svc-row:hover::before { opacity: .85; }
.svc-row:hover::after { opacity: 1; }
.svc-row:hover { color: #fff; }
.svc-row:hover .svc-num,
.svc-row:hover .svc-desc { color: rgba(255,255,255,.7); }
.svc-row:hover .svc-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-row:hover .svc-icon { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

.svc-num {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  padding-left: var(--sp-3);
}
.svc-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--accent-hover);
  background: var(--paper);
  transition: var(--t);
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-title {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.svc-title h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.01em; line-height: 1.1;
}
.svc-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  transition: var(--t);
}
.svc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: var(--t-fast);
}
.svc-cta svg { width: 14px; height: 14px; }

/* --- 9. Configurator -------------------------------------------- */
.configurator {
  background: linear-gradient(180deg, var(--bg-alt), #ede9dd);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.cfg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  box-shadow: 0 2px 0 rgba(15,10,5,.02);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.configurator:target .cfg,
.cfg.cfg--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 30px rgba(95,160,40,.15);
  animation: cfgPulse 1.4s var(--ease);
}
@keyframes cfgPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}
.cfg-progress {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: var(--sp-6);
}
.cfg-progress .dot {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: var(--t);
}
.cfg-progress .dot.active { background: var(--accent); }
.cfg-progress .dot.done { background: var(--ink); }
.cfg-step {
  display: none;
  animation: cfgIn .35s var(--ease) both;
}
.cfg-step.active { display: block; }
@keyframes cfgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.cfg-meta {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-hover);
  margin-bottom: 8px;
}
.cfg-q {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: var(--sp-6);
}
.cfg-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.cfg-opt {
  appearance: none;
  display: grid; gap: 6px;
  padding: var(--sp-5);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: var(--t-fast);
}
.cfg-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.cfg-opt[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.cfg-opt strong { font-size: 17px; font-weight: 700; color: var(--ink); }
.cfg-opt span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cfg-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.cfg-back {
  background: none; border: 0;
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
}
.cfg-back:hover { color: var(--ink); }
.cfg-back:disabled { opacity: 0; pointer-events: none; }
.cfg-result {
  display: grid; gap: var(--sp-5);
}
.cfg-result__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.cfg-result h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.cfg-result__rec {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
}
.cfg-result__rec h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-hover); }
.cfg-result__rec p { color: var(--ink-2); font-size: 16px; }
.cfg-result__grants {
  display: grid; gap: 8px;
  padding: var(--sp-5);
  background: var(--steel-soft);
  border: 1px solid #cfdde6;
  border-radius: var(--r-md);
}
.cfg-result__grants h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--steel); }
.cfg-result__grants ul { padding-left: 18px; color: var(--ink-2); }
.cfg-result__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 10. Counters (dark sec) ------------------------------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.counter {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: var(--sp-5);
}
.counter__val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.counter__val .suffix { color: var(--accent); margin-left: 2px; }
.counter__label {
  display: block;
  margin-top: var(--sp-3);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.6);
}

/* --- 11. Map (Podlasie SVG) ------------------------------------- */
.map-block {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  overflow: hidden;
}
.map-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: var(--sp-7);
  align-items: stretch;
}
.map-svg-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--bg-alt), var(--paper));
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  min-height: 460px;
}
.map-svg-wrap svg { width: 100%; height: 100%; min-height: 460px; }
.map-powiat { transition: var(--t-fast); }
.map-pow-sokolski { transition: var(--t-fast); }
.map-pow-sokolski:hover { fill: #d6ecbe; }
.map-pin {
  cursor: pointer;
  transition: var(--t-fast);
  transform-origin: center;
  transform-box: fill-box;
}
.map-pin:hover { transform: scale(1.2); }
.map-pin.active circle:nth-child(2) { stroke: #fff; stroke-width: 2; }
.map-info {
  display: flex; flex-direction: column; gap: var(--sp-4);
  min-width: 0;
}
.map-info h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.01em;
}
.map-pop {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: grid; gap: 12px;
  min-height: 220px;
}
.map-pop small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-pop strong { font-size: 19px; font-weight: 700; }
.map-pop p { font-size: 14px; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-legend .lg-pv   { background: var(--accent); }
.map-legend .lg-hp   { background: var(--steel); }
.map-legend .lg-tech { background: var(--warn); }

/* --- 12. Process timeline --------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 14px);
  z-index: 0;
}
.process-step {
  position: relative;
  display: grid; gap: 12px;
  text-align: left;
  background: var(--paper);
}
.process-step::before { display: none; }
.process-step__icon {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--accent-hover);
}
.process-step__icon svg { width: 24px; height: 24px; }
.process-step__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.process-step h3 { font-size: 19px; }
.process-step p { font-size: 14px; color: var(--muted); }
.process-step__time {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-hover); font-weight: 600;
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* --- 13. Realizations (filtry + masonry) ------------------------ */
.real-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.real-filters button {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600; font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t-fast);
}
.real-filters button:hover { border-color: var(--ink); }
.real-filters button[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.real-filters button .cnt {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .55;
  font-weight: 500;
}
.real-filters button[aria-pressed="true"] .cnt { opacity: .7; }
.masonry {
  column-count: 3;
  column-gap: var(--sp-5);
}
.masonry > article {
  break-inside: avoid;
  margin-bottom: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t);
}
.masonry > article:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.masonry > article a.tile {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.masonry > article img {
  width: 100%;
  height: auto;
  display: block;
}
.masonry > article .meta {
  padding: 14px 16px 16px;
  display: grid; gap: 4px;
}
.masonry > article .meta small {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-hover);
}
.masonry > article .meta strong { font-size: 16px; font-weight: 700; }
.masonry > article .meta p { font-size: 13px; color: var(--muted); }

/* --- 14. Partners ----------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 8px;
  border-right: 1px solid var(--line);
  transition: var(--t-fast);
}
.partner:last-child { border-right: 0; }
.partner img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: var(--t-fast);
}
.partner:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* --- 15. Grants table ------------------------------------------- */
.grants {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.grants table { width: 100%; border-collapse: collapse; }
.grants th, .grants td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.grants th {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  background: var(--bg-alt);
}
.grants tr:last-child td { border-bottom: 0; }
.grants tr:hover td { background: var(--bg); }
.grants td.amount { font-family: var(--font-mono); font-weight: 600; color: var(--accent-hover); }
.grants td.help { width: 90px; text-align: center; }
.grants .ok {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 50%;
}
.grants .ok svg { width: 14px; height: 14px; }

/* --- 16. Contact final (telefon + karty, bez formularza) -------- */
.contact-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: stretch;
}
.contact-final__cta {
  background: linear-gradient(135deg, var(--dark) 0%, #1f1c17 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
}
.contact-final__cta::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(50px);
  opacity: .35;
  pointer-events: none;
}
.contact-final__cta > * { position: relative; z-index: 1; }
.contact-final__cta .kicker { color: var(--accent); margin-bottom: 0; }
.contact-final__phone {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
  display: block;
  margin: 8px 0 4px;
}
.contact-final__phone:hover { color: var(--accent); }
.contact-final__cta p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  margin-bottom: var(--sp-4);
}
.contact-final__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.contact-final__buttons .btn-light {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.contact-final__buttons .btn-light:hover { background: rgba(255,255,255,.2); border-color: #fff; }

.contact-final__info {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: grid; gap: 8px;
}
.contact-card small {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
}
.contact-card strong {
  font-size: 19px; font-weight: 700;
  font-family: var(--font-sans);
  color: var(--ink);
}
.contact-card a { color: var(--ink); transition: var(--t-fast); }
.contact-card a:hover { color: var(--accent-hover); }
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* --- 17. Footer ------------------------------------------------- */
.footer {
  padding: var(--sp-8) 0 calc(var(--sp-7) + 24px);
  background: var(--dark);
  color: #c8c2b3;
  font-size: 14px;
}
.footer a { color: #d8d3c5; transition: var(--t-fast); }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-logo strong { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: #fff; }
.footer p { color: #a8a294; max-width: 36ch; }
.footer h3 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-links { display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #88827a;
}

/* --- 18. Mobile sticky ------------------------------------------ */
.mobile-sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-sticky a { flex: 1; }

/* --- 19. Reveal animations ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* Reduced motion: wyłączamy wszystkie animacje */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- 20. Lightbox (z v15, tweak) ------------------------------- */
.lightbox-link { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8,7,5,.94);
  padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: #111;
}
.lightbox-caption {
  position: absolute; left: 28px; right: 28px; bottom: 18px;
  color: #fff; text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}
.lightbox-counter {
  position: absolute; top: 24px; left: 24px;
  color: #fff; font-family: var(--font-mono); font-size: 13px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}
.lightbox-button {
  position: absolute;
  appearance: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--t-fast);
}
.lightbox-button:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- 21. Backward compat (klasy z v15) ------------------------- */
.cta-band {
  border-radius: var(--r-lg);
  background: var(--dark);
  color: #fff;
  padding: var(--sp-7);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute;
  right: -80px; top: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(40px);
  opacity: .25;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); }
.cta-band p { margin-top: 10px; color: #c8c2b3; max-width: 60ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* page-hero, content-card, faq, gallery dla pozostałych podstron */
.page-hero {
  padding: var(--sp-8) 0 var(--sp-7);
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.page-hero p { max-width: 60ch; margin-top: var(--sp-4); font-size: 18px; color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-5); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.content-card h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: var(--sp-4); }
.content-card h3 { font-size: 20px; margin: var(--sp-5) 0 var(--sp-3); }
.content-card p, .content-card li { color: var(--muted); }
.content-card p + p { margin-top: 12px; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  transition: var(--t-fast);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 700; font-size: 17px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--accent-hover);
  transition: var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); }

.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  transition: var(--t);
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(15,10,5,.08); }
.gallery-card a {
  display: block;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: var(--t);
  background-color: var(--bg-alt);
}
.gallery-card:hover .gallery-inner { transform: scale(1.04); }

/* Wariant z <img> (dla nowych zdjęć) */
.gallery-card .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background-color: var(--bg-alt);
  transition: var(--t);
}
.gallery-card:hover .gallery-img { transform: scale(1.04); }
/* zoom hint po hover w prawym górnym rogu */
.gallery-card::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3M11 8v6M8 11h6'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: var(--t);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(15,10,5,.18);
}
.gallery-card:hover::after { opacity: 1; transform: translateY(0); }
/* Tła v15 zachowane (PV, HP, drzewa, drill etc.) - bez gradientu, czysto */
.gallery-inner.pv-ground   { background-image: url("../img/realizacje/fotowoltaika-grunt-podlasie-01-thumb.jpg"); }
.gallery-inner.pv-air      { background-image: url("../img/realizacje/fotowoltaika-grunt-z-lotu-ptaka-02-thumb.jpg"); }
.gallery-inner.pv-house    { background-image: url("../img/realizacje/fotowoltaika-dom-zadaszenie-03-thumb.jpg"); }
.gallery-inner.pv-tech     { background-image: url("../img/realizacje/falownik-rozdzielnica-instalacja-pv-04-thumb.jpg"); }
.gallery-inner.pv-roof-work{ background-image: url("../img/realizacje/montaz-paneli-fotowoltaicznych-dach-05-thumb.jpg"); }
.gallery-inner.pv-roof-home{ background-image: url("../img/realizacje/fotowoltaika-dom-dach-06-thumb.jpg"); }
.gallery-inner.hp-units    { background-image: url("../img/realizacje/pompy-ciepla-jednostki-zewnetrzne-01-thumb.jpg"); }
.gallery-inner.hp-pipes    { background-image: url("../img/realizacje/pompy-ciepla-instalacja-rurowa-02-thumb.jpg"); }
.gallery-inner.hp-tank     { background-image: url("../img/realizacje/pompy-ciepla-zbiornik-osprzet-03-thumb.jpg"); }
.gallery-inner.hp-home     { background-image: url("../img/realizacje/pompa-ciepla-przy-domu-04-thumb.jpg"); }
.gallery-inner.tree-01     { background-image: url("../img/realizacje/scinka-drzew-podnosnik-01-thumb.jpg"); }
.gallery-inner.tree-02     { background-image: url("../img/realizacje/scinka-drzew-zblizenie-kosz-02-thumb.jpg"); }
.gallery-inner.tree-03     { background-image: url("../img/realizacje/scinka-drzew-realizacja-03-thumb.jpg"); }
.gallery-inner.lift-04     { background-image: url("../img/realizacje/wynajem-podnosnika-prace-drzewa-04-thumb.jpg"); }
.gallery-inner.lift-05     { background-image: url("../img/realizacje/wynajem-podnosnika-kosz-05-thumb.jpg"); }
.gallery-inner.drill-01    { background-image: url("../img/realizacje/wiertnica-bezwykopowa-realizacja-01-thumb.jpg"); }
.gallery-inner.drill-02    { background-image: url("../img/realizacje/wiertnica-xcmg-zblizenie-02-thumb.jpg"); }
.gallery-inner.drill-03    { background-image: url("../img/realizacje/wiertnica-bezwykop-przewiert-03-thumb.jpg"); }
.gallery-inner.drill-04    { background-image: url("../img/realizacje/wiertnica-prace-terenowe-04-thumb.jpg"); }
.gallery-inner.drill-05    { background-image: url("../img/realizacje/wiertnica-rura-wymiennik-05-thumb.jpg"); }

/* Compat: cards-4, grid-2/3, steps, feature, contact-list */
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.service-card {
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: var(--t);
}
.service-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.service-card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-hover);
  margin-bottom: var(--sp-4);
}
.service-card h3 { font-size: 20px; }
.service-card p { margin-top: 10px; color: var(--muted); }
.card-link {
  display: inline-flex; gap: 6px;
  margin-top: var(--sp-4);
  font-size: 13px; font-weight: 700;
  color: var(--accent-hover);
}
.feature {
  display: flex; gap: 14px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.feature strong { display: block; margin-bottom: 4px; }
.feature p { color: var(--muted); }
.check {
  width: 22px; height: 22px; flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.check::after {
  content: ""; position: absolute; left: 7px; top: 4px;
  width: 8px; height: 12px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-weight: 700;
}
.contact-item span { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.step {
  counter-increment: step;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: var(--sp-4);
  letter-spacing: .04em;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--muted); }

.split-note, .handmade-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.split-note h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: var(--sp-3); }
.split-note p { color: var(--muted); }
.service-strip { margin-top: var(--sp-5); display: grid; gap: 10px; }
.service-strip a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  font-weight: 700;
  transition: var(--t-fast);
}
.service-strip a:hover { border-color: var(--ink); background: var(--paper); }
.service-strip a span { color: var(--muted); font-weight: 500; font-size: 13px; }

.local-note {
  margin-top: var(--sp-5);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  max-width: 60ch;
}
.realization-desc, .project-section-note, .realization-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 60ch;
}
.mid-cta {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; justify-content: space-between; gap: var(--sp-5);
  align-items: center; flex-wrap: wrap;
}
.mid-cta p { color: var(--muted); margin-top: 6px; }
.energy-storage-card {
  background: linear-gradient(135deg, var(--dark), #2a2620);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.energy-storage-card p, .energy-storage-card li { color: rgba(255,255,255,.78); }
.energy-storage-card .kicker { color: var(--accent); }

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-5); }
.fact-card {
  background: var(--dark); color: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.fact-card span {
  display: block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: #c8c2b3;
}
.fact-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1; letter-spacing: -.02em;
}
.grant-hero-image { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logo-strip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.seo-list { display: grid; gap: 10px; padding-left: 0; list-style: none; margin-top: var(--sp-4); }
.seo-list li { padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); }
.seo-list strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* photo-stack legacy */
.photo-stack {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  position: relative; overflow: hidden;
  min-height: 460px;
}
.photo-main {
  position: relative;
  height: 100%;
  min-height: 432px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg,#dcd5c7,#f5f1e8);
  background-size: cover; background-position: center;
}
.photo-main::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55));
}
.photo-main.hero-pv          { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)), url("../img/realizacje/fotowoltaika-grunt-podlasie-01.jpg"); }
.photo-main.hero-home-bortech{ background-image: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.45)), url("../img/realizacje/hero-bortech-dom-pv-07.jpg"); }
.photo-main.hero-heat-pump   { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)), url("../img/realizacje/pompa-ciepla-przy-domu-04.jpg"); }
.photo-main.hero-tree        { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)), url("../img/realizacje/scinka-drzew-podnosnik-01.jpg"); }
.photo-main.hero-lift        { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)), url("../img/realizacje/wynajem-podnosnika-prace-drzewa-04.jpg"); }
.photo-main.hero-drill       { background-image: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)), url("../img/realizacje/wiertnica-xcmg-zblizenie-02.jpg"); }
.photo-label {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  color: #fff; z-index: 2;
}
.photo-label small {
  display: block; text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.85);
}
.photo-label strong {
  display: block; margin-top: 8px;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 26px; letter-spacing: -.01em;
}

/* --- 22. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .contact-final { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .partner:nth-child(4n) { border-right: 0; }
  .partner { border-bottom: 1px solid var(--line); padding-block: 14px; }
  .partner:nth-last-child(-n+4) { border-bottom: 0; }
}
@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .top-note { font-size: 12px; }
  .top-note .container { flex-wrap: wrap; gap: 4px; padding-block: 6px; }
  .header-actions .btn:not(.phone-badge) { display: none; }
  .phone-badge .phone-badge-text { display: none; }
  .phone-badge { padding: 0; width: 44px; }
  .section { padding: var(--sp-7) 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-fs { min-height: 78vh; }
  .hero-fs__inner { padding: var(--sp-7) 0 var(--sp-6); }
  .hero-fs h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .svc-row {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: var(--sp-3);
    padding: var(--sp-5) 0;
  }
  .svc-num { display: none; }
  .svc-icon { grid-row: 1; }
  .svc-title { grid-column: 2; }
  .svc-cta { grid-column: 1 / -1; justify-self: start; }
  .cfg { padding: var(--sp-5); }
  .cfg-q { font-size: 26px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 1; }
  .cards-4, .steps, .grid-2, .grid-3, .process { grid-template-columns: 1fr; }
  .grants th, .grants td { padding: 12px 14px; font-size: 13px; }
  .grants thead { display: none; }
  .grants tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .grants td { border: 0; padding: 4px 14px; }
  .grants td.amount { color: var(--accent-hover); font-weight: 700; }
  .grants td.help { width: auto; text-align: left; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .partner { border-right: 0 !important; padding: 14px; }
  .partner:nth-child(2n) { border-right: 0; }
  .partner:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cta-band, .mid-cta { flex-direction: column; align-items: flex-start; padding: var(--sp-5); }
  .cta-band .btn, .mid-cta .btn { width: 100%; }
  .contact-final__cta { padding: var(--sp-5); }
  .contact-final__buttons .btn { width: 100%; }
  .mobile-sticky { display: flex; }
  .gallery-inner { min-height: 220px; }
  .lightbox { padding: 12px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
  .lightbox-button { width: 42px; height: 42px; font-size: 22px; }
}
@media (max-width: 420px) {
  .logo .logo-text { font-size: 18px; }
  .logo .logo-sub { display: none; }
}
