/* =============================================================================
   Pan Wyburzalski — Wyburzenia / Rozbiórki hub
   Dark-premium variant of the Pan Busowski system.
   Token namespace: --pw-*  (separate from --pb-* so both themes can co-exist).
   ============================================================================= */

/* Uwaga: --pb-* tokeny są zdefiniowane w foundations.css (ładowanym wcześniej). */

:root {
  /* ------- DARK SURFACE STACK ------- */
  --pw-bg:           #0d1014;   /* page background — near-black, slight cool */
  --pw-bg-2:         #15181d;   /* sub-section / band background */
  --pw-bg-3:         #1c2027;   /* default card surface */
  --pw-bg-4:         #232830;   /* card hover / elevated surface */
  --pw-bg-5:         #2b313a;   /* deepest panel inside cards */

  --pw-line:         rgba(255,255,255,0.06);
  --pw-line-2:       rgba(255,255,255,0.12);
  --pw-line-strong:  rgba(255,255,255,0.22);

  /* ------- TEXT ON DARK ------- */
  --pw-ink:          #ffffff;            /* H1..H4 */
  --pw-text:         rgba(255,255,255,0.86);
  --pw-text-2:       rgba(255,255,255,0.66);
  --pw-text-muted:   rgba(255,255,255,0.50);
  --pw-text-soft:    rgba(255,255,255,0.32);

  /* ------- BRAND, ADJUSTED FOR DARK ------- */
  --pw-green:        #5dc955;            /* CTA — bumped from #50b848 to read on dark */
  --pw-green-600:    #4ab542;
  --pw-green-700:    #3aa033;
  --pw-green-tint:   rgba(93,201,85,0.12);
  --pw-green-tint-2: rgba(93,201,85,0.22);
  --pw-green-glow:   rgba(93,201,85,0.35);

  --pw-yellow:       #ffdd00;
  --pw-yellow-600:   #f5cf00;
  --pw-yellow-tint:  rgba(255,221,0,0.12);

  /* ------- WYBURZENIA-SPECIFIC SEMANTIC ACCENTS ------- */
  /* Copper / amber — "permit needed", paperwork, regulated */
  --pw-amber:        #ff9933;
  --pw-amber-tint:   rgba(255,153,51,0.14);
  /* Danger red — only for "azbest" / hazardous-materials warnings */
  --pw-danger:       #ff5a4a;
  --pw-danger-tint:  rgba(255,90,74,0.14);

  /* ------- RADII (slightly tighter than light theme; demolition = harder edges) ------- */
  --pw-r-sm:   8px;
  --pw-r-md:   12px;
  --pw-r-lg:   18px;
  --pw-r-xl:   24px;
  --pw-r-pill: 999px;

  /* ------- SHADOWS (dark = use glow more, drop-shadows less) ------- */
  --pw-shadow-card:    0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.35);
  --pw-shadow-green:   0 12px 32px rgba(93,201,85,0.22);  /* −20% intensywności */
  --pw-shadow-yellow:  0 12px 32px rgba(255,221,0,0.24);  /* −20% intensywności */
  --pw-shadow-deep:    0 24px 64px rgba(0,0,0,0.55);
}

/* =============================================================================
   PAGE BASE
   ============================================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: var(--pb-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: var(--pw-green); text-decoration: none; }
a:hover { color: var(--pw-ink); }

.pw-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Section base — sections are clean cuts so the user can lift any one out */
.pw-section { padding: 96px 0; position: relative; }
.pw-section.tight { padding: 56px 0; }
.pw-section.bg-2 { background: var(--pw-bg-2); }
.pw-section h2 {
  font-family: var(--pb-font-display);
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--pw-ink);
  line-height: 1.05;
  margin: 0;
}
.pw-section .lead {
  font-size: 17px; line-height: 1.55;
  color: var(--pw-text-2);
  margin-top: 14px;
  max-width: 64ch;
}
.pw-section-head { margin-bottom: 48px; max-width: 800px; }

/* =============================================================================
   BUTTONS
   ============================================================================= */
.pw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--pw-r-pill);
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--pb-ease-out), background 180ms, color 180ms, box-shadow 220ms;
  white-space: nowrap;
}
.pw-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-btn-primary { background: var(--pw-green); color: #0d1014; box-shadow: var(--pw-shadow-green); }
.pw-btn-primary:hover { background: var(--pw-green-600); transform: translateY(-2px); }
.pw-btn-primary:active { transform: translateY(0); background: var(--pw-green-700); }
.pw-btn-yellow { background: var(--pw-yellow); color: #0d1014; box-shadow: var(--pw-shadow-yellow); }
.pw-btn-yellow:hover { background: var(--pw-yellow-600); transform: translateY(-2px); }
.pw-btn-ghost { background: transparent; color: var(--pw-ink); border: 1px solid var(--pw-line-strong); }
.pw-btn-ghost:hover { border-color: var(--pw-green); color: var(--pw-green); background: var(--pw-green-tint); }
.pw-btn-dark { background: var(--pw-bg-4); color: var(--pw-ink); border: 1px solid var(--pw-line); }
.pw-btn-dark:hover { background: var(--pw-bg-5); border-color: var(--pw-line-2); }
.pw-btn-lg { padding: 18px 32px; font-size: 17px; }
.pw-btn-sm { padding: 10px 18px; font-size: 13px; }
.pw-btn-block { width: 100%; }

/* =============================================================================
   CHROME — top bar + header
   ============================================================================= */
.pw-topbar { background: #07090c; color: var(--pw-text-2); font-size: 13px; border-bottom: 1px solid var(--pw-line); }
.pw-topbar-inner { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pw-topbar-left, .pw-topbar-right { display: flex; align-items: center; gap: 22px; }
.pw-topbar a { color: var(--pw-text-2); }
.pw-topbar a:hover { color: var(--pw-yellow); }
.pw-topbar .hours { color: var(--pw-green); font-weight: 500; }
.pw-topbar .seg { display: inline-flex; align-items: center; gap: 6px; }
.pw-topbar .seg svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-topbar .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid var(--pw-line);
}
.pw-topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pw-green); box-shadow: 0 0 0 4px var(--pw-green-tint); animation: pw-pulse 2s infinite; }

.pw-header { background: var(--pw-bg); border-bottom: 1px solid var(--pw-line); position: relative; z-index: 10; }
.pw-header-inner { height: 88px; display: flex; align-items: center; gap: 32px; }
.pw-logo { display: inline-flex; align-items: center; gap: 12px; }
.pw-logo img { width: 48px; height: 48px; filter: brightness(1.06); }
.pw-logo-wm { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.pw-logo-wm .name { font-family: var(--pb-font-display); font-weight: 800; font-size: 22px; color: var(--pw-ink); letter-spacing: -0.025em; }
.pw-logo-wm .sub {
  font-family: var(--pb-font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--pw-text-soft); text-transform: uppercase; padding-top: 2px;
}
.pw-nav { display: flex; gap: 4px; margin-left: 12px; }
.pw-nav a { padding: 9px 16px; border-radius: var(--pw-r-pill); font-weight: 500; font-size: 14px; color: var(--pw-text); }
.pw-nav a:hover { background: var(--pw-bg-3); color: var(--pw-ink); }
.pw-nav a.active { background: var(--pw-green-tint); color: var(--pw-green); }
.pw-header .spacer { flex: 1; }
.pw-header .phone {
  display: flex; flex-direction: column; line-height: 1.1; align-items: flex-end;
  font-family: var(--pb-font-display);
}
.pw-header .phone b { color: var(--pw-ink); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.pw-header .phone small { color: var(--pw-text-muted); font-size: 11px; font-weight: 500; }

/* =============================================================================
   HERO
   ============================================================================= */
.pw-hero { padding: 48px 0 80px; position: relative; overflow: hidden; }
.pw-hero::before {
  /* faint blueprint grid behind hero */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.pw-hero-inner { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; position: relative; }

.pw-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--pw-line);
  border-radius: 999px; font-size: 12px; color: var(--pw-text-2);
  font-weight: 500;
}
.pw-hero-tag .ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; background: var(--pw-green); color: #0d1014;
  font-family: var(--pb-font-display); font-weight: 800; font-size: 11px;
  border-radius: 999px; letter-spacing: 0.02em;
}
.pw-hero h1 {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 68px; line-height: 1.02; letter-spacing: -0.035em;
  color: var(--pw-ink);
  margin: 22px 0 22px;
  max-width: 14ch;
}
.pw-hero h1 .accent { color: var(--pw-green); }
.pw-hero h1 .strike {
  background: linear-gradient(120deg, transparent 0%, transparent 48%, var(--pw-yellow) 48%, var(--pw-yellow) 52%, transparent 52%);
  padding: 0 2px;
}
.pw-hero-sub { font-size: 18px; line-height: 1.55; color: var(--pw-text-2); max-width: 52ch; }
.pw-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.pw-hero-meta {
  display: flex; gap: 28px; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--pw-line);
}
.pw-hero-meta-item .v { font-family: var(--pb-font-display); font-weight: 800; font-size: 26px; color: var(--pw-ink); letter-spacing: -0.02em; line-height: 1; }
.pw-hero-meta-item .v .pct { color: var(--pw-green); }
.pw-hero-meta-item .l { font-size: 12px; color: var(--pw-text-muted); margin-top: 6px; line-height: 1.3; max-width: 18ch; }

/* Hero video card */
.pw-hero-video {
  position: relative; aspect-ratio: 16/11;
  background: var(--pw-bg-3);
  border-radius: var(--pw-r-xl);
  overflow: hidden;
  border: 1px solid var(--pw-line);
  box-shadow: var(--pw-shadow-deep);
}
.pw-hero-video-thumb {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 70% 80%, rgba(0,0,0,0.55), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #2a2620 0%, #14110d 100%);
}
.pw-hero-video-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0d1014;
}
.pw-hero-video-thumb::before {
  /* synthetic "demolition site" placeholder pattern */
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,221,0,0.04) 28px 30px),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(255,255,255,0.03) 56px 57px);
}
.pw-hero-video-thumb::after {
  content: 'foto / video realizacji  ·  vertical building demolition  ·  Warszawa, ul. Marszałkowska';
  position: absolute; left: 24px; bottom: 22px; right: 80px;
  font-family: var(--pb-font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}
.pw-hero-video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--pw-green); color: #0d1014;
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(93,201,85,0.18), var(--pw-shadow-green);
  cursor: pointer;
  transition: 220ms;
}
.pw-hero-video .play:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 14px rgba(93,201,85,0.18), var(--pw-shadow-green); }
.pw-hero-video .play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.pw-hero-video .badges { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.pw-hero-video .live {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 11px;
  background: rgba(255,90,74,0.18); color: var(--pw-danger);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,90,74,0.35);
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.05em;
}
.pw-hero-video .live .dot { width: 6px; height: 6px; background: var(--pw-danger); border-radius: 50%; animation: pw-pulse 1.4s infinite; }
.pw-hero-video .timer {
  font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-2);
  background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: 6px; border: 1px solid var(--pw-line);
}

/* Architectural dimension labels around video */
.pw-hero-dim { position: absolute; font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-amber); letter-spacing: 0.08em; }
.pw-hero-dim.top { left: 50%; top: -34px; transform: translateX(-50%); }
.pw-hero-dim.right { right: -68px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }
.pw-hero-dim .line { display: block; height: 1px; background: var(--pw-amber); opacity: .4; margin: 6px 0; width: 90px; }
.pw-hero-dim.right .line { width: 90px; }

/* Yellow price stamp pinned over the video */
.pw-hero-stamp {
  position: absolute; left: -28px; bottom: 38px;
  background: var(--pw-yellow); color: #0d1014;
  padding: 14px 22px; border-radius: var(--pw-r-pill);
  font-family: var(--pb-font-display); font-weight: 800;
  transform: rotate(-6deg);
  box-shadow: var(--pw-shadow-yellow);
}
.pw-hero-stamp .big { font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.pw-hero-stamp .sm { display: block; font-size: 11px; font-weight: 600; margin-top: 4px; letter-spacing: 0.02em; }

@keyframes pw-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* USP strip below hero */
.pw-usp { padding: 0 0 56px; }
.pw-usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pw-usp-item {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: 220ms var(--pb-ease-out);
}
.pw-usp-item:hover { background: var(--pw-bg-4); border-color: var(--pw-line-2); transform: translateY(-2px); }
.pw-usp-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: var(--pw-r-md);
  background: var(--pw-green-tint); color: var(--pw-green);
  display: grid; place-items: center;
}
.pw-usp-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-usp-item .t { font-family: var(--pb-font-display); font-weight: 700; font-size: 16px; color: var(--pw-ink); line-height: 1.2; }
.pw-usp-item .d { font-size: 13px; color: var(--pw-text-muted); margin-top: 5px; line-height: 1.45; }

