/* ==========================================================================
   BNI Carbon - style strony głównej
   Tokeny: patrz specyfikacja „System, ruch i stany”
   ========================================================================== */
:root {
  --red: #c0314b;
  --red-hover: #A3253C;
  --burgundy: #7A0E26;
  --indigo: #1B2658;
  --navy: #101827;
  --night: #0A0E1A;
  --ink: #111111;
  --muted: #5A6170;
  --line: #E3E5EA;
  --line-2: #E6E8EC;
  --line-3: #D5D9E1;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --error: #B3261E;
  --focus: #E2304A;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-bottom: element z fokusem nie chowa się pod rozmyciem przy dolnej krawędzi (WCAG 2.4.11) */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); scroll-padding-bottom: 140px; }
/* Blokada przewijania (panel członka, menu): w miejsce znikającego paska przewijania
   wstawiamy odstęp tej samej szerokości (--sbw, liczone w JS), więc strona się nie przesuwa */
body.no-scroll { padding-right: var(--sbw, 0px); }
body.no-scroll .site-header.is-stuck { padding-right: var(--sbw, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Google Sans', 'Google Sans Flex', 'Product Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1 { font-size: 2.986rem; } h2 { font-size: 2.488rem; } h3 { font-size: 2.074rem; }
h4, .h4 { font-size: 1.728rem; } h5, .h5 { font-size: 1.44rem; } h6 { font-size: 1.2rem; }
small, .small { font-size: .833rem; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; margin: 0; text-wrap: balance; }
p { font-weight: 400; letter-spacing: -0.03em; line-height: 1.35em; margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
}
[hidden] { display: none !important; }
.plain { list-style: none; margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--ink); transition: top .2s; }
.skip:focus { top: 16px; }
.rel { position: relative; }
.ul { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ul:hover { color: inherit; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; }
[class*="stack-"] { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; } .stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-10 { gap: 10px; }
.stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; }
.stack-22 { gap: 22px; } .stack-24 { gap: 24px; } .stack-26 { gap: 26px; } .stack-28 { gap: 28px; }
.stack-40 { gap: 40px; } .stack-56 { gap: 56px; } .stack-64 { gap: 64px; } .stack-72 { gap: 72px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sec { padding: 128px var(--gutter) 112px; }
.sec--even { padding-bottom: 128px; }
.sec--tight { padding-top: 0; }
.sec--faq { padding: 0 var(--gutter) 128px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 32px; }
.panel-wrap { padding: 0 clamp(12px, 2vw, 24px); }
.panel {
  position: relative; overflow: hidden;
  max-width: 1392px; margin: 0 auto; background: var(--white);
  padding: clamp(48px, 7vw, 112px) clamp(20px, 5vw, 64px);
}
.panel--navy { background: var(--navy); color: var(--white); padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 64px); }
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Typo helpers ---------- */
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; }
.eyebrow { font-size: .694rem; font-weight: 500; letter-spacing: .12em; color: var(--red); }
.label { font-size: .694rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.opt-note { font-weight: 400; color: var(--muted); }
.req { color: var(--red); font-weight: 600; }

/* ---------- Logo ---------- */
.logo { display: flex; flex-direction: column; gap: 14px; width: 104px; }
.logo svg { display: block; overflow: visible; }
.logo-word { display: flex; justify-content: space-between; width: 93%; font-size: 12px; font-weight: 600; line-height: 1; color: var(--white); transition: color .25s; }
.brand { display: flex; }

/* ---------- Buttons ---------- */
.btn, .kcta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; line-height: 1;
  border: 0; border-radius: 0; cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn { min-height: 52px; padding: 0 24px; }
.btn .arr, .kcta .ar { transition: transform .25s var(--ease); flex: none; }
.btn:hover .arr { transform: translateX(3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { color: var(--white); background: var(--red-hover); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: var(--red); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-wide { width: 100%; min-height: 56px; justify-content: space-between; }
.btn-tall { min-height: 56px; justify-content: space-between; }
.btn-split { width: 100%; justify-content: space-between; }

.kcta { gap: 12px; min-height: 56px; padding: 0 28px; }
.kcta:hover .ar { transform: translateX(4px); }
.kcta--split { justify-content: space-between; }
.kred { background: var(--red); color: var(--white); }
.kred:hover { background: var(--red-hover); color: var(--white); }
.kwht { background: var(--white); color: var(--ink); }
.kwht:hover { background: #F3E2E6; color: var(--ink); }
.kln { background: transparent; color: var(--white); clip-path: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.kln:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.sq48 { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
.lnk {
  align-self: flex-start; border: 0; background: none; padding: 6px 0; min-height: 44px;
  font-family: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.lnk:hover { color: var(--red-hover); }
.sqb { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-3); transition: background-color .2s, color .2s; }
.sqb:hover { background: var(--ink); color: var(--white); }
.chip:active, .seg:active, .stp:active, .fopt:active, .btn:active, .kcta:active, .sqb:active, .drnav:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 900px; display: flex; flex-direction: column; background: #07080D; color: var(--white); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; bottom: -520px; width: 1500px; height: 900px; margin-left: -750px; border-radius: 50%; background: radial-gradient(ellipse, rgba(192,49,75,.55), rgba(192,49,75,0) 62%); }
.hero-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 46%, rgba(7,8,13,.7), rgba(7,8,13,0) 75%); }
.k-beams { position: absolute; left: 50%; top: 50%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; transform: rotate(-45deg); }
.k-beam { position: absolute; top: 0; bottom: 0; filter: blur(28px); mix-blend-mode: screen; animation: ksweep linear infinite; will-change: transform; }
@keyframes ksweep { from { transform: translateX(-900px); } to { transform: translateX(900px); } }

.hero-content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 24px; padding: 40px clamp(20px, 5vw, 64px) 120px;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .694rem; font-weight: 500; letter-spacing: .14em; color: rgba(255,255,255,.86); }
.sq8 { width: 8px; height: 8px; background: var(--red); }
.hero h1 { font-size: clamp(2.488rem, 3.2vw + 1rem, 3.583rem); max-width: 860px; }
.hero-lead { font-size: 1.2rem; max-width: 580px; color: rgba(255,255,255,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.hero-note { font-size: .833rem; color: rgba(255,255,255,.7); }

/* wejście hero: kolejno co 80 ms */
/* animacja startuje sama z CSS - treść pojawi się nawet, gdy skrypt strony się nie wczyta */
.js .reveal { animation: heroIn .7s var(--ease) both; }
.js .reveal:nth-child(2) { animation-delay: .08s; }
.js .reveal:nth-child(3) { animation-delay: .16s; }
.js .reveal:nth-child(4) { animation-delay: .24s; }
.js .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 4vw, 56px); }
.navpill { display: flex; gap: 36px; }
.knl { position: relative; padding: 10px 0; font-size: 1rem; letter-spacing: -0.02em; color: rgba(255,255,255,.82); transition: color .2s; }
.knl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.knl:hover, .knl.is-active { color: var(--white); }
.knl:hover::after, .knl.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 48px; padding: 0 22px; }
.menu-btn { display: none; }

/* przyklejony nagłówek po przewinięciu za hero */
.site-header.is-stuck {
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(246,247,249,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  animation: headerIn .25s ease-out;
}
.site-header.is-stuck .site-header__in { padding-top: 14px; padding-bottom: 14px; }
.site-header.is-stuck .logo { gap: 8px; width: 84px; }
.site-header.is-stuck .logo svg { width: 84px; height: 32px; }
.site-header.is-stuck .logo-word { font-size: 10px; color: var(--ink); }
.site-header.is-stuck .knl { color: #3B414D; }
.site-header.is-stuck .knl:hover, .site-header.is-stuck .knl.is-active { color: var(--ink); }
.site-header.is-stuck .kln { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.3); }
.site-header.is-stuck .kln:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: none; } }

@media (max-width: 960px) {
  .navpill, .nav-cta { display: none !important; }
  .menu-btn { display: inline-flex !important; }
}

/* ---------- Menu mobilne ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7,8,13,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: var(--white);
  display: flex; flex-direction: column; padding: 28px 20px; gap: 28px;
  animation: menuIn .3s ease both; overflow-y: auto;
}
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 2.074rem; font-weight: 600; letter-spacing: -0.06em; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); animation: linkIn .45s var(--ease) both; }
.mobile-menu nav a:nth-child(2) { animation-delay: .04s; } .mobile-menu nav a:nth-child(3) { animation-delay: .08s; }
.mobile-menu nav a:nth-child(4) { animation-delay: .12s; } .mobile-menu nav a:nth-child(5) { animation-delay: .16s; }
.mobile-menu > .kcta { margin-top: auto; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes linkIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Karty i sekcje ---------- */
.card { background: var(--white); padding: 36px; box-shadow: inset 0 0 0 1px var(--line-2); }
.benefit { display: flex; flex-direction: column; gap: 56px; }
.benefit__no { font-size: .833rem; font-weight: 600; color: var(--red); letter-spacing: .04em; }

.step { display: flex; flex-direction: column; gap: 24px; }
.step__rail { display: flex; align-items: center; gap: 16px; }
.step__no { width: 56px; height: 56px; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center; font-weight: 600; letter-spacing: -0.04em; flex: none; }
.step__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--ink), var(--line-2)); }
.step--accent .step__no { background: var(--red); color: var(--white); box-shadow: none; }
.step--accent .step__line { background: linear-gradient(90deg, var(--red), rgba(192,49,75,0)); }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px; background: var(--paper); }
.notice p { flex: 1 1 420px; }
.notice strong { font-weight: 600; }

