@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* ===== Paleta audio engineering: głęboki granat/cobalt + błękit/cyan + neon amber/cyan ===== */
  --bg: #f5f8fb;
  --bg-soft: #ebf2f8;
  --bg-card: #ffffff;
  --bg-header: rgba(245, 248, 251, 0.85);

  --ink: #071526;
  --ink-2: #0f2942;
  --muted: #41556b;
  --muted-2: #6c8299;
  --line: #d2e0ed;
  --line-2: #e3edf5;

  --green-deep: #06233d;
  --green-ink: #031526;
  --green: #0284c7;
  --green-mid: #0ea5e9;
  --neon: #38bdf8;
  --green-bright: #0284c7;
  --green-soft: #e0f2fe;
  --green-tint: #f0f9ff;
  --green-line: #bae6fd;

  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --red-deep: #991b1b;

  --grad-green: linear-gradient(135deg, #031526 0%, #0369a1 48%, #0ea5e9 100%);
  --grad-neon: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --grad-text: linear-gradient(100deg, #0284c7 10%, #0ea5e9 45%, #0369a1 90%);
  --glow-neon: 0 0 14px rgba(56, 189, 248, 0.55);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;

  --fs-2xs: 0.875rem;
  --fs-xs: 1rem;
  --fs-sm: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.65rem, 1.3rem + 1.4vw, 2.1rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 1.7rem + 3.6vw, 3.9rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
  --space-8: 7rem;

  --max-w: 1120px;
  --max-w-text: 760px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --header-h: 72px;
  --header-h-m: 60px;

  --shadow-xs: 0 1px 2px rgba(10, 46, 24, 0.06);
  --shadow-sm: 0 2px 10px rgba(10, 46, 24, 0.07), 0 1px 2px rgba(10, 46, 24, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 46, 24, 0.09), 0 2px 8px rgba(10, 46, 24, 0.06);
  --shadow-lg: 0 22px 48px rgba(10, 46, 24, 0.13), 0 8px 18px rgba(10, 46, 24, 0.08);
  --shadow-card-hover: 0 16px 36px rgba(14, 155, 74, 0.14), 0 4px 12px rgba(10, 46, 24, 0.08);
  --ring: 0 0 0 3px rgba(20, 194, 87, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 150ms var(--ease);
  --base: 260ms var(--ease);
  --slow: 500ms var(--ease);

  --z-header: 500;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: #0e9b4a; color: #fff; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -6%, rgba(20, 194, 87, 0.07), transparent 60%),
    radial-gradient(800px 380px at 88% 2%, rgba(52, 231, 108, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-2);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
p { margin-bottom: var(--space-3); text-wrap: pretty; }
a { color: var(--green); text-decoration: none; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--fast); }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

img, svg { max-width: 100%; height: auto; }
ul, ol { padding-left: var(--space-4); margin-bottom: var(--space-3); }
li { margin-bottom: var(--space-1); line-height: 1.65; }
strong { font-weight: 700; color: var(--ink); }

/* ===== Utilities ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.1rem, 3vw, 2rem); }
.text-block { max-width: var(--max-w-text); }
.text-center { text-align: center; }
.head-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mt-2 { margin-top: var(--space-2) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -90px; left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background: var(--green-ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  transition: top var(--fast);
}
.skip-link:focus { top: 0; color: #fff; }

/* ===== Przyciski premium ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-md);
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--base), box-shadow var(--base), background var(--base), color var(--fast), border-color var(--fast);
  white-space: nowrap;
  min-height: 52px;
  overflow: hidden;
}
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 155, 74, 0.32), inset 0 1px 0 rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 155, 74, 0.36), 0 0 22px rgba(52, 231, 108, 0.35), inset 0 1px 0 rgba(255,255,255,0.32);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--green-deep);
  border: 1.5px solid var(--green-line);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); background: #fdfffd; }

.btn-lg { padding: 1rem 2rem; font-size: var(--fs-lg); min-height: 60px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
@media (max-width: 560px) { .btn-row .btn { width: 100%; } }

/* ===== Nagłówek strony ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(220, 232, 220, 0.9);
  z-index: var(--z-header);
  transition: box-shadow var(--base), background var(--base);
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(10, 46, 24, 0.09);
  background: rgba(255, 255, 255, 0.92);
}

.scroll-progress {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0e9b4a 0%, #14c257 55%, #34e76c 100%);
  box-shadow: 0 0 12px rgba(52, 231, 108, 0.5);
  pointer-events: none;
  z-index: 2;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); height: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 clamp(1.1rem, 3vw, 2rem);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: linear-gradient(180deg, #fff, #eefaf1);
  border: 1.5px solid var(--green-line);
  color: var(--green);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow-xs), inset 0 1px 0 #fff;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-sub {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex; align-items: center; gap: var(--space-1);
  height: 100%;
}
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xs);
  color: var(--ink-2); border-radius: var(--radius-full);
  transition: color var(--fast), background var(--fast), box-shadow var(--fast);
  position: relative;
  text-decoration: none;
}
.nav-link:hover { color: var(--green-deep); background: var(--green-soft); text-decoration: none; }
.nav-link.active { color: var(--green-deep); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(14,155,74,0.18); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-mid);
  box-shadow: 0 0 8px rgba(52,231,108,0.8);
}

.header-cta { margin-left: var(--space-2); align-self: center; }
.header-cta.btn { min-height: 44px; padding: 0.55rem 1.25rem; font-size: var(--fs-2xs); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.menu-toggle:hover { border-color: var(--green); box-shadow: var(--shadow-xs); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.menu-toggle .x { display: none; }
body.nav-open .menu-toggle .bars { display: none; }
body.nav-open .menu-toggle .x { display: block; }

@media (max-width: 880px) {
  .site-header {
    height: var(--header-h-m);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,0.98);
  }
  .brand { font-size: var(--fs-md); }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h-m); bottom: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4) var(--space-5);
    flex-direction: column; align-items: stretch;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--base), opacity var(--base), visibility var(--base);
    overflow-y: auto;
    z-index: var(--z-header);
    height: auto;
  }
  body.nav-open .nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: var(--space-1); align-items: stretch; }
  .nav-link { width: 100%; justify-content: center; padding: var(--space-3); font-size: var(--fs-md); }
  .header-cta { margin-left: 0; margin-top: var(--space-2); }
  .header-cta.btn { width: 100%; min-height: 52px; font-size: var(--fs-md); }
}

/* ===== Układ treści ===== */
.main { padding-top: calc(var(--header-h) + 0px); }
@media (max-width: 880px) {
  .main { padding-top: var(--header-h-m); }
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; }
.section-soft {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(20,194,87,0.06), transparent 65%),
    var(--bg-soft);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

/* ===== Hero / nagłówki przewodnika ===== */
.guide-head {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: clip;
}
.guide-head::before,
.guide-head::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.guide-head::before {
  width: 520px; height: 340px;
  left: -120px; top: -60px;
  background: radial-gradient(closest-side, rgba(20,194,87,0.16), transparent);
}
.guide-head::after {
  width: 560px; height: 360px;
  right: -140px; top: -40px;
  background: radial-gradient(closest-side, rgba(52,231,108,0.15), rgba(246,199,68,0.08), transparent);
}
.guide-head h1 {
  margin: 1.1rem auto 1.1rem;
  max-width: 920px;
}
.guide-head .chapter-lede {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .guide-head .chapter-lede { font-size: var(--fs-md); }
}

/* Siatka w tle hero */
.guide-head-grid {
  position: absolute; inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(14,155,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,155,74,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(70% 75% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 75% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.chapter-num {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 9px 19px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--green-deep);
  border: 1.5px solid var(--green-line);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xs);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.chapter-num .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-mid);
  box-shadow: var(--glow-neon);
  animation: pulse-dot 2.4s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 231, 108, 0.6); }
  50% { box-shadow: 0 0 0 9px rgba(52, 231, 108, 0); }
}

/* Hero CTA + statystyki */
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center;
  margin-top: 1.9rem;
}
.hero-trust {
  margin-top: 1.1rem;
  font-size: var(--fs-2xs);
  color: var(--muted-2);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--green); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  max-width: 920px;
  margin: 2.2rem auto 0;
  text-align: left;
}
@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.7rem; } }
.hero-stat {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220,232,220,0.95);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
}
.hero-stat::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-neon);
  opacity: 0.9;
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--green-line); }
.hero-stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--green-deep);
  line-height: 1.1;
}
.hero-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.chapter-head {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.chapter-head h2, .chapter-head h1 { margin: 0; }
.chapter-lede {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.7;
  max-width: 740px;
  text-wrap: pretty;
}

/* Ilustracja hero w karcie premium */
.hero-art {
  max-width: 980px;
  margin: 2.4rem auto 0;
  background: #fff;
  border: 1px solid rgba(220,232,220,0.95);
  border-radius: var(--radius-xl);
  padding: clamp(0.9rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  position: relative;
}
.hero-art::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(20,194,87,0.28), transparent 30%, transparent 70%, rgba(52,231,108,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.hero-art-caption {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: var(--fs-2xs);
  color: var(--muted-2);
}
.hero-art-caption svg { width: 15px; height: 15px; color: var(--green); }

/* Pasek rozdziału */
.chapter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 0;
}
@media (max-width: 880px) { .chapter-bar { top: var(--header-h-m); } }
.chapter-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.7rem;
}
.chapter-bar .crumb {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-2xs);
  color: var(--muted);
}
.chapter-bar .crumb b { color: var(--green-deep); }
.chapter-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chapter-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--green-deep);
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xs);
  box-shadow: var(--shadow-xs);
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
  text-decoration: none;
}
.chapter-nav a:hover { background: var(--green-soft); border-color: var(--green); transform: translateY(-1px); text-decoration: none; }
.chapter-nav a[rel="prev"] svg { transform: rotate(180deg); }
.chapter-nav svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 640px) {
  .chapter-bar-inner { gap: 0.5rem; }
  .chapter-bar .crumb { width: 100%; }
  .chapter-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .chapter-nav a { justify-content: center; min-width: 0; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Nawigacja poprz/nast na końcu rozdziału */
.pill-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3);
  margin-top: var(--space-4); margin-bottom: 0;
}
/* Końcowa sekcja z samą nawigacją — bez pełnego paddingu sekcji treściowej */
.section.nav-tail { padding-top: 0; padding-bottom: var(--space-5); }
.pill-nav a {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(180deg, #f2fbf5, #e7f6ec);
  border: 1.5px solid var(--green-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
  overflow: hidden;
  text-decoration: none;
}
.pill-nav a::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-neon);
  opacity: 1;
  transition: opacity var(--fast);
}
.pill-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-line); text-decoration: none; }
.pill-nav a:hover::before { opacity: 1; }
.pill-nav .dir {
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xs);
  color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.07em;
}
.pill-nav .target { font-family: var(--font-head); font-weight: 800; color: var(--green-deep); font-size: var(--fs-md); letter-spacing: -0.01em; }
.pill-nav a.next { text-align: right; }
.pill-nav a.next::before { left: auto; right: 0; }
@media (max-width: 640px) { .pill-nav { grid-template-columns: 1fr; } .pill-nav a.next { text-align: left; } }

