/* ============================================================
   OSP Gryfice — style frontu
   Tożsamość: asfaltowa czerń, sygnałowa czerwień, bursztynowy
   pas odblaskowy. Krój sygnaturowy: Oswald (kondensowany).
   ============================================================ */

:root {
    --asphalt: #15171c;
    --asphalt-2: #1f232b;
    --red: #c8102e;
    --red-dark: #9c0c24;
    --amber: #f6b73c;
    --paper: #f7f5f2;
    --white: #ffffff;
    --ink: #20242c;
    --muted: #6b7280;
    --line: #e7e3dc;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 18px 40px -24px rgba(21, 23, 28, .45);
    --wrap: 1140px;
    --display: "Oswald", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--red); color: #fff;
    padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.eyebrow {
    font-family: var(--display); text-transform: uppercase; letter-spacing: .18em;
    font-size: .78rem; font-weight: 600; color: var(--red);
    display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display);
    font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .9rem;
    padding: .8rem 1.5rem; border-radius: var(--radius-sm); border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--text { background: none; color: var(--red); padding: .4rem 0; text-transform: none; letter-spacing: 0; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--asphalt); color: #d7dae0; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); letter-spacing: .04em; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(246,183,60,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(246,183,60,.6); } 70% { box-shadow: 0 0 0 8px rgba(246,183,60,0); } 100% { box-shadow: 0 0 0 0 rgba(246,183,60,0); } }
