/* Uniwersalny motyw strony publicznej.
   Jasne tlo "paper" + ciemne sekcje, spokojny akcent i naglowki Barlow Condensed.
   Komentarze bez znakow diakrytycznych. */

:root {
    --white: #fff;
    --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: var(--on-accent); 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: var(--dark-deep); 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; }
.menu-glowne-lista { display: flex; align-items: center; gap: 27px; list-style: none; margin: 0; padding: 0; }
.menu-glowne-lista > li { position: relative; }
.menu-glowne-lista .submenu { display: none; position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: 9px 14px; background: var(--dark-deep); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.menu-glowne-lista li:hover > .submenu, .menu-glowne-lista li:focus-within > .submenu { display: block; }
.menu-glowne-lista .submenu .submenu { top: 0; left: 100%; }
.menu-glowne-lista .submenu a { display: block; padding: 8px 4px; white-space: nowrap; }
.menu-stopki-lista, .menu-stopki-lista .submenu, .widget-menu .submenu { list-style: none; margin: 0; padding-left: 14px; }
.menu-stopki-lista { padding-left: 0; }
.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: var(--dark-deep); 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: 650px; position: relative; background: var(--dark); color: #fff; overflow: hidden; padding-top: 105px; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; 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, #2b3b45, #17212a 55%, #20323d); 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__content { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; min-height: 420px; padding-top: 72px; }
.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(52px, 7vw, 84px); line-height: .88; 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: var(--on-accent); }
.button--red:hover { background: var(--red-dark); }
.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: 30px; }
.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: var(--on-accent); 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: inherit; }
.story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.autor-wpisu { white-space: nowrap; }
.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; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; 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); }
.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; }
.artykul__uklad { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 54px; align-items: start; }
.artykul__glowna { min-width: 0; }
.artykul__tresc-z-obrazkiem::after { content: ""; display: table; clear: both; }
.obrazek-wyrozniony { margin: 0 0 34px; }
.obrazek-wyrozniony img { display: block; width: 100%; height: auto; }
.obrazek-wyrozniony--dol { margin: 34px 0 0; }
.obrazek-wyrozniony--miniatura_lewa,
.obrazek-wyrozniony--miniatura_prawa { width: min(42%, 320px); margin-bottom: 18px; }
.obrazek-wyrozniony--miniatura_lewa { float: left; margin-right: 28px; }
.obrazek-wyrozniony--miniatura_prawa { float: right; margin-left: 28px; }