/* =============================================================================
   CALCULATOR
   ============================================================================= */
.pw-calc { background: var(--pw-bg-2); padding: 96px 0; position: relative; overflow: clip; }
.pw-calc::before {
  content: ''; position: absolute; right: -100px; top: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--pw-green-glow) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.pw-calc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; position: relative; }
.pw-calc-card {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl); padding: 36px;
  box-shadow: var(--pw-shadow-card);
}
.pw-calc-card h2 { font-size: 36px; margin-bottom: 36px; }
.pw-calc-card .lead { margin-top: 12px; margin-bottom: 32px; }

.pw-calc-field { padding: 22px 0; border-top: 1px solid var(--pw-line); }
.pw-calc-field:first-of-type { border-top: none; padding-top: 0; }
.pw-calc-field[hidden] { display: none; }
.pw-calc-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pw-calc-label {
  font-family: var(--pb-font-display); font-weight: 600;
  font-size: 15px; color: var(--pw-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.pw-calc-label .num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--pw-bg-5); color: var(--pw-text-2);
  font-family: var(--pb-font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
}

/* Parowanie dwóch pól yes/no obok siebie. Tak/Nie są wąskie, więc trzymamy
   2-kol nawet na mobilu (gap się skraca, ale layout się nie rozjeżdża). */
.pw-calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(14px, 3vw, 28px); border-top: 1px solid var(--pw-line); }
.pw-calc-pair[hidden] { display: none; }
.pw-calc-pair .pw-calc-field { border-top: none; padding-top: 22px; min-width: 0; }
/* Gdy jedno z pól w parze jest ukryte — drugie zajmuje całą szerokość. */
.pw-calc-pair:has(> .pw-calc-field[hidden]) > .pw-calc-field:not([hidden]) { grid-column: 1 / -1; }
.pw-calc-pair:first-of-type { border-top: none; }
/* Bardzo wąskie ekrany (≤380, np. Galaxy Fold złożony) — fallback do 1-kol. */
@media (max-width: 380px) {
  .pw-calc-pair { grid-template-columns: 1fr; gap: 0; }
  .pw-calc-pair .pw-calc-field + .pw-calc-field { border-top: 1px solid var(--pw-line); }
}

/* Auto-numbering pól (przeskakuje ukryte). Aktywne tylko z klasą .pw-calc-auto-num
   żeby nie kolidowało z hardcoded "01"/"02" na innych stronach. */
.pw-calc-auto-num .pw-calc-card { counter-reset: cnum; }
.pw-calc-auto-num .pw-calc-field:not([hidden]) { counter-increment: cnum; }
.pw-calc-auto-num .pw-calc-field:not([hidden]) .num::before { content: counter(cnum, decimal-leading-zero); }
.pw-calc-value-mini { font-family: var(--pb-font-mono); font-size: 12px; color: var(--pw-text-muted); }

/* Option grid: chips + radio cards */
.pw-opt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pw-opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pw-opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.pw-opt {
  padding: 14px 12px;
  background: var(--pw-bg-2);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  color: var(--pw-text);
  font-family: var(--pb-font-display); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: 160ms; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.pw-opt:hover { background: var(--pw-bg-4); border-color: var(--pw-line-2); }
.pw-opt.on { background: var(--pw-green-tint); border-color: var(--pw-green); color: var(--pw-green); }
.pw-opt .ic { width: 28px; height: 28px; opacity: .9; }
.pw-opt .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-opt .hint { font-size: 10px; font-weight: 500; color: var(--pw-text-muted); letter-spacing: 0; }
.pw-opt.on .hint { color: var(--pw-green-700); opacity: .9; }
/* Wariant bez sub-tekstu — wyższy padding, by przyciski miały spójną wysokość */
.pw-opt.no-hint { padding: 18px 12px; }
.pw-opt.warn.on { background: var(--pw-amber-tint); border-color: var(--pw-amber); color: var(--pw-amber); }
.pw-opt.danger.on { background: var(--pw-danger-tint); border-color: var(--pw-danger); color: var(--pw-danger); }

/* Toggle (yes/no) */
.pw-toggle { display: inline-flex; background: var(--pw-bg-2); border: 1px solid var(--pw-line); border-radius: var(--pw-r-pill); padding: 4px; gap: 4px; }
.pw-toggle button {
  padding: 9px 22px; border-radius: var(--pw-r-pill);
  color: var(--pw-text-muted); font-family: var(--pb-font-display); font-weight: 600; font-size: 14px;
  transition: 160ms;
}
.pw-toggle button.on { background: var(--pw-green); color: #0d1014; }
.pw-toggle.warn button.on { background: var(--pw-amber); color: #0d1014; }

/* City select */
.pw-select {
  width: 100%;
  background: var(--pw-bg-2);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  padding: 14px 18px;
  font: inherit; font-size: 15px; color: var(--pw-ink);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2390959c' stroke-width='2.5' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.pw-select:focus { outline: none; border-color: var(--pw-green); box-shadow: 0 0 0 3px var(--pw-green-tint-2); }
.pw-select option { background: var(--pw-bg-3); color: var(--pw-ink); }

/* Slider */
.pw-slider-row { display: flex; gap: 14px; align-items: center; }
.pw-slider { flex: 1; -webkit-appearance: none; height: 6px; background: var(--pw-bg-5); border-radius: 999px; outline: none; }
.pw-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pw-green); border: 3px solid #0d1014; cursor: pointer;
  box-shadow: 0 0 0 4px var(--pw-green-tint);
}
.pw-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pw-green); border: 3px solid #0d1014; cursor: pointer; }
.pw-slider-input {
  width: 120px;
  background: var(--pw-bg-2); border: 1px solid var(--pw-line); border-radius: var(--pw-r-md);
  padding: 10px 14px; font: inherit; font-size: 14px; color: var(--pw-ink); text-align: right;
}
.pw-slider-input:focus { outline: none; border-color: var(--pw-green); }
.pw-slider-input::-webkit-outer-spin-button, .pw-slider-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pw-slider-unit { font-family: var(--pb-font-mono); color: var(--pw-text-muted); font-size: 13px; }

/* Result panel */
.pw-calc-result {
  background: linear-gradient(180deg, var(--pw-bg-3) 0%, #1a1f27 100%);
  border: 1px solid var(--pw-line-2); border-radius: var(--pw-r-xl);
  padding: 30px;
  /* Tień zmniejszony jeszcze raz (0.28 → 0.14, blur 64 → 40)
     — nie wchodzi już w lewą kolumnę z formularzem */
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  position: sticky; top: 100px;
}
@media (max-width: 900px) {
  .pw-calc-result { position: static; }
}
.pw-calc-result::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--pw-green) 0%, transparent 25%, transparent 75%, var(--pw-yellow) 100%);
  opacity: .25; z-index: 0; border-radius: var(--pw-r-xl); pointer-events: none;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.pw-calc-result > * { position: relative; z-index: 1; }
.pw-calc-result h3 { font-family: var(--pb-font-display); font-weight: 700; font-size: 14px; color: var(--pw-text-muted); margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }
.pw-calc-result .price-display { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 6px; margin: 22px 0 6px; font-family: var(--pb-font-display); }
.pw-calc-result .from { font-size: 13px; color: var(--pw-text-muted); padding-bottom: 10px; }
.pw-calc-result .big { font-size: clamp(36px, 3.8vw, 52px); font-weight: 800; color: var(--pw-ink); line-height: 0.95; letter-spacing: -0.035em; white-space: nowrap; }
.pw-calc-result .dash { color: var(--pw-text-soft); font-size: clamp(22px, 2.2vw, 32px); padding: 0 4px 8px; }
.pw-calc-result .unit { font-size: 17px; color: var(--pw-text-muted); padding-bottom: 11px; }
.pw-calc-result .breakdown {
  margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--pw-line-2);
  display: flex; flex-direction: column; gap: 10px;
}

/* CTA-header nad formularzem (eyebrow, zielony akcent)
   Selektor zwiększony, by przebił .pw-calc-result h3 ustawiające kolor muted i margin:0. */
.pw-calc-result h3.pw-calc-cta-head {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 14px;
  color: var(--pw-green); margin: 28px 0 22px; letter-spacing: 0.06em;
  text-transform: uppercase; padding-top: 22px; border-top: 1px dashed var(--pw-line-2);
}

/* Mini-formularz w panelu wyceny */
.pw-calc-quick { display: flex; flex-direction: column; gap: 14px; }
.pw-calc-quick-field label {
  display: block; font-family: var(--pb-font-display); font-weight: 600;
  font-size: 13px; color: var(--pw-text-2); margin-bottom: 6px;
}
.pw-calc-quick-field .req { color: var(--pw-green); }
.pw-calc-quick-upload {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 44px 14px 14px; border-radius: var(--pw-r-md);
  background: var(--pw-bg-2); border: 1px dashed var(--pw-line-2);
  color: var(--pw-text-2); cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.pw-calc-quick-upload:hover,
.pw-calc-quick-upload.is-drop {
  background: var(--pw-bg-4); border-color: var(--pw-green);
}
.pw-calc-quick-upload.is-drop { background: var(--pw-green-tint); }
.pw-calc-quick-upload > svg { width: 24px; height: 24px; color: var(--pw-green); flex-shrink: 0; }
.pw-calc-quick-upload b { display: block; font-size: 13px; color: var(--pw-ink); font-family: var(--pb-font-display); }
.pw-calc-quick-upload small { display: block; font-size: 11px; color: var(--pw-text-muted); margin-top: 2px; }
.pw-upload-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pw-bg-5); color: var(--pw-text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 140ms;
}
.pw-upload-clear:hover { background: var(--pw-danger-tint); color: var(--pw-danger); }
.pw-upload-clear svg { width: 14px; height: 14px; }

/* Miniatury wybranych zdjęć */
.pw-upload-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 10px;
}
.pw-upload-thumb {
  position: relative; aspect-ratio: 1; border-radius: var(--pw-r-sm);
  overflow: hidden; background: var(--pw-bg-2); border: 1px solid var(--pw-line);
}
.pw-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-upload-thumb .x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 140ms;
}
.pw-upload-thumb .x:hover { background: var(--pw-danger); }
.pw-upload-thumb .x svg { width: 11px; height: 11px; }
.pw-upload-thumb .name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 6px;
  font-family: var(--pb-font-mono); font-size: 9px; line-height: 1.2;
  color: #fff; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Wejście z jednostką (np. metry) */
.pw-input-with-unit { position: relative; }
.pw-input-with-unit .unit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--pb-font-mono); color: var(--pw-text-muted); font-size: 13px; pointer-events: none;
}
.pw-input-with-unit .pw-input { padding-right: 40px; }
/* Ukryj natywne strzałki spinnera w polach number */
.pw-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.pw-input[type="number"]::-webkit-outer-spin-button,
.pw-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sub-field (np. powierzchnia fundamentu pod toggle) */
.pw-calc-subfield { margin-top: 4px; }
.pw-calc-subfield[hidden] { display: none; }

/* Lista checkboxów "zakres pomocy z dokumentacją" pod toggle Pozwolenie */
.pw-permit-extras { padding-top: 4px; }
.pw-permit-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pw-permit-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pw-bg-2);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 13px;
  line-height: 1.35;
}
.pw-permit-check:hover { border-color: var(--pw-line-2, var(--pw-text-muted)); }
.pw-permit-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--pw-green);
  margin: 0; cursor: pointer;
}
.pw-permit-check .t { color: var(--pw-ink); }
.pw-permit-check .v {
  font-family: var(--pb-font-mono);
  font-size: 12px;
  color: var(--pw-text-muted);
  white-space: nowrap;
}
.pw-permit-check:has(input:checked) {
  background: color-mix(in srgb, var(--pw-green) 8%, var(--pw-bg-2));
  border-color: color-mix(in srgb, var(--pw-green) 35%, var(--pw-line));
}
.pw-permit-check:has(input:checked) .v { color: var(--pw-green); }

/* Wyłącz translateY na hover dla przycisków: mini-formularz + hero CTA + mapa
   + krótka forma + helper "Sprawdź mój przypadek" w sekcji Pozwolenie */
