/* Neutralny motyw strony publicznej.
   Jasne tlo "paper" + ciemne sekcje, kolor akcentu i naglowki Barlow Condensed.
   Komentarze bez znakow diakrytycznych. */

:root {
    --red: #e32119;
    --red-dark: #a20f0a;
    --red-jasny: #ff453c; /* czerwien linkow na ciemnym tle */
    --ink: #0a0a0c;
    --dark: #0b0b0d;
    --paper: #f3f1ed;
    --white: #fff;
    --muted: #77747a;
    --line: #dedbd5;
    --wrap: min(1180px, calc(100% - 40px));
    --display: "Barlow Condensed", sans-serif;
    --body: "Inter", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--waski { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* ===== pasek ogloszenia ===== */
.announce { background: var(--red); color: #fff; font-size: 12px; letter-spacing: .04em; }
.announce__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.announce strong { font-size: 10px; background: #fff; color: var(--red); padding: 4px 7px; margin-right: 10px; white-space: nowrap; }
.announce a { font-weight: 700; white-space: nowrap; }

/* ===== naglowek ===== */
.site-header { z-index: 20; left: 0; right: 0; color: #fff; border-bottom: 1px solid #ffffff2c; transition: .25s; }
.site-header--glowna { position: absolute; top: 36px; }
body.bez-ogloszenia .site-header--glowna { top: 0; }
.site-header--glowna.is-fixed { position: fixed; top: 0; }
.site-header--podstrona { position: sticky; top: 0; background: var(--dark); }
.site-header.is-fixed { background: #0a0a0df2; backdrop-filter: blur(14px); }
.nav { height: 88px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 48px; height: 54px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-size: 23px; letter-spacing: .04em; text-transform: uppercase; }
.brand small { margin-top: 7px; color: #bbb; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.main-menu { display: flex; gap: 27px; align-items: center; }
.main-menu a { font-size: 13px; font-weight: 600; position: relative; }
.main-menu a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--red); transition: .2s; }
.main-menu a:hover:after { right: 0; }
.nav-account { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #ffffff55; padding: 11px 15px; white-space: nowrap; }
.nav-account:hover { border-color: #fff; }
.menu-button { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; background: #fff; width: 24px; height: 2px; margin: 5px; }

/* wyszukiwarka: lupa w naglowku + rozwijany panel pod naglowkiem */
.szukaj-przelacznik { background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; display: flex; }
.szukaj-przelacznik:hover { color: var(--red-jasny); }
.szukaj-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a0df5; border-top: 1px solid #ffffff1a; padding: 16px 0; }
body.szukaj-otwarte .szukaj-panel { display: block; }
.szukaj-formularz { display: flex; gap: 10px; }
.szukaj-formularz input { flex: 1; background: transparent; border: 1px solid #ffffff33; color: #fff; padding: 12px 18px; font: inherit; outline: none; }
.szukaj-formularz input:focus { border-color: #ffffff88; }

/* ===== hero (strona glowna) ===== */
.hero { min-height: 810px; position: relative; background: var(--dark); color: #fff; overflow: hidden; padding-top: 125px; }
.hero__media { position: absolute; inset: 0; background-position: center 42%; background-size: cover; background-repeat: no-repeat; filter: saturate(.72) contrast(1.08); }
.hero__media--gradient { background-image: linear-gradient(120deg, #2a0a08, #0b0b0d 55%, #1c0605); filter: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #09090be8 0%, #09090ba8 47%, #09090b38 74%, #09090b8d 100%), linear-gradient(0deg, #09090bea 0%, transparent 36%); }
.hero__lines { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 58%, #e321191c 58%, #e321191c 61%, transparent 61%); }
.hero__content { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; min-height: 555px; padding-top: 100px; }
.hero__copy { max-width: 700px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: #ddd; }
.eyebrow span { width: 34px; height: 2px; background: var(--red); flex: none; }
.eyebrow--dark { color: var(--muted); }
.hero h1, .membership h2 { font-family: var(--display); font-size: clamp(66px, 8vw, 112px); line-height: .82; text-transform: uppercase; letter-spacing: -.035em; margin: 0; }
.hero h1 em, .membership h2 em { color: var(--red); font-style: normal; }
.lead { max-width: 610px; font-size: 17px; color: #d1d1d3; margin: 28px 0 32px; }
.hero__actions { display: flex; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 22px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transition: .2s; border: 0; cursor: pointer; font-family: var(--body); }
.button:hover { transform: translateY(-2px); }
.button--red { background: var(--red); color: #fff; }
.button--red:hover { background: #ff2c23; }
.button--ghost { border: 1px solid #ffffff5c; color: #fff; background: none; }
.button--light { background: #fff; color: #111; }

/* karta najblizszego wydarzenia */
.next-card { width: 300px; padding: 24px; background: #0c0c0dd9; border-top: 3px solid var(--red); backdrop-filter: blur(10px); margin-bottom: 8px; }
.next-card__top, .next-card__meta { display: flex; justify-content: space-between; gap: 10px; }
.next-card__top { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #aaa; }
.next-card__top b { color: var(--red); }
.next-card p { margin: 28px 0 0; font-size: 11px; text-transform: uppercase; color: #aaa; }
.next-card h2 { font-family: var(--display); font-size: 32px; line-height: 1; text-transform: uppercase; margin: 5px 0 20px; }
.next-card__meta { font-size: 10px; color: #aaa; border-top: 1px solid #ffffff1c; padding: 15px 0; }
.next-card > a { display: block; padding-top: 13px; border-top: 1px solid #ffffff1c; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.next-card > a:hover { color: var(--red-jasny); }

/* statystyki pod hero */
.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ffffff26; margin-top: 52px; }
.hero__stats div { display: flex; align-items: center; gap: 13px; padding: 24px 20px; border-right: 1px solid #ffffff1d; }
.hero__stats div:first-child { padding-left: 0; }
.hero__stats div:last-child { border-right: 0; }
.hero__stats strong { font-family: var(--display); font-size: 35px; }
.hero__stats span { color: #aaa; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }

/* ===== sekcje / naglowki sekcji ===== */
.section { padding: 105px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 42px; }
.section-heading h2 { font-family: var(--display); font-size: 64px; line-height: .9; text-transform: uppercase; margin: 0; }
.text-link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #aaa; padding-bottom: 7px; }
.text-link:hover { color: var(--red); border-color: var(--red); }

/* ===== siatka wpisow (aktualnosci + listy) ===== */
.news-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 22px; }
.news-grid--rowna { grid-template-columns: repeat(3, 1fr); }
.story { background: #fff; display: flex; flex-direction: column; }
.story--feature { grid-row: span 2; }
.story__image { height: 220px; position: relative; overflow: hidden; display: block; flex: none; }
.story--feature .story__image { height: auto; min-height: 330px; flex: 1; }
.story__image img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.story__image:hover img { transform: scale(1.035); }
.tag { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; padding: 5px 9px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.story__body { padding: 23px; display: flex; flex-direction: column; align-items: flex-start; }
.story time { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.story h3 { font-family: var(--display); font-size: 27px; line-height: 1.05; text-transform: uppercase; margin: 10px 0; }
.story--feature h3 { font-size: 36px; }
.story h3 a:hover { color: var(--red); }
.story p { font-size: 13px; color: #666; margin: 4px 0 0; }
.story__more { display: inline-block; margin-top: 14px; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--red); }
.brak-wynikow { font-size: 15px; color: var(--muted); margin: 0 0 30px; }

/* ===== sekcja czlonkostwa ===== */
.membership { min-height: 590px; position: relative; color: #fff; background: var(--dark); display: flex; align-items: center; overflow: hidden; }
.membership__image { position: absolute; inset: 0; background-position: center 78%; background-size: cover; background-repeat: no-repeat; filter: grayscale(.25); }
.membership__veil { position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0ce8, #0a0a0ca8), linear-gradient(135deg, transparent 66%, #e3211940 66%); }
.membership__content { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: center; padding-block: 90px; }
.membership h2 { font-size: 86px; }
.membership__copy > p { color: #d0d0d2; }
.membership ul { list-style: none; padding: 0; margin: 25px 0; }
.membership li { border-top: 1px solid #ffffff25; padding: 10px 0; font-size: 12px; }
.membership li:before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 10px; }

/* ===== kafle (routes) ===== */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route { min-height: 180px; padding: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border-right: 1px solid var(--line); transition: .2s; }
.route:last-child { border-right: 0; }
.route:hover { background: #fff; transform: translateY(-4px); }
.route__number { font-family: var(--display); font-size: 12px; color: var(--red); align-self: start; }
.route h3 { font-family: var(--display); font-size: 34px; text-transform: uppercase; margin: 0; }
.route p { font-size: 12px; color: var(--muted); margin: 3px 0; }
.route b { color: var(--red); }

/* ===== podglowie: ciemny pas tytulowy podstron ===== */
.podglowie { background: var(--dark); color: #fff; padding: 62px 0 54px; }
.podglowie h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 82px); line-height: .9; text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.podglowie__opis { max-width: 640px; color: #c9c9cc; font-size: 15px; margin: 18px 0 0; }
.podglowie--404 { padding: 110px 0 120px; }
.podglowie--404 .hero__actions { margin-top: 34px; }

/* ===== artykul (wpis / strona statyczna) - ciemne tlo jak dotychczasowa strona ===== */
.artykul { background: var(--dark); color: #ddd; }
.podglowie--artykul { padding-bottom: 30px; }
.podglowie--artykul h1 { font-size: clamp(38px, 5vw, 66px); line-height: .95; }
.wpis-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #aaa; margin-bottom: 18px; }
.wpis-meta a { color: var(--red-jasny); font-weight: 700; }
.wpis-meta a:hover { text-decoration: underline; }
.artykul__cialo { padding-bottom: 80px; }
.obrazek-wyrozniony { margin: 0 0 34px; }
.obrazek-wyrozniony img { width: 100%; }

/* typografia tresci artykulu */
.tresc-wpisu { font-size: 17px; line-height: 1.75; }
.tresc-wpisu p { margin: 0 0 20px; }
.tresc-wpisu a { color: var(--red-jasny); text-decoration: underline; text-underline-offset: 3px; }
.tresc-wpisu a:hover { color: #ff7a73; }
.tresc-wpisu h2, .tresc-wpisu h3, .tresc-wpisu h4 { font-family: var(--display); text-transform: uppercase; color: #fff; line-height: 1.05; }
.tresc-wpisu h2 { font-size: 34px; margin: 44px 0 16px; }
.tresc-wpisu h3 { font-size: 27px; margin: 36px 0 14px; }
.tresc-wpisu h4 { font-size: 21px; margin: 30px 0 12px; }
.tresc-wpisu ul, .tresc-wpisu ol { margin: 0 0 20px; padding-left: 24px; }
.tresc-wpisu li { margin-bottom: 6px; }
.tresc-wpisu blockquote { border-left: 3px solid var(--red); margin: 26px 0; padding: 14px 22px; background: #141416; color: #eee; }
.tresc-wpisu blockquote p:last-child { margin-bottom: 0; }
.tresc-wpisu figure { margin: 26px 0; text-align: center; }
.tresc-wpisu figure img { margin-inline: auto; }
.tresc-wpisu figcaption { font-size: 13px; color: #999; margin-top: 8px; }
.tresc-wpisu img { cursor: zoom-in; }
.tresc-wpisu hr { border: 0; border-top: 1px solid #ffffff22; margin: 34px 0; }
.tresc-wpisu table { border-collapse: collapse; width: 100%; margin: 26px 0; font-size: 15px; }
.tresc-wpisu th, .tresc-wpisu td { border: 1px solid #ffffff22; padding: 8px 12px; text-align: left; }
.tresc-wpisu .has-text-align-right { text-align: right; }
.tresc-wpisu .has-text-align-center { text-align: center; }

/* galerie (nasze .galeria oraz wp-block-gallery z migracji WordPressa) */
.galeria, .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 26px 0; padding: 0; }
.galeria figure, .wp-block-gallery figure { margin: 0; }
.galeria img, .wp-block-gallery img { width: 100%; height: 160px; object-fit: cover; cursor: zoom-in; }

/* osadzone filmy 16:9 */
.film-osadzony { position: relative; padding-top: 56.25%; margin: 26px 0; }
.film-osadzony iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== paginacja ===== */
.paginacja { display: flex; align-items: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.paginacja .numer { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; font-family: var(--display); font-size: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: .2s; }
.paginacja a.numer:hover { border-color: var(--red); color: var(--red); }
.paginacja .numer.biezaca { background: var(--red); border-color: var(--red); color: #fff; }
.paginacja .kropki { color: var(--muted); padding: 0 4px; }
.paginacja .nastepna { min-width: auto; padding: 0 18px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* ===== stopka ===== */
.footer { background: #09090b; color: #fff; padding-top: 70px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 50px; padding-bottom: 55px; }
.footer__brand { flex: 2 1 280px; display: flex; align-items: center; gap: 18px; }
.footer__brand img { object-fit: contain; }
.footer__brand b { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.footer__brand p { color: #888; font-size: 11px; margin: 2px 0; }
.footer__kolumna { flex: 1 1 150px; }
.footer h2 { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #777; margin: 0 0 18px; font-family: var(--body); }
.footer__kolumna a { display: block; color: #bbb; font-size: 12px; margin: 8px 0; }
.footer__kolumna a:hover { color: #fff; }
.footer__kolumna p { color: #bbb; font-size: 12px; margin: 8px 0; }
.widget-menu { list-style: none; margin: 0; padding: 0; }
.widget-menu li { margin: 8px 0; }
.footer__bottom { border-top: 1px solid #ffffff1a; padding: 20px 0; display: flex; justify-content: space-between; gap: 15px; color: #666; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

/* ===== lightbox (powiekszanie zdjec z tresci i galerii) ===== */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }

/* ===== responsywnosc ===== */
@media (max-width: 980px) {
    .main-menu { position: absolute; top: 100%; left: 0; right: 0; background: #0a0a0df7; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 20px 24px; }
    .main-menu a { padding: 10px 0; }
    .main-menu.is-open { display: flex; }
    .menu-button { display: block; }
    .nav-account { display: none; }
    .next-card { display: none; }
    .hero__content { align-items: center; }
    .news-grid, .news-grid--rowna { grid-template-columns: 1fr 1fr; }
    .story--feature { grid-column: 1 / -1; grid-row: auto; }
    .story--feature .story__image { height: 330px; flex: none; }
    .membership__content { gap: 40px; }
    .route-grid { grid-template-columns: 1fr; }
    .route { border-right: 0; border-bottom: 1px solid var(--line); }
    .route:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
    :root { --wrap: min(100% - 28px, 1180px); }
    .wrap--waski { width: min(100% - 28px, 860px); }
    .announce__inner { justify-content: center; text-align: center; }
    .announce a { display: none; }
    .nav { height: 76px; }
    .brand b { font-size: 19px; }
    .brand small { display: none; }
    .hero { min-height: 760px; padding-top: 112px; }
    .hero__content { min-height: 505px; padding-top: 70px; }
    .hero h1 { font-size: 64px; }
    .lead { font-size: 14px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__stats { grid-template-columns: 1fr 1fr; margin-top: 35px; }
    .hero__stats div { padding: 15px 5px; border-bottom: 1px solid #ffffff1d; }
    .hero__stats div:first-child { padding-left: 5px; }
    .hero__stats strong { font-size: 27px; }
    .section { padding: 70px 0; }
    .section-heading h2 { font-size: 49px; }
    .text-link { display: none; }
    .news-grid, .news-grid--rowna { grid-template-columns: 1fr; }
    .story--feature { grid-column: auto; }
    .story--feature .story__image, .story__image { height: 230px; }
    .story--feature h3 { font-size: 29px; }
    .membership__content { grid-template-columns: 1fr; gap: 35px; padding-block: 70px; }
    .membership h2 { font-size: 61px; }
    .route { padding: 25px 16px; }
    .podglowie { padding: 44px 0 40px; }
    .tresc-wpisu { font-size: 16px; }
    .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; }
}
/* Bloki tworzone przez rozbudowany edytor CMS */
.blok-kolumny { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blok-kolumny.kolumny-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blok-kolumny.kolumny-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabela-tresci { max-width: 100%; overflow-x: auto; }
.tabela-tresci table { border-collapse: collapse; width: 100%; }
.tabela-tresci th, .tabela-tresci td { border: 1px solid #ddd; padding: .55rem; text-align: left; }
.przycisk-tresci { background: #2271b1; border-radius: 3px; color: #fff; display: inline-block; padding: .65rem 1rem; text-decoration: none; }
.spis-tresci { background: #f5f5f5; border-left: 4px solid #2271b1; margin: 1.5rem 0; padding: 1rem 1.25rem; }
.spis-tresci .poziom-h3 { margin-left: 1rem; }
.galeria { display: grid; gap: .75rem; }
.galeria-kolumny-1 { grid-template-columns: 1fr; }
.galeria-kolumny-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeria-kolumny-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galeria-kolumny-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galeria-kolumny-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.galeria-kolumny-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 700px) {
    .blok-kolumny, .blok-kolumny.kolumny-3, .blok-kolumny.kolumny-4,
    .galeria { grid-template-columns: 1fr; }
}
