/* ==========================================================================
   SP3 Wąbrzeźno — wersja "noc nad Trójką"
   Głęboki granat, świecący błękit z logo, słoneczny żółty na akcjach.
   Ruch: GSAP (anim.js) — tylko gdy użytkownik nie ogranicza animacji.
   ========================================================================== */

:root {
  --night: #061024;
  --night-2: #0b1a36;
  --night-3: #12264a;
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .14);
  --blue: #4aa3ff;
  --blue-2: #2563ff;
  --cyan: #7fd4ff;
  --sun: #ffd23f;
  --paper: #f3f6fb;
  --white: #fff;
  --ink: #0a1630;
  --ink-2: #3b4a66;
  --line: #dde3ee;
  --red: #ff4d4d;

  --grad: linear-gradient(120deg, #7fd4ff 0%, #4aa3ff 40%, #2563ff 100%);
  --font: "Archivo", system-ui, sans-serif;
  --r-s: 14px;
  --r: 22px;
  --r-l: 32px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[data-fontsize="1"] { font-size: 112.5%; }
html[data-fontsize="2"] { font-size: 125%; }
html[data-contrast="high"] { --night: #000; --night-2: #000; --night-3: #000; --blue: #ffe600; --cyan: #ffe600; --grad: linear-gradient(#ffe600, #ffe600); --ink-2: #000; --glass: #000; --glass-line: #fff; }
html[data-contrast="high"] img { filter: grayscale(1) contrast(1.15); }
html[data-contrast="high"] a { text-decoration: underline !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-dark { background: var(--night); color: #dfe8f7; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1, h2 { font-variation-settings: "wdth" 112; font-weight: 850; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
h3 { font-size: 1.4rem; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 400; background: var(--sun); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasek górny ---------- */
.topbar { background: var(--night); color: #b8c6dd; font-size: .85rem; position: relative; z-index: 120; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #e6eefb; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.topbar a:hover { color: var(--sun); }
.topbar__info, .topbar__tools { display: flex; align-items: center; gap: 20px; }
.topbar__tools { gap: 4px; }
.a11y-btn { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #e6eefb; height: 26px; min-width: 32px; padding: 0 8px; border-radius: 8px; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.a11y-btn:hover, .a11y-btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); margin: 0 6px; }
@media (max-width: 860px) { .topbar__info .hide-sm { display: none; } }
@media (max-width: 560px) { .topbar__info a span { display: none; } }

/* ---------- Nagłówek (szkło) ---------- */
.header { position: sticky; top: 0; z-index: 110; background: rgba(6, 16, 36, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; transition: background .3s; }
body.is-dark .header:not(.is-scrolled) { background: rgba(6, 16, 36, .25); border-bottom-color: transparent; }
.header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.12rem; font-variation-settings: "wdth" 112; }
.brand__sub { font-size: .76rem; color: #a9b8d2; }
.brand:hover { color: #fff; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 999px; border: 0; background: none; color: #e6eefb; text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; transition: background .2s, color .2s; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(255,255,255,.1); color: #fff; }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--cyan); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .25s; }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__drop { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; min-width: 320px; padding: 10px; border-radius: var(--r); background: rgba(11, 26, 54, .96); backdrop-filter: blur(20px); border: 1px solid var(--glass-line); box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__drop--wide { grid-template-columns: 1fr 1fr; min-width: 560px; }
.nav__item.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.25; }
.nav__drop a small { display: block; color: #93a5c4; font-weight: 400; font-size: .8rem; margin-top: 2px; }
.nav__drop a:hover, .nav__drop a[aria-current="page"] { background: rgba(74,163,255,.16); }
.nav__drop .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(74,163,255,.14); color: var(--cyan); flex: none; }
.btn-librus { flex: none; }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); color: #fff; align-items: center; justify-content: center; }
.burger .icon { width: 22px; height: 22px; }
@media (max-width: 1180px) { .nav, .header .btn-librus { display: none; } .burger { display: inline-flex; } }
@media (max-width: 1500px) { html[data-fontsize="2"] .nav, html[data-fontsize="2"] .header .btn-librus { display: none; } html[data-fontsize="2"] .burger { display: inline-flex; } }
@media (max-width: 1340px) { html[data-fontsize="1"] .nav, html[data-fontsize="1"] .header .btn-librus { display: none; } html[data-fontsize="1"] .burger { display: inline-flex; } }

.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3,8,20,.6); opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--night-2); color: #fff; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; display: flex; flex-direction: column; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--glass-line); }
.drawer__body { padding: 8px 20px 40px; }
.drawer details, .drawer .drawer__link { border-bottom: 1px solid var(--glass-line); }
.drawer summary, .drawer .drawer__link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 800; font-size: 1.45rem; font-variation-settings: "wdth" 112; color: #fff; text-decoration: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .chev { transition: transform .25s; }
.drawer details[open] summary .chev { transform: rotate(180deg); }
.drawer details > div { padding-bottom: 14px; }
.drawer details a { display: block; padding: 8px 0 8px 14px; color: #c8d5ea; text-decoration: none; border-left: 2px solid var(--glass-line); }
.drawer details a:hover { color: #fff; border-color: var(--blue); }
.drawer__cta { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- Przyciski ---------- */
.btn { --b: var(--sun); --f: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--b); color: var(--f); border: 0; font-weight: 800; font-size: 1.02rem; line-height: 1; text-decoration: none; white-space: nowrap; position: relative; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { color: var(--f); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 210, 63, .7); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--glass { --b: rgba(255,255,255,.1); --f: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn--glass:hover { box-shadow: none; background: rgba(255,255,255,.18); }
.btn--sky { --b: var(--blue-2); --f: #fff; }
.btn--sky:hover { box-shadow: 0 14px 34px -10px rgba(37,99,255,.7); }
.btn--ghost { --b: transparent; --f: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { box-shadow: none; background: #fff; }
.btn--light, .btn--sun { --b: var(--sun); --f: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover { color: inherit; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--dark { background: var(--night); color: #dfe8f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--deep { background: radial-gradient(1200px 600px at 80% 0%, rgba(37,99,255,.22), transparent 60%), var(--night-2); color: #dfe8f7; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--light { background: var(--paper); color: var(--ink); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; color: var(--cyan); margin-bottom: 16px; }
.section--light .kicker { color: var(--blue-2); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(74,163,255,.2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2 { margin: 0; max-width: 16ch; }
.sec-head p { margin: 16px 0 0; max-width: 46ch; font-size: 1.12rem; opacity: .85; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100svh - 38px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 48px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); animation: kb 28s infinite; }
.hero__slides img:nth-child(1) { animation-delay: -1s; }
.hero__slides img:nth-child(2) { animation-delay: 6s; }
.hero__slides img:nth-child(3) { animation-delay: 13s; }
.hero__slides img:nth-child(4) { animation-delay: 20s; }
@keyframes kb { 0% { opacity: 0; transform: scale(1.14); } 5% { opacity: 1; } 27% { opacity: 1; } 32% { opacity: 0; transform: scale(1.0); } 100% { opacity: 0; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6,16,36,.55) 0%, rgba(6,16,36,.15) 35%, rgba(6,16,36,.75) 72%, var(--night) 100%),
  radial-gradient(900px 600px at 10% 80%, rgba(6,16,36,.85), transparent 70%); }
.hero__three { position: absolute; z-index: -1; right: -6vw; top: 12%; width: min(62vw, 980px); aspect-ratio: 1465 / 923; -webkit-mask: url("/assets/img/three-mask.png") center / contain no-repeat; mask: url("/assets/img/three-mask.png") center / contain no-repeat; background: var(--grad); opacity: .42; mix-blend-mode: screen; filter: drop-shadow(0 0 40px rgba(74,163,255,.6)); }
.hero .wrap { padding-bottom: clamp(28px, 4vw, 48px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); font-weight: 600; font-size: .92rem; margin-bottom: 26px; }
.hero__kicker b { background: var(--sun); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: .9; margin: 0 0 26px; max-width: 11ch; text-shadow: 0 10px 60px rgba(0,0,0,.35); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 46ch; color: #d6e2f5; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.today { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(36px, 4.5vw, 60px); }
.today__item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; border-radius: var(--r); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.today__item:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); color: #fff; }
.today__item small { color: var(--cyan); font-weight: 700; font-size: .82rem; }
.today__item strong { font-size: 1.15rem; line-height: 1.25; }
.today__item span { color: #b9c8df; font-size: .9rem; }
@media (max-width: 980px) { .today { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .today { grid-template-columns: 1fr; } .hero__three { top: 8%; width: 110vw; right: -30vw; opacity: .35; } }

/* ---------- Taśma ---------- */
.marquee { background: var(--sun); color: var(--ink); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0,0,0,.08); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; white-space: nowrap; padding-right: 1.2em; display: inline-flex; align-items: center; gap: 1.2em; }
.marquee span::after { content: "✳"; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Aktualności — karuzela ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .rail { grid-auto-columns: 82%; } }
.story { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; background: var(--night-3); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(6,16,36,.92)); }
.story:hover img { transform: scale(1.07); }
.story:hover { color: #fff; }
.story h3 { font-size: 1.45rem; margin: 10px 0 0; color: #fff; }
.story__meta { display: flex; gap: 10px; align-items: center; font-size: .84rem; font-weight: 600; color: #c9d6ea; }
.story--lead { grid-column: span 1; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; transition: background .2s; }
.rail-nav button:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.rail-nav .icon { width: 22px; height: 22px; }
.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(74,163,255,.2); color: var(--cyan); font-weight: 700; font-size: .78rem; }
.section--light .pill, .card .pill, .article__meta .pill { background: #e2edff; color: #0b4ad8; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; border-radius: var(--r-l); padding: clamp(24px, 2.6vw, 34px); overflow: hidden; background: var(--night-2); border: 1px solid var(--glass-line); min-height: 260px; display: flex; flex-direction: column; gap: 10px; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74,163,255,.22), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover::before { opacity: 1; }
.tile h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); color: #fff; }
.tile p { margin: 0; color: #b9c8df; }
.tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(74,163,255,.15); color: var(--cyan); margin-bottom: 6px; }
.tile .ico .icon { width: 26px; height: 26px; }
.tile--photo { justify-content: flex-end; min-height: 420px; border: 0; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,16,36,.05) 30%, rgba(6,16,36,.9)); }
.tile--photo:hover img { transform: scale(1.05); }
.tile--photo p { color: #dfe8f7; }
.tile--sun { background: var(--sun); border: 0; }
.tile--sun h3, .tile--sun p { color: var(--ink); }
.tile--sun .ico { background: rgba(10,22,48,.1); color: var(--ink); }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tile .tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: .82rem; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.tile .link-arrow { margin-top: auto; color: #fff; }
.tile--sun .link-arrow { color: var(--ink); }
.tile .big-ico { position: absolute; right: -20px; bottom: -20px; width: 170px; height: 170px; opacity: .12; stroke-width: 1.2; z-index: -1; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; }
@media (max-width: 1000px) { .bento > * { grid-column: span 6; } }
@media (max-width: 640px) { .bento > * { grid-column: 1 / -1; } .tile--photo { min-height: 340px; } }

/* ---------- Liczby ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: 28px 24px; border-radius: var(--r); border: 1px solid var(--glass-line); background: rgba(255,255,255,.03); }
.stat strong { display: block; font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 850; font-variation-settings: "wdth" 112; line-height: 1; letter-spacing: -0.04em; }
.stat span { display: block; margin-top: 10px; color: #b9c8df; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Galeria przewijana w poziomie (pin) ---------- */
.hscroll { background: var(--night); color: #fff; overflow: hidden; padding-block: clamp(64px, 8vw, 110px); }
.hscroll__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.hscroll__track a { flex: none; height: clamp(300px, 52vh, 560px); border-radius: var(--r-l); overflow: hidden; }
.hscroll__track a:nth-child(3n+2) { margin-top: 60px; }
.hscroll__track img { height: 100%; width: auto; max-width: none; transition: transform .8s var(--ease); }
.hscroll__track a:hover img { transform: scale(1.05); }
.hscroll .sec-head { padding-inline: 0; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .hscroll__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; } .hscroll__track a { scroll-snap-align: start; height: 300px; } .hscroll__track a:nth-child(3n+2) { margin-top: 0; } }

/* ---------- Jadłospis + opłaty (jasna sekcja) ---------- */
.split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: stretch; }
.split > *, .layout > *, .contact > * { min-width: 0; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } }
.week { background: #fff; border-radius: var(--r-l); box-shadow: 0 1px 2px rgba(10,22,48,.04), 0 24px 60px -30px rgba(10,22,48,.25); overflow: hidden; }
.week__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.week__head h3 { margin: 0; font-size: 1.3rem; }
.week__nav { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 999px; }
.week__nav button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.week__nav button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.week__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.week__grid[hidden] { display: none; }
.week__day { padding: 16px; border-radius: 18px; background: var(--paper); min-height: 230px; }
.week__day h4 { margin: 0 0 12px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.week__day h4 span { color: var(--ink-2); font-weight: 500; }
.week__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; line-height: 1.3; }
.week__day li:first-child { font-weight: 800; }
.week__day small { display: block; margin-top: 14px; font-size: .72rem; color: #7c8aa3; overflow-wrap: anywhere; }
.week__day.is-today { background: linear-gradient(160deg, #2563ff, #4aa3ff); color: #fff; box-shadow: 0 18px 40px -16px rgba(37,99,255,.7); }
.week__day.is-today h4 span, .week__day.is-today small { color: rgba(255,255,255,.85); }
.week__day.is-today h4::after { content: "dziś"; background: var(--sun); color: var(--ink); font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-weight: 800; }
.week__foot { padding: 14px 24px 18px; font-size: .86rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .week__grid { grid-template-columns: 1fr; }
  .week__day { min-height: 0; display: grid; grid-template-columns: 116px 1fr; gap: 0 12px; }
  .week__day h4 { flex-direction: column; }
  .week__day small { grid-column: 2; margin-top: 8px; }
}
.pay { border-radius: var(--r-l); padding: clamp(24px, 3vw, 34px); background: var(--night-2); color: #dfe8f7; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; isolation: isolate; }
.pay::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(74,163,255,.45), transparent); z-index: -1; }
.pay h3 { margin: 0; color: #fff; font-size: 1.6rem; }
.pay__rows { display: grid; gap: 10px; }
.pay__rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); }
.pay__rows small { display: block; color: #93a5c4; font-size: .82rem; }
.pay__rows b { font-size: 2rem; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.pay__rows div:first-child b { color: var(--sun); }
.pay__acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,.25); font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; flex-wrap: wrap; }
.copy-btn { background: var(--sun); color: var(--ink); border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .82rem; }
.pay p { margin: 0; font-size: .93rem; }
.pay a { color: var(--cyan); }
.pen svg { display: none; }

/* ---------- Rekrutacja ---------- */
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route-cards a { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px; min-height: 340px; border-radius: var(--r-l); background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), border-color .3s; }
.route-cards a:hover { transform: translateY(-6px); border-color: rgba(74,163,255,.6); color: #fff; }
.route-cards .big { font-size: clamp(7rem, 12vw, 11rem); font-weight: 900; line-height: .8; letter-spacing: -0.06em; font-variation-settings: "wdth" 112; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; }
.route-cards h3 { margin: 0; font-size: 1.5rem; color: #fff; }
.route-cards p { margin: 0 0 8px; color: #b9c8df; }
.route-cards .link-arrow { color: var(--sun); }
@media (max-width: 900px) { .route-cards { grid-template-columns: 1fr; } .route-cards a { min-height: 0; } .route-cards .big { font-size: 6rem; margin-bottom: 12px; } }
.prose .route-cards a { background: var(--night-2); }

/* ---------- Ogłoszenia + pomoc ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes a { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 20px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); align-items: baseline; transition: transform .25s var(--ease), box-shadow .25s; }
.notes a:hover { transform: translateX(4px); box-shadow: 0 12px 30px -18px rgba(10,22,48,.4); color: var(--ink); }
.notes time { font-size: .86rem; font-weight: 700; color: var(--blue-2); }
.notes strong { font-size: 1.08rem; }
@media (max-width: 560px) { .notes a { grid-template-columns: 1fr; gap: 2px; } }
.help { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help a { display: block; padding: 18px 22px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.help a:hover { transform: translateX(4px); color: var(--ink); }
.help strong { display: block; font-size: 1.1rem; }
.help span { color: var(--ink-2); font-size: .95rem; }
.help .sos { background: var(--night-2); color: #fff; }
.help .sos span { color: #b9c8df; }
.help .sos strong { color: var(--sun); }
.split--even { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1080px) { .split--even { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.contact__info { display: grid; gap: 10px; align-content: start; }
.contact__row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-line); align-items: baseline; }
.contact__row strong { font-size: .85rem; color: #93a5c4; font-weight: 600; }
.contact__row a, .contact__row span { color: #fff; font-weight: 700; font-size: 1.12rem; text-decoration: none; }
.contact__row a:hover { color: var(--sun); }
.section--light .contact__row { background: #fff; border-color: transparent; }
.section--light .contact__row a, .section--light .contact__row span { color: var(--ink); }
@media (max-width: 520px) { .contact__row { grid-template-columns: 1fr; gap: 2px; } }
.map { position: relative; min-height: 420px; border-radius: var(--r-l); overflow: hidden; background: url("/assets/img/map-bg.webp") center / cover, var(--night-3); isolation: isolate; }
.map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,36,.2), rgba(6,16,36,.9)); z-index: -1; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 28px; color: #fff; }
.map__cover p { margin: 0; }
.map__cover .addr { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 850; line-height: .95; letter-spacing: -0.03em; font-variation-settings: "wdth" 112; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.footer { background: var(--night); color: #b9c8df; position: relative; overflow: hidden; }
.footer a { color: #e6eefb; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer__big { display: block; font-size: clamp(3rem, 12vw, 12rem); font-weight: 900; font-variation-settings: "wdth" 112; letter-spacing: -0.05em; line-height: .85; padding: clamp(56px, 8vw, 110px) 0 clamp(28px, 4vw, 48px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.footer__big:hover { color: transparent !important; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--glass-line); }
.footer h2 { font-size: .95rem; font-variation-settings: "wdth" 100; letter-spacing: 0; color: #fff; margin-bottom: 14px; line-height: 1.3; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; line-height: 1.75; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--glass-line); display: grid; place-items: center; }
.socials a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.footer__bottom { border-top: 1px solid var(--glass-line); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8193b2; }
.footer__bottom ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.kpo { background: #fff; border-radius: 12px; padding: 8px 12px; margin-top: 22px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 52px; height: 52px; border-radius: 16px; background: var(--night-2); color: #fff; border: 1px solid var(--glass-line); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(10px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--sun); color: var(--ink); }

/* ---------- Podstrony ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 85% -10%, rgba(37,99,255,.45), transparent 60%), radial-gradient(700px 400px at 0% 120%, rgba(127,212,255,.18), transparent 60%), var(--night); isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -8vw; bottom: -14vw; width: 52vw; max-width: 760px; aspect-ratio: 1465 / 923; -webkit-mask: url("/assets/img/three-mask.png") center / contain no-repeat; mask: url("/assets/img/three-mask.png") center / contain no-repeat; background: var(--grad); opacity: .18; }
.page-hero .wrap { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.8vw, 5.2rem); margin: 0; max-width: 16ch; color: #fff; }
.page-hero .lead { font-size: clamp(1.06rem, 1.4vw, 1.25rem); max-width: 58ch; margin: 22px 0 0; color: #c9d6ea; }
.page-hero .wave { display: none; }
.crumbs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; font-weight: 600; color: #93a5c4; }
.crumbs a { color: #e6eefb; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 130px); align-items: start; }
.layout--full { grid-template-columns: 1fr; }
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--r); padding: 14px; box-shadow: 0 20px 50px -30px rgba(10,22,48,.3); }
.sidenav h2 { font-size: .82rem; font-variation-settings: "wdth" 100; letter-spacing: .02em; color: #7c8aa3; margin: 4px 10px 8px; font-weight: 700; }
.sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidenav a { display: block; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.sidenav a:hover { background: var(--paper); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .sidenav { position: static; order: 2; } }

.prose { max-width: 760px; font-size: 1.1rem; line-height: 1.7; }
.prose--wide { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 1.6em 0 .55em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-2); }
.prose blockquote { margin: 0 0 1.8em; padding: 30px 32px; border-radius: var(--r); background: var(--night-2); color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 700; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: .95rem; font-style: normal; font-weight: 500; color: var(--cyan); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--r); }
.prose figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.8em; font-size: 1rem; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(10,22,48,.3); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--night-2); color: #fff; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr.hl td { background: #e2edff; font-weight: 800; color: #0b4ad8; }
.table-scroll { overflow-x: auto; }
.lead-p { font-size: 1.3rem; line-height: 1.55; font-weight: 500; }

.callout { display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--r); background: #e2edff; margin: 0 0 1.8em; }
.callout .icon { width: 24px; height: 24px; color: var(--blue-2); margin-top: 3px; }
.callout p:last-child { margin: 0; }
.callout--sun { background: #fff4cc; } .callout--sun .icon { color: #9a6a00; }
.callout--coral { background: #ffe4e4; } .callout--coral .icon { color: #d42c2c; }

.panel { background: #fff; border-radius: var(--r); padding: 22px 24px; margin-bottom: 1.4em; box-shadow: 0 20px 50px -34px rgba(10,22,48,.35); }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; font-size: 1.25rem; }
.panel h3 .icon { color: var(--blue-2); }
.grid-2, .grid-3 { display: grid; gap: 16px; margin-bottom: 1em; }
.grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 .panel, .grid-3 .panel { margin: 0; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0 !important; margin: 0 0 1.8em; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-list li { background: #fff; border-radius: var(--r); padding: 22px; margin: 0; box-shadow: 0 20px 50px -34px rgba(10,22,48,.35); }
.feature-list strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.feature-list .em { display: block; font-size: 1.7rem; margin-bottom: 8px; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 0 0 1.8em; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px; border-radius: var(--r); background: #fff; margin: 0; box-shadow: 0 20px 50px -34px rgba(10,22,48,.35); }
.steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 850; font-size: 1.4rem; }
.steps strong { display: block; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }

.timeline { list-style: none; padding: 0 !important; margin: 0 0 1.8em; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue), var(--blue-2)); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 12px 0; margin: 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 5px rgba(37,99,255,.18); }
.timeline b { font-size: 1.5rem; font-weight: 850; text-align: right; color: var(--blue-2); }
.timeline p { margin: 0; }
@media (max-width: 560px) { .timeline::before, .timeline li::before { display: none; } .timeline li { grid-template-columns: 1fr; gap: 2px; } .timeline b { text-align: left; } }

.hours { list-style: none; padding: 0 !important; margin: 0 0 1.4em; display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--paper); margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours li.is-today { background: var(--blue-2); color: #fff; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 2.4em; }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: 0 20px 50px -36px rgba(10,22,48,.35); }
.avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 850; flex: none; background: var(--grad); color: #fff; }
.person strong { display: block; line-height: 1.2; }
.person .role { display: block; font-size: .9rem; color: var(--ink-2); margin: 3px 0 5px; line-height: 1.35; }
.person a { font-size: .85rem; overflow-wrap: anywhere; }
[data-group] h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.2em 0 .5em; }
.people-tools { margin-bottom: 8px; }

.files { list-style: none; padding: 0 !important; margin: 0 0 1.8em; display: grid; gap: 8px; }
.files li { margin: 0; }
.files a { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; transition: transform .2s var(--ease), box-shadow .2s; }
.files a:hover { transform: translateX(4px); box-shadow: 0 14px 30px -20px rgba(10,22,48,.5); }
.files .ext { width: 48px; height: 48px; border-radius: 12px; background: #ffe4e4; color: #d42c2c; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.files small { display: block; color: var(--ink-2); font-weight: 500; font-size: .84rem; }
.files .icon { color: var(--ink-2); }

.field { position: relative; display: block; }
.field .icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--ink-2); }
.field input { width: 100%; padding: 16px 18px 16px 50px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); box-shadow: 0 14px 40px -30px rgba(10,22,48,.4); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,163,255,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: grid; gap: 16px; margin-bottom: 36px; }
.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.empty { padding: 40px; text-align: center; border-radius: var(--r); background: #fff; color: var(--ink-2); font-weight: 600; }

/* Karty aktualności (lista) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px -34px rgba(10,22,48,.4); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,22,48,.5); }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; background: var(--night-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(74,163,255,.5), transparent 60%), var(--night-2); color: var(--cyan); }
.card__ph .icon { width: 54px; height: 54px; stroke-width: 1.5; }
.card__count { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(6,16,36,.7); backdrop-filter: blur(6px); color: #fff; font-size: .76rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.card__count .icon { width: 14px; height: 14px; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.card__meta { display: flex; gap: 10px; align-items: center; font-size: .84rem; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.22; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); margin-bottom: 1.6em; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { background: var(--night) center / contain no-repeat; display: grid; place-items: center; }
.video button span { background: var(--sun); color: var(--ink); padding: 16px 26px; border-radius: 999px; font-weight: 800; }

.article { max-width: 820px; }
.article__meta { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-weight: 600; margin-bottom: 16px; }
.article__cover { border-radius: var(--r-l); overflow: hidden; margin: 0 0 2em; box-shadow: 0 30px 70px -40px rgba(10,22,48,.6); }
.article__cover img { width: 100%; max-height: 640px; object-fit: cover; }
.article__cover--poster { background: #fff; }
.article__cover--poster img { object-fit: contain; max-height: 880px; width: auto; margin-inline: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.6em 0; }
.gallery-grid a { aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: block; background: var(--night-3); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { display: block; padding: 18px 22px; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; box-shadow: 0 20px 50px -36px rgba(10,22,48,.4); }
.pager a:last-child { text-align: right; }
.pager small { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

.masonry { columns: 4 240px; column-gap: 12px; }
.masonry a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; background: var(--night-3); }
.masonry img { width: 100%; transition: transform .6s var(--ease); }
.masonry a:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(6,16,36,.85)); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transition: opacity .3s; }
.masonry a:hover figcaption { opacity: 1; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.album { color: var(--ink); text-decoration: none; display: block; }
.album__stack { aspect-ratio: 3 / 2; margin-bottom: 12px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--r); overflow: hidden; }
.album__stack img { width: 100%; height: 100%; object-fit: cover; min-height: 0; transition: transform .6s var(--ease); }
.album__stack img:first-child { grid-row: span 2; }
.album:hover .album__stack img { transform: scale(1.05); }
.album strong { display: block; line-height: 1.25; }
.album span { font-size: .86rem; color: var(--ink-2); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,8,20,.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #c9d6ea; font-size: .92rem; padding: 0 80px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox button:hover { background: var(--sun); color: var(--ink); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 60px; translate: none; } }

.c-sky, .c-sun, .c-coral, .c-mint, .c-grape { background: var(--grad); color: #fff; }
.c-ink { background: var(--ink); color: #fff; }

/* Elementy animowane — stan początkowy ustawia anim.js, bez JS wszystko jest widoczne */
.no-motion .hero__slides img:first-child { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__slides img { opacity: 0; transform: none; } .hero__slides img:first-child { opacity: 1; }
  .marquee__track { transform: none; }
}
@media print { .topbar, .header, .footer, .drawer, .to-top, .sidenav { display: none !important; } .layout { display: block; } }

/* ---------- Na skróty ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick a { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 20px 50px -36px rgba(10,22,48,.4); transition: transform .3s var(--ease), box-shadow .3s; }
.quick a:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(10,22,48,.45); color: var(--ink); }
.quick .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 12px; }
.quick .ico .icon { width: 24px; height: 24px; }
.quick strong { font-size: 1.15rem; }
.quick small { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 1000px) { .quick { grid-template-columns: 1fr 1fr; } }
.rail-nav button:first-child .icon { transform: rotate(180deg); }
body:not(.is-dark) .header { background: rgba(6, 16, 36, .94); }
.prose .week__day ul, .prose .pay ul { padding-left: 0; }
.prose .week__day li { margin: 0; }
.prose .week h3, .prose .pay h3 { margin: 0; }
.hero__kicker b { white-space: nowrap; }

/* Kadra: szybkie przejścia do grup */
.staff-jump { margin-top: 16px; }
.staff-jump .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.staff-jump .chip span { background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }
.staff-jump .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.staff-jump .chip:hover span { background: rgba(255,255,255,.18); color: #fff; }
[data-group] { scroll-margin-top: calc(var(--header-h) + 20px); }
[data-group] h2 { display: flex; align-items: center; gap: 12px; }
.person a { display: block; line-height: 1.35; font-size: .82rem; word-break: break-all; }

/* Kontakt: domyślnie na jasnym tle, wersja szklana tylko w ciemnych sekcjach */
.contact__row { background: #fff; border-color: transparent; box-shadow: 0 20px 50px -36px rgba(10,22,48,.4); }
.contact__row strong { color: var(--ink-2); }
.contact__row a, .contact__row span { color: var(--ink); }
.contact__row a:hover { color: var(--blue-2); }
.section--dark .contact__row, .section--deep .contact__row { background: rgba(255,255,255,.05); border-color: var(--glass-line); box-shadow: none; }
.section--dark .contact__row strong, .section--deep .contact__row strong { color: #93a5c4; }
.section--dark .contact__row a, .section--dark .contact__row span, .section--deep .contact__row a, .section--deep .contact__row span { color: #fff; }
.section--dark .contact__row a:hover { color: var(--sun); }

/* ---------- Galeria na stronie głównej: dwa płynące rzędy zdjęć ---------- */
.photo-flow { background: var(--night); padding-block: clamp(72px, 9vw, 120px); overflow: hidden; }
.flow { overflow: hidden; margin-top: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.flow__track { display: flex; gap: 14px; width: max-content; animation: flow 60s linear infinite; }
.flow--rev .flow__track { animation-direction: reverse; animation-duration: 70s; }
.flow:hover .flow__track { animation-play-state: paused; }
.flow__dup { display: flex; gap: 14px; }
.flow a { flex: none; height: clamp(170px, 22vw, 280px); border-radius: 20px; overflow: hidden; display: block; background: var(--night-3); }
.flow img { height: 100%; width: auto; max-width: none; transition: transform .6s var(--ease), filter .3s; }
.flow a:hover img { transform: scale(1.06); }
@keyframes flow { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .flow { overflow-x: auto; } .flow__dup { display: none; } }