.pw-calc-quick .pw-btn-primary:hover,
.pw-calc-quick .pw-btn-primary:active,
.pw-hero-cta .pw-btn-primary:hover,
.pw-hero-cta .pw-btn-primary:active,
.pw-map-side .pw-btn-primary:hover,
.pw-map-side .pw-btn-primary:active,
.pw-mini-form .pw-btn-primary:hover,
.pw-mini-form .pw-btn-primary:active,
.pw-permit-helper .pw-btn-primary:hover,
.pw-permit-helper .pw-btn-primary:active,
.pw-obszar-side .pw-btn-primary:hover,
.pw-obszar-side .pw-btn-primary:active { transform: none; }

/* Komunikaty zwrotne formularza */
.pw-calc-quick-status { font-size: 13px; margin-top: 4px; line-height: 1.45; }
.pw-calc-quick-status.ok    { color: var(--pw-green); }
.pw-calc-quick-status.error { color: var(--pw-danger); }
.pw-calc-quick-success {
  padding: 18px; border-radius: var(--pw-r-md);
  background: var(--pw-green-tint); border: 1px solid var(--pw-green);
  color: var(--pw-ink); font-size: 14px; line-height: 1.5;
}
.pw-calc-quick-success b { display: block; color: var(--pw-green); margin-bottom: 4px; font-family: var(--pb-font-display); }
.pw-calc-result .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.4; }
.pw-calc-result .row .k { color: var(--pw-text-muted); display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; flex: 1; }
.pw-calc-result .row .k small { font-size: 11px; }
.pw-calc-result .row .v { color: var(--pw-text); font-family: var(--pb-font-mono); white-space: nowrap; flex-shrink: 0; text-align: right; }
.pw-calc-result .row .v.up { color: var(--pw-text); }
.pw-calc-result .row .v.danger { color: var(--pw-danger); }

/* =============================================================================
   1 — COST BREAKDOWN
   ============================================================================= */
.pw-cost { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: flex-start; }
.pw-cost-bar {
  display: flex; height: 28px; border-radius: 999px;
  overflow: hidden; margin-bottom: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  position: relative;
}
.pw-cost-bar > div { display: grid; place-items: center; font-family: var(--pb-font-mono); font-size: 11px; color: rgba(0,0,0,0.7); font-weight: 700; }
/* Overlay w kolorze tła sekcji — startuje rozciągnięty na cały pasek
   i zsuwa się w prawo, odsłaniając gotowe kolorowe segmenty pod nim. */
.pw-cost-bar::after {
  content: ''; position: absolute; inset: 0;
  background: var(--pw-bg);
  transform: translateX(0);
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2; pointer-events: none;
}
.pw-cost-bar.is-visible::after { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) {
  .pw-cost-bar::after { display: none; }
}
.pw-cost-list { display: flex; flex-direction: column; gap: 14px; }
.pw-cost-row {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 18px 20px;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
}
.pw-cost-row .sw { width: 16px; height: 44px; border-radius: 4px; }
.pw-cost-row .body .t { font-family: var(--pb-font-display); font-weight: 700; color: var(--pw-ink); font-size: 15px; }
.pw-cost-row .body .d { font-size: 13px; color: var(--pw-text-muted); margin-top: 3px; line-height: 1.4; }
.pw-cost-row .pct { font-family: var(--pb-font-display); font-weight: 800; font-size: 22px; color: var(--pw-ink); letter-spacing: -0.02em; }
.pw-cost-row .pct small { font-size: 12px; font-weight: 600; color: var(--pw-text-muted); margin-left: 2px; }
.pw-cost-note {
  background: var(--pw-bg-3); border-radius: var(--pw-r-lg); padding: 28px;
  border: 1px solid var(--pw-line);
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 32px;
}
.pw-cost-note .row { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--pw-text); }
.pw-cost-note svg { width: 20px; height: 20px; stroke: var(--pw-green); fill: none; stroke-width: 2; flex: 0 0 20px; margin-top: 2px; }
.pw-cost-note b { color: var(--pw-ink); }

/* =============================================================================
   2 — SHORT CTA BAND
   ============================================================================= */
.pw-cta-band {
  background: linear-gradient(135deg, #15181d 0%, #0d1014 100%);
  border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line);
  padding: 56px 0; position: relative; overflow: hidden;
}
.pw-cta-band::before {
  content: ''; position: absolute; right: -160px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pw-green) 0%, transparent 70%);
  opacity: .35;
}
.pw-cta-band::after {
  content: ''; position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  width: 220px; height: 220px;
  background: var(--pw-green);
  border-radius: 50%;
  opacity: .25;
}
.pw-cta-band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.pw-cta-band h2 { font-size: 36px; font-weight: 800; color: var(--pw-ink); line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.pw-cta-band p { color: var(--pw-text-muted); margin-top: 10px; font-size: 15px; }
.pw-cta-band .b1 { color: var(--pw-yellow); font-weight: 600; }
.pw-cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* =============================================================================
   3 — CATALOG (Co rozbieramy)
   ============================================================================= */
.pw-catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pw-catalog-card {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: 220ms var(--pb-ease-out);
  cursor: pointer;
}
.pw-catalog-card:hover { border-color: var(--pw-green); }
.pw-catalog-card:hover .pw-catalog-img { background: var(--pw-bg-4); }
.pw-catalog-img {
  height: 140px; background: var(--pw-bg-2);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--pw-line);
  transition: 220ms;
}
.pw-catalog-img svg { width: 100%; height: 100%; max-width: 200px; }
.pw-catalog-img .tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--pw-line-2);
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--pb-font-mono); font-size: 10px; color: var(--pw-text-2); letter-spacing: 0.05em;
}
.pw-catalog-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pw-catalog-card .body h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 16px; color: var(--pw-ink); margin: 0; letter-spacing: -0.01em; }
.pw-catalog-card .body p { font-size: 12px; color: var(--pw-text-muted); line-height: 1.4; margin: 0; }
.pw-catalog-card .price { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.pw-catalog-card .price .v { font-family: var(--pb-font-display); font-weight: 700; color: var(--pw-green); font-size: 15px; }
.pw-catalog-card .price .arrow { color: var(--pw-text-muted); transition: 220ms; }
.pw-catalog-card:hover .arrow { color: var(--pw-green); transform: translateX(4px); }

/* =============================================================================
   4 — DLACZEGO MY (6 USP)
   ============================================================================= */
.pw-usp6-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pw-usp6 {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: background 220ms, border-color 220ms;
}
/* Zielony gradient w prawym górnym rogu na hover (analogicznie do .pw-l2-card) */
.pw-usp6::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--pw-green-tint) 0%, transparent 55%);
  opacity: 0; transition: opacity 220ms;
  pointer-events: none;
}
.pw-usp6:hover { background: var(--pw-bg-4); border-color: var(--pw-green-tint-2); }
.pw-usp6:hover::before { opacity: 1; }
.pw-usp6 > * { position: relative; z-index: 1; }
.pw-usp6 .num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--pb-font-mono); font-weight: 700;
  font-size: 13px; color: var(--pw-text-soft); letter-spacing: 0.05em;
  z-index: 1;
}
.pw-usp6 .ic {
  width: 56px; height: 56px;
  border-radius: var(--pw-r-md);
  background: var(--pw-green-tint); color: var(--pw-green);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.pw-usp6 .ic svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-usp6 h3 { font-family: var(--pb-font-display); font-weight: 700; font-size: 19px; color: var(--pw-ink); margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.01em; max-width: 18ch; }
.pw-usp6 p { font-size: 14px; line-height: 1.55; color: var(--pw-text-muted); margin: 0; }

/* =============================================================================
   5 — POZWOLENIE CZY ZGŁOSZENIE
   ============================================================================= */
.pw-permit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pw-permit {
  position: relative;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 36px;
  overflow: hidden;
}
.pw-permit.warn { border-color: rgba(255,153,51,0.30); }
.pw-permit.warn::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pw-amber);
}
.pw-permit::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pw-green); }
.pw-permit-head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 18px; }
.pw-permit-head .lbl { font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.pw-permit-stamp {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--pw-green); color: var(--pw-green);
  padding: 4px 12px; border-radius: 4px;
  font-family: var(--pb-font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.pw-permit.warn .pw-permit-stamp { border-color: var(--pw-amber); color: var(--pw-amber); }
.pw-permit h3 { font-family: var(--pb-font-display); font-weight: 800; font-size: 28px; color: var(--pw-ink); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.1; }
.pw-permit .sub { font-size: 14px; color: var(--pw-text-muted); margin: 0 0 24px; line-height: 1.5; }
.pw-permit ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pw-permit li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--pw-text); line-height: 1.45; }
.pw-permit li .b { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 4px; background: var(--pw-green-tint); color: var(--pw-green); display: grid; place-items: center; font-family: var(--pb-font-mono); font-size: 11px; font-weight: 700; margin-top: 1px; }
.pw-permit.warn li .b { background: var(--pw-amber-tint); color: var(--pw-amber); }
.pw-permit .when {
  background: var(--pw-bg-2); border-radius: var(--pw-r-md);
  padding: 16px 18px; border: 1px dashed var(--pw-line-2);
  font-size: 13px; color: var(--pw-text);
}
.pw-permit .when b { color: var(--pw-ink); }
.pw-permit-helper {
  display: flex; gap: 14px; align-items: center;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 20px 24px; margin-top: 18px;
}
.pw-permit-helper svg { width: 28px; height: 28px; stroke: var(--pw-green); fill: none; stroke-width: 2; flex: 0 0 28px; }
.pw-permit-helper .t { color: var(--pw-text); font-size: 14px; flex: 1; }
.pw-permit-helper .t b { color: var(--pw-ink); }

/* =============================================================================
   6 — STATYSTYKA
   ============================================================================= */
.pw-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.pw-stat { padding: 36px 28px; border-right: 1px solid var(--pw-line); position: relative; }
/* Tylko prawa krawędź ostatniej komórki w wierszu — niezależnie od liczby rzędów */
.pw-stat:nth-child(4n) { border-right: none; }

/* Drugi rząd — komórki "trust-info" w tej samej siatce co statystyki.
   Mniejszy font (jak przy dawnych chipach), separator-line nad rzędem. */
.pw-stat-trust {
  padding: 16px 28px;
  border-right: 1px solid var(--pw-line);
  border-top: 1px solid var(--pw-line);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--pw-text); font-weight: 500;
}
.pw-stat-trust:nth-child(4n) { border-right: none; }
.pw-stat-trust svg { width: 14px; height: 14px; stroke: var(--pw-green); fill: none; stroke-width: 2; flex-shrink: 0; }
.pw-stat .n {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 56px; line-height: 1; letter-spacing: -0.035em;
  color: var(--pw-ink);
  display: flex; align-items: baseline; gap: 6px;
}
.pw-stat .n .u { font-size: 22px; color: var(--pw-green); font-weight: 700; }
.pw-stat .l { font-size: 14px; color: var(--pw-text-muted); margin-top: 12px; line-height: 1.4; max-width: 22ch; }
.pw-stat .meta { font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-soft); letter-spacing: 0.05em; margin-top: 14px; }

.pw-stats-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; gap: 16px; }
.pw-stats-foot .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-stats-foot .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; color: var(--pw-text); font-weight: 500;
}
.pw-stats-foot .chip svg { width: 14px; height: 14px; stroke: var(--pw-green); fill: none; stroke-width: 2; }

/* =============================================================================
   7 — REALIZACJE / CASES
   ============================================================================= */
.pw-cases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.pw-case {
  border-radius: var(--pw-r-lg); position: relative; overflow: hidden;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  cursor: ew-resize; touch-action: none; user-select: none;
}
.pw-case::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%); pointer-events: none; }
.pw-case.tall { grid-row: span 2; }
.pw-case.wide { grid-column: span 2; }
.pw-case .ba {
  position: absolute; inset: 0;
}
.pw-case .ba .before, .pw-case .ba .after {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--pw-bg-3);
}
.pw-case .ba .after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.pw-case .ba .lbl {
  position: absolute; top: 14px;
  font-family: var(--pb-font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; padding: 5px 12px; border-radius: 6px;
  text-transform: uppercase; color: #fff; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
.pw-case .ba .before .lbl { left: 14px;  background: var(--pw-danger); border: 1px solid rgba(255,255,255,0.25); }
.pw-case .ba .after  .lbl { right: 14px; background: var(--pw-green);  color: #0d1014; border: 1px solid rgba(0,0,0,0.18); }
.pw-case .info {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  z-index: 2; color: #fff;
  pointer-events: none;
}
.pw-case .info .city { font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-2); letter-spacing: 0.06em; text-transform: uppercase; }
.pw-case .info h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 18px; margin: 4px 0 0; color: #fff; letter-spacing: -0.01em; }
.pw-case .info .meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--pw-text-2); }
.pw-case .info .meta b { color: var(--pw-yellow); font-weight: 700; }
.pw-case .divider {
  position: absolute; left: var(--pos, 50%); top: 0; bottom: 0;
  width: 2px; background: var(--pw-yellow);
  transform: translateX(-50%);
  z-index: 1; box-shadow: 0 0 12px rgba(255,221,0,0.5);
  pointer-events: none;
}
.pw-case .divider::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pw-yellow); border: 3px solid #0d1014;
  box-shadow: 0 0 0 1px var(--pw-yellow), 0 2px 10px rgba(0,0,0,0.4);
}
.pw-case .divider::after {
  content: '\2194'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--pb-font-display); font-size: 16px; font-weight: 900;
  color: #0d1014; line-height: 1;
}