/* ===== Spis treści ===== */
.toc {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.8rem 0 0.5rem;
}
@media (max-width: 760px) { .toc { grid-template-columns: 1fr; } }
.toc a.toc-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num body" "num cta";
  column-gap: 1.1rem;
  align-items: center;
  padding: 1.4rem 1.4rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
  overflow: hidden;
  text-decoration: none;
}
.toc a.toc-item::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-neon);
  opacity: 0;
  transition: opacity var(--fast);
}
.toc a.toc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--green-line); text-decoration: none; }
.toc a.toc-item:hover::after { opacity: 1; }
.toc a.toc-item:hover .toc-read svg { transform: translateX(4px); }
.toc .toc-num {
  grid-area: num;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 155, 74, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl);
}
.toc .toc-body { grid-area: body; }
.toc .toc-title {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  color: var(--green-deep);
  font-size: var(--fs-md);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.toc .toc-desc { display: block; font-size: var(--fs-2xs); color: var(--muted); line-height: 1.55; }
.toc .toc-read {
  grid-area: cta;
  font-family: var(--font-head); font-weight: 800;
  font-size: var(--fs-2xs);
  color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 0.55rem;
}
.toc .toc-read svg { width: 15px; height: 15px; transition: transform var(--fast); }

/* ===== Figury ===== */
.figure {
  background: var(--bg-card);
  border: 1px solid rgba(220,232,220,0.95);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.7rem);
  margin: 1.8rem 0;
  box-shadow: var(--shadow-md), inset 0 1px 0 #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.figure svg { width: 100%; max-width: 860px; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.figure.narrow svg { max-width: 640px; }
.figure figcaption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
  text-wrap: pretty;
}
.figure figcaption b { color: var(--green-deep); }