.topbar__contact { display: flex; gap: 1.2rem; }
.topbar__contact a { color: #d7dae0; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
    font-family: var(--display); font-weight: 700; color: #fff; background: var(--red);
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
    font-size: .95rem; letter-spacing: .02em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand__text strong { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1; }
.brand__text small { color: var(--muted); font-size: .76rem; }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a {
    font-family: var(--display); font-weight: 500; color: var(--ink); padding: .5rem .75rem;
    border-radius: 6px; font-size: .98rem; letter-spacing: .01em;
}
.nav__menu a:hover { background: var(--paper); text-decoration: none; }
.nav__menu a.is-active { color: var(--red); }
.nav__cta { background: var(--red); color: #fff !important; }
.nav__cta:hover { background: var(--red-dark) !important; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--asphalt); color: #fff; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(200,16,46,.45), transparent 60%),
        linear-gradient(180deg, #1b1e25, #111318);
}
.hero__stripe {
    position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background: repeating-linear-gradient(135deg, var(--amber) 0 22px, transparent 22px 44px);
    mask-image: linear-gradient(180deg, transparent, #000 60%, transparent);
}
.hero__inner { position: relative; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero__content { max-width: 660px; }
.hero h1 { color: #fff; margin-top: .6rem; }
.hero h1 span { color: var(--amber); }
.hero__lead { font-size: 1.15rem; color: #c9ccd4; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--asphalt); }
.hero__stats { display: flex; gap: 2.5rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.6rem; }
.hero__stats strong { font-family: var(--display); font-size: 2.2rem; display: block; color: #fff; }
.hero__stats span { color: #aab0bb; font-size: .85rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--services { background: var(--white); }
.section__head { max-width: 640px; margin-bottom: 2.4rem; }
.section__head p { color: var(--muted); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --- Post grid / cards --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16/10; background: var(--asphalt-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; font-family: var(--display); font-size: 2rem; color: rgba(255,255,255,.18); }
.post-card__body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; margin: 0 0 .8rem; }
.post-card__more { font-family: var(--display); font-weight: 600; font-size: .9rem; }
.tag { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; color: var(--red); background: rgba(200,16,46,.08); padding: .2rem .55rem; border-radius: 4px; }

/* --- CTA band --- */
.cta-band { background: var(--red); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.9); margin: .4rem 0 0; }
.cta-band .btn--primary { background: var(--asphalt); }
.cta-band .btn--primary:hover { background: #000; }

/* ============================================================
   PAGE HERO / BREADCRUMB / PROSE
   ============================================================ */
.page-hero { background: var(--asphalt); color: #fff; padding: clamp(2.6rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(135deg, var(--amber) 0 18px, var(--asphalt) 18px 36px); }
.page-hero h1 { color: #fff; margin: .4rem 0 .3rem; }
.page-hero p { color: #c2c6cf; margin: 0; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: #9aa0ab; margin-bottom: .3rem; }
.breadcrumb a { color: #c8ccd3; }

.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.prose a { text-decoration: underline; }

/* --- Filter chips / pagination --- */
.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font-family: var(--display); font-size: .9rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); }
.chip:hover { border-color: var(--red); text-decoration: none; }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-family: var(--display); color: var(--ink); background: #fff; }
.pagination a.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a:hover { text-decoration: none; border-color: var(--red); }

/* --- Article --- */
.article__hero { background: var(--asphalt); color: #fff; padding: clamp(2.4rem,5vw,3.6rem) 0 2.6rem; }
.article__hero h1 { color: #fff; max-width: 820px; }
.article__meta { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: #aeb3bd; margin-bottom: .5rem; }
.article__layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; padding: 2.5rem 0; align-items: start; }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 1.6rem; max-height: 440px; object-fit: cover; }
.article__foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article__aside { position: sticky; top: 90px; }
.aside__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.aside__list { list-style: none; padding: 0; margin: 0; }
.aside__list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.aside__list a { color: var(--ink); font-weight: 500; }
.aside__list time { display: block; font-size: .78rem; color: var(--muted); }

/* --- Gallery --- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.album-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.album-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-4px); transition: .18s; }
.album-card__media { display: block; aspect-ratio: 4/3; background: var(--asphalt-2); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__body { padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.album-card__body strong { font-family: var(--display); font-size: 1.1rem; }
.album-card__body small { color: var(--muted); }

.lightbox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.lightbox-grid__item { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.lightbox-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lightbox-grid__item:hover img { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; background: rgba(10,11,14,.94); z-index: 300; display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }
.lightbox__caption { color: #ddd; margin-top: 1rem; text-align: center; }

/* --- Contact --- */
.contact { display: grid; grid-template-columns: 360px 1fr; gap: 2.5rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact__list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__list strong { font-family: var(--display); font-size: 1.05rem; }
.contact__map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/11; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }

/* --- Forms --- */
.form label { display: block; font-family: var(--display); font-weight: 500; font-size: .95rem; margin-bottom: 1rem; }
.form input, .form textarea, .form select {
    width: 100%; margin-top: .35rem; padding: .75rem .9rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font-family: var(--body); font-size: 1rem; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__hp { position: absolute; left: -9999px; }
.field-err { color: var(--red); font-size: .85rem; display: block; margin-top: -.6rem; margin-bottom: .8rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.alert--ok { background: #e7f6ec; color: #1c6b3a; border: 1px solid #bfe6cd; }
.alert--err { background: #fdeaec; color: #9c0c24; border: 1px solid #f3c4cc; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--asphalt); color: #b9bdc6; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer__brand .brand__mark { margin-bottom: .8rem; }
.footer__brand h3 { color: #fff; }
.footer__brand p { font-size: .92rem; max-width: 320px; }
.footer__social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer__social a { color: #fff; border: 1px solid rgba(255,255,255,.25); padding: .35rem .8rem; border-radius: 6px; font-size: .85rem; font-family: var(--display); }
.footer__social a:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.footer__col h4 { font-family: var(--display); color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 1rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .55rem; }
.footer__col a { color: #b9bdc6; font-size: .94rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer__bottom .wrap { display: flex; justify-content: space-between; padding: 1.1rem 0; }
.footer__bottom a { color: #8b909b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .cards, .post-grid, .album-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-grid { grid-template-columns: repeat(3, 1fr); }
    .article__layout { grid-template-columns: 1fr; }
    .article__aside { position: static; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
        align-items: stretch; padding: .6rem; box-shadow: var(--shadow); display: none;
    }
    .nav__menu.is-open { display: flex; }
    .nav__menu a { padding: .8rem 1rem; }
    .topbar__contact { display: none; }
    .hero__stats { gap: 1.4rem; flex-wrap: wrap; }
    .section__head--row { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .cards, .post-grid, .album-grid { grid-template-columns: 1fr; }
    .lightbox-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ============================================================
   ETAP 2 — PODMENU (dropdown)
   ============================================================ */
.nav__item--has-sub { position: relative; display: inline-flex; align-items: center; }
.nav__caret { font-size: .7em; opacity: .7; }
.nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); padding: .4rem; z-index: 120;
    display: none; flex-direction: column;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { display: flex; }
.nav__sub a { padding: .55rem .8rem; border-radius: 6px; font-family: var(--display); font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav__sub a:hover { background: var(--paper); text-decoration: none; }
.nav__sub a.is-active { color: var(--red); }

/* ============================================================
   ETAP 2 — INTERWENCJE
   ============================================================ */
.intv-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.intv-stat {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.3rem 1rem; text-align: center; border-top: 4px solid var(--muted);
}
.intv-stat strong { font-family: var(--display); font-size: 2.1rem; display: block; line-height: 1; color: var(--ink); }
.intv-stat span { font-size: .82rem; color: var(--muted); }
.intv-stat--total { border-top-color: var(--red); background: var(--asphalt); }
.intv-stat--total strong { color: #fff; }
.intv-stat--total span { color: #c2c6cf; }
.intv-stat--pozar { border-top-color: #e4572e; }
.intv-stat--miejscowe { border-top-color: var(--amber); }
.intv-stat--falszywy { border-top-color: #9aa0ab; }
.intv-stat--cwiczenia { border-top-color: #2e86ab; }
.intv-stat--inne { border-top-color: #6b7280; }

.intv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.intv-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.intv-table th { text-align: left; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--muted); padding: .9rem 1.1rem; border-bottom: 2px solid var(--line); }
.intv-table td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.intv-table tr:last-child td { border-bottom: 0; }
.intv-table__date { white-space: nowrap; font-weight: 600; }
.intv-badge { display: inline-block; font-family: var(--display); font-size: .76rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; color: #fff; background: var(--muted); }
.intv-badge--pozar { background: #e4572e; }
.intv-badge--miejscowe { background: #d9941a; }
.intv-badge--falszywy { background: #9aa0ab; }
.intv-badge--cwiczenia { background: #2e86ab; }
.intv-badge--inne { background: #6b7280; }

/* Pasek interwencji na stronie głównej */
.intv-band { background: var(--white); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.intv-band__grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.intv-band__total { background: var(--asphalt); color: #fff; border-radius: var(--radius); padding: 1.8rem 2.2rem; text-align: center; position: relative; overflow: hidden; }
.intv-band__total::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--asphalt) 14px 28px); }
.intv-band__total strong { font-family: var(--display); font-size: 3rem; display: block; line-height: 1; }
.intv-band__total span { color: #c2c6cf; font-size: .9rem; }
.intv-band__types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.intv-band__type { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.intv-band__type strong { font-family: var(--display); font-size: 1.8rem; display: block; color: var(--red); line-height: 1; }
.intv-band__type span { font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
    .intv-stats { grid-template-columns: repeat(3, 1fr); }
    .intv-band__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    /* Podmenu w widoku mobilnym — statycznie, wcięte */
    .nav__item--has-sub { display: block; }
    .nav__sub { position: static; display: flex; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: .2rem 0 .4rem .8rem; padding: 0; }
    .nav__sub a { padding: .6rem .8rem; }
}
@media (max-width: 520px) {
    .intv-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ETAP 2 — LOGO
   ============================================================ */
.brand__logo { height: 48px; width: auto; max-width: 320px; object-fit: contain; display: block; }
.brand__logo--footer { height: 60px; max-width: 320px; margin-bottom: .9rem; }

@media (max-width: 720px) {
    .brand__logo { height: 42px; max-width: 160px; }
}
@media (max-width: 420px) {
    .brand__logo { height: 38px; max-width: 130px; }
    .brand__text small { display: none; } /* na bardzo małych ekranach skróć nagłówek */
}

/* ============================================================
   ETAP 2 — BANER (hero) z własnym tłem
   ============================================================ */
.hero__inner { position: relative; z-index: 2; }
.hero__stripe { z-index: 1; }
.hero::before { z-index: 1; }
.hero--slider { min-height: clamp(540px, 72vh, 760px); display: flex; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; padding: 2rem 0 6rem; }
.hero__overlay .hero__content { max-width: 680px; }
.hero__statsbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.2rem 0; background: linear-gradient(0deg, rgba(15,16,20,.82), transparent); }
.hero--slider .hero__stats { border-top: 0; padding-top: 0; }
.hero--image::before {
    background: linear-gradient(180deg, rgba(21,23,28,.66), rgba(21,23,28,.84)) !important;
}
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
@media (max-width: 720px) {
    .hero--slider { min-height: clamp(460px, 80vh, 620px); }
    .hero__overlay { padding-bottom: 7rem; }
}

/* Podgląd szerokiego obrazu w ustawieniach */
.logo-field__preview--wide img { height: auto; width: 100%; max-width: 360px; }

/* Galeria zdjęć w pojedynczym wpisie */
.article-gallery { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-gallery__title { font-size: 1.3rem; margin-bottom: 1rem; }
.article-gallery .lightbox-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .article-gallery .lightbox-grid { grid-template-columns: repeat(2, 1fr); } }

/* Strzałki nawigacji w lightboxie */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (max-width: 600px) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.5rem; } .lightbox__nav--prev { left: .4rem; } .lightbox__nav--next { right: .4rem; } }