/* Wariant „single" — pojedyncze zdjęcie bez slidera PRZED/PO,
   bez żółtej linii i bez etykiet. Tylko jedno tło + tytuł u dołu. */
.pw-case.single .ba .before { clip-path: none; }
.pw-case.single .divider,
.pw-case.single .ba .lbl { display: none; }
.pw-case.single { cursor: default; }

/* =============================================================================
   8 — MAP (Gdzie działamy)
   ============================================================================= */
.pw-map-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.pw-map-svg { position: relative; }
.pw-map-svg svg { width: 100%; height: auto; display: block; }
.pw-map-svg .pin { position: absolute; transform: translate(-50%, -50%); }
.pw-map-svg .pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pw-yellow); border: 3px solid #0d1014; box-shadow: 0 0 0 4px rgba(255,221,0,0.25); position: relative; }
.pw-map-svg .pin.sm .dot { width: 8px; height: 8px; background: var(--pw-green); border-width: 2px; box-shadow: 0 0 0 3px rgba(93,201,85,0.25); }
.pw-map-svg .pin .lbl { position: absolute; left: 18px; top: -4px; white-space: nowrap; font-family: var(--pb-font-display); font-weight: 700; font-size: 13px; color: var(--pw-ink); background: var(--pw-bg-3); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--pw-line-2); }

.pw-cities { display: flex; flex-direction: column; gap: 10px; }
.pw-city-row {
  display: grid; grid-template-columns: 36px 1fr auto auto; gap: 16px; align-items: center;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 16px 20px;
  transition: 200ms; cursor: pointer;
}
.pw-city-row:hover { background: var(--pw-bg-4); border-color: var(--pw-green); }
.pw-city-row .rank { font-family: var(--pb-font-mono); font-size: 14px; color: var(--pw-text-soft); }
.pw-city-row .name { font-family: var(--pb-font-display); font-weight: 700; font-size: 17px; color: var(--pw-ink); letter-spacing: -0.01em; }
.pw-city-row .name small { display: block; font-size: 12px; font-weight: 500; color: var(--pw-text-muted); margin-top: 2px; letter-spacing: 0; }
.pw-city-row .price { font-family: var(--pb-font-display); font-weight: 700; color: var(--pw-green); font-size: 14px; }
.pw-city-row .arrow { color: var(--pw-text-muted); transition: 200ms; }
.pw-city-row:hover .arrow { color: var(--pw-green); transform: translateX(4px); }
.pw-cities-more {
  margin-top: 4px;
  font-size: 13px; color: var(--pw-text-muted);
  background: var(--pw-bg-2); padding: 14px 20px;
  border-radius: var(--pw-r-md); border: 1px dashed var(--pw-line-2);
  display: flex; align-items: center; gap: 10px;
}
.pw-cities-more b { color: var(--pw-ink); }
.pw-cities-more svg { width: 16px; height: 16px; stroke: var(--pw-green); fill: none; stroke-width: 2; }

/* =============================================================================
   GDZIE DZIAŁAMY — wariant z pełną mapą województw (jak na home)
   ============================================================================= */
.pw-map-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}
.pw-map-side { display: flex; flex-direction: column; gap: 18px; }
.pw-map-side h3 {
  font-family: var(--pb-font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--pw-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.pw-map-side p { color: var(--pw-text-2); font-size: 16px; line-height: 1.6; margin: 0; }
.pw-map-side p b { color: var(--pw-ink); font-weight: 600; }
.pw-map-side .pw-map-features {
  list-style: none; padding: 0; margin: 4px 0 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.pw-map-side .pw-map-features li {
  font-size: 14px; color: var(--pw-text-2); padding-left: 24px; position: relative;
}
.pw-map-side .pw-map-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--pw-green); font-weight: 700;
}
.pw-map-side .pw-btn { align-self: flex-start; margin-top: 8px; }

.pw-poland-canvas { position: relative; }
.pw-poland-map { width: 100%; height: auto; max-width: 680px; display: block; margin: 0 auto; }
.pw-voi {
  fill: var(--pw-bg-3);
  stroke: rgba(93,201,85,0.35);
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 200ms;
}
.pw-voi.hl { fill: var(--pw-bg-4); stroke: var(--pw-green); }
.pw-city-pin .pulse-ring {
  animation: pb-pulse 2.4s var(--pb-ease-out, cubic-bezier(0.16,1,0.3,1)) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@media (max-width: 900px) {
  .pw-map-section { grid-template-columns: 1fr; gap: 32px; }
  .pw-map-side { text-align: left; }
}

/* =============================================================================
   CTA BAND — wariant zielony (jak .pb-cta-band na home), ale używany na
   ciemnym hubie wyburzeń. Wymusza zielony gradient zamiast ciemnego.
   ============================================================================= */
body.theme-pw .pb-cta-band.pw-cta-band-green {
  background: linear-gradient(135deg, var(--pw-green) 0%, var(--pw-green-700) 100%);
  border-top: 0; border-bottom: 0;
  color: #0d1014;
  padding: 56px 0;
  position: relative; overflow: hidden;
}
body.theme-pw .pb-cta-band.pw-cta-band-green::before {
  content: ''; position: absolute;
  right: -60px; top: 50%;
  width: 320px; height: 320px;
  transform: translateY(-50%);
  border-radius: 56% 44% 52% 48% / 58% 50% 50% 42%;
  background: var(--pw-yellow);
  opacity: .18;
}
body.theme-pw .pb-cta-band.pw-cta-band-green h2 { color: #0d1014; font-weight: 800; }
body.theme-pw .pb-cta-band.pw-cta-band-green p { color: rgba(13,16,20,.78); }
body.theme-pw .pb-cta-band.pw-cta-band-green .pb-btn.pb-btn-primary {
  background: #0d1014; color: #fff;
}
body.theme-pw .pb-cta-band.pw-cta-band-green .pb-btn.pb-btn-primary:hover { background: #1a1f27; }
body.theme-pw .pb-cta-band.pw-cta-band-green .pb-btn.pb-btn-yellow {
  background: var(--pw-yellow); color: #0d1014;
}

/* =============================================================================
   KRÓTKA FORMA + MAPA (jak na home: tylko telefon + Google Maps obok)
   ============================================================================= */
.pw-contact-mini {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 32px; align-items: stretch;
}
.pw-mini-form {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.pw-mini-form h3 {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 22px;
  color: var(--pw-ink); margin: 0; letter-spacing: -0.015em; line-height: 1.25;
}
.pw-mini-form .sub { font-size: 14px; color: var(--pw-text-2); margin: 0 0 8px; }
.pw-mini-form #pw-phone-form { display: flex; flex-direction: column; gap: 12px; }

.pw-mini-info {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--pw-line);
}
.pw-mini-info .row { display: flex; align-items: flex-start; gap: 12px; }
.pw-mini-info .row svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  color: var(--pw-green);
}
.pw-mini-info .row b { display: block; font-size: 14px; color: var(--pw-ink); font-family: var(--pb-font-display); font-weight: 600; }
.pw-mini-info .row .l { display: block; font-size: 12px; color: var(--pw-text-muted); margin-top: 2px; }

.pw-mini-map {
  overflow: hidden;
  border-radius: var(--pw-r-xl);
  border: 1px solid var(--pw-line);
  min-height: 340px;
}
.pw-mini-map iframe {
  /* Lekka adaptacja do ciemnego motywu — wycieniowanie krawędzi */
  filter: brightness(.92) contrast(1.05);
}

@media (max-width: 900px) {
  .pw-contact-mini { grid-template-columns: 1fr; }
  .pw-mini-map { min-height: 280px; }
}

/* =============================================================================
   FAQ — wariant ze środkowym headerem, bez numerów
   ============================================================================= */
.pw-section-head.pw-section-head-center {
  text-align: center; margin-left: auto; margin-right: auto;
}

/* Section-head w wariancie "tytuł po lewej + przycisk po prawej" */
.pw-section-head.pw-section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}
.pw-section-head.pw-section-head-row > div { max-width: 720px; }
.pw-section-head.pw-section-head-row > .pw-btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .pw-section-head.pw-section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .pw-section-head.pw-section-head-row > .pw-btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   9 — CONTACT FORM
   ============================================================================= */
.pw-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.pw-form {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.pw-form h3 { font-family: var(--pb-font-display); font-weight: 700; font-size: 24px; color: var(--pw-ink); margin: 0; letter-spacing: -0.015em; }
.pw-form .sub { font-size: 14px; color: var(--pw-text-muted); margin: 0 0 8px; }
.pw-input {
  background: var(--pw-bg-2);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  padding: 14px 16px;
  font: inherit; font-size: 15px; color: var(--pw-ink);
  width: 100%;
  transition: 160ms;
}
.pw-input::placeholder { color: var(--pw-text-soft); }
.pw-input:focus { outline: none; border-color: var(--pw-green); box-shadow: 0 0 0 3px var(--pw-green-tint-2); }
.pw-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea.pw-input { resize: vertical; min-height: 96px; font-family: var(--pb-font-body); }
.pw-form .file-drop {
  border: 1.5px dashed var(--pw-line-2);
  border-radius: var(--pw-r-md);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  color: var(--pw-text-muted); font-size: 13px;
}
.pw-form .file-drop svg { width: 24px; height: 24px; stroke: var(--pw-green); fill: none; stroke-width: 2; }
.pw-form .file-drop b { color: var(--pw-ink); display: block; }
.pw-form .consent { font-size: 12px; color: var(--pw-text-muted); line-height: 1.45; }
.pw-form .consent a { color: var(--pw-green); text-decoration: underline; }
.pw-form .actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

.pw-contact-side { display: flex; flex-direction: column; gap: 16px; }
.pw-contact-card {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.pw-contact-card .head { font-family: var(--pb-font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--pw-text-soft); text-transform: uppercase; }
.pw-contact-card .lines { display: flex; flex-direction: column; gap: 14px; }
.pw-contact-card .row { display: flex; gap: 14px; align-items: flex-start; }
.pw-contact-card .row svg { width: 22px; height: 22px; flex: 0 0 22px; stroke: var(--pw-green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pw-contact-card .row b { color: var(--pw-ink); font-family: var(--pb-font-display); font-size: 16px; font-weight: 700; display: block; letter-spacing: -0.01em; }
.pw-contact-card .row small { font-size: 12px; color: var(--pw-text-muted); display: block; margin-top: 4px; }
.pw-contact-card.green { background: var(--pw-green-tint); border-color: rgba(93,201,85,0.35); }
.pw-contact-card.green .head { color: var(--pw-green); }
.pw-contact-card.green h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 18px; color: var(--pw-ink); margin: 0; letter-spacing: -0.015em; }
.pw-contact-card.green p { font-size: 14px; color: var(--pw-text); margin: 0; line-height: 1.5; }

/* =============================================================================
   10 — FAQ
   ============================================================================= */
.pw-faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pw-faq-item {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg);
  transition: 200ms;
}
.pw-faq-item.open { border-color: var(--pw-green); background: var(--pw-bg-4); }
.pw-faq-q {
  padding: 22px 26px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; font-family: var(--pb-font-display);
  font-weight: 600; font-size: 17px; color: var(--pw-ink);
  letter-spacing: -0.01em;
}
.pw-faq-q .num {
  font-family: var(--pb-font-mono); font-size: 12px; font-weight: 700;
  color: var(--pw-text-soft); flex: 0 0 28px;
  letter-spacing: 0.05em;
}
.pw-faq-q .text { flex: 1; }
.pw-faq-q .chev {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pw-bg-2); color: var(--pw-text-2);
  display: grid; place-items: center;
  transition: 220ms;
  flex: 0 0 36px;
}
.pw-faq-item.open .chev { background: var(--pw-green); color: #0d1014; transform: rotate(180deg); }
.pw-faq-q .chev svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* Płynne otwieranie odpowiedzi — animacja po dokładnej wysokości zawartości
   (mierzonej w JS przez scrollHeight, jak na home). Padding na wewnętrznym
   wrapperze, żeby height:0 zwijał wszystko, włącznie z paddingiem. */
.pw-faq-a { height: 0; overflow: hidden; }
.pw-faq-a-inner {
  padding: 0 26px 24px;
  font-size: 14px; line-height: 1.65; color: var(--pw-text);
}

/* =============================================================================
   11 — PARK MASZYNOWY
   ============================================================================= */
.pw-park-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pw-park-card {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: 220ms;
}
.pw-park-card:hover { background: var(--pw-bg-4); border-color: var(--pw-green); }
.pw-park-img {
  height: 160px; position: relative;
  background:
    radial-gradient(80% 100% at 50% 100%, rgba(255,221,0,0.06), transparent 70%),
    var(--pw-bg-2);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--pw-line);
}
.pw-park-img svg { width: 80%; height: 80%; }
.pw-park-img--photo {
  background:
    radial-gradient(80% 100% at 50% 50%, rgba(255,221,0,0.06), transparent 70%),
    #ffffff;
  height: auto;
  aspect-ratio: 3 / 2;
}
.pw-park-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.pw-park-img .count {
  position: absolute; top: 12px; left: 12px;
  background: var(--pw-bg-4); border: 1px solid var(--pw-line-2);
  font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text);
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.pw-park-img .count b { color: var(--pw-yellow); margin-right: 3px; font-weight: 700; }
.pw-park-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pw-park-card h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 16px; color: var(--pw-ink); margin: 0; letter-spacing: -0.01em; }
.pw-park-card .specs { display: flex; flex-direction: column; gap: 6px; }
.pw-park-card .spec { display: flex; justify-content: space-between; font-size: 12px; font-family: var(--pb-font-mono); }
.pw-park-card .spec .k { color: var(--pw-text-muted); }
.pw-park-card .spec .v { color: var(--pw-text); }

/* =============================================================================
   12 — CO DZIEJE SIĘ Z GRUZEM
   ============================================================================= */
.pw-flow {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl); padding: 40px;
  position: relative; overflow: hidden;
}
.pw-flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.pw-flow-step {
  padding: 12px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.pw-flow-step:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 78px;
  width: 24px; height: 2px; background: var(--pw-green);
  z-index: 1;
}
.pw-flow-step:not(:last-child)::before {
  content: ''; position: absolute; right: -18px; top: 73px;
  width: 12px; height: 12px;
  border-right: 2px solid var(--pw-green);
  border-bottom: 2px solid var(--pw-green);
  transform: rotate(-45deg);
  z-index: 2;
}
.pw-flow-step .ic {
  width: 64px; height: 64px;
  border-radius: var(--pw-r-md);
  background: var(--pw-green-tint);
  display: grid; place-items: center;
  color: var(--pw-green);
}
.pw-flow-step .ic svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pw-flow-step .n { font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-soft); letter-spacing: 0.1em; }
.pw-flow-step h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 16px; color: var(--pw-ink); margin: 0; line-height: 1.2; letter-spacing: -0.01em; max-width: 14ch; }
.pw-flow-step p { font-size: 13px; color: var(--pw-text-muted); line-height: 1.5; margin: 0; max-width: 22ch; }
.pw-flow-step .pct {
  font-family: var(--pb-font-display); font-weight: 800; color: var(--pw-green); font-size: 13px;
}
.pw-flow-foot {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px dashed var(--pw-line-2);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.pw-flow-foot .bdo {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--pw-bg-2);
  border: 1px solid var(--pw-line-2); border-radius: var(--pw-r-md);
  font-family: var(--pb-font-mono); font-size: 12px; color: var(--pw-text);
  letter-spacing: 0.05em;
}
.pw-flow-foot .bdo b { color: var(--pw-green); }
.pw-flow-foot .copy { font-size: 14px; color: var(--pw-text-muted); line-height: 1.55; }
.pw-flow-foot .copy b { color: var(--pw-ink); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.pw-footer { background: #07090c; color: var(--pw-text-2); padding: 64px 0 32px; border-top: 1px solid var(--pw-line); }
.pw-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.pw-footer h4 { font-family: var(--pb-font-display); font-size: 13px; font-weight: 700; color: var(--pw-ink); margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.pw-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pw-footer a { color: var(--pw-text-muted); }
.pw-footer a:hover { color: var(--pw-green); }
.pw-footer .brand .lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pw-footer .brand .lockup img { width: 44px; height: 44px; }
.pw-footer .brand .lockup .wm { font-family: var(--pb-font-display); font-weight: 800; color: var(--pw-ink); font-size: 20px; letter-spacing: -0.02em; }
.pw-footer .brand .lockup .wm small { display: block; font-size: 10px; font-family: var(--pb-font-mono); letter-spacing: 0.2em; color: var(--pw-text-soft); text-transform: uppercase; margin-top: 2px; }
.pw-footer .brand p { font-size: 13px; line-height: 1.55; color: var(--pw-text-muted); margin: 0; max-width: 38ch; }
.pw-footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; margin-top: 40px;
  border-top: 1px solid var(--pw-line); font-size: 12px; color: var(--pw-text-soft);
}
.pw-footer-legal .bdo-tag { display: inline-flex; align-items: center; gap: 6px; }
.pw-footer-legal .bdo-tag b { color: var(--pw-green); }

/* Section separator labels (so the user can spot which block is which) */
.pw-section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pb-font-mono); font-size: 11px;
  color: var(--pw-text-soft); letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: 4px;
  margin-bottom: 28px;
}
.pw-section-tag .num { color: var(--pw-green); font-weight: 700; }

