/* =====================================================================
   KLUB STJ — Shooting Team Jammas
   Arkusz stylów strony stj.club (pierwsza odsłona)
   ---------------------------------------------------------------------
   Spis treści
   1.  Tokeny systemu wizualnego
   2.  Baza
   3.  Typografia i elementy wspólne
   4.  Przyciski, etykiety
   5.  Nagłówek i nawigacja
   6.  Hero + tarcza
   7.  Pasek haseł
   8.  01 Klub
   9.  02 Wkrótce (podgląd aplikacji, funkcje, etapy)
   10. 03 Ekosystem CSJ
   11. 04 Komunikaty
   12. 05 Kontakt
   13. Stopka, toast
   14. Animacje i dostępność
   15. Responsywność
   ===================================================================== */

/* 1. TOKENY ----------------------------------------------------------- */
:root {
  /* Kolory marki */
  --bordo: #850d23;          /* kolor znaku STJ (logo) */
  --bordo-500: #a3132e;      /* hover, gradienty */
  --bordo-700: #6a0a1c;
  --bordo-900: #3e0611;
  --bordo-jasny: #c8203f;    /* bordo na ciemne tło (jaśniejsze od logo: kontrast min. 3:1 na grafitowym tle, WCAG) */
  --mosiadz: #c9a45c;        /* drobne akcenty, „łuska” */

  /* Neutralne */
  --g-950: #0b0c0e;          /* grafit — tło główne */
  --g-900: #111216;
  --g-850: #16181c;
  --g-800: #1b1d22;
  --g-700: #262931;
  --g-600: #353943;
  --stal: #959ba6;           /* tekst drugorzędny na ciemnym */
  --kosc-50: #f4f1eb;        /* jasne tło sekcji */
  --kosc-100: #ebe6dc;
  --kosc-200: #dcd5c8;
  --tusz: #141518;           /* tekst na jasnym */
  --tusz-2: #575b63;         /* tekst drugorzędny na jasnym */
  --fokus: #f2c94c;

  /* Typografia */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rytm */
  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --skos: -14deg;            /* kąt skosu — motyw z logo */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BAZA ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--g-950);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--bordo); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { 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: fixed; left: 16px; top: -60px; z-index: 100; background: var(--fokus); color: var(--tusz); padding: .6rem 1rem; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--bordo); }   /* żółta ramka ginie na jasnym tle */
main [tabindex="-1"]:focus { outline: none; }                      /* sekcja, do której przeniesiono fokus z menu */