.group-photo { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.group-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--line-2); }
.group-photo figcaption { font-size: .833rem; color: var(--muted); letter-spacing: -0.02em; }
.meet-tile { background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.meet-tile .label { letter-spacing: .08em; }
.meet-tile--dark { background: var(--ink); color: var(--white); box-shadow: none; }
.meet-tile--dark .label { color: rgba(255,255,255,.7); }
.meet-tile--dark p:last-child { color: rgba(255,255,255,.72); }

.board-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 32px 56px; align-items: end; padding-top: 56px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .board-row { grid-template-columns: 1fr; } }
.bcard {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px 24px 24px; border: 0; background: var(--white); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .35s var(--ease);
}
.bcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--red); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
.bcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ink), 0 24px 40px -28px rgba(10,14,26,.45); }
.bcard:hover::before { transform: scaleX(1); }
.bav { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--line-2); box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--red); flex: none; }
.bav img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.bcard__role { font-size: .694rem; font-weight: 600; letter-spacing: .14em; color: var(--red); }
.bcard__name { font-size: 1.44rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; }
.bcard__co { font-size: .833rem; color: var(--muted); letter-spacing: -0.02em; }
.bgo { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .833rem; font-weight: 500; letter-spacing: -0.02em; color: var(--red); }
.bgo svg { transition: transform .25s var(--ease); }
.bcard:hover .bgo svg { transform: translateX(3px); }