/* =============================================================================
   DARK-THEME OVERRIDES dla EXISTUJĄCEGO chrome (header/topbar/footer/cta band)
   Aktywne tylko gdy <body class="theme-pw"> — pliki includes/header.php
   i footer.php pozostają bez zmian, zmieniamy tylko kolory.
   ============================================================================= */

/* TOPBAR — już ciemny, lekka korekta na akcent */
body.theme-pw .pb-topbar { background: #000; }
body.theme-pw .pb-topbar a { color: rgba(255,255,255,.92); }
body.theme-pw .pb-topbar a:hover { color: var(--pw-yellow); }
body.theme-pw .pb-topbar .hours { color: var(--pw-green); }

/* HEADER — z białego na ciemny */
body.theme-pw .pb-header {
  background: var(--pw-bg-3);
  border-bottom: 1px solid var(--pw-line);
}
body.theme-pw .pb-header.scrolled { background: var(--pw-bg-3); }
body.theme-pw .pb-logo .wm,
body.theme-pw .pb-logo .wm-line1,
body.theme-pw .pb-logo .wm-line2 { color: var(--pw-ink); }
body.theme-pw .pb-logo .wm-line1 { opacity: .65; }

body.theme-pw .pb-nav a {
  color: var(--pw-text);
  background: transparent;
}
body.theme-pw .pb-nav a:hover {
  background: var(--pw-bg-4);
  color: var(--pw-ink);
}
body.theme-pw .pb-nav a.active {
  background: var(--pw-green-tint);
  color: var(--pw-green);
}
body.theme-pw .pb-nav-drop {
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  box-shadow: var(--pw-shadow-deep);
}
body.theme-pw .pb-nav-drop-head {
  color: var(--pw-text-soft);
  border-bottom: 1px solid var(--pw-line);
}
body.theme-pw .pb-nav-drop a { color: var(--pw-text); background: transparent; }
body.theme-pw .pb-nav-drop a:hover {
  background: var(--pw-green-tint);
  color: var(--pw-green);
}

body.theme-pw .pb-header-actions .pb-btn.pb-btn-ghost {
  color: var(--pw-text);
  border-color: var(--pw-line-2);
}
body.theme-pw .pb-header-actions .pb-btn.pb-btn-ghost:hover {
  background: var(--pw-bg-4);
  color: var(--pw-ink);
}
body.theme-pw .pb-header-actions .pb-btn.pb-btn-primary {
  background: var(--pw-green);
  color: #0d1014;
}
body.theme-pw .pb-header-actions .pb-btn.pb-btn-primary:hover {
  background: var(--pw-green-600);
}
body.theme-pw .pb-nav-toggle span { background: var(--pw-ink); }

/* PRE-FOOTER CTA BAND — w ciemnym wariancie nadaje się gradient zielony */
body.theme-pw .pb-cta-band {
  background: linear-gradient(135deg, var(--pw-bg-2) 0%, var(--pw-bg-3) 100%);
  border-top: 1px solid var(--pw-line);
  border-bottom: 1px solid var(--pw-line);
}
body.theme-pw .pb-cta-band h2 { color: var(--pw-ink); }
body.theme-pw .pb-cta-band p { color: var(--pw-text-2); }
body.theme-pw .pb-cta-band .pb-btn.pb-btn-primary { background: var(--pw-green); color: #0d1014; }
body.theme-pw .pb-cta-band .pb-btn.pb-btn-yellow { background: var(--pw-yellow); color: #0d1014; }

/* FOOTER — już ciemny, lekka korekta tonu */
body.theme-pw .pb-footer { background: #000; }
body.theme-pw .pb-footer h4 { color: var(--pw-ink); }
body.theme-pw .pb-footer a:hover { color: var(--pw-green); }
/* Legal-strip ma się zlewać z resztą stopki — bez jasnej smugi na dole */
body.theme-pw .pb-footer-legal { background: transparent; border-top: 1px solid var(--pw-line); }

/* Floating contact widget — pełna adaptacja do ciemnego motywu */
body.theme-pw .pb-widget-popup {
  background: var(--pw-bg-3);
  color: var(--pw-text);
  border: 1px solid var(--pw-line);
}
body.theme-pw .pb-widget-popup-title {
  color: var(--pw-text-muted);
  border-bottom: 1px solid var(--pw-line);
}
body.theme-pw .pb-widget-link { color: var(--pw-text); }
body.theme-pw .pb-widget-link:hover { background: var(--pw-bg-4); color: var(--pw-ink); }
body.theme-pw .pb-widget-link strong { color: var(--pw-ink); font-weight: 600; }
body.theme-pw .pb-widget-link small { color: var(--pw-text-2); }
/* Ikonki — ciemne wypełnienia z markowym kolorem ikony (lepiej widoczne
   na ciemnym tle niż pastelowe jasne tła z trybu jasnego) */
body.theme-pw .pw-phone .pw-icon    { background: rgba(93,201,85,0.18);  color: var(--pw-green);  }
body.theme-pw .pw-whatsapp .pw-icon { background: rgba(37,211,102,0.18); color: #25d366; }
body.theme-pw .pw-whatsapp .pw-icon svg { fill: #25d366; }
body.theme-pw .pw-email .pw-icon    { background: rgba(42,127,219,0.20); color: #4ea3ff; }
body.theme-pw .pw-telegram .pw-icon { background: rgba(0,136,204,0.20);  color: #34abe0; }
body.theme-pw .pw-telegram .pw-icon svg { fill: #34abe0; }

/* Body w trybie tematycznym — wymuszamy ciemne tło globalne + agresywne
   blokowanie poziomego przewijania (sticky/blur elementy potrafią wystawać
   poza viewport na bardzo wąskich ekranach, np. Galaxy Z Fold w trybie folded
   ≈344px). Trzy warstwy zabezpieczeń:
   - overflow-x: clip na body i html (nie tworzy scroll-contextu — sticky działa)
   - max-width: 100vw + width: 100% — żaden child nie rozepchnie body
   - :has() jako bonus dla nowszych przeglądarek (gdyby reszta zawiodła) */
html, body { max-width: 100vw; }
body.theme-pw { background: var(--pw-bg); color: var(--pw-text); overflow-x: clip; width: 100%; }
body.theme-pw .pw-main { overflow-x: clip; max-width: 100vw; }
html:has(body.theme-pw) { overflow-x: clip; }

/* =============================================================================
   L2 ROZWODY — Sekcja "Cztery rodzaje rozbiórek" (analog "Nasze usługi" z home)
   ============================================================================= */
.pw-l2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pw-l2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 24px;
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-lg);
  color: var(--pw-text);
  transition: transform var(--pb-dur-base, 220ms) var(--pb-ease-out, cubic-bezier(0.16,1,0.3,1)),
              background var(--pb-dur-base, 220ms), border-color var(--pb-dur-base, 220ms);
  text-decoration: none;
  overflow: hidden;
}
.pw-l2-card:hover {
  transform: translateY(-4px);
  background: var(--pw-bg-4);
  border-color: var(--pw-green-tint-2);
}

.pw-l2-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--pw-yellow); color: #0d1014;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase;
  /* Wyższe niż .pw-l2-img (z-index:1), żeby badge nie ginął pod zdjęciem */
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* Foto-tile w stylu "pebble" jak w sekcji "Wycenimy i wywieziemy" na home.
   Asymetryczny kleks → na hover łagodnie morfuje do prostokąta z zaokrąglonymi rogami. */
.pw-l2-img {
  width: 100%;
  height: 140px;
  border-radius: 56% 44% 52% 48% / 58% 50% 50% 42%;
  background-color: var(--pw-bg-5);
  background-size: cover;
  background-position: center;
  transition: border-radius 380ms var(--pb-ease-out, cubic-bezier(0.16,1,0.3,1));
  position: relative; z-index: 1;
  overflow: hidden;
}
.pw-l2-card:hover .pw-l2-img { border-radius: var(--pw-r-md); }
.pw-l2-card h3 {
  font-family: var(--pb-font-display);
  font-size: 20px; font-weight: 700;
  color: var(--pw-ink); margin: 0;
  letter-spacing: -0.015em; line-height: 1.2;
  position: relative; z-index: 1;
}
.pw-l2-card p {
  font-size: 14px; line-height: 1.5;
  color: var(--pw-text-2);
  margin: 0; flex: 1;
  position: relative; z-index: 1;
}
.pw-l2-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--pw-line);
  position: relative; z-index: 1;
}
.pw-l2-foot .price {
  font-family: var(--pb-font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--pw-green);
}
.pw-l2-foot .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-bg-5);
  color: var(--pw-text);
  transition: background var(--pb-dur-fast, 140ms), transform var(--pb-dur-fast, 140ms);
}
.pw-l2-foot .arrow svg { width: 14px; height: 14px; }
.pw-l2-card:hover .pw-l2-foot .arrow {
  background: var(--pw-green);
  color: #0d1014;
  transform: translateX(2px);
}
@media (max-width: 1024px) {
  .pw-l2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pw-l2-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   12 — CO DZIEJE SIĘ Z GRUZEM (nowa wersja: Sankey "fate diagram" + KPO + timeline)
   ============================================================================= */
.pw-fate {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---- Sankey panel (lewy) ---- */
.pw-fate-flow {
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl);
  padding: 32px 36px 28px;
  position: relative; overflow: hidden;
}
.pw-fate-flow::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.pw-fate-flow > * { position: relative; z-index: 1; }

.pw-fate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.pw-fate-head h3 { font-family: var(--pb-font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; color: var(--pw-ink); margin: 0; }
.pw-fate-head .meta { font-family: var(--pb-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--pw-text-soft); text-transform: uppercase; }

.pw-fate-sankey { position: relative; height: 500px; }
.pw-fate-sankey svg { width: 100%; height: 100%; display: block; }

.pw-fate-label {
  position: absolute;
  font-family: var(--pb-font-display);
  font-weight: 700;
  color: var(--pw-ink);
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
}
.pw-fate-label.left  { left: 0; text-align: left; align-items: flex-start; }
.pw-fate-label.right { right: 0; text-align: right; align-items: flex-end; }
.pw-fate-label .nm  { font-size: 13px; letter-spacing: -0.01em; line-height: 1.1; }
.pw-fate-label .nm small { display: block; font-family: var(--pb-font-mono); font-weight: 500; font-size: 9px; color: var(--pw-text-muted); letter-spacing: 0.05em; margin-top: 2px; text-transform: uppercase; }
.pw-fate-label .pct {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 13px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--pw-text);
  margin-top: 6px;
}
.pw-fate-label.green .pct { background: var(--pw-green-tint); color: var(--pw-green); }
.pw-fate-label.yellow .pct { background: var(--pw-yellow-tint); color: var(--pw-yellow); }
.pw-fate-label.amber .pct { background: var(--pw-amber-tint); color: var(--pw-amber); }
.pw-fate-label.gray .pct { background: rgba(255,255,255,0.08); color: var(--pw-text-2); }

.pw-fate-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--pw-line-2); }
.pw-fate-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pw-text-muted); }
.pw-fate-legend-item .sw { width: 14px; height: 14px; border-radius: 3px; }