/* ===== Nagłówki sekcji ===== */
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 820px; }
.sec-head.text-center, .text-center .sec-head { margin-left: auto; margin-right: auto; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid var(--green-line);
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  margin-bottom: 0.9rem;
}
.sec-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); box-shadow: 0 0 8px rgba(52,231,108,0.7); flex-shrink: 0; }
.sec-head h2 { letter-spacing: -0.025em; margin-bottom: 0.7rem; }
.sec-head p { font-size: var(--fs-md); color: var(--muted); max-width: 740px; margin-bottom: 0; }
@media (max-width: 640px) { .sec-head p { font-size: var(--fs-sm); } }

/* ===== Karty premium ===== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--neon));
  opacity: 0;
  transition: opacity var(--fast);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green-line);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-soft), #eefaf1);
  color: var(--green-deep);
  border: 1px solid rgba(179,226,192,0.7);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-xs);
  margin-bottom: 1rem;
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: var(--fs-lg); letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.card p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.65; }
.card-icon.warm { background: linear-gradient(135deg, #faf2d8, #fdf8e6); color: var(--amber); border-color: rgba(154,107,6,0.22); }
.card-icon.red { background: linear-gradient(135deg, #fbeae3, #fdf2ed); color: var(--red); border-color: rgba(179,64,42,0.2); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
  position: relative;
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-line);
}
.mini-card h4 {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-card h4 svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); }
.mini-card p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.6; }

/* Zasady */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .rules-grid { grid-template-columns: 1fr; } }
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--base), box-shadow var(--base);
}
.rule-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad-neon);
}
.rule-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rule-card .rule-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--grad-green);
  color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-md);
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 12px rgba(14,155,74,0.28);
}
.rule-card h3 { font-size: var(--fs-md); margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.rule-card p { font-size: var(--fs-2xs); color: var(--muted); margin: 0; line-height: 1.65; }
.rule-card.alert::before { background: linear-gradient(90deg, #b3402a, #e07a5a); }
.rule-card.alert .rule-num { background: linear-gradient(135deg, #b3402a, #d45a3e); }

.price-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xs);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(10,61,32,0.25);
}
.price-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px rgba(52,231,108,0.9); }
.price-tag.alt { background: #fff; color: var(--green-deep); border: 1.5px solid var(--green-line); box-shadow: var(--shadow-xs); }
.price-tag.alt::before { background: var(--green-mid); box-shadow: none; }

/* Siatki */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Kroki ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--green-line) 15%, var(--green-line) 85%, transparent);
  z-index: 0;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step {
  position: relative; z-index: 1; text-align: center;
  padding: 1.4rem 1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-line); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg);
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14,155,74,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 3px solid #fff;
  outline: 1.5px solid var(--green-line);
}
.step h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.step p { font-size: var(--fs-2xs); color: var(--muted); margin: 0; line-height: 1.6; }