/* liczby */
.stats-glow { position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle, rgba(192,49,75,.38), rgba(192,49,75,0) 65%); filter: blur(40px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.stat { padding: 28px 28px 8px 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 14px; }
.stat--accent { border-top-color: var(--red); }
.stat__v { font-size: 2.986rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; }
.stat__l { color: rgba(255,255,255,.74); }
.stat__l span { display: block; font-size: .833rem; color: rgba(255,255,255,.55); }

/* członkowie */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; letter-spacing: -0.02em;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #DADDE3;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .15s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.chip__n { opacity: .6; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 56px 32px; }
.mcard {
  display: flex; flex-direction: column; gap: 18px; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: transform .35s var(--ease);
  animation: cardIn .55s var(--ease) backwards;
}
.mcard.is-hidden { display: none; }
.mcard:hover { transform: translateY(-4px); }
.mav { position: relative; display: block; width: 100%; max-width: 200px; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--line-2); transition: box-shadow .3s; }
.mcard:hover .mav { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink); }
.mcard[aria-expanded="true"] .mav { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--red); }
.mimg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; transition: transform .7s var(--ease); }
.mcard:hover .mimg { transform: scale(1.04); }
.monogram { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, var(--burgundy), var(--navy) 70%); color: var(--white); font-size: 2.488rem; font-weight: 600; letter-spacing: -0.06em; }
.mcard__txt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.mcard__name { font-size: 1.44rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; }
.mcard__spec { color: #3B414D; letter-spacing: -0.03em; line-height: 1.35em; }
.mcard__co { font-size: .694rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* branże */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); letter-spacing: -0.03em; transition: background-color .2s, color .2s; }
.tag span { color: var(--red); font-weight: 600; }
.tag:hover { background: var(--ink); color: var(--white); }