/* ---- Document / certificate side card (prawy) ---- */
.pw-fate-doc {
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(93,201,85,0.08), transparent 50%),
    var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.pw-fate-doc h3 { font-family: var(--pb-font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--pw-ink); margin: 0; line-height: 1.1; }
.pw-fate-doc .intro { font-size: 14px; color: var(--pw-text-2); line-height: 1.55; }
.pw-fate-doc .intro b { color: var(--pw-ink); }

.pw-bdo-photo {
  background: #ffffff;
  border: 1px solid var(--pw-line-2);
  border-radius: var(--pw-r-lg);
  padding: 12px;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pw-bdo-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
}

.pw-bdo-card {
  background: linear-gradient(155deg, #1a1f27 0%, #0d1014 100%);
  border: 1px solid var(--pw-line-2);
  border-radius: var(--pw-r-lg);
  padding: 22px;
  font-family: var(--pb-font-mono);
  position: relative; overflow: hidden;
  flex: 1;
}
.pw-bdo-card::before {
  content: 'BDO';
  position: absolute; right: -8px; bottom: -28px;
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 200px; line-height: 1;
  color: rgba(93,201,85,0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.pw-bdo-card > * { position: relative; }
.pw-bdo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--pw-line-2); margin-bottom: 14px; }
.pw-bdo-head .lbl { font-size: 10px; color: var(--pw-text-soft); letter-spacing: 0.15em; text-transform: uppercase; }
.pw-bdo-head .ttl { font-family: var(--pb-font-display); font-weight: 700; font-size: 14px; color: var(--pw-ink); margin-top: 4px; letter-spacing: -0.005em; }
.pw-bdo-head .stamp {
  font-family: var(--pb-font-display); font-weight: 800; font-size: 10px;
  color: var(--pw-green); border: 1.5px solid var(--pw-green);
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.12em;
  transform: rotate(3deg);
  text-align: center;
}
.pw-bdo-head .stamp small { display: block; font-size: 8px; font-weight: 600; margin-top: 1px; letter-spacing: 0.08em; }

.pw-bdo-rows { display: flex; flex-direction: column; gap: 7px; }
.pw-bdo-rows .r { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 11px; }
.pw-bdo-rows .r .k { color: var(--pw-text-soft); }
.pw-bdo-rows .r .v { color: var(--pw-text); }
.pw-bdo-rows .r .v.lg { font-family: var(--pb-font-display); font-weight: 700; font-size: 13px; color: var(--pw-ink); }
.pw-bdo-rows .r .v.green { color: var(--pw-green); font-weight: 600; }

.pw-bdo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--pw-line-2); }
.pw-bdo-foot .sig { font-family: 'Comic Sans MS', cursive; color: var(--pw-yellow); font-size: 18px; transform: rotate(-4deg); }
.pw-bdo-foot .qr {
  width: 44px; height: 44px;
  background:
    linear-gradient(45deg, transparent 25%, var(--pw-text) 25%, var(--pw-text) 50%, transparent 50%, transparent 75%, var(--pw-text) 75%) 0 0/8px 8px,
    var(--pw-bg-2);
  border-radius: 3px;
  opacity: .7;
}

.pw-fate-doc .actions { display: flex; gap: 10px; }

/* ---- Bottom timeline strip (5 days) ---- */
.pw-fate-timeline {
  margin-top: 24px;
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl);
  padding: 28px 32px 24px;
  position: relative;
}
.pw-fate-timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.pw-fate-timeline-head h3 { font-family: var(--pb-font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; color: var(--pw-ink); margin: 0; }
.pw-fate-timeline-head .meta { font-family: var(--pb-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--pw-text-soft); text-transform: uppercase; }
/* Wariant ".sub" — bez UPPER, bez italic, z lepszym kontrastem */
.pw-fate-timeline-head .meta.sub { color: var(--pw-text-2); text-transform: none; letter-spacing: 0.02em; font-family: var(--pb-font-body); font-style: normal; font-size: 13px; opacity: 1; }

.pw-fate-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 14px;
}
.pw-fate-track::before {
  content: '';
  position: absolute;
  /* Rail od środka 1. node'a (18px = pół 36px node'a) do środka 5. node'a.
     Ostatnia komórka grid'a ma szerokość 20% — więc right = 20% - 18px.
     top przesunięty w dół, bo .when ("Poniedziałek · 07:00") jest teraz nad node'm. */
  left: 18px; right: calc(20% - 18px); top: 54px; height: 2px;
  background: linear-gradient(to right,
    var(--pw-green) 0%, var(--pw-green) 20%,
    var(--pw-yellow) 40%, var(--pw-yellow) 60%,
    var(--pw-amber) 80%, var(--pw-green) 100%);
  border-radius: 2px;
}
.pw-fate-day { padding-right: 16px; position: relative; }
.pw-fate-day:last-child { padding-right: 0; }
.pw-fate-day .node {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pw-bg-3);
  border: 2px solid var(--pw-green);
  display: grid; place-items: center;
  font-family: var(--pb-font-display); font-weight: 800; font-size: 13px;
  color: var(--pw-green);
  margin-bottom: 18px;
  z-index: 2;
}
.pw-fate-day.y .node { border-color: var(--pw-yellow); color: var(--pw-yellow); }
.pw-fate-day.a .node { border-color: var(--pw-amber); color: var(--pw-amber); }
/* "Poniedziałek · 07:00" — TERAZ NAD NODE'M (renderowane jako pierwsze w .pw-fate-day) */
.pw-fate-day .when {
  font-family: var(--pb-font-mono); font-size: 10px;
  color: var(--pw-text-soft); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px;
}
.pw-fate-day h4 { font-family: var(--pb-font-display); font-weight: 700; font-size: 15px; color: var(--pw-ink); margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.005em; max-width: 16ch; }
.pw-fate-day p { font-size: 12.5px; color: var(--pw-text-muted); line-height: 1.5; margin: 0; max-width: 22ch; }
.pw-fate-day .tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 3px 8px;
  font-family: var(--pb-font-mono); font-size: 10px; letter-spacing: 0.05em;
  background: var(--pw-bg-2); border: 1px solid var(--pw-line-2);
  border-radius: 4px; color: var(--pw-text-2);
}
.pw-fate-day .tag b { color: var(--pw-green); }