/* ===== Porównanie ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-card { padding: 1.7rem; border-radius: var(--radius-lg); border-width: 1.5px; box-shadow: var(--shadow-sm); }
.compare-bad {
  background: linear-gradient(180deg, #fdf8f1, #fdf6ec);
  border: 1.5px solid #e8d5b8;
}
.compare-good {
  background: linear-gradient(180deg, #f2fbf4, var(--green-tint));
  border: 1.5px solid var(--green-line);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(20,194,87,0.06);
}
.compare-card h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; font-size: var(--fs-lg); letter-spacing: -0.015em; }
.compare-card .ico {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.compare-card .ico svg { width: 21px; height: 21px; }
.compare-bad .ico { background: #f4e3d0; color: var(--red); }
.compare-good .ico { background: var(--green-deep); color: #fff; }
.compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.compare-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.75rem 0.85rem; background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-sm); font-size: var(--fs-xs); line-height: 1.6;
}
.compare-list li svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; }
.compare-bad .compare-list li svg { color: var(--red); }
.compare-good .compare-list li svg { color: var(--green); }

/* ===== Tabele ===== */
.specs {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.specs th, .specs td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line-2); font-size: var(--fs-xs); line-height: 1.6; }
.specs th { background: var(--green-deep); color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; }
.specs th:first-child { border-top-left-radius: 0; }
.specs td { color: var(--ink-2); }
.specs tr:last-child td { border-bottom: none; }
.specs tbody tr { transition: background var(--fast); }
.specs tbody tr:hover { background: var(--green-tint); }
.specs tbody tr:nth-child(even) { background: rgba(238,250,241,0.45); }
.specs tbody tr:nth-child(even):hover { background: var(--green-tint); }
.specs .lbl { font-weight: 700; color: var(--ink); width: 32%; }
@media (max-width: 640px) {
  .specs { display: block; font-size: var(--fs-2xs); width: 100%; }
  .specs thead, .specs tbody { display: block; width: 100%; }
  .specs tr { display: block; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-2); }
  .specs thead tr { padding: 0; border: none; }
  .specs th { display: none; }
  .specs td { display: block; border-bottom: none; padding: 4px 0; white-space: normal; }
  .specs .lbl { font-size: var(--fs-2xs); color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
}