/* 3. TYPOGRAFIA I ELEMENTY WSPÓLNE ------------------------------------ */
.section { position: relative; padding-block: var(--section-y); overflow: hidden; }
.section--light { background: var(--kosc-50); color: var(--tusz); --floor: var(--kosc-50); }
.section--dark { background: var(--g-900); color: #fff; --floor: var(--g-900); }
.section--brand { background: linear-gradient(155deg, #93102a 0%, var(--bordo) 42%, #560716 100%); color: #fff; --floor: #560716; }

.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tusz-2);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--stal); }
.eyebrow span {
  display: inline-grid; place-items: center;
  min-width: 2.4rem; padding: .3rem .55rem;
  background: var(--bordo); color: #fff;
  letter-spacing: .06em;
  transform: skewX(var(--skos));
}
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.eyebrow--light span { background: #fff; color: var(--bordo); }

.h2 {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: .94;
  letter-spacing: -.005em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.h2 em { font-style: italic; color: var(--bordo); }
.section--dark .h2 em { color: var(--bordo-jasny); }
.section--brand .h2 em { color: rgba(255, 255, 255, .66); }
.h3 {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 62ch; }
.section--light .lead { color: var(--tusz); }
.section--light p { color: var(--tusz-2); }
.section--dark p { color: #c9cdd4; }
.section--dark .lead { color: #e7e9ed; }

.textlink { color: inherit; text-decoration: underline; text-decoration-color: var(--bordo-jasny); text-decoration-thickness: 2px; text-underline-offset: .25em; font-weight: 600; }
.textlink:hover { text-decoration-color: currentColor; }
.section--light .textlink { text-decoration-color: var(--bordo); }

/* 4. PRZYCISKI, ETYKIETY ---------------------------------------------- */
.btn {
  --b-bg: transparent; --b-bd: transparent; --b-fg: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.8rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--b-fg); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b-bg); border: 1.5px solid var(--b-bd);
  transform: skewX(var(--skos));
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { --b-bg: var(--bordo); --b-bd: var(--bordo); }
.btn--primary:hover { --b-bg: var(--bordo-500); --b-bd: var(--bordo-500); }
.btn--ghost { --b-bd: rgba(255, 255, 255, .42); }
.btn--ghost:hover { --b-bd: #fff; --b-bg: rgba(255, 255, 255, .07); }
.btn--dark { --b-bg: var(--tusz); --b-bd: var(--tusz); }
.btn--dark:hover { --b-bg: var(--bordo); --b-bd: var(--bordo); }
.btn--sm { padding: .7rem 1.2rem; font-size: .92rem; }

.chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .75rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; margin: 0 0 1.6rem;
}
.chip__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #3fd68a; box-shadow: 0 0 0 0 rgba(63, 214, 138, .6); animation: pulse 2.2s infinite; }

/* Media społecznościowe */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { position: relative; isolation: isolate; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; transition: color .25s var(--ease), transform .25s var(--ease); }
.social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid rgba(255, 255, 255, .28); transform: skewX(var(--skos)); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.social a:hover { transform: translateY(-2px); }
.social a:hover::before { background: var(--bordo); border-color: var(--bordo); }
.social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.contact__social { margin-top: 2.2rem; }
.contact__social-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stal) !important; margin-bottom: .9rem; }
.social--footer { margin-top: 1.4rem; }
.social--footer a { width: 42px; height: 42px; }
.nav__extra { display: flex; align-items: center; gap: 2.2rem; }
.social--menu { display: none; }

/* 5. NAGŁÓWEK I NAWIGACJA --------------------------------------------- */
/* Tło nagłówka na pseudo-elemencie: backdrop-filter na samym nagłówku
   zamknąłby w nim panel menu mobilnego (position: fixed). */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; border-bottom: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.site-header.is-scrolled::before, .site-header.menu-open::before { background: rgba(11, 12, 14, .86); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: rgba(255, 255, 255, .07); }
.site-header.menu-open::before { background: var(--g-950); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }

.announce { background: var(--bordo); color: #fff; font-size: .92rem; text-align: center; padding: .55rem var(--gutter); line-height: 1.35; }
.announce a { color: #fff; font-weight: 700; margin-left: .5rem; text-underline-offset: .2em; white-space: nowrap; }

.nav { display: flex; align-items: center; }
.nav__panel { display: flex; align-items: center; gap: 2.2rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: inline-flex; align-items: baseline; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .76); text-decoration: none; padding: .4rem 0;
  transition: color .2s;
}
.nav__num { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .04em; color: var(--stal); }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bordo-jasny); transform: scaleX(0) skewX(var(--skos)); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover, .nav__list a.is-active { color: #fff; }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1) skewX(var(--skos)); }
.nav__toggle { display: none; }

/* 6. HERO --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 1000px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(1rem, 4vh, 3.25rem));
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  background: var(--g-950);
  --floor: var(--g-950);
}
.hero__grid { margin-top: auto; margin-bottom: auto; }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 76% 42%, rgba(133, 13, 35, .5), transparent 70%),
    radial-gradient(35% 45% at 0% 100%, rgba(133, 13, 35, .22), transparent 70%);
}
.hero__bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 25%, transparent 78%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; margin-bottom: clamp(1.1rem, 2.8vh, 1.7rem); }
/* rozmiar zależny też od wysokości ekranu — daty pod tytułem mają się zmieścić od razu */
.hero__line { display: block; font-size: clamp(3rem, 7.3vw, 6.4rem); font-size: clamp(2.8rem, min(7.3vw, 11svh), 6.4rem); }
.hero__line--accent { color: var(--bordo); background: linear-gradient(180deg, #b5172f 0%, #9a1029 45%, var(--bordo) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.hero__sub { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: clamp(1.3rem, 3.2vh, 2rem); display: flex; align-items: center; gap: .9rem; }
.hero__sub::before { content: ""; width: 2.6rem; height: 3px; background: var(--bordo-jasny); transform: skewX(var(--skos)); flex: none; }
.hero__lead { font-size: clamp(1.08rem, 1.45vw, 1.22rem); color: #c9cdd4; max-width: 34em; margin-bottom: clamp(1.9rem, 4.6vh, 3rem); }
.hero__lead strong { color: #fff; font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--bordo-jasny); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; padding-left: .4rem; }

.hero__visual { position: relative; justify-self: center; width: min(112%, 680px); width: min(112%, 680px, 76svh); }
.target { position: relative; aspect-ratio: 1; }
.target__svg { width: 100%; height: 100%; overflow: visible; }
.target__rings circle { fill: none; stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; }
.target__rings .target__aim { fill: url(#tgFill); stroke: none; filter: drop-shadow(0 0 40px rgba(163, 19, 46, .55)); }
.target__rings .target__inner { stroke: rgba(255, 255, 255, .38); }
.target__tick-ring { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 9; stroke-dasharray: 1.2 6.44; }
.target__ticks { transform-box: fill-box; transform-origin: center; animation: spin 140s linear infinite; }
.target__nums text { font-family: var(--font-mono); font-size: 11px; fill: rgba(255, 255, 255, .38); text-anchor: middle; }
.target__nums .target__num-in { fill: rgba(255, 255, 255, .62); }
.shot { fill: #f4f1eb; stroke: rgba(11, 12, 14, .65); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: shot-in .35s var(--ease) both; }
.shot.is-last { fill: #fff; stroke: var(--mosiadz); stroke-width: 2.2; }
.shot-ripple { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple .8s ease-out both; }
.target__shots.is-clearing .shot { transition: opacity .6s; opacity: 0; }

.scorecard {
  position: absolute; right: -2%; bottom: 2%; width: 15.5rem;
  background: rgba(17, 18, 22, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--bordo-jasny);
  padding: .85rem 1rem 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--stal);
}
.scorecard__head { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; margin-bottom: .6rem; }
.scorecard__total b { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: 0; }
.scorecard__sigma { color: var(--bordo-jasny); }
.scorecard__list { display: grid; grid-template-columns: repeat(5, 1fr); align-content: start; gap: .3rem; list-style: none; margin: 0; padding: 0; min-height: 3.5rem; }
.scorecard__list li { text-align: center; padding: .2rem 0; background: rgba(255, 255, 255, .05); color: #fff; font-size: .74rem; animation: fade-up .3s var(--ease) both; }
.scorecard__list li.is-ten { background: rgba(184, 28, 59, .22); }

.hero__stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(1.25rem, 4vh, 3.5rem) 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { padding: clamp(.8rem, 2vh, 1.2rem) 1.4rem 0 0; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stal); margin-bottom: .45rem; }
.stat dd { margin: 0; font-size: 1rem; color: #d8dbe0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; }
.stat__big { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.85rem; line-height: 1; color: #fff; letter-spacing: .01em; }
.stat--soon strong { color: var(--bordo-jasny); font-weight: 600; }
.progress { display: flex; gap: 4px; width: 100%; margin-top: .55rem; }
.progress i { flex: 1; height: 5px; background: rgba(255, 255, 255, .12); transform: skewX(var(--skos)); }
.progress i.is-done { background: var(--bordo-jasny); }
.progress i.is-now { background: linear-gradient(90deg, var(--bordo-jasny) 0 45%, rgba(255, 255, 255, .12) 45%); animation: blink 1.4s ease-in-out infinite alternate; }

/* Intro hero — prowadzi CSS od pierwszego malowania (nie czeka na main.js):
   tarcza na środku → strzał (0,33 s) → [.intro--go: najwcześniej 0,6 s, gdy gotowe fonty hero, najpóźniej 1,2 s]
   tarcza odjeżdża na miejsce (0,6 s), tekst wjeżdża. Klasa .intro — skrypt w <head>;
   .intro--ready, zmienne --ix/--iy/--is (środek ekranu) i .intro--go — skrypt zaraz za sekcją hero; sprzątanie — main.js.
   Animacje z wypełnieniem „backwards” (nie „both”), żeby przeglądarka od razu zgłosiła tekst jako widoczny (LCP). */
.intro:not(.intro--ready):not(.intro--go) .hero__visual { opacity: 0; }   /* bez mignięcia tarczy, zanim skrypt ustawi ją na środku */
.intro--ready:not(.intro--go) .hero__visual { transform: translate(var(--ix), var(--iy)) scale(var(--is)); }
.intro--ready .target__svg { animation: intro-pop .3s cubic-bezier(.2, .7, .2, 1) both, target-hit .55s var(--ease) .33s; }
.intro--ready .target__aim { animation: target-flash .7s ease-out .33s; }
.intro--ready .shot--intro { animation: shot-in .35s var(--ease) .33s both; }
.shot-ripple--intro { animation: none; opacity: 0; }
.intro--ready .shot-ripple--intro { animation: ripple .8s ease-out .33s; }
.target__pop-svg { opacity: 0; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 76px; fill: #fff; text-anchor: middle; pointer-events: none; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.intro--ready .target__pop-svg { animation: target-pop-svg 1.1s var(--ease) .33s both; }
.intro--go .hero__visual { animation: intro-fly .6s cubic-bezier(.65, 0, .2, 1) backwards; }
.intro:not(.intro--go) [data-intro], .intro:not(.intro--go) .site-header, .intro:not(.intro--go) .scorecard { opacity: 0; }
.intro--go [data-intro] { animation: intro-text .45s var(--ease) backwards; animation-delay: var(--intro-d, 0s); }
.intro--go .site-header { animation: intro-fade .5s var(--ease) .1s backwards; }
.intro--go .scorecard { animation: intro-text .5s var(--ease) .4s backwards; }
/* dostępność: kto w trakcie intro przejdzie Tabem do menu lub przycisków, od razu je widzi */
.intro .site-header:focus-within, .intro .hero__cta:focus-within { opacity: 1; animation: none; }
@keyframes intro-pop { from { transform: scale(.86); } to { transform: none; } }
@keyframes intro-fly { from { transform: translate(var(--ix), var(--iy)) scale(var(--is)); } to { transform: none; } }
@keyframes target-pop-svg { 0% { opacity: 0; transform: translateY(24px) scale(.7); } 22% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(-12px); } 100% { opacity: 0; transform: translateY(-40px) scale(.96); } }
@keyframes intro-text { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
.target__pop { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3rem; line-height: 1; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, .55); animation: target-pop 1.3s var(--ease) both; }
.target.is-hit .target__svg { animation: target-hit .55s var(--ease); }
.target.is-hit .target__aim { animation: target-flash .7s ease-out; }
@keyframes target-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 22% { opacity: 1; transform: translate(-50%, -120%) scale(1); } 70% { opacity: 1; transform: translate(-50%, -135%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -165%) scale(.96); } }
@keyframes target-hit { 0% { transform: scale(1); } 18% { transform: scale(.965) rotate(-.8deg); } 45% { transform: scale(1.012) rotate(.3deg); } 100% { transform: none; } }
@keyframes target-flash { 0% { filter: drop-shadow(0 0 40px rgba(163, 19, 46, .55)) brightness(1.6); } 100% { filter: drop-shadow(0 0 40px rgba(163, 19, 46, .55)) brightness(1); } }

/* 7. PASEK HASEŁ --------------------------------------------------------- */
.ticker { position: relative; z-index: 2; margin-top: -1.3rem; padding: 1.2rem 0; }
/* miejsce pod paskiem haseł: zanim następna sekcja go zakryje, zatrzymuje się na ekranie i można go przeczytać */
.section--ticker { padding-bottom: clamp(7rem, 28vh, 15rem); padding-bottom: clamp(7rem, 28svh, 15rem); }
/* Bordowy pas zawsze na całą szerokość ekranu (szerszy od ekranu, obrócony wokół jego środka);
   hasła przesuwają się wewnątrz pasa */
.ticker__band {
  width: 130vw; margin-left: calc(50% - 65vw);
  background: var(--bordo); color: #fff; overflow: hidden;
  transform: rotate(-2deg);
  padding: .85rem 0;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.ticker__track {
  display: flex; width: max-content;
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.6rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  animation: ticker 140s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; }
.ticker__track span::after { content: ""; width: .7em; height: .7em; margin: 0 1.6rem; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bordo), inset 0 0 0 6px rgba(255, 255, 255, .55); }

/* 8. 01 KLUB ------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__copy p:not(.eyebrow):not(.lead) { max-width: 62ch; }
.idcard { position: relative; background: #fff; border: 1px solid var(--kosc-200); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); box-shadow: 0 30px 60px -40px rgba(20, 21, 24, .45); }
.idcard::before { content: ""; position: absolute; top: 0; right: 0; width: 48px; height: 48px; background: linear-gradient(225deg, var(--bordo) 0 50%, transparent 50%); }
.idcard__logo { padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.8rem, 3.5vw, 2.8rem) 1.6rem; border-bottom: 1px dashed var(--kosc-200); }
.idcard__logo img { width: 100%; max-width: 330px; margin-inline: auto; }
.idcard__facts { margin: 0; padding: 1.1rem clamp(1.4rem, 3vw, 2.2rem) 1.5rem; }
.idcard__facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--kosc-100); }
.idcard__facts > div:last-child { border-bottom: 0; }
.idcard__facts dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tusz-2); padding-top: .2rem; }
.idcard__facts dd { margin: 0; font-weight: 600; color: var(--tusz); line-height: 1.4; }
.idcard__facts [hidden] { display: none; }
/* Wizytówka odwracana przy przewijaniu: tył (bordo + logo) → przód (dane).
   Kąt obrotu (--flip) ustawia JS; bez JS / przy „ogranicz ruch” widać przód. */
.idcard-flip { perspective: 1600px; }
.idcard-flip__inner { position: relative; transform-style: preserve-3d; transform: rotateY(var(--flip, 0deg)); will-change: transform; }
.idcard-flip .idcard, .idcard-back { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.idcard-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
  padding: 2.5rem; color: #fff; overflow: hidden;
  background: linear-gradient(155deg, #a3132e 0%, var(--bordo) 45%, #4a0613 100%);
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px);
  box-shadow: 0 30px 60px -40px rgba(20, 21, 24, .6);
}
.idcard-back::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-76deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px); }
.idcard-back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255, 255, 255, .07) 34px 35.5px); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%); mask-image: radial-gradient(circle, #000 20%, transparent 62%); }
.idcard-back picture { position: relative; z-index: 1; width: min(76%, 320px); }
.idcard-back img { width: 100%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.idcard-back__meta { position: relative; z-index: 1; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.idcard-back__meta::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; margin-right: .8rem; vertical-align: middle; background: #fff; transform: skewX(var(--skos)); }
.badge-org { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .4rem .3rem 0; padding: .2rem .55rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; background: var(--bordo); color: #fff; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(3.5rem, 7vw, 5.5rem) !important; }
.pillar { position: relative; background: #fff; border: 1px solid var(--kosc-200); padding: 2.1rem 2rem 2.2rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; background: var(--bordo); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -32px rgba(20, 21, 24, .5); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--tusz-2); letter-spacing: .1em; }
.pillar__icon { width: 52px; height: 52px; fill: none; stroke: var(--bordo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.6rem; }
.pillar__title { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2rem; line-height: 1; text-transform: uppercase; margin-bottom: .8rem; color: var(--tusz); }
.pillar p { margin: 0; }

/* 9. 02 WKRÓTCE ---------------------------------------------------------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .lead { margin-bottom: 1.7rem; }

.preview { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.phone-wrap { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.phone-wrap__cap { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .72rem; line-height: 1.55; color: var(--stal); max-width: 300px; margin-inline: auto; text-align: center; }
.phone {
  width: 300px; margin-inline: auto; padding: 10px; border-radius: 48px;
  background: linear-gradient(145deg, #2a2d33, #0b0c0e 40%, #1d1f24);
  box-shadow: 0 0 0 1px #3a3e46, 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 140px -30px rgba(163, 19, 46, .55);
}
.phone__screen { position: relative; height: 610px; border-radius: 38px; overflow: hidden; background: #0d0e11; color: #fff; font-family: var(--font-body); }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px 0; font-size: 13px; font-weight: 600; height: 40px; }
.phone__notch { position: absolute; left: 50%; top: 10px; width: 92px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.phone__sys { display: flex; gap: 3px; align-items: flex-end; }
.phone__sys i { display: block; width: 3px; background: #fff; border-radius: 1px; }
.phone__sys i:nth-child(1) { height: 5px; } .phone__sys i:nth-child(2) { height: 8px; } .phone__sys i:nth-child(3) { height: 11px; }
.app { padding: 12px 16px 0; }
.app__top { display: flex; flex-direction: column; margin-bottom: 12px; }
.app__crumb { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--stal); }
.app__title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.mcard { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.62; padding: 14px 15px; border-radius: 16px; background: linear-gradient(135deg, #a3132e 0%, var(--bordo) 45%, #4a0613 100%); box-shadow: 0 14px 30px -14px rgba(163, 19, 46, .8); }
.mcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-76deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 13px); }
.mcard::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15px, rgba(255, 255, 255, .08) 15px 16px); }
.mcard__row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.mcard__row--end { align-items: flex-end; }
.mcard__logo { width: 62px; height: auto; aspect-ratio: 1255 / 454; }
/* proporcje obrazków ładowanych leniwie (Chrome zgłasza brak wymiarów, gdy jest tylko height:auto) */
.idcard__logo img { aspect-ratio: 660 / 426; }
.idcard-back img { aspect-ratio: 640 / 413; }
.site-footer__brand img { aspect-ratio: 500 / 76; }
.mcard__badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.mcard__label { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.mcard__name { display: block; font-weight: 600; font-size: 15px; margin: 2px 0 1px; }
.mcard__no { display: block; font-family: var(--font-mono); font-size: 10.5px; opacity: .85; }
.mcard__qr { width: 62px; height: 62px; padding: 4px; background: #fff; border-radius: 6px; flex: none; }
.mcard__qr rect { fill: #111; }
.app__chips { display: flex; gap: 6px; margin: 12px 0 0; flex-wrap: wrap; }
.app__chip { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--g-800); border: 1px solid var(--g-700); color: #d8dbe0; }
.app__chip--ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3fd68a; margin-right: 6px; vertical-align: 1px; }
.app__section { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stal) !important; margin: 16px 0 8px !important; }
.app__list { list-style: none; margin: 0; padding: 0; }
.app__list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; background: var(--g-850); border: 1px solid #1f2127; border-radius: 12px; margin-bottom: 7px; }
.app__list li > span:last-child { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.app__list b { font-weight: 600; }
.app__list small { font-size: 11px; color: var(--stal); }
.app__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 42px; border-radius: 9px; background: var(--g-700); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; color: var(--stal); line-height: 1.1; flex: none; }
.app__date b { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 18px; color: #fff; }
.app__list li:first-child .app__date { background: var(--bordo); color: rgba(255, 255, 255, .8); }
.app__tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; justify-content: space-around; align-items: center; padding-bottom: 10px; background: rgba(10, 11, 13, .96); border-top: 1px solid #1d1f24; }
.app__tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--g-700); }
.app__tabbar i.is-active { background: var(--bordo-jasny); }
.app__tabbar::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 110px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .55); transform: translateX(-50%); }

.features__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature { position: relative; padding: 1.6rem 1.6rem 1.5rem; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.feature:hover { border-color: rgba(184, 28, 59, .55); background: rgba(133, 13, 35, .1); transform: translateY(-2px); }
.feature__icon { width: 30px; height: 30px; fill: none; stroke: var(--bordo-jasny); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.1rem; }
.feature h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .5rem; }
.feature p { margin: 0; font-size: .98rem; color: #b9bec7 !important; }
.note { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--bordo-jasny); font-family: var(--font-mono); font-size: .78rem; line-height: 1.6; color: var(--stal) !important; }

.roadmap { margin-top: clamp(4.5rem, 9vw, 7rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid rgba(255, 255, 255, .08); }
.roadmap__list { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; counter-reset: etap; }
.step { position: relative; padding: 2.4rem 1.4rem 0 0; counter-increment: etap; }
.step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
.step--gotowe::before { background: var(--bordo-jasny); }
.step--w-toku::before { background: linear-gradient(90deg, var(--bordo-jasny) 0 40%, transparent 40%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
.step__node { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--g-900); border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; }
.step--gotowe .step__node { background: var(--bordo-jasny); border-color: var(--bordo-jasny); }
.step--gotowe .step__node::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.step--w-toku .step__node { border-color: var(--bordo-jasny); box-shadow: 0 0 0 0 rgba(184, 28, 59, .6); animation: pulse-red 2s infinite; }
.step--w-toku .step__node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bordo-jasny); }
.step__status { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stal); margin-bottom: .55rem; }
.step__status::before { content: counter(etap, decimal-leading-zero) " · "; color: var(--stal); }
.step--gotowe .step__status, .step--w-toku .step__status { color: #fff; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; text-transform: uppercase; margin-bottom: .45rem; }
.step p { font-size: .93rem; color: #aeb3bc !important; margin: 0; }
.step__date { display: block; margin-top: .55rem; font-family: var(--font-mono); font-size: .75rem; color: #fff; }

/* 10. 03 EKOSYSTEM CSJ ---------------------------------------------------- */
/* Tarcza w tle — wyśrodkowana na białym kole „Jedno konto CSJ” (środek diagramu) */
.eco__diagram { position: relative; isolation: isolate; }
.eco__diagram::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 54px, rgba(255, 255, 255, .07) 54px 55.5px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); pointer-events: none; }
.section--brand::before { content: ""; position: absolute; left: 0; top: 0; width: 38%; height: 100%; background: repeating-linear-gradient(-76deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 18px); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); pointer-events: none; }
.eco { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.eco .lead { color: rgba(255, 255, 255, .9); }
.checks { margin-top: 1.8rem !important; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2.3rem; font-weight: 500; font-size: 1.05rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 1.4rem; height: 1.4rem; background: #fff; transform: skewX(var(--skos)); }
.checks li::after { content: ""; position: absolute; left: .42rem; top: .42em; width: .62rem; height: .34rem; border-left: 2.5px solid var(--bordo); border-bottom: 2.5px solid var(--bordo); transform: rotate(-45deg); }
.diagram { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.diagram__links path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; }
.diagram__halo { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.2; stroke-dasharray: 2 7; transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.diagram__core { fill: #fff; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.diagram text { text-anchor: middle; }
.diagram__core-sm { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; fill: var(--bordo); }
.diagram__core-lg { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 31px; text-transform: uppercase; fill: var(--bordo); }
.diagram__node rect { fill: rgba(40, 3, 10, .45); stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; }
.diagram__node text { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .03em; fill: #fff; }
.diagram__node--stj rect { fill: #fff; stroke: #fff; }
.diagram__node--stj text { fill: var(--bordo); font-style: italic; font-weight: 800; }

.links { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3.5rem, 7vw, 5rem); }
.linkcard { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.7rem 1.7rem 1.8rem; background: rgba(20, 2, 6, .28); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
a.linkcard:hover { background: rgba(20, 2, 6, .45); border-color: rgba(255, 255, 255, .55); }
.linkcard__kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.linkcard__title { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.8rem; line-height: 1.05; text-transform: uppercase; padding-right: 2.5rem; }
.linkcard__text { color: rgba(255, 255, 255, .82); font-size: .98rem; }
.linkcard__arrow { position: absolute; top: 1.5rem; right: 1.5rem; width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
a.linkcard:hover .linkcard__arrow { transform: translate(3px, -3px); }
.linkcard--stores { gap: .7rem; }
.store { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: var(--g-950); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; color: #fff; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.store:hover { border-color: #fff; transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.store small { font-size: .7rem; font-weight: 400; color: rgba(255, 255, 255, .7); }

/* 11. 04 KOMUNIKATY -------------------------------------------------------- */
.news { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.news__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.topics { display: grid; gap: .55rem; margin: 0 0 1.8rem !important; }
.topics li { position: relative; padding-left: 1.5rem; color: var(--tusz); font-weight: 500; }
.topics li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .5rem; background: var(--bordo); transform: skewX(var(--skos)); }
.news__ask { font-family: var(--font-mono); font-size: .85rem; }
.news__ask a { color: var(--bordo); font-weight: 500; text-underline-offset: .2em; }
.feed { display: grid; gap: 1rem; }
.post { position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.6rem; padding: 1.8rem 1.9rem 1.9rem; background: #fff; border: 1px solid var(--kosc-200); }
.post--pinned { border-left: 4px solid var(--bordo); }
.post__date { display: flex; flex-direction: column; border-right: 1px solid var(--kosc-100); padding-right: 1rem; }
.post__day { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.1rem; line-height: .9; color: var(--bordo); }
.post__month { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tusz-2); margin-top: .35rem; line-height: 1.4; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .7rem; }
.tag { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tusz-2); }
.tag::before { content: ""; width: .6rem; height: .6rem; background: var(--bordo); transform: skewX(var(--skos)); }
.tag--new { color: #fff; background: var(--bordo); padding: .18rem .5rem; }
.tag--new::before, .tag--pin::before { display: none; }
.tag--pin { color: var(--bordo); }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.1; color: var(--tusz); margin-bottom: .7rem; }
.post__body p { margin: 0 0 .8em; }
.post__body p:last-child { margin-bottom: 0; }
.post__link { display: inline-block; margin-top: 1rem; color: var(--tusz) !important; }
.feed__more { margin-top: 1.4rem; margin-left: .4rem; }
.feed__empty { padding: 2rem; border: 1px dashed var(--kosc-200); text-align: center; color: var(--tusz-2); }

/* 12. 05 KONTAKT ------------------------------------------------------------ */
.section--contact { background: var(--g-950); --floor: var(--g-950); }
.contact-mark { position: absolute; right: -6%; bottom: -10%; width: min(70vw, 900px); aspect-ratio: 1255 / 454; background: url("../img/logo/stj-znak-biale.png") center / contain no-repeat; opacity: .03; pointer-events: none; }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__org { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; letter-spacing: .02em; color: #fff !important; margin-bottom: 1.8rem; }
.contact__list { display: grid; gap: 1.15rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.1rem; line-height: 1.5; color: #e2e4e8; }
.contact__list svg { width: 24px; height: 24px; flex: none; margin-top: .1rem; fill: none; stroke: var(--bordo-jasny); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a:not(.textlink) { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s, color .2s; }
.contact__list a:not(.textlink):hover { border-color: var(--bordo-jasny); }
.contact__list .textlink { font-size: .95rem; }
.registry { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); padding: clamp(1.5rem, 3vw, 2.2rem); }
.registry__title { font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stal); margin-bottom: 1rem; }
.registry__list { margin: 0; }
.registry__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.registry__row dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stal); }
.registry__row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 1.05rem; color: #fff; }
.registry__row--wide { grid-template-columns: 1fr; gap: .5rem; }
.registry__iban { word-spacing: .05em; font-size: clamp(.95rem, 1.6vw, 1.15rem); }
.copy { flex: none; padding: .35rem .7rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #d8dbe0; background: transparent; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.copy:hover { background: var(--bordo); border-color: var(--bordo); color: #fff; }
.copy.is-done { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }

/* 13. STOPKA, TOAST ---------------------------------------------------------- */
.site-footer { position: relative; z-index: 2; transform: translateZ(0); background: #08090b; color: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--bordo); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer__brand img { width: 250px; margin-bottom: 1.4rem; }
.site-footer p { color: var(--stal); font-size: .95rem; margin: 0 0 .8rem; }
.site-footer__badges { display: flex; flex-wrap: wrap; }
.site-footer__badges[hidden] { display: none; }
.site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stal); margin-bottom: 1.1rem; }
.site-footer__col ul { display: grid; gap: .55rem; font-size: .98rem; color: #d8dbe0; }
.site-footer__col a { text-decoration: none; color: #fff; transition: color .2s; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--bordo-jasny); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom p { font-size: .85rem; margin: 0; }
.to-top { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-decoration: none; }
.to-top:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--bordo-jasny); text-decoration-thickness: 2px; text-underline-offset: .25em; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: .75rem 1.15rem; background: #fff; color: var(--tusz); font-family: var(--font-mono); font-size: .82rem; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); border-left: 4px solid var(--bordo); transform: translate(-50%, 140%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; pointer-events: none; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* 13b. SEKCJE JAKO KARTY (przewijanie) ----------------------------------------
   Każda sekcja jest przyklejona (sticky); kolejna wjeżdża na nią jak karta —
   z zaokrąglonymi rogami i węższa, a w miarę wjazdu rozszerza się na całą
   szerokość. Przykrywana sekcja przygasa. Włączane przez JS (klasa .cv-on na
   <html>); przy „ogranicz ruch” efekt jest wyłączony. */
.cv-veil { display: none; }
/* main jako osobna warstwa pod stopką — Safari (iOS 26) rysował „podłogi” sekcji nad stopką */
main { position: relative; z-index: 1; isolation: isolate; }
.cv-on main > section { position: sticky; top: var(--cv-pin, 0px); z-index: var(--cv-z, auto); }
.cv-on main > section.cv-card { clip-path: inset(0 var(--cv-x, 0px) -100vh round var(--cv-r, 0px) var(--cv-r, 0px) 0 0); }
/* „podłoga” pod sekcją krótszą niż ekran — zakrywa starsze sekcje pod spodem */
.cv-on main > section.cv-floor { box-shadow: 0 50vh 0 50vh var(--floor, var(--g-950)); }
@supports (color: color-mix(in srgb, red, blue)) {
  .cv-on main > section.cv-floor { box-shadow: 0 50vh 0 50vh color-mix(in srgb, var(--floor, var(--g-950)), #050506 calc(var(--cv-dim, 0) * 100%)); }
}
.cv-on .cv-veil { display: block; position: absolute; inset: 0; z-index: 60; background: #050506; opacity: var(--cv-dim, 0); pointer-events: none; }

/* 14. ANIMACJE I DOSTĘPNOŚĆ ---------------------------------------------------- */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-init .reveal { transition: none !important; }
.reveal-on .reveal:focus-visible, .reveal-on .reveal:focus-within { opacity: 1; transform: none; transition: none; }   /* element z fokusem widać od razu */

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 214, 138, .55); } 70% { box-shadow: 0 0 0 9px rgba(63, 214, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 138, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(184, 28, 59, .6); } 70% { box-shadow: 0 0 0 10px rgba(184, 28, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 28, 59, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes shot-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { from { opacity: 1; } to { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* 15. RESPONSYWNOŚĆ --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__list { gap: 1.3rem; }
  .nav__panel { gap: 1.5rem; }
  .preview { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .site-header__bar { height: 68px; }
  .brand img { height: 30px; }

  .nav__toggle {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: .55rem .2rem .55rem .7rem; background: none; border: 0; color: #fff; cursor: pointer;
    font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .nav__toggle-icon { position: relative; width: 26px; height: 14px; }
  .nav__toggle-icon span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav__toggle-icon span:first-child { top: 2px; }
  .nav__toggle-icon span:last-child { top: 10px; left: 8px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon span:last-child { top: 6px; left: 0; transform: rotate(-45deg); }

  .nav__panel {
    position: fixed; left: 0; right: 0; top: var(--header-offset, var(--header-h)); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--g-950); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__list a { display: flex; gap: .9rem; padding: 1.05rem 0; font-weight: 800; font-style: italic; font-size: 2.1rem; letter-spacing: .01em; color: #fff; }
  .nav__list a::after { display: none; }
  .nav__num { font-style: normal; font-size: .75rem; align-self: center; }
  .nav__extra { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .social--menu { display: flex; padding-left: .4rem; }
  .nav__cta { align-self: flex-start; margin-left: .4rem; }

  .hero { min-height: auto; }
  /* daty (pasek statystyk) zaraz pod tekstem, tarcza pod nimi */
  .hero__grid { display: contents; }
  .hero__copy { order: 1; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .hero__statswrap { order: 2; }
  .hero__visual { order: 3; align-self: center; width: min(100% - 2 * var(--gutter), 540px); margin-top: 2.5rem; }
  .hero__stats { margin-top: 1.6rem; }
  .scorecard { right: 0; }
}

@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-bottom: 1.2rem; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }

  .about, .section-head, .eco, .news, .contact { grid-template-columns: 1fr; }
  .idcard-flip { max-width: 520px; }
  .pillars { grid-template-columns: 1fr; }
  .preview { grid-template-columns: 1fr; }
  .phone-wrap { position: relative; top: 0; }
  .news__aside { position: static; }
  .links { grid-template-columns: 1fr; }
  .eco__diagram { max-width: 460px; width: 100%; margin-inline: auto; }

  .roadmap__list { grid-template-columns: 1fr; }
  .step { padding: 0 0 2rem 2.6rem; }
  .step::before { top: 22px; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
  .step--gotowe::before { background: var(--bordo-jasny); }
  .step--w-toku::before { background: linear-gradient(180deg, var(--bordo-jasny) 0 40%, transparent 40%), repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__line { font-size: clamp(2.6rem, 12.6vw, 4.8rem); }
  .registry__row--wide dd { flex-wrap: wrap; }
  .features__grid { grid-template-columns: 1fr; }
  .scorecard { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -.5rem; }
  .target { aspect-ratio: auto; }
  .target__svg { aspect-ratio: 1; height: auto; }
  .hero__cta { gap: .75rem 1rem; }
  .hero__cta .btn { flex: 1 1 auto; padding: .9rem .9rem; font-size: .9rem; letter-spacing: .06em; }
  .hero__sub { font-size: 1.02rem; letter-spacing: .1em; }
  .hero__lead { font-size: 1rem; }
  .stat { padding-top: .75rem; padding-bottom: .9rem; }
  .stat__big { font-size: 1.55rem; }
  .post { grid-template-columns: 1fr; gap: .9rem; padding: 1.5rem 1.4rem 1.6rem; }
  .post__date { flex-direction: row; align-items: baseline; gap: .7rem; border-right: 0; padding-right: 0; }
  .post__day { font-size: 2.3rem; }
  .post__month { margin-top: 0; }
  .registry__row { grid-template-columns: 1fr; gap: .35rem; }
  .registry__row dd { font-size: 1rem; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.25rem; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: 2.5rem; }
  .to-top { margin-top: .6rem; }
  .section--ticker { padding-bottom: 38vh; padding-bottom: 38svh; }
  .site-footer__brand img { width: 220px; }
  .linkcard__title { font-size: 1.6rem; }
}

@media (max-width: 380px) {
  .stat + .stat { padding-left: .9rem; }
  .stat__big { font-size: 1.55rem; }
  .phone { transform: scale(.94); transform-origin: top center; margin-bottom: -36px; }
}