/* odwiedź nas */
.visit-step { padding: 28px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 40px; }
.visit-step__no { font-size: .833rem; font-weight: 600; color: var(--red); }
.visit-step p { color: var(--muted); }
.visit-step--dark { background: var(--ink); color: var(--white); box-shadow: none; }
.visit-step--dark .visit-step__no { color: #FF6B7C; }
.visit-step--dark p { color: rgba(255,255,255,.72); }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: grid; grid-template-columns: minmax(84px, 140px) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; letter-spacing: -0.03em; }

/* opinie (zarezerwowane) */
.quotes { display: flex; flex-wrap: wrap; gap: 16px; }
.quote { margin: 0; flex: 1 1 320px; min-height: 280px; padding: 32px; border: 1.5px dashed #C5CAD3; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote--lg { flex: 2 1 560px; padding: 40px; }
.quote blockquote { margin: 0; font-size: 1.44rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; color: #7A808C; }
.quote--lg blockquote { font-size: 1.728rem; }
.quote figcaption { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid #DADDE3; }
.faq-item { border-bottom: 1px solid #DADDE3; }
.faq-item h3 { font-size: 1.44rem; letter-spacing: -0.05em; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; min-height: 44px; background: none; border: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; transition: color .2s;
}
.faq-q:hover { color: var(--red); }
.faq-ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #DADDE3;
  transition: transform .4s cubic-bezier(.3,1.4,.5,1), background-color .3s, color .3s, box-shadow .3s;
}
.faq-q:hover .faq-ico { box-shadow: inset 0 0 0 1px var(--ink); }
.faq-q[aria-expanded="true"] .faq-ico { transform: rotate(45deg); background: var(--ink); color: var(--white); box-shadow: none; }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s; }
.faq-a.open { grid-template-rows: 1fr; opacity: 1; }
.faq-in { overflow: hidden; min-height: 0; }
.faq-in p { padding: 0 64px 28px 0; color: #4A505C; transform: translateY(-8px); transition: transform .45s var(--ease); }
.faq-a.open .faq-in p { transform: none; }
@media (max-width: 600px) { .faq-in p { padding-right: 0; } }

/* ---------- Formularz ---------- */
.form-sec { padding: 0 12px 12px; scroll-margin-top: 0; }
.form-stage { position: relative; overflow: hidden; overflow: clip; color: var(--white); }
.hero-grad { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.b1 { width: 64%; aspect-ratio: 1/1; left: 40%; top: -34%; background: radial-gradient(circle, #c0314b 0%, rgba(192,49,75,0) 68%); animation: drift1 28s ease-in-out infinite alternate; }
.b2 { width: 72%; aspect-ratio: 1/1; left: -26%; top: 2%; background: radial-gradient(circle, #7A0E26 0%, rgba(122,14,38,0) 68%); animation: drift2 34s ease-in-out infinite alternate; }
.b3 { width: 84%; aspect-ratio: 1/1; left: 24%; top: 36%; background: radial-gradient(circle, #1B2658 0%, rgba(27,38,88,0) 66%); animation: drift3 40s ease-in-out infinite alternate; }
.horizon { position: absolute; left: -12%; right: -12%; bottom: -46%; height: 78%; border-radius: 50%; background: radial-gradient(ellipse at 50% 28%, rgba(226,48,74,.62) 0%, rgba(122,14,38,.32) 38%, rgba(10,14,26,0) 68%); animation: breathe 14s ease-in-out infinite; }
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-16%,12%) scale(1.14); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(20%,-8%) scale(.92); } }
@keyframes drift3 { 0% { transform: translate(0,0) scale(1.06); } 100% { transform: translate(-22%,-14%) scale(1); } }
@keyframes breathe { 0%, 100% { opacity: .82; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.07); } }
/* animacje tła zatrzymane poza ekranem */
.paused .k-beam, .paused .blob, .paused .horizon { animation-play-state: paused; }


.form-grid {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: clamp(56px, 8vw, 128px) clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 72px; align-items: start;
}
.form-intro { padding-top: 12px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) {
  .form-grid { align-items: stretch; }
  .form-intro { position: sticky; top: 112px; align-self: start; }
}
.form-title { font-size: clamp(2.488rem, 2.6vw + 1.2rem, 4.3rem); line-height: .98em; letter-spacing: -0.065em; }
.checks { display: flex; flex-direction: column; gap: 14px; }

.next-meets { display: flex; flex-direction: column; gap: 12px; }
.next-meets__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.glass-tile {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass-tile__date {
  flex: none; width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink); font-size: .694rem; font-weight: 600; letter-spacing: .1em;
}
.glass-tile__date b { font-size: 1.44rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.glass-tile__date--red { background: var(--red); color: var(--white); }
.glass-tile__k { font-size: .694rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.glass-tile__v { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; }

.people-strip { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.people-strip p { color: rgba(255,255,255,.78); font-size: .95rem; }
.people-strip strong { color: var(--white); font-weight: 600; }
.avatars { display: flex; flex: none; }
.avatars img, .avatars__more {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 25%;
  box-shadow: 0 0 0 2px var(--night); margin-left: -12px; background: var(--line-2);
}
.avatars img:first-child { margin-left: 0; }
.avatars__more { display: grid; place-items: center; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 520px) { .people-strip { flex-direction: column; align-items: flex-start; } }
.checks li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.86); letter-spacing: -0.03em; }
.checks svg { flex: none; }
.form-card { background: var(--white); color: var(--ink); padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(10,14,26,.6); }
.form-card .label { letter-spacing: .12em; }

.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stp {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 0; font-family: inherit; font-size: 1rem; letter-spacing: -0.02em; text-align: left; cursor: pointer;
  background: var(--paper); color: var(--muted);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.stp > span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--white); color: var(--ink); font-size: .833rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-3); transition: background-color .3s, color .3s, box-shadow .3s; }
.stp[aria-current="step"] { background: var(--ink); color: var(--white); }
.stp[aria-current="step"] > span { background: var(--red); color: var(--white); box-shadow: none; }

.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.legend-lg { font-size: 1.44rem; font-weight: 600; letter-spacing: -0.06em; line-height: 1.04em; padding: 0; margin-bottom: 16px; }
.legend-sm { font-size: .833rem; font-weight: 500; letter-spacing: -0.02em; padding: 0; margin-bottom: 10px; }
.fopt {
  position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; cursor: pointer; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-3);
  transition: background-color .2s, box-shadow .2s;
}
.fopt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fopt:has(input:checked) { background: #FFF4F6; box-shadow: inset 0 0 0 2px var(--red); }
.fopt:focus-within, .seg:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.fopt__box { width: 24px; height: 24px; display: grid; place-items: center; background: var(--white); border: 1.5px solid #9AA0AB; transition: background-color .25s, border-color .25s; }
.fopt:has(input:checked) .fopt__box { background: var(--red); border-color: var(--red); }
.fopt svg { transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.fopt:has(input:checked) svg { transform: scale(1); }
.fopt__t { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.05em; }
.fopt__d { font-size: .833rem; color: var(--muted); letter-spacing: -0.02em; }

/* zawsze do 3 terminów - jeden rząd, a na wąskich ekranach jeden pod drugim */
.whens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .whens { grid-template-columns: 1fr; } }
.seg {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 14px; border: 0; font-family: inherit; font-size: 1rem; letter-spacing: -0.02em; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.seg[aria-pressed="true"], .seg:has(input:checked) { background: var(--ink); color: var(--white); box-shadow: none; }
.seg2 { flex-direction: column; gap: 2px; min-height: 66px; padding: 10px 8px; animation: segIn .4s var(--ease) backwards; }
.seg2 .seg__m { font-weight: 600; letter-spacing: -0.04em; }
.seg2 .seg__s { font-size: .833rem; opacity: .72; }
.seg2.is-next { box-shadow: inset 4px 0 0 var(--red), inset 0 0 0 1px var(--line); }
.seg2.is-next:has(input:checked) { box-shadow: inset 4px 0 0 var(--red); }
@keyframes segIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.purposes { display: flex; flex-wrap: wrap; gap: 6px; }

.picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--paper); }
.picked p { letter-spacing: -0.02em; }
.picked .lnk { align-self: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: .833rem; font-weight: 500; letter-spacing: -0.02em; }
.inp {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 0; border: 1px solid var(--line-3);
  background: var(--white); font-family: inherit; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.inp { resize: vertical; min-height: 96px; }
.inp::placeholder { color: #6B7280; }
.inp:hover { border-color: #9AA0AB; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(192,49,75,.14); }
.inp.err { border-color: var(--error); box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.ferr { font-size: .833rem; color: var(--error); display: flex; gap: 6px; align-items: center; animation: fadeUp .3s var(--ease) both; }
.ferr::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; background: var(--error); color: var(--white); font-size: 11px; font-weight: 700; }
.err-box { padding: 14px 16px; background: #FDECEA; color: #8C1D18; display: flex; flex-direction: column; gap: 6px; outline: none; box-shadow: inset 3px 0 0 var(--error); animation: fadeUp .35s var(--ease) both, nudge .45s .1s ease-out; }
.err-box__t { font-weight: 600; letter-spacing: -0.03em; }
.err-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.err-box li { font-size: .833rem; }
.err-box a { color: #8C1D18; text-decoration: underline; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .833rem; color: #4A505C; letter-spacing: -0.02em; line-height: 1.35em; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding-top: 4px; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ok-badge { width: 56px; height: 56px; background: #EAF7EE; color: #1E7A3E; display: grid; place-items: center; }
#form-success { outline: none; }
.summary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); background: var(--paper); }
.summary > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.summary dt { font-size: .694rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.summary dd { margin: 0; letter-spacing: -0.02em; }
.next { display: flex; flex-direction: column; gap: 10px; }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; letter-spacing: -0.03em; line-height: 1.35em; }
.next li > span { width: 28px; height: 28px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: .833rem; font-weight: 600; }
.next li > span.red { background: var(--red); }

/* przejścia kroków */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.step-fwd { animation: stepFwd .45s var(--ease) both; }
.step-back { animation: stepBack .45s var(--ease) both; }
.pop-in { animation: popIn .5s var(--ease) both; }
.fade-up { animation: fadeUp .4s var(--ease) both; }

/* ---------- Stopka ---------- */
.footer-wrap { padding: 0 12px 12px; }
.footer { background: var(--night); color: var(--white); padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 64px) 32px; display: flex; flex-direction: column; gap: 56px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.footer .label { letter-spacing: .08em; color: rgba(255,255,255,.5); }
.flink { color: rgba(255,255,255,.72); transition: color .2s; align-self: flex-start; }
.flink:hover { color: var(--white); }
.credit { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.credit:hover { text-decoration-color: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .833rem; color: rgba(255,255,255,.5); }

/* ---------- Szczegóły członka (drawer) ---------- */
.dr-ov { position: fixed; inset: 0; z-index: 70; background: rgba(10,14,26,.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.dr {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(480px, 100%);
  background: var(--white); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(10,14,26,.45);
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.drawer.open .dr-ov { opacity: 1; pointer-events: auto; }
.drawer.open .dr { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.dr__bar { height: 4px; background: var(--red); flex: none; }
.dr__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); flex: none; }
.dr__head .label { letter-spacing: .12em; }
.dr-body { flex: 1; overflow-y: auto; padding: 36px 28px; display: flex; flex-direction: column; gap: 26px; }
.dr-body.anim-in { animation: drIn .45s var(--ease) both; }
@keyframes drIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.dr__id { display: flex; align-items: center; gap: 22px; }
.dr__av { width: 132px; height: 132px; flex: none; border-radius: 50%; overflow: hidden; background: var(--line-2); box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--red); }
.dr__av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.dr__av .monogram { width: 100%; height: 100%; }
.dr__info { display: flex; flex-direction: column; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.placeholder { color: #8A909C; padding: 14px 16px; background: var(--paper); box-shadow: inset 3px 0 0 var(--line-3); }
.dr__cta { margin-top: auto; background: var(--night); color: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dr__cta-t { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1.2em; }
.dr__nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); flex: none; }
.drnav { display: flex; flex-direction: column; gap: 4px; padding: 16px 28px; min-height: 72px; border: 0; background: var(--white); color: var(--ink); font-family: inherit; font-size: 1rem; letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: background-color .2s; }
.drnav:first-child { border-right: 1px solid var(--line); }
.drnav:hover { background: var(--paper); }
.drnav--next { align-items: flex-end; text-align: right; }
/* obrys do środka - przy dolnej krawędzi ekranu zewnętrzny obrys byłby ucięty */
.drnav:focus-visible { outline-offset: -4px; }
/* sekcje i nagłówki, na które przenosimy fokus po kliknięciu linku w menu - bez ramki na całą sekcję */
[tabindex="-1"]:focus:not(:focus-visible), section[tabindex="-1"]:focus, h1[tabindex="-1"]:focus { outline: none; }
@media (max-width: 480px) { .dr__id { flex-direction: column; align-items: flex-start; } }
body.no-scroll { overflow: hidden; }

/* ---------- Podstrony prawne (polityka prywatności) ---------- */
.legal-hero { position: relative; overflow: hidden; background: #07080D; color: var(--white); }
.legal-hero__glow { position: absolute; left: 50%; bottom: -420px; width: 1400px; height: 640px; margin-left: -700px; border-radius: 50%; background: radial-gradient(ellipse, rgba(192,49,75,.5), rgba(192,49,75,0) 62%); pointer-events: none; }
.legal-hero__bar { position: relative; z-index: 2; }
.legal-back { min-height: 48px; padding: 0 20px; gap: 10px; }
.legal-hero__in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 48px var(--gutter) 88px; display: flex; flex-direction: column; gap: 20px; }
.legal-hero h1 { font-size: clamp(2.488rem, 3vw + 1rem, 3.583rem); }
.legal-sec { padding-top: 80px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal-toc { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 14px; }
.legal-toc ol { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; letter-spacing: -0.02em; color: var(--muted); transition: color .2s; }
.legal-toc a span { font-size: .75rem; font-weight: 600; color: var(--muted); padding-top: 2px; transition: color .2s; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--ink); }
.legal-toc a.is-active span { color: var(--red); }
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 56px; }
.legal section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.legal h2 { font-size: 1.728rem; }
.legal h3 { margin: 8px 0 0; font-size: 1.2rem; font-weight: 600; scroll-margin-top: 24px; }
.legal code { font-size: .9em; padding: 1px 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.legal p, .legal li { line-height: 1.55em; color: #2B303A; }
.legal strong { font-weight: 600; color: var(--ink); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--red-hover); }
.legal-summary { background: var(--white); padding: 28px 32px; box-shadow: inset 0 0 0 1px var(--line-2), inset 4px 0 0 var(--red); display: flex; flex-direction: column; gap: 14px; }
.legal-table { display: flex; flex-direction: column; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.legal-table > div { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 16px 20px; border-top: 1px solid var(--line); }
.legal-table > div:first-child { border-top: 0; }
.legal-table__head span { font-size: .694rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-table span[role="cell"] { line-height: 1.45em; letter-spacing: -0.02em; }
.legal-table span[role="cell"]:last-child { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  .legal-table > div { grid-template-columns: 1fr; gap: 6px; }
  .legal-table__head { display: none !important; }
  .legal-summary { padding: 22px 20px; }
}

/* ---------- Płynne przewijanie (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Dolna krawędź: jedno, płynnie przenikające rozmycie ---------- */
.edge-fade {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  height: clamp(72px, 11vh, 120px);
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.8) 70%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.8) 70%, #000 100%);
  transform: translateZ(0);
  transition: opacity .4s ease;
}
.edge-fade.is-end, body.no-scroll .edge-fade { opacity: 0; }
@media (prefers-reduced-transparency: reduce), (forced-colors: active) { .edge-fade { display: none; } }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  html { scroll-behavior: auto; }
  .k-beam, .blob, .horizon { animation: none; }
  .js .reveal, .mcard, .seg2, .mobile-menu, .mobile-menu nav a, .step-fwd, .step-back, .pop-in, .fade-up,
  .ferr, .err-box, .dr-body.anim-in, .site-header.is-stuck { animation: none !important; }
  .dr, .drawer.open .dr, .dr-ov, .faq-a, .faq-in p, .fopt svg, .stp, .chip, .seg, .bcard, .bcard::before { transition: none; }
}

/* ===== Zgoda na cookies (includes/consent.php, assets/js/consent.js) ===== */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 1120px; margin: 0 auto;
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px -20px rgba(10,14,26,.45);
  animation: cc-in .45s var(--ease) both;
}
.cc-banner[hidden] { display: none; }
body.no-scroll .cc-banner { display: none; } /* panel członka / menu na wierzchu */
.cc-banner__in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; padding: 24px 28px; }
.cc-title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.cc-banner p, .cc-lead { margin: 0; font-size: .889rem; line-height: 1.55; color: var(--muted); }
.cc-banner a, .cc-dialog a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.cc-banner a:hover, .cc-dialog a:hover { color: var(--red-hover); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn { min-height: 48px; padding: 0 20px; font-size: .889rem; white-space: nowrap; }
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cc-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgba(10,14,26,.55);
}
.cc-dialog::backdrop { background: rgba(10,14,26,.55); backdrop-filter: blur(2px); }
.cc-dialog__in { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.cc-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-dialog__head .cc-title { margin: 8px 0 0; font-size: 1.375rem; }
.cc-cat { padding: 16px 0 0; border-top: 1px solid var(--line); }
.cc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat__name { font-weight: 600; cursor: pointer; }
.cc-cat__desc { margin: 6px 0 0; font-size: .833rem; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.cc-actions--dialog { padding-top: 6px; }
.cc-actions--dialog .cc-btn { flex: 1 1 auto; }

/* przełącznik: natywny checkbox z role="switch" (działa z klawiaturą i czytnikami) */
.cc-switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 52px; height: 30px; border-radius: 30px; position: relative;
  background: #8A90A0; transition: background-color .2s;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease);
}
.cc-switch:checked { background: var(--red); }
.cc-switch:checked::after { transform: translateX(22px); }
.cc-switch:disabled { cursor: not-allowed; background: #6B7280; }
.cc-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (forced-colors: active) {
  .cc-switch { border: 2px solid ButtonText; }
  .cc-switch::after { background: ButtonText; }
  .cc-switch:checked { background: Highlight; }
}

.cc-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }

@media (max-width: 860px) {
  .cc-banner__in { grid-template-columns: 1fr; padding: 20px; }
  .cc-actions .cc-btn { flex: 1 1 100%; }
}
@media (max-width: 860px) and (min-width: 521px) {
  .cc-banner .cc-actions .cc-btn { flex: 1 1 0; }
}
@media (max-width: 520px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .cc-banner__in { gap: 14px; padding: 16px; }
  .cc-banner .cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cc-banner .cc-btn { min-height: 44px; padding: 0 12px; justify-content: center; }
  .cc-banner [data-cc="settings"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .cc-banner { animation: none; }
  .cc-switch, .cc-switch::after { transition: none; }
}