/* ===== Ramki info ===== */
.warning-box, .tip-box, .disclaimer-box {
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  line-height: 1.6;
}
.warning-box svg, .tip-box svg, .disclaimer-box svg {
  width: 25px; height: 25px;
  flex-shrink: 0;
  margin-top: 2px;
}
.warning-box p, .tip-box p, .disclaimer-box p {
  font-size: var(--fs-xs);
  margin: 0;
  line-height: 1.65;
}

.warning-box {
  background: linear-gradient(180deg, #fdf0ea, var(--red-soft));
  border: 1.5px solid rgba(179, 64, 42, 0.32);
  border-left: 5px solid var(--red);
}
.warning-box svg { color: var(--red); }
.warning-box p { color: #5d2318; }
.warning-box strong { color: var(--red-deep); }

.tip-box {
  background: linear-gradient(180deg, #fffdf2, var(--amber-soft));
  border: 1px solid rgba(154, 107, 6, 0.28);
  border-left: 5px solid #c99a1a;
}
.tip-box svg { color: var(--amber); }
.tip-box p { color: #57450a; }

.disclaimer-box {
  background: #fff;
  border: 1.5px dashed rgba(154,107,6,0.4);
}
.disclaimer-box svg { color: var(--amber); }
.disclaimer-box p { color: #57450a; }

/* ===== Panel premium ===== */
.fact-panel {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background:
    radial-gradient(420px 220px at 88% 12%, rgba(52,231,108,0.22), transparent 60%),
    radial-gradient(520px 280px at 8% 100%, rgba(0,0,0,0.22), transparent 60%),
    linear-gradient(135deg, #082e18 0%, #0c5a2c 55%, #0e9b4a 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}
.fact-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(115deg, transparent 40%, black 85%);
  pointer-events: none;
}
.fact-panel .fact-icon {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(52,231,108,0.35);
  position: relative;
}
.fact-panel .fact-icon svg { width: 42px; height: 42px; }
.fact-panel .fact-text { display: flex; flex-direction: column; gap: 4px; position: relative; }
.fact-panel h3 { color: #fff; font-size: var(--fs-lg); letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.fact-panel p { color: rgba(255,255,255,0.92); font-size: var(--fs-xs); margin: 0; line-height: 1.65; }
.fact-panel p strong { color: #fff; }
.fact-panel a { color: #c9f5d2; text-decoration: underline; text-underline-offset: 3px; }
.fact-panel a:hover { color: #fff; }
@media (max-width: 560px) {
  .fact-panel { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .fact-panel .fact-icon { margin: 0 auto; }
}

/* ===== Karty flasherów ===== */
.flasher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .flasher-grid { grid-template-columns: 1fr; } }
.flasher-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.65rem;
  align-items: flex-start;
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
  position: relative;
  overflow: hidden;
}
.flasher-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad-neon);
}
.flasher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green-line);
}
.flasher-card .flasher-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid rgba(14,155,74,0.18);
  padding: 5px 13px;
  border-radius: var(--radius-full);
}
.flasher-card h3 { font-size: var(--fs-xl); margin: 0; letter-spacing: -0.02em; }
.flasher-card p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.65; }
.flasher-card .flasher-url {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.flasher-card .btn { margin-top: 0.7rem; }

.store-links {
  display: flex; flex-direction: column; gap: 0.6rem;
  width: 100%; margin-top: 0.6rem;
}
.store-links .btn { width: 100%; margin-top: 0; }

/* ===== Scenka ===== */
.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.scene-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad-green);
}
.scene-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.scene-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-green);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(14,155,74,0.3);
}
.scene-icon svg { width: 25px; height: 25px; }
.scene-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.015em;
  color: var(--green-deep);
}
.scene-desc { font-size: var(--fs-2xs); color: var(--muted); margin: 0; }
.scene-quote {
  background: linear-gradient(180deg, #f2fbf4, var(--green-tint));
  border: 1px solid var(--green-line);
  border-left: 5px solid var(--green-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.3rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  color: var(--ink-2);
  margin: 0.9rem 0;
  line-height: 1.6;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}
.scene-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}
.scene-outcome svg {
  width: 21px; height: 21px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== Schemat przepływu ===== */
.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
  padding: 1.2rem 1rem;
  background: #fff;
  border: 1.5px dashed var(--green-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.pipeline-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  border: 1px solid var(--green-line);
  box-shadow: var(--shadow-xs);
  letter-spacing: -0.01em;
}
.pipeline-node.hero {
  background: var(--grad-green);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 16px rgba(14,155,74,0.3);
}
.pipeline-node svg { width: 18px; height: 18px; }
.pipeline-sep { color: var(--green-mid); display: grid; place-items: center; }
.pipeline-sep svg { width: 20px; height: 20px; }

/* ===== Odznaki ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--radius-full);
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xs);
  letter-spacing: 0.02em;
}
.badge-green { background: var(--green-deep); color: #fff; box-shadow: 0 4px 12px rgba(10,61,32,0.25); }
.badge-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(154,107,6,0.25); }
.badge-red { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(179,64,42,0.25); }

/* ===== Stopka premium ===== */
.site-footer {
  margin-top: var(--space-7);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(52,231,108,0.14), transparent 60%),
    radial-gradient(600px 280px at 85% 10%, rgba(20,194,87,0.12), transparent 60%),
    linear-gradient(180deg, #0b3a20 0%, #082e18 100%);
  color: #e8f3e6;
  border-top: 1px solid rgba(52,231,108,0.25);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon) 30%, var(--neon) 70%, transparent);
  opacity: 0.7;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.1rem, 3vw, 2rem) 2rem;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-brand .brand { color: #fff; margin-bottom: 0.9rem; font-size: var(--fs-lg); text-decoration: none; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); color: #fff; box-shadow: none; }
.footer-brand .brand-sub { color: #9be8a8; -webkit-text-fill-color: #9be8a8; background: none; }
.footer-tag { font-size: var(--fs-xs); color: rgba(255,255,255,0.82); max-width: 380px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-head); font-size: var(--fs-2xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em; color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li { margin: 0; }
.footer-col a { font-size: var(--fs-xs); color: rgba(255,255,255,0.82); text-decoration: none; transition: color var(--fast), padding-left var(--fast); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding: 1.3rem 0 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: var(--fs-2xs); color: rgba(255,255,255,0.72); margin: 0; line-height: 1.6; }
.footer-bottom .footer-copy { margin-top: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.88); font-weight: 600; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 1.5rem; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-tag { max-width: none; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
}

/* ===== Animacje reveal (z bramką JS) ===== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: 0.08s; }
.js .d2 { transition-delay: 0.16s; }
.js .d3 { transition-delay: 0.24s; }
.js .d4 { transition-delay: 0.32s; }
.js .d5 { transition-delay: 0.4s; }
/* Bez JS: wszystko widoczne od razu */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Powiększanie ilustracji ===== */
.figure, .hero-art { position: relative; }
.figure-zoom { cursor: zoom-in; }

.figure-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid var(--green-line);
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--green-deep);
  box-shadow: 0 2px 10px rgba(10, 46, 24, 0.14);
  pointer-events: none;
  animation: hint-pulse 2.4s var(--ease) infinite;
  z-index: 2;
}
.figure-hint svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
@keyframes hint-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(10, 46, 24, 0.14); }
  50% { transform: scale(1.06); box-shadow: 0 5px 18px rgba(52, 231, 108, 0.45); }
}
@media (hover: none), (max-width: 880px) {
  .figure-hint { display: inline-flex; }
}