/* ---- Summary stripe ---- */
.pw-fate-summary {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pw-fate-sum {
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.pw-fate-sum .v {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 28px; letter-spacing: -0.025em;
  color: var(--pw-ink); line-height: 1;
}
.pw-fate-sum .v .u { color: var(--pw-green); font-size: 18px; margin-left: 2px; }
.pw-fate-sum .l { font-size: 12px; color: var(--pw-text-muted); margin-top: 6px; line-height: 1.4; }
.pw-fate-sum.hi { background: var(--pw-green-tint); border-color: rgba(93,201,85,0.35); }
.pw-fate-sum.hi .v { color: var(--pw-green); }

/* Mobile adaptation for Sec12Fate */
@media (max-width: 900px) {
  .pw-fate { grid-template-columns: 1fr; gap: 16px; }
  .pw-fate-flow { padding: 22px 18px; }
  .pw-fate-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pw-fate-sankey { height: 280px; }
  .pw-fate-doc { padding: 22px 20px; }
  .pw-fate-doc h3 { font-size: 22px; }
  .pw-fate-timeline { padding: 22px 18px; }
  .pw-fate-timeline-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* TIMELINE: pionowy układ — node po lewej + nagłówek na tej samej linii,
     opis poniżej (wcięty). Pionowa linia łączy kolejne node'y. */
  .pw-fate-track { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .pw-fate-track::before { display: none; }
  .pw-fate-day {
    padding: 0 0 28px 0;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 8px;
    position: relative;
  }
  .pw-fate-day:last-child { padding-bottom: 0; }
  /* Pionowa linia łącząca node'y — solidny zielony (jak desktop rail).
     bottom: -50px sprawia, że linia przechodzi przez obszar .when i top kolejnego
     node'a (gdzie jest ukryta za solidnym tłem node'a) — wizualnie ciągła linia
     od node'a do node'a, bez przerw. */
  .pw-fate-day:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 44px;
    bottom: -50px;
    width: 2px;
    background: var(--pw-green);
    z-index: 0;
  }
  .pw-fate-day .when {
    grid-column: 2; grid-row: 1;
    margin-bottom: 0;
  }
  .pw-fate-day .node {
    grid-column: 1; grid-row: 2;
    margin-bottom: 0;
  }
  .pw-fate-day h4 {
    grid-column: 2; grid-row: 2;
    align-self: center;
    max-width: none;
    margin: 0;
  }
  .pw-fate-day p {
    grid-column: 2; grid-row: 3;
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .pw-fate-sankey { height: 240px; }
  .pw-fate-label .nm { font-size: 12px; }
  /* Sankey column-headers: zamiast jednego rzędu z 2 spanami obok siebie
     (które się nakładały na wąskich ekranach), stackujemy je pionowo.
     Right kolumna: column-reverse, żeby kolejność była spójna z lewą —
     "główna" etykieta (z ↘/↗) zawsze na górze, akcent (MASA/CEL) na dole. */
  .pw-fate-colhead { flex-direction: column !important; align-items: flex-start; gap: 2px; line-height: 1.3; }
  .pw-fate-colhead.right { flex-direction: column-reverse !important; align-items: flex-end !important; }
}

/* =============================================================================
   OPINIE KLIENTÓW — marquee w wariancie ciemnym (używamy m-review-card z home)
   ============================================================================= */
body.theme-pw .m-review-card {
  background: var(--pw-bg-3);
  border: 1px solid var(--pw-line);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
body.theme-pw .m-review-name { color: var(--pw-ink); }
body.theme-pw .m-review-text { color: var(--pw-text-2); }
body.theme-pw .m-review-stars { color: var(--pw-yellow); }
/* Avatar ma własny inline-styl background z PHP — zostawiamy bez zmian */

/* =============================================================================
   MOBILE — kompleksowa adaptacja hubu wyburzeń (≤1024 i ≤640)
   ============================================================================= */

/* ── DRAWER nawigacji (theme-pw) — overrideuje białe tło z chrome.css ──── */
@media (max-width: 1024px) {
  body.theme-pw .pb-nav { background: var(--pw-bg-3); box-shadow: var(--pw-shadow-deep); }
  body.theme-pw .pb-nav a {
    color: var(--pw-text);
    border-bottom: 1px solid var(--pw-line);
    background: transparent;
  }
  body.theme-pw .pb-nav a:hover,
  body.theme-pw .pb-nav a.active {
    background: var(--pw-green-tint);
    color: var(--pw-green);
  }
  body.theme-pw .pb-nav-mobile-top {
    border-bottom: 1px solid var(--pw-line);
    background: var(--pw-bg-2);
  }
  body.theme-pw .pb-nav-close {
    background: var(--pw-bg-4); color: var(--pw-text);
  }
  body.theme-pw .pb-nav-close:hover { background: var(--pw-bg-5); }
  body.theme-pw .pb-nav-drop {
    background: var(--pw-bg-2);
    border: 0;
  }
  body.theme-pw .pb-nav-drop a {
    color: var(--pw-text-2);
    border-bottom: 1px solid var(--pw-line);
  }
  body.theme-pw .pb-nav-drop a:hover { background: var(--pw-green-tint); color: var(--pw-green); }
  body.theme-pw .pb-nav-drop-head { color: var(--pw-text-soft); }
  /* Otwarty zagnieżdżony trigger (np. Opróżnianie wewnątrz Obszar działania) —
     domyślnie ma jasny tint (#f0f2f5), na ciemnym motywie nadpisujemy. */
  body.theme-pw .pb-nav-drop .pb-nav-has-drop.mobile-open > a {
    background: var(--pw-bg-3);
    color: var(--pw-ink);
  }
  /* Miasta wewnątrz zagnieżdżonego dropdown'a — ciemniejsze tło dla rozdziału poziomów */
  body.theme-pw .pb-nav-drop .pb-nav-drop a {
    background: var(--pw-bg);
  }
  body.theme-pw .pb-nav-mobile-footer { border-top: 1px solid var(--pw-line); background: var(--pw-bg-2); }
  body.theme-pw .pb-nav-mobile-footer .pb-btn.pb-btn-ghost {
    color: var(--pw-text); border-color: var(--pw-line-2); background: transparent;
  }
  body.theme-pw .pb-nav-mobile-footer .pb-btn.pb-btn-primary {
    background: var(--pw-green); color: #0d1014;
  }
  /* Overlay za drawerem — ciemniejszy na ciemnym motywie */
  body.theme-pw .pb-nav-overlay { background: rgba(0,0,0,0.7); }
}

/* ── HERO i sekcje — ≤900 ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pw-container { padding: 0 20px; }
  .pw-section { padding: 64px 0; }
  .pw-section h2 { font-size: 30px; line-height: 1.15; }
  .pw-section-head { margin-bottom: 32px; }

  /* HERO: 1 kolumna, mniejsze H1, ukryte etykiety wymiarów (mieszają się
     z layoutem mobilnym), stamp przesunięty pod treść */
  .pw-hero { padding: 24px 0 56px; }
  .pw-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .pw-hero h1 { font-size: 40px; margin: 14px 0 18px; max-width: none; }
  .pw-hero-sub { font-size: 16px; }
  .pw-hero-cta { gap: 10px; margin-top: 24px; }
  .pw-hero-cta .pw-btn { flex: 1 1 auto; justify-content: center; }
  .pw-hero-meta { gap: 18px; margin-top: 28px; padding-top: 22px; flex-wrap: wrap; }
  .pw-hero-meta-item { flex: 1 1 30%; min-width: 90px; }
  .pw-hero-meta-item .v { font-size: 22px; }
  .pw-hero-video { aspect-ratio: 16/10; }
  .pw-hero-video .play { width: 64px; height: 64px; }
  .pw-hero-video .play svg { width: 22px; height: 22px; }
  .pw-hero-video-thumb::after { right: 18px; font-size: 10px; }
  .pw-hero-dim { display: none; } /* etykiety wymiarów wystają — chowamy na mobilu */
  .pw-hero-stamp { left: -6px; bottom: 14px; padding: 10px 16px; transform: rotate(-4deg); }
  .pw-hero-stamp .big { font-size: 17px; }
  .pw-hero-stamp .sm { font-size: 10px; }

  /* SEKCJE: jedna kolumna */
  .pw-cost { grid-template-columns: 1fr; gap: 32px; }
  .pw-usp6-grid { grid-template-columns: 1fr; gap: 12px; }
  .pw-permit-grid { grid-template-columns: 1fr; gap: 16px; }
  .pw-permit { padding: 26px 22px; }
  .pw-permit h3 { font-size: 22px; }

  /* PERMIT HELPER: stack pionowy (svg + tekst, przycisk pod spodem) */
  .pw-permit-helper { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .pw-permit-helper .pw-btn { align-self: flex-start; width: 100%; justify-content: center; }

  /* CATALOG (Co rozbieramy): 4 → 2 kolumny */
  .pw-catalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* FLOW (Co dzieje się z gruzem): 5 kroków stos pionowy, strzałki ukryte */
  .pw-flow { padding: 28px 20px; }
  .pw-flow-grid { grid-template-columns: 1fr; gap: 24px; }
  .pw-flow-step::before, .pw-flow-step::after { display: none; }
  .pw-flow-step h4, .pw-flow-step p { max-width: none; }
  .pw-flow-foot { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .pw-flow-foot .pw-btn { width: 100%; justify-content: center; }

  /* STATYSTYKA: 4 → 2 kolumny (każdy rząd po 2) */
  .pw-stats-grid { grid-template-columns: 1fr 1fr; }
  .pw-stat { padding: 24px 18px; }
  /* Reset desktopowych reguł granicznych — przejście na 2-kolumnowy układ */
  .pw-stat,
  .pw-stat-trust { border-right: none; border-bottom: none; }
  .pw-stat:nth-child(odd),
  .pw-stat-trust:nth-child(odd) { border-right: 1px solid var(--pw-line); }
  /* Wszystkie komórki oprócz dwóch ostatnich — bottom-border (rozdziela rzędy) */
  .pw-stats-grid > *:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--pw-line); }
  .pw-stat .n { font-size: 38px; }
  .pw-stat .l { font-size: 13px; max-width: none; }
  .pw-stat-trust { padding: 14px 18px; }

  /* REALIZACJE: 6-kolumn bento → 1 kolumna */
  .pw-cases { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .pw-case.tall, .pw-case.wide { grid-row: auto; grid-column: auto; }

  /* CTA BAND zielony — stos pionowy */
  body.theme-pw .pb-cta-band.pw-cta-band-green .pb-cta-band-inner {
    grid-template-columns: 1fr; gap: 18px;
  }
  body.theme-pw .pb-cta-band.pw-cta-band-green h2 { font-size: 24px; }
  body.theme-pw .pb-cta-band.pw-cta-band-green .actions { justify-content: flex-start; }

  /* PARK MASZYNOWY (jeśli na stronie kiedyś włączony) */
  .pw-park-grid { grid-template-columns: 1fr 1fr; }

  /* CALC: panele jeden pod drugim, mniejsze fonty */
  .pw-calc { padding: 56px 0; }
  /* Zielony glow w prawym rogu sekcji przycinamy mocniej, żeby na pewno nie
     wykraczał poza viewport na małych ekranach (overflow: clip czasem zawodzi). */
  .pw-calc::before { right: -200px; width: 320px; height: 320px; }
  .pw-calc-grid { grid-template-columns: 1fr; gap: 18px; }
  .pw-calc-card { padding: 24px 20px; }
  .pw-calc-card h2 { font-size: 26px; margin-bottom: 24px; }
  .pw-calc-result { padding: 22px 20px; }
  .pw-calc-result .big { font-size: 38px; }
  .pw-opt-grid { grid-template-columns: 1fr 1fr; }
  .pw-opt-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .pw-toggle { width: 100%; }
  .pw-toggle button { flex: 1; padding: 9px 12px; font-size: 13px; }

  /* L2-tag — przesuwamy lekko żeby nie nachodził na zdjęcie */
  .pw-l2-tag { top: 10px; right: 10px; }

  /* FAQ + section-head-center bez przeciągania na mobilu */
  .pw-faq-q { padding: 18px 18px; font-size: 15px; gap: 10px; }
  .pw-faq-q .chev { width: 30px; height: 30px; flex: 0 0 30px; }
  .pw-faq-a-inner { padding: 0 18px 20px; font-size: 13px; }
}

/* ── Bardzo małe ekrany (≤480) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .pw-container { padding: 0 16px; }
  .pw-hero h1 { font-size: 34px; }
  .pw-section h2 { font-size: 26px; }
  .pw-opt-grid { grid-template-columns: 1fr 1fr; }
  .pw-opt-grid.cols-3 { grid-template-columns: 1fr; }
  .pw-stats-grid { grid-template-columns: 1fr; }
  .pw-stat,
  .pw-stat-trust { border-right: none !important; }
  .pw-stats-grid > *:not(:last-child) { border-bottom: 1px solid var(--pw-line); }
  .pw-stats-grid > *:last-child { border-bottom: none; }
  .pw-park-grid { grid-template-columns: 1fr; }
}

/* ── Bardzo wąskie (≤480) — dodatkowe redukcje ──────────────────────── */
@media (max-width: 480px) {
  /* CATALOG: na bardzo wąskich 1 kolumna */
  .pw-catalog-grid { grid-template-columns: 1fr; }
}

/* ── Ultra wąskie ekrany (≤400 — np. Galaxy Z Fold folded ≈344) ──────── */
@media (max-width: 400px) {
  /* Field-head w kalkulatorze: label + value-mini stos pionowo,
     bo na bardzo wąskich ekranach nie mieszczą się w jednym wierszu */
  .pw-calc-field-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pw-calc-value-mini { font-size: 10px; }
  /* Container — minimalny padding, żeby karty były bliżej krawędzi i nie
     pozostawiały szerokiego ciemnego paska po prawej */
  .pw-container { padding: 0 12px; }
  /* Sekcja kalkulatora — mniej paddingu wewnątrz karty */
  .pw-calc-card { padding: 20px 16px; }
  .pw-calc-result { padding: 18px 16px; }
}

/* Wyłącz globalne podkreślanie linków na hover w trybie ciemnym (global.css) */
body.theme-pw a:hover,
body.theme-pw a:hover * { text-decoration: none; }

/* Breadcrumbs na ciemnym — zlewają się z hero (ten sam --pw-bg) */
body.theme-pw .breadcrumbs {
  background: var(--pw-bg);
  border-bottom: 0;
}
body.theme-pw .breadcrumb-list { color: var(--pw-text-2); }
body.theme-pw .breadcrumb-list a { color: var(--pw-text-2); }
body.theme-pw .breadcrumb-list a:hover { color: var(--pw-green); }
body.theme-pw .breadcrumb-sep { color: var(--pw-text-soft); }
body.theme-pw .breadcrumb-item:last-child { color: var(--pw-ink); }

/* =============================================================================
   5 — JAK SZYBKO (tabela etapów, styl jak W LICZBACH)
   ============================================================================= */
.pw-szybko {
  border-top: 1px solid var(--pw-line);
  border-bottom: 1px solid var(--pw-line);
}
.pw-szybko-head,
.pw-szybko-row {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  align-items: stretch;
}
.pw-szybko-head {
  padding: 18px 0;
  border-bottom: 1px solid var(--pw-line);
  background: var(--pw-bg-2);
  font-family: var(--pb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pw-text-soft);
}
.pw-szybko-head > div {
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.pw-szybko-head .col-num     { padding-left: 28px; border-right: 1px solid var(--pw-line); }
.pw-szybko-head .col-action  { border-right: 1px solid var(--pw-line); }
.pw-szybko-head .col-time    { justify-content: flex-end; padding-right: 28px; }

.pw-szybko-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--pw-line);
  transition: background 0.18s ease;
}
.pw-szybko-row:last-child { border-bottom: none; }
.pw-szybko-row:hover { background: var(--pw-bg-2); }

.pw-szybko-num {
  display: flex;
  align-items: center;
  padding: 0 24px 0 28px;
  border-right: 1px solid var(--pw-line);
  font-family: var(--pb-font-mono);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--pw-green);
  line-height: 1;
}
.pw-szybko-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  border-right: 1px solid var(--pw-line);
}
.pw-szybko-action .t {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pw-szybko-action .d {
  font-size: 13px;
  color: var(--pw-text-muted);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 56ch;
}
.pw-szybko-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 28px 0 24px;
  font-family: var(--pb-font-display);
}
.pw-szybko-time .v {
  font-size: 34px;
  font-weight: 800;
  color: var(--pw-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pw-szybko-time .u {
  font-size: 14px;
  color: var(--pw-green);
  font-weight: 600;
  text-transform: lowercase;
}

/* Stopka pod tabelą — suma + pomocna podpowiedź */
.pw-szybko-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 20px 28px;
  margin-top: 0;
  background: var(--pw-bg-2);
  border-top: 1px solid var(--pw-line);
  font-size: 13px;
  color: var(--pw-text-muted);
}
.pw-szybko-foot strong {
  color: var(--pw-ink);
  font-weight: 700;
}
.pw-szybko-foot .hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pw-text);
}
.pw-szybko-foot .hint svg {
  width: 16px;
  height: 16px;
  stroke: var(--pw-green);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Mobile (≤900): nagłówek i kolumna z numerem znikają. Zostają 2 kolumny:
   tekst (action) po lewej + czas (time) po prawej, oddzielone pionową linią. */
@media (max-width: 900px) {
  .pw-szybko-head { display: none; }
  .pw-szybko-num  { display: none; }
  .pw-szybko-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    padding: 22px 0;
    column-gap: 0;
    row-gap: 0;
  }
  .pw-szybko-action {
    grid-column: 1;
    grid-row: 1;
    padding: 0 18px;
    /* border-right zostaje z desktopa — działa jako separator z kolumną czasu */
  }
  .pw-szybko-action .t { font-size: 18px; }
  .pw-szybko-action .d { font-size: 12.5px; }
  .pw-szybko-time {
    grid-column: 2;
    grid-row: 1;
    min-width: 110px;
    justify-content: flex-end;
    padding: 0 18px;
  }
  .pw-szybko-time .v { font-size: 26px; }
}