/* losowe zajawki innych wpisow obok artykulu */
.artykul-sidebar { position: sticky; top: 116px; background: var(--dark-soft); border: 1px solid #ffffff18; }
.artykul-sidebar__etykieta { margin: 0; padding: 16px 18px; border-bottom: 1px solid #ffffff18; color: var(--red-jasny); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.artykul-sidebar__karta { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 13px; padding: 15px; border-bottom: 1px solid #ffffff18; }
.artykul-sidebar__karta:last-child { border-bottom: 0; }
.artykul-sidebar__karta.bez-obrazka { grid-template-columns: 1fr; }
.artykul-sidebar__obraz { display: block; height: 82px; overflow: hidden; }
.artykul-sidebar__obraz img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.artykul-sidebar__obraz:hover img { transform: scale(1.035); }
.artykul-sidebar__tresc { min-width: 0; }
.artykul-sidebar h2 { margin: 0 0 7px; color: #fff; font-family: var(--display); font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.artykul-sidebar h2 a:hover { color: var(--red-jasny); }
.artykul-sidebar__tresc p { margin: 0; color: #aeb7bd; font-size: 11px; line-height: 1.4; }

/* 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: #d7e7ef; }
.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; }
.udostepnianie { margin-top: 42px; padding-top: 24px; border-top: 1px solid #ffffff22; }
.udostepnianie > strong { display: block; margin-bottom: 12px; color: #aaa; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.udostepnianie__przyciski { display: flex; flex-wrap: wrap; gap: 8px; }
.udostepnianie__przyciski a, .udostepnianie__przyciski button { min-height: 38px; padding: 9px 13px; border: 1px solid var(--red); background: transparent; color: var(--red-jasny); font: 700 12px/1 var(--body); text-decoration: none; cursor: pointer; }
.udostepnianie__przyciski a:hover, .udostepnianie__przyciski button:hover { background: var(--red); color: var(--on-accent); }
.udostepnianie__status { display: block; min-height: 18px; margin-top: 8px; color: #aaa; font-size: 12px; }

/* 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: var(--on-accent); }
.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; }

.wpis-tagi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wpis-tagi a { color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; }
.tresc-chroniona { max-width: 620px; padding: 28px; border: 1px solid var(--line); background: #fff; }
.tresc-chroniona form { display: flex; align-items: end; gap: 12px; margin-top: 22px; }
.tresc-chroniona label { flex: 1; }
.tresc-chroniona input { width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); }

/* ===== stopka ===== */
.footer { background: var(--dark-deep); 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; }
.widget-losowa-tresc { color: #bbb; font-size: 12px; line-height: 1.65; }
.widget-losowa-tresc > :first-child { margin-top: 0; }
.widget-losowa-tresc > :last-child { margin-bottom: 0; }
.widget-losowa-grafika { display: block; width: 100%; height: auto; border-radius: 2px; }
.widget-losowa-link { display: block; margin: 0; }
.widget-chmura-tagow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 11px; line-height: 1.2; }
.widget-chmura-tagow a { display: inline; margin: 0; color: #bbb; }
.widget-chmura-tagow a:hover { color: #fff; }
.widget-chmura-tagow .tag-waga-1 { font-size: 10px; opacity: .72; }
.widget-chmura-tagow .tag-waga-2 { font-size: 12px; opacity: .82; }
.widget-chmura-tagow .tag-waga-3 { font-size: 14px; }
.widget-chmura-tagow .tag-waga-4 { font-size: 17px; }
.widget-chmura-tagow .tag-waga-5 { font-size: 20px; font-weight: 700; }
.pola-wlasne { display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 8px 20px; margin: 28px 0 0; padding: 22px; background: var(--soft, #f5f5f3); }
.pola-wlasne dt { font-weight: 700; }
.pola-wlasne dd { margin: 0; white-space: pre-line; }
.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; }
.footer__bottom a { color: #aeb7bd; }
.footer__bottom a:hover { color: #fff; }

/* gotowe warianty strony glownej */
.uklad-magazynowy .hero { min-height: 570px; }
.uklad-magazynowy .hero__content { min-height: 360px; }
.uklad-magazynowy .hero h1 { font-size: clamp(50px, 6vw, 76px); }
.uklad-magazynowy .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uklad-magazynowy .story--feature { grid-row: auto; }
.uklad-magazynowy .story--feature .story__image { height: 220px; min-height: 0; flex: none; }
.uklad-magazynowy .story--feature h3 { font-size: 30px; }

.uklad-kompaktowy .hero { min-height: 500px; padding-top: 88px; }
.uklad-kompaktowy .hero__content { min-height: 300px; padding-top: 48px; }
.uklad-kompaktowy .hero h1 { font-size: clamp(46px, 5.5vw, 68px); line-height: .94; }
.uklad-kompaktowy .lead { margin: 20px 0 24px; }
.uklad-kompaktowy .hero__stats { margin-top: 20px; }
.uklad-kompaktowy .hero__stats div { padding-block: 16px; }
.uklad-kompaktowy .section { padding-block: 68px; }
.uklad-kompaktowy .section-heading { margin-bottom: 30px; }
.uklad-kompaktowy .section-heading h2 { font-size: 52px; }
.uklad-kompaktowy .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uklad-kompaktowy .story--feature { grid-row: auto; }
.uklad-kompaktowy .story__image, .uklad-kompaktowy .story--feature .story__image { height: 185px; min-height: 0; flex: none; }
.uklad-kompaktowy .story--feature h3 { font-size: 29px; }
.uklad-kompaktowy .membership { min-height: 480px; }
.uklad-kompaktowy .membership__content { padding-block: 65px; }
.uklad-kompaktowy .membership h2 { font-size: 70px; }

/* ===== 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: var(--dark-deep); display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 20px 24px; }
    .menu-glowne-lista { display: block; width: 100%; }
    .menu-glowne-lista .submenu { display: block; position: static; box-shadow: none; padding: 0 0 0 18px; }
    .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; }
    .artykul__uklad { grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; }
}
@media (max-width: 640px) {
    .obrazek-wyrozniony--miniatura_lewa,
    .obrazek-wyrozniony--miniatura_prawa { float: none; width: 100%; margin: 0 0 26px; }
    :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: 590px; padding-top: 96px; }
    .hero__content { min-height: 380px; padding-top: 52px; }
    .hero h1 { font-size: 52px; }
    .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; }
    .artykul__uklad { grid-template-columns: 1fr; }
    .artykul-sidebar { position: static; }
    .artykul-sidebar__obraz { height: 92px; }
    .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; }
}

/* ===== wariant minimalistyczny ===== */
.motyw-minimalistyczny {
    --wrap: min(1290px, 90vw);
    --paper: #000;
    --ink: #ddd;
    --line: #26262b;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: #ddd;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
}
.motyw-minimalistyczny h1,
.motyw-minimalistyczny h2,
.motyw-minimalistyczny h3,
.motyw-minimalistyczny h4,
.motyw-minimalistyczny h5,
.motyw-minimalistyczny h6 { color: #fff; font-family: var(--body); }
.motyw-minimalistyczny .site-header {
    position: relative;
    top: auto;
    background: #000;
    border: 0;
    color: #fff;
}
.motyw-minimalistyczny .site-header.is-fixed { position: relative; top: auto; background: #000; backdrop-filter: none; }
.motyw-minimalistyczny .nav {
    min-height: 200px;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "brand search search"
        "menu menu account";
    gap: 0 24px;
}
.motyw-minimalistyczny .brand { grid-area: brand; min-height: 120px; margin: 0; align-self: stretch; }
.motyw-minimalistyczny .brand img { width: 89px; height: 100px; }
.motyw-minimalistyczny .brand b {
    color: var(--red);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}
.motyw-minimalistyczny .brand small { color: #aaa; font-size: 13px; letter-spacing: 0; text-transform: none; }
.motyw-minimalistyczny .main-menu {
    grid-area: menu;
    min-height: 80px;
    align-self: stretch;
    overflow: visible;
}
.motyw-minimalistyczny .menu-glowne-lista { gap: 25px; flex-wrap: wrap; }
.motyw-minimalistyczny .main-menu a { color: #ddd; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.motyw-minimalistyczny .main-menu a:hover,
.motyw-minimalistyczny .main-menu a:focus-visible { color: var(--red); }
.motyw-minimalistyczny .main-menu a:after { display: none; }
.motyw-minimalistyczny .szukaj-przelacznik { grid-area: search; align-self: center; justify-self: end; }
.motyw-minimalistyczny .nav-account { grid-area: account; align-self: center; border-color: #333; }
.motyw-minimalistyczny .szukaj-panel { background: #111; }
.motyw-minimalistyczny main { background: #000; }
.motyw-minimalistyczny .minimalna-sekcja { padding: 60px 0 80px; }
.motyw-minimalistyczny .minimalny-uklad {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 27%;
    column-gap: 4%;
    row-gap: 50px;
    align-items: start;
}
.motyw-minimalistyczny .minimalna-kolumna { min-width: 0; }
.motyw-minimalistyczny .minimalne-wpisy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    min-width: 0;
}
.motyw-minimalistyczny .minimalny-wpis {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    background: #000;
}
.motyw-minimalistyczny .minimalny-wpis__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}
.motyw-minimalistyczny .minimalny-wpis__meta .autor-wpisu { color: #999; }
.motyw-minimalistyczny .minimalny-wpis h2 {
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.3;
}
.motyw-minimalistyczny .minimalny-wpis h2 a:hover { color: var(--red); }
.motyw-minimalistyczny .minimalny-wpis__obraz {
    display: block;
    width: calc(100% + 60px);
    margin: 0 -30px 24px;
    overflow: hidden;
    background: #111;
}
.motyw-minimalistyczny .minimalny-wpis__obraz img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.motyw-minimalistyczny .minimalny-wpis p { color: #ddd; margin: 0 0 22px; }
.motyw-minimalistyczny .minimalny-wpis__wiecej {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 5px 20px;
    background: var(--red);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 500;
}
.motyw-minimalistyczny .minimalny-sidebar {
    padding-left: 35px;
    border-left: 1px solid var(--line);
}
.motyw-minimalistyczny .minimalny-widget { margin-bottom: 38px; color: #ddd; }
.motyw-minimalistyczny .minimalny-widget:last-child { margin-bottom: 0; }
.motyw-minimalistyczny .minimalny-widget h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.3; }
.motyw-minimalistyczny .minimalny-widget ul { list-style: none; margin: 0; padding: 0; }
.motyw-minimalistyczny .minimalny-widget li { padding: 8px 0; border-bottom: 1px solid #202024; }
.motyw-minimalistyczny .minimalny-widget--menu .widget-menu > li { padding: 4px 0; }
.motyw-minimalistyczny .minimalny-widget--menu .widget-menu > li > a {
    display: flex;
    align-items: baseline;
    gap: 9px;
}
.motyw-minimalistyczny .minimalny-widget--menu .widget-menu > li > a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--red);
    transform: translateY(-1px);
}
.motyw-minimalistyczny .minimalny-widget p { margin-top: 0; }
.motyw-minimalistyczny .minimalny-widget a { color: #ddd; }
.motyw-minimalistyczny .minimalny-widget a:hover { color: var(--red); }
.motyw-minimalistyczny .minimalna-paginacja { margin-top: 40px; }
.motyw-minimalistyczny .minimalne-archiwum { margin: 0 0 35px; }
.motyw-minimalistyczny .minimalne-archiwum h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.25;
}
.motyw-minimalistyczny .minimalne-archiwum h1 span {
    display: block;
    margin-bottom: 4px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}
.motyw-minimalistyczny .minimalne-archiwum p { margin: 12px 0 0; color: #aaa; }
.motyw-minimalistyczny .minimalny-artykul { min-width: 0; }
.motyw-minimalistyczny .minimalny-artykul__naglowek { margin: 0 0 32px; }
.motyw-minimalistyczny .minimalny-artykul__naglowek h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.2vw, 46px);
    line-height: 1.2;
}
.motyw-minimalistyczny .minimalny-artykul__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #aaa;
    font-size: 12px;
}
.motyw-minimalistyczny .minimalny-artykul__meta a { color: var(--red); }
.motyw-minimalistyczny .minimalny-artykul .tresc-wpisu {
    padding: 0;
    background: transparent;
    color: #ddd;
    font-size: 16px;
    line-height: 1.65;
}
.motyw-minimalistyczny .minimalny-artykul .tresc-wpisu a { color: #9c0000; }
.motyw-minimalistyczny .minimalny-artykul .tresc-wpisu a:hover { color: var(--red); }
.motyw-minimalistyczny .minimalny-artykul .tresc-wpisu h2 { margin-top: 1.5em; font-size: 30px; line-height: 1.25; }
.motyw-minimalistyczny .minimalny-artykul .tresc-wpisu h3 { margin-top: 1.4em; font-size: 24px; line-height: 1.3; }
.motyw-minimalistyczny .minimalny-artykul__tagi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.motyw-minimalistyczny .minimalny-artykul__tagi strong { width: 100%; }
.motyw-minimalistyczny .minimalny-artykul__tagi a {
    padding: 5px 10px;
    border: 1px solid var(--line);
    font-size: 12px;
}
.motyw-minimalistyczny .podglowie { background: #0b0b0d; }
.motyw-minimalistyczny .section { background: #000; }
.motyw-minimalistyczny .story,
.motyw-minimalistyczny .artykul__glowna,
.motyw-minimalistyczny .tresc-wpisu { background: #0b0b0d; color: #ddd; }
.motyw-minimalistyczny .footer--minimalistyczny { padding: 34px 0; background: #000; border-top: 1px solid #202024; }
.motyw-minimalistyczny .minimalna-stopka {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    color: #bbb;
    font-size: 14px;
}
.motyw-minimalistyczny .minimalna-stopka__widgety { margin-left: auto; text-align: right; }
.motyw-minimalistyczny .minimalna-stopka__widgety section,
.motyw-minimalistyczny .minimalna-stopka__widgety p { margin: 0; }
.motyw-minimalistyczny .minimalna-stopka__widgety h2 { margin: 0 0 8px; font-size: 14px; }
.motyw-minimalistyczny .minimalna-stopka a { color: #bbb; }
.motyw-minimalistyczny .minimalna-stopka a:hover { color: var(--red); }

@media (max-width: 999px) {
    .motyw-minimalistyczny { --wrap: min(1290px, 88vw); }
    .motyw-minimalistyczny .nav {
        min-height: 100px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas: "brand search toggle";
    }
    .motyw-minimalistyczny .brand { min-height: 100px; }
    .motyw-minimalistyczny .brand img { width: 58px; height: 66px; }
    .motyw-minimalistyczny .menu-button { grid-area: toggle; display: block; }
    .motyw-minimalistyczny .main-menu { min-height: 0; }
    .motyw-minimalistyczny .nav-account { display: none; }
    .motyw-minimalistyczny .minimalny-uklad { grid-template-columns: minmax(0, 1fr); }
    .motyw-minimalistyczny .minimalne-wpisy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .motyw-minimalistyczny .minimalny-sidebar { display: none; }
}
@media (max-width: 689px) {
    .motyw-minimalistyczny .minimalna-sekcja { padding-top: 30px; }
    .motyw-minimalistyczny .minimalne-wpisy { grid-template-columns: minmax(0, 1fr); }
    .motyw-minimalistyczny .brand { gap: 9px; }
    .motyw-minimalistyczny .brand b { max-width: 190px; font-size: 14px; }
    .motyw-minimalistyczny .brand small { font-size: 10px; }
    .motyw-minimalistyczny .minimalny-artykul__naglowek h1 { font-size: 32px; }
    .motyw-minimalistyczny .minimalna-stopka { flex-direction: column; }
    .motyw-minimalistyczny .minimalna-stopka__widgety { margin-left: 0; text-align: left; }
}
/* 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: var(--red); border-radius: 3px; color: var(--on-accent); display: inline-block; padding: .65rem 1rem; text-decoration: none; }
.spis-tresci { background: var(--paper); border-left: 4px solid var(--red); 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; }
}

/* Narzędzia redakcyjne widoczne wyłącznie w aktywnej sesji panelu. */
.cms-admin-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: #17212a;
    box-shadow: 0 10px 30px rgba(0,0,0,.32);
    font-family: Inter, sans-serif;
}
.cms-admin-tools a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.cms-admin-tools a:hover,
.cms-admin-tools a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.cms-admin-tools .cms-admin-tools__edit { background: var(--red); color: var(--on-accent); }
.cms-admin-tools .cms-admin-tools__edit:hover,
.cms-admin-tools .cms-admin-tools__edit:focus-visible { filter: brightness(.92); color: var(--on-accent); }
@media (max-width: 600px) {
    .cms-admin-tools { right: 10px; bottom: 10px; }
    .cms-admin-tools a { min-height: 34px; padding: 6px 10px; font-size: 12px; }
}

/* Formularz newslettera dziedziczy paletę kolorów każdej witryny. */
.footer__kolumna--newsletter { min-width: min(100%, 310px); }
.newsletter-formularz { max-width: 430px; }
.newsletter-formularz h2 { margin: 0 0 8px; }
.newsletter-formularz > p { margin: 0 0 14px; }
.newsletter-formularz__pola { display: grid; gap: 11px; }
.newsletter-formularz__pola > label:first-child { display: grid; gap: 5px; }
.newsletter-formularz__pola input[type=email] {
    width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid var(--line);
    border-radius: 3px; background: #fff; color: #17212a; font: inherit; padding: 10px 12px;
}
.newsletter-zgoda { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; font-size: 12px; line-height: 1.45; }
.newsletter-zgoda input { margin-top: 3px; }
.newsletter-zgoda a { text-decoration: underline; }
.newsletter-komunikat { border-left: 4px solid var(--red); padding: 9px 11px; background: rgba(255,255,255,.1); }
.newsletter-komunikat--blad { border-left-color: #b3261e; }
.newsletter-pulapka { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.minimalna-stopka__newsletter { flex: 1 1 330px; margin-left: auto; text-align: left; }
@media (max-width: 689px) {
    .minimalna-stopka__newsletter { margin-left: 0; width: 100%; }
}