.lightbox { position: fixed; inset: 0; z-index: 700; display: none; }
.lightbox.open { display: block; }
body.lightbox-open { overflow: hidden; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 30, 16, 0.92); backdrop-filter: blur(6px); }
.lightbox-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  touch-action: none;
  display: grid; place-items: center;
  cursor: grab;
}
.lightbox-holder { will-change: transform; background: #fff; border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow-lg); }
.lightbox-holder svg {
  display: block;
  width: min(90vw, 1400px);
  max-width: none;
  height: auto;
}
@media (max-width: 880px) {
  .lightbox-holder { padding: 0.7rem; border-radius: 14px; width: 94vw; overflow: hidden; }
  .lightbox-holder svg { width: 100%; }
}
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(8, 30, 16, 0.94));
  color: #d9eddb;
  font-size: var(--fs-2xs);
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
}
.lightbox-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--green-deep);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-2xs);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.lightbox-close:hover { color: var(--green); }
.lightbox-close svg { width: 16px; height: 16px; }

/* Subtelny scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #b9d4bd; border-radius: 8px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

@media print {
  .site-header, .site-footer, .menu-toggle, .nav, .chapter-bar, .pill-nav, .hero-ctas, .hero-stats { display: none !important; }
  .figure { break-inside: avoid; }
  .lightbox, .figure-hint { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