@media (max-width: 480px) {
  .pw-szybko-row { padding: 18px 0; }
  .pw-szybko-action { padding: 0 12px 0 14px; }
  .pw-szybko-time   { padding: 0 14px 0 12px; min-width: 92px; }
  .pw-szybko-action .t { font-size: 17px; }
  .pw-szybko-time .v { font-size: 22px; }
}

/* =============================================================================
   OBSZAR DZIAŁANIA (mapa Polski w dark theme) — używana na geo-stronach.
   Wrapper .pw-obszar + struktura .pb-map-* z homepage, ale przemalowana.
   ============================================================================= */
.pw-obszar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.6fr;
  gap: 48px;
  align-items: center;
}
.pw-obszar-side h3 {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--pw-ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.pw-obszar-side p {
  color: var(--pw-text-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.pw-obszar-side p b { color: var(--pw-ink); font-weight: 600; }
.pw-obszar-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pw-obszar-features li {
  font-size: 15px;
  color: var(--pw-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-obszar-features li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pw-green);
  display: inline-block;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230d1014' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.pw-obszar-wrap {
  position: relative;
  width: 85%;
  margin: 0 auto;
}
.pw-obszar-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.pw-obszar .pw-voi {
  fill: var(--pw-bg-3);
  stroke: var(--pw-line);
  stroke-width: 1.2;
  transition: fill 0.25s ease;
}
.pw-obszar .pw-voi.hl {
  fill: rgba(93, 201, 85, 0.32);
  stroke: var(--pw-green);
  stroke-width: 1.8;
}
.pw-obszar .pw-city-pin .pulse-ring {
  animation: pw-pulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes pw-pulse {
  0%   { opacity: 0.55; transform: scale(0.9); }
  100% { opacity: 0;    transform: scale(2.2); }
}

@media (max-width: 900px) {
  .pw-obszar {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pw-obszar-wrap { width: 100%; max-width: 100%; }
  .pw-obszar-side { text-align: center; }
  .pw-obszar-features { align-items: center; }
}

/* =============================================================================
   WYMIANA DOKUMENTÓW — sekcja "Dwie teczki" (Variant A)
   Co potrzebujemy od inwestora · co przekazujemy w teczce po realizacji.
   ============================================================================= */
.pw-docs-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
}
.pw-docs-head .l { max-width: 720px; }
.pw-docs-head h2 {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 38px; letter-spacing: -0.025em; line-height: 1.08;
  color: var(--pw-ink); margin: 0;
}
.pw-docs-head .eyebrow {
  font-family: var(--pb-font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pw-green); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.pw-docs-head .eyebrow .bar { width: 22px; height: 1.5px; background: var(--pw-green); display: inline-block; }
.pw-docs-head .lead {
  font-size: 15px; line-height: 1.55; color: var(--pw-text-2);
  margin-top: 14px; max-width: 60ch;
}
.pw-docs-head .stat {
  font-family: var(--pb-font-mono); font-size: 11px; color: var(--pw-text-soft);
  letter-spacing: 0.06em; text-transform: uppercase; text-align: right;
  white-space: nowrap;
}
.pw-docs-head .stat b { color: var(--pw-yellow); font-weight: 700; }

.pw-docs-a {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 0; align-items: stretch;
  position: relative;
}

.pw-docs-panel {
  background: var(--pw-bg-3); border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-xl); padding: 28px 32px 30px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.pw-docs-panel .topstrip {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pw-docs-panel.in  .topstrip { background: var(--pw-amber); }
.pw-docs-panel.out .topstrip { background: var(--pw-green); }

.pw-docs-panel .ph {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px dashed var(--pw-line-2);
}
.pw-docs-panel .ph .lbl {
  font-family: var(--pb-font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--pw-text-soft); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.pw-docs-panel .ph .lbl .dir {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--pw-amber-tint); color: var(--pw-amber);
  font-size: 11px; font-weight: 800;
}
.pw-docs-panel.out .ph .lbl .dir { background: var(--pw-green-tint); color: var(--pw-green); }
.pw-docs-panel .ph h3 {
  font-family: var(--pb-font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em; color: var(--pw-ink); margin: 6px 0 0;
  line-height: 1.15;
}
.pw-docs-panel .ph .count {
  font-family: var(--pb-font-display); font-weight: 800;
  font-size: 13px; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.05); color: var(--pw-text);
  border: 1px solid var(--pw-line-2);
}
.pw-docs-panel.in .ph .count  { background: var(--pw-amber-tint); color: var(--pw-amber); border-color: rgba(255,153,51,0.30); }
.pw-docs-panel.out .ph .count { background: var(--pw-green-tint); color: var(--pw-green); border-color: rgba(93,201,85,0.30); }

.pw-docs-list { display: flex; flex-direction: column; gap: 10px; }
.pw-docs-row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: flex-start;
  padding: 14px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-md);
  transition: 180ms var(--pb-ease-out);
}
.pw-docs-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--pw-line-2);
}
.pw-docs-row .ic {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center; color: var(--pw-text-2);
}
.pw-docs-row .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pw-docs-panel.in  .pw-docs-row .ic { background: var(--pw-amber-tint); color: var(--pw-amber); }
.pw-docs-panel.out .pw-docs-row .ic { background: var(--pw-green-tint); color: var(--pw-green); }

.pw-docs-row .body .t {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 15px;
  color: var(--pw-ink); letter-spacing: -0.005em; line-height: 1.2;
}
.pw-docs-row .body .d {
  font-size: 12.5px; color: var(--pw-text-muted); line-height: 1.45; margin-top: 5px;
  max-width: 38ch;
}
.pw-docs-row .tag {
  font-family: var(--pb-font-mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
  color: var(--pw-text-muted); background: rgba(255,255,255,0.05);
  border: 1px solid var(--pw-line); white-space: nowrap;
}
.pw-docs-row .tag.req { color: var(--pw-amber); background: var(--pw-amber-tint); border-color: rgba(255,153,51,0.30); }
.pw-docs-row .tag.opt { color: var(--pw-text-2); background: rgba(255,255,255,0.05); }
.pw-docs-row .tag.ok  { color: var(--pw-green); background: var(--pw-green-tint); border-color: rgba(93,201,85,0.30); }

.pw-docs-panel .foot {
  margin-top: auto;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--pw-r-md);
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--pw-line-2);
  font-size: 12px; color: var(--pw-text-muted); line-height: 1.45;
}
.pw-docs-panel .foot svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-docs-panel.in  .foot svg { color: var(--pw-amber); }
.pw-docs-panel.out .foot svg { color: var(--pw-green); }
.pw-docs-panel .foot b { color: var(--pw-ink); }

/* Center exchange marker */
.pw-docs-swap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.pw-docs-swap::before, .pw-docs-swap::after {
  content: ''; position: absolute; left: 50%; width: 1px;
  background: var(--pw-line-2); transform: translateX(-50%);
}
.pw-docs-swap::before { top: 0; bottom: calc(50% + 36px); }
.pw-docs-swap::after  { top: calc(50% + 36px); bottom: 0; }
.pw-docs-swap .badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--pw-bg-2);
  border: 1px solid var(--pw-line-2);
  display: grid; place-items: center;
  color: var(--pw-yellow);
  box-shadow: 0 0 0 6px var(--pw-bg), 0 0 0 7px var(--pw-line);
  position: relative; z-index: 2;
}
.pw-docs-swap .badge svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-docs-swap .lbl {
  position: absolute; top: 50%; transform: translateY(50px);
  font-family: var(--pb-font-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--pw-text-soft); text-transform: uppercase; white-space: nowrap;
}

@media (max-width: 980px) {
  .pw-docs-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pw-docs-head .stat { text-align: left; }
  .pw-docs-head h2 { font-size: 30px; }

  .pw-docs-a {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pw-docs-swap {
    flex-direction: row;
    padding: 8px 0;
    margin: -1px 0;
  }
  .pw-docs-swap::before, .pw-docs-swap::after {
    left: auto; top: 50%; width: auto; height: 1px;
    background: var(--pw-line-2); transform: translateY(-50%);
  }
  .pw-docs-swap::before { left: 0; right: calc(50% + 60px); bottom: auto; top: 50%; }
  .pw-docs-swap::after  { right: 0; left: calc(50% + 60px); bottom: auto; top: 50%; }
  .pw-docs-swap .badge {
    width: 52px; height: 52px;
    box-shadow: 0 0 0 5px var(--pw-bg), 0 0 0 6px var(--pw-line);
  }
  .pw-docs-swap .badge svg { width: 24px; height: 24px; transform: rotate(90deg); }
  .pw-docs-swap .lbl {
    position: static;
    transform: none;
    margin-left: 14px;
  }
  .pw-docs-panel { padding: 22px 20px 24px; }
  .pw-docs-panel .ph h3 { font-size: 19px; }
  .pw-docs-row { padding: 12px; gap: 12px; }
}

