/* Strona Gminy - styl wzorowany na radzymin.pl, w pełni responsywna (smartfony, tablety, desktop) */

:root {
    --color-primary: #003366;
    --color-primary-light: #004080;
    --color-primary-dark: #002244;
    --color-accent: #c00;
    --color-white: #fff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-600: #555;
    --color-gray-800: #333;
    --font-sans: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    --container-max: 1200px;
    --header-height: 68px;
    --top-bar-height: 30px;
    --touch-min: 44px; /* minimalny rozmiar obszaru dotyku (zalecenia WCAG) */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    min-width: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    line-height: 1.5;
    background: var(--color-white);
    overflow-x: hidden;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Wspólny layout – zapobiega rozjeżdżaniu na różnych przeglądarkach i małych ekranach */
.container {
    min-width: 0;
}
/* Przy zoomie dostępności (A+, A++) – przewijanie w poziomie i zapobieganie nakładaniu się elementów */
html.font-size-2 body,
html.font-size-3 body {
    overflow-x: auto;
    overflow-y: scroll;
}
/* A+ i A++: elastyczny layout, żeby nic nie nachodziło na siebie */
html.font-size-2 .header-inner .logo,
html.font-size-3 .header-inner .logo {
    min-width: 0;
}
html.font-size-2 .search-dropdown.is-open,
html.font-size-3 .search-dropdown.is-open {
    max-width: min(420px, calc(100% - 2rem));
    width: 100%;
}
html.font-size-2 .container,
html.font-size-3 .container {
    min-width: 0;
}

html.font-size-3 .header-sticky-wrap.is-scrolled .nav-bar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 56px;
    margin: 0 !important;
    max-width: none;
}
html.font-size-3 .header-sticky-wrap.is-scrolled .header-inner {
    padding-right: 0;
}
html.font-size-3 .header-sticky-wrap.is-scrolled .nav-bar .container {
    max-width: var(--container-max);
}

a, button {
    -webkit-tap-highlight-color: rgba(0, 51, 102, 0.15);
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    top: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}
/* Obrazy nie wychodzą poza ekran (responsywność) */
img {
    max-width: 100%;
    height: auto;
}

/* ----- Panel dostępności (wysuwany z prawej, jak Facebook) ----- */
.a11y-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    z-index: 997;
    pointer-events: none;
}
.a11y-sidebar-trigger {
    pointer-events: auto;
    position: absolute;
    top: calc(45vh - 56px);
    right: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: auto;
    height: 48px;
    padding: 0 0.75rem 0 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
}
.a11y-sidebar-trigger:hover {
    background: #004080;
    color: #fff;
}
.a11y-sidebar-icon {
    flex-shrink: 0;
    margin-left: 0.5rem;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    max-width: none;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}
.a11y-sidebar-icon[src] {
    display: block;
    object-fit: contain;
}
.a11y-sidebar-label {
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.25s ease;
}
.a11y-sidebar-trigger:hover .a11y-sidebar-label,
.a11y-sidebar-trigger:focus .a11y-sidebar-label,
.a11y-sidebar.is-open .a11y-sidebar-label {
    max-width: 140px;
    opacity: 1;
}
.a11y-panel-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 998;
}
.a11y-sidebar.is-open .a11y-panel-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.a11y-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    pointer-events: auto;
}
.a11y-sidebar.is-open .a11y-panel {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.a11y-panel[aria-hidden="false"] {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-primary);
    color: #fff;
}
.a11y-panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.a11y-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.a11y-panel-close:hover {
    background: rgba(255,255,255,0.3);
}
.a11y-panel-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.a11y-panel-content .font-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--color-gray-300);
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}
.a11y-panel-content .font-size-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-primary);
}
.a11y-panel-content .a11y-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border: 2px solid var(--color-gray-300);
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}
.a11y-panel-content .a11y-btn:hover,
.a11y-panel-content .a11y-btn[aria-pressed="true"] {
    border-color: var(--color-primary);
    background: rgba(0, 51, 102, 0.08);
}
.a11y-panel-content .a11y-btn img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.a11y-panel-content .a11y-section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

/* ----- Panel Facebook (wysuwany z prawej, jak Dostępność) ----- */
.fb-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    z-index: 996;
    pointer-events: none;
}
.fb-sidebar-trigger {
    pointer-events: auto;
    position: absolute;
    top: 45vh;
    right: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: auto;
    height: 48px;
    padding: 0 0.75rem 0 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
}
.fb-sidebar-trigger:hover {
    background: #004080;
    color: #fff;
}
.fb-sidebar-icon {
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.fb-sidebar-label {
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.25s ease;
}
.fb-sidebar-trigger:hover .fb-sidebar-label,
.fb-sidebar-trigger:focus .fb-sidebar-label {
    max-width: 140px;
    opacity: 1;
}
.fb-sidebar-trigger {
    text-decoration: none;
}

/* ----- Pasek górny (BIP, ePUAP, e-Doręczenia) – ten sam pas szerokości co .container = spójny układ na każdym ekranie ----- */
.header-top-row {
    background: transparent;
    color: var(--color-gray-800);
    min-height: var(--top-bar-height);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.header-top-left {
    display: flex;
    align-items: center;
    min-width: 0;
}
.header-top-date-weather-block {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.5rem;
    width: auto;
    max-width: 100%;
    width: fit-content;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
}
.top-bar-weather-slot {
    display: inline-flex;
    align-items: center;
}
.header-top-date-weather-block .top-date,
.header-top-date-weather-block .top-date-icon,
.header-top-date-weather-block .top-bar-weather,
.header-top-date-weather-block .top-bar-weather-slot {
    color: inherit;
}
.header-top-date-weather-block .top-bar-weather::before {
    background: rgba(255, 255, 255, 0.6);
}
.top-date-weather-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
}
.top-date-weather-block {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
}
.top-date {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
}
.top-date-icon {
    flex-shrink: 0;
    color: currentColor;
    vertical-align: middle;
}
.header-top-row .top-bar-weather {
    margin-left: 8px;
    font-size: 0.9rem;
}
.top-bar-weather::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1em;
    background: #000;
    margin: 0 0.6rem 0 0.5rem;
    vertical-align: middle;
}
.top-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 37px;
}
.top-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.65rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}
.top-links a:hover {
    text-decoration: underline;
    color: #004080;
}
.top-links a:active {
    background: rgba(0, 51, 102, 0.08);
}
.top-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.top-link-icon:hover {
    text-decoration: none;
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.15);
}
.top-link-icon:active {
    transform: scale(1.06);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.top-link-img {
    vertical-align: middle;
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.top-link-icon:hover .top-link-img {
    transform: scale(1.05);
}
.top-link-img-edoreczenia {
    width: 56px;
    height: 56px;
}
.top-link-img-bip {
    width: 70px;
    height: 70px;
}
.top-link-img-epuap {
    width: 80px;
    height: 80px;
}
.top-link-img-geo {
    width: 44px;
    height: 44px;
}
.top-link-img-paragraf {
    width: 40px;
    height: 40px;
}
/* Klik (focus) bez obwódki; TAB (focus-visible) – widoczna obwódka dla dostępności (WCAG) */
.top-link-icon:focus {
    outline: none;
}
.top-link-icon:focus img {
    outline: none;
}
.top-link-icon:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px var(--color-white);
}
.top-link-icon:focus-visible img {
    outline: none;
}

/* Top bar – granatowy pasek z datą i pogodą */
.site-top-bar {
    width: 100%;
    min-height: 28px;
    padding: 0.4rem 0;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
}
.site-top-bar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
}
.site-top-bar-date-weather {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}
.site-top-bar .top-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.site-top-bar .top-date-icon {
    color: inherit;
}
.site-top-bar .top-bar-weather,
.site-top-bar .top-bar-weather-slot {
    color: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}
.site-top-bar .top-bar-weather {
    margin-left: 0;
}
.site-top-bar .top-bar-weather::before {
    background: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem 0 0.35rem;
}

/* ===== SEAMLESS DUAL-TRACK TICKER ===== */

.site-top-bar-ticker {
    flex: 1;
    min-width: 0;
    overflow: visible;
    margin-left: calc(1rem + 120px);
    display: flex;
    align-items: center;
}

.site-top-bar-ticker-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-left: -100px;
}

/* Gradient walls */
.site-top-bar-ticker-viewport::before,
.site-top-bar-ticker-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 2;
    pointer-events: none;
}

.site-top-bar-ticker-viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 40%, transparent 100%);
}

.site-top-bar-ticker-viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--color-primary) 0%, var(--color-primary) 40%, transparent 100%);
}

/* Marquee wrapper */
.ticker-marquee {
    display: flex;
    width: max-content;
    animation: ticker-marquee 25s linear infinite;
}

/* Each track */
.ticker-track {
    display: flex;
    white-space: nowrap;
}

.site-top-bar-ticker-item {
    display: inline-block;
    padding-right: 3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
}

.site-top-bar-ticker-item::after {
    content: '\00a0•\00a0';
    opacity: 0.8;
}

/* Seamless infinite scroll */
@keyframes ticker-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ----- Nagłówek z logo i menu ----- */
.header-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}
.site-header {
    background: var(--color-white);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}
.header-top-row {
    flex-shrink: 0;
    max-height: 112px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, min-height 0.3s ease;
    min-width: 0;
    min-height: 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: min-height 0.35s ease, height 0.35s ease, padding 0.35s ease;
}
.header-sticky-wrap.is-scrolled .header-inner {
    min-height: 56px;
    height: 56px;
    align-items: center;
    overflow: visible;
}
.header-red-bar {
    height: 2px;
    background: linear-gradient(to right, #fff 0%, #fff 33.33%, #e4222e 33.33%, #e4222e 66.66%, #ffd700 66.66%, #ffd700 100%);
}
/* Po scrollu ukrywamy search bar, navbar wchodzi na zmniejszony header */
/* Po scrollu ukrywamy górny wiersz (data, pogoda, BIP, ePUAP) */
.header-sticky-wrap.is-scrolled .header-top-row {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    min-height: 0;
    pointer-events: none;
}
.header-sticky-wrap.is-scrolled .header-search-wrap {
    display: none !important;
}

/* Opakowanie: search bar (między nav a lupą) + przycisk lupy */
.nav-search-wrap {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-shrink: 0;
    flex-basis: auto;
    min-width: 0;
    min-height: 0;
}

/* Search bar w flow – między navbarem a lupą; ta sama wysokość co navbar */
.search-dropdown {
    width: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    align-self: stretch;
    height: 100%;
    display: flex;
    align-items: stretch;
    transition: width 0.35s ease, opacity 0.2s ease, min-width 0.35s ease;
}
.search-dropdown.is-open {
    width: 320px;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 2rem));
    opacity: 1;
}
.search-dropdown .search-overlay-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 280px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-dropdown .search-overlay-form:hover {
    border-color: var(--color-primary);
}
.search-dropdown .search-overlay-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2);
}
.search-dropdown .search-overlay-input {
    flex: 1;
    border: 0;
    padding: 0 1rem;
    font-size: 1rem;
    height: 100%;
    min-height: 0;
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background: var(--color-white);
    outline: none;
    min-width: 0;
}
.search-dropdown .search-overlay-input::placeholder {
    color: var(--color-gray-600);
}
.search-dropdown .search-overlay-submit {
    padding: 0 1rem;
    height: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    border: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.search-dropdown .search-overlay-submit:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}
.search-dropdown .search-overlay-submit:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: -2px;
}
.header-sticky-wrap.is-scrolled .nav-bar {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 350px;
    width: 100%;
    max-width: 100%;
    left: auto;
    bottom: auto;
    margin: 0 !important;
    height: 56px;
    min-height: 56px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    z-index: 110;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
    min-width: 0;
    min-height: 0;
}
.header-sticky-wrap.is-scrolled .nav-bar .container {
    align-items: center;
    height: 100%;
    margin-left: auto;
    gap: 0;
    max-width: none;
    padding-left: 1.5rem;
    padding-right: 1rem;
    min-width: 0;
    min-height: 0;
}
.header-sticky-wrap.is-scrolled .nav-bar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    flex-shrink: 0;
    flex-basis: auto;
}
.header-sticky-wrap.is-scrolled .nav-search-wrap {
    position: relative;
}
.header-sticky-wrap.is-scrolled .search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 280px;
    max-width: min(320px, calc(100vw - 2rem));
    min-width: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    align-self: auto;
    margin-top: 0;
    transition: max-height 0.35s ease;
}
.header-sticky-wrap.is-scrolled .search-dropdown.is-open {
    max-height: 80px;
    width: 280px;
    max-width: min(320px, calc(100vw - 2rem));
}
.header-sticky-wrap.is-scrolled .search-dropdown .search-overlay-form {
    height: auto;
    min-height: 48px;
    flex-direction: row;
}
.header-sticky-wrap.is-scrolled .search-dropdown .search-overlay-input {
    height: auto;
    min-height: 44px;
    padding: 0.5rem 1rem;
}
.header-sticky-wrap.is-scrolled .search-dropdown .search-overlay-submit {
    height: auto;
    min-height: 44px;
}
.header-sticky-wrap.is-scrolled .nav-search-trigger {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    margin-left: 16px;
    transition: width 0.35s ease, height 0.35s ease, min-width 0.35s ease, min-height 0.35s ease;
}
.header-sticky-wrap.is-scrolled .nav-search-trigger-icon {
    width: 24px;
    height: 24px;
    transition: width 0.35s ease, height 0.35s ease;
}
.header-sticky-wrap.is-scrolled .main-nav {
    align-items: stretch;
}
.header-sticky-wrap.is-scrolled .nav-list {
    align-items: stretch;
    height: 100%;
}
.header-sticky-wrap.is-scrolled .nav-item {
    display: flex;
    align-items: stretch;
}
.header-sticky-wrap.is-scrolled .nav-item > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 0;
    height: 100%;
    min-height: 56px;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--color-white);
    z-index: 0;
}
/* Tekst i ikona nad białą warstwą – żeby kolor przy hover był widoczny */
.header-sticky-wrap.is-scrolled .nav-item > a .nav-link-inner {
    position: relative;
    z-index: 2;
}
.header-sticky-wrap.is-scrolled .nav-item > a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background: var(--color-white);
    z-index: -1;
    transition: height 0.3s ease;
}
.header-sticky-wrap.is-scrolled .nav-item > a:hover::before,
.header-sticky-wrap.is-scrolled .nav-item.active > a::before {
    height: 100%;
}
.header-sticky-wrap.is-scrolled .nav-item > a:active::before {
    height: 100%;
}
/* Przy wypełnieniu na biało – tekst i ikona granatowe (widoczne na białym tle) */
.header-sticky-wrap.is-scrolled .nav-item > a:hover,
.header-sticky-wrap.is-scrolled .nav-item.active > a,
.header-sticky-wrap.is-scrolled .nav-item > a:hover .nav-link-inner,
.header-sticky-wrap.is-scrolled .nav-item.active > a .nav-link-inner {
    color: var(--color-primary) !important;
}
.header-sticky-wrap.is-scrolled .nav-item > a:active,
.header-sticky-wrap.is-scrolled .nav-item > a:active .nav-link-inner {
    color: var(--color-primary) !important;
}
.header-sticky-wrap.is-scrolled .nav-item > a:hover::after,
.header-sticky-wrap.is-scrolled .nav-item.active > a::after {
    border-top-color: var(--color-primary);
}
.header-sticky-wrap.is-scrolled .nav-item > a:active::after {
    border-top-color: var(--color-primary);
}
.header-sticky-wrap.is-scrolled .nav-item > a::after {
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
    border-top-color: var(--color-white);
    position: relative;
    z-index: 2;
}
.header-sticky-wrap.is-scrolled .nav-item:not(:last-child)::before {
    height: 45%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.8rem;
    transition: font-size 0.35s ease, margin-top 0.35s ease;
    margin-top: -116px;
    flex-shrink: 0;
    flex-basis: auto;
    min-width: 0;
    min-height: 0;
}
.header-sticky-wrap.is-scrolled .logo {
    font-size: 1.35rem;
    margin-top: 0;
}
.logo:hover {
    color: var(--color-gray-800);
}
.logo-text-part {
    font-weight: 400;
}
.logo-text-part--bold {
    font-weight: 700;
}
.logo-img {
    display: block;
    height: 98px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease;
}
.header-sticky-wrap.is-scrolled .logo-img {
    height: 48px;
}

/* Menu główne */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}
.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--color-primary);
}
.menu-toggle::before { top: 14px; }
.menu-toggle::after { top: 22px; }
.menu-toggle .line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--color-primary);
    top: 30px;
}

/* Pasek menu – ten sam kolor co pasek z BIP (granatowy), szerokość dopasowana do liczby pozycji */
/* Granatowy pasek menu: połowa na headerze, połowa na banerze (hero); po scrollu (is-scrolled) w całości na headerze */
.nav-bar {
    background: transparent;
    --nav-bar-half: 2rem;
    margin-top: calc(-1 * var(--nav-bar-half));
    margin-bottom: calc(-1 * var(--nav-bar-half));
    transition: margin-top 0.35s ease, margin-bottom 0.35s ease, opacity 0.3s ease;
    min-width: 0;
    min-height: 0;
}
.nav-bar .container {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
    -webkit-box-align: stretch;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}
.nav-bar-inner {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: stretch;
    align-items: stretch;
    background: var(--color-primary);
    width: auto;
    max-width: 100%;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin-left: 20px;
    min-width: 0;
    min-height: 0;
}
.nav-search-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-width: 62px;
    height: 62px;
    min-height: 62px;
    margin-left: 28px;
    flex-shrink: 0;
    flex-basis: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    overflow: hidden;
    transition: color 0.25s ease, width 0.35s ease, height 0.35s ease, min-width 0.35s ease, min-height 0.35s ease;
}
.nav-search-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 0;
}
.nav-search-trigger::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background: var(--color-white);
    z-index: 1;
    transition: height 0.3s ease;
}
.nav-search-trigger:hover::before {
    height: 100%;
}
.nav-search-trigger:hover {
    color: var(--color-primary);
}
.nav-search-trigger:active::before {
    height: 100%;
}
.nav-search-trigger:active {
    color: var(--color-primary);
}
.nav-search-trigger:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
.nav-search-trigger-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    pointer-events: none;
    transition: width 0.35s ease, height 0.35s ease;
}
.main-nav {
    -webkit-box-flex: 1;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    min-width: 0;
    min-height: 0;
}
.nav-item {
    position: relative;
}
.nav-item:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1px;
    height: 55%;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}
.nav-item > a {
    position: relative;
    display: -webkit-inline-box;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.35rem;
    min-height: var(--touch-min);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    -webkit-transition: color 0.25s ease, padding 0.35s ease, font-size 0.35s ease;
    transition: color 0.25s ease, padding 0.35s ease, font-size 0.35s ease;
    overflow: hidden;
    z-index: 0;
}
.nav-item > a .nav-link-inner {
    position: relative;
    z-index: 1;
}
/* Białe napełnianie od dołu – osobna warstwa (bez migotania) */
.nav-item > a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background: var(--color-white);
    z-index: 0;
    transition: height 0.3s ease;
}
.nav-item > a:hover::before,
.nav-item.active > a::before {
    height: 100%;
}
.nav-item > a:active::before {
    height: 100%;
}
.nav-item > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-white);
    margin-left: 0.15rem;
    flex-shrink: 0;
    transition: border-top-color 0.25s ease;
    position: relative;
    z-index: 0;
}
.nav-item > a:hover,
.nav-item.active > a {
    color: var(--color-primary);
}
.nav-item > a:hover::after,
.nav-item.active > a::after {
    border-top-color: var(--color-primary);
}
.nav-item > a:active {
    color: var(--color-primary);
}
.nav-item > a:active::after {
    border-top-color: var(--color-primary);
}
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 50;
}
.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: var(--touch-min);
    color: var(--color-gray-800);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-gray-100);
}
.submenu a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}
.submenu a:active {
    background: var(--color-gray-100);
}

/* ----- Na skróty – sekcja pod banerem (pas z linkami) ----- */
.shortcuts-section {
    background: linear-gradient(to bottom, var(--color-gray-100) 0%, rgba(245, 245, 245, 0.97) 100%);
    border-top: 3px solid var(--color-primary);
    padding: 1.25rem 0 1.5rem;
}
.shortcuts-section-inner {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    min-width: 0;
}
.shortcuts-section-title {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-gray-200);
    font-weight: 700;
}
.quick-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    min-width: 0;
}
.quick-links-list a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.quick-links-list a:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.12);
    color: var(--color-primary-light);
}
.quick-links-list a:active {
    background: var(--color-gray-100);
}

/* ----- Hero / baner ze zdjęciami (dron, panorama) ----- */
/* Baner – niższa sekcja hero, zdjęcie wypełnia całość (object-fit: fill) bez ucinania */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3.4 / 1;
    min-height: 150px;
    overflow: hidden;
    background: transparent;
}
.hero-slider-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-slide.active {
    z-index: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.hero-slide.exit-left {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}
.hero-slide.exit-right {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}
.hero-slide.enter-from-left {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}
.hero-slide.enter-from-left.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.hero-slide.no-transition {
    -webkit-transition: none;
    transition: none;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    animation: hero-kenburns 12s ease-in-out infinite;
}
@keyframes hero-kenburns {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}
.hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.85rem;
    align-items: center;
}
.hero-dot {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.hero-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 60%;
    margin-left: -30%;
    margin-top: -30%;
    background: var(--color-white);
    transform: scale(0);
    transform-origin: center center;
    transition: transform 0.4s ease-out;
}
.hero-dot:hover {
    transform: scale(1.08);
}
.hero-dot:hover::after,
.hero-dot.active::after {
    transform: scale(1);
}

/* ----- Pod banerem: karuzela aktualności (lewo) + Na skróty (prawo) ----- */
.below-hero-row {
    width: 100%;
    min-height: 320px;
    padding-top: 1.5rem;
    background: transparent;
    min-width: 0;
}
.below-hero-row-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.below-hero-carousel-wrap {
    flex: 1 1 58%;
    min-width: 0;
    min-height: 0;
    max-width: 820px;
}
/* Dalsze aktualności – obok karuzeli (3 wpisy + przycisk) */
.below-hero-more-news {
    flex: 0 1 340px;
    width: 340px;
    max-width: 100%;
    min-width: 0;
    min-height: 440px;
    box-sizing: border-box;
    padding: 0 var(--gutter) 1rem;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}
.below-hero-more-news .news-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.below-hero-more-news .news-side-item-wrap {
    margin: 0;
    border-bottom: 1px solid var(--color-gray-200);
}
.below-hero-more-news .news-side-item-wrap:first-child .news-side-item {
    padding-top: 0;
}
.below-hero-more-news .news-side-item-wrap:last-child {
    border-bottom: none;
}
.below-hero-more-news .news-side-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
    min-height: var(--touch-min);
}
.below-hero-more-news .news-side-item:hover .news-side-title {
    color: var(--color-primary);
}
.below-hero-more-news .news-side-img-wrap {
    flex-shrink: 0;
    position: relative;
    width: 140px;
    height: 105px;
    background-color: var(--color-gray-200);
    border-radius: 0;
    overflow: hidden;
}
.below-hero-more-news .news-side-img-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.below-hero-more-news .news-side-item:hover .news-side-img-inner,
.below-hero-more-news .news-side-item:focus-visible .news-side-img-inner {
    transform: scale(1.1);
}
.below-hero-more-news .news-side-item::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.3s ease-out;
    transform-origin: bottom;
}
.below-hero-more-news .news-side-item:hover::after,
.below-hero-more-news .news-side-item:focus-visible::after {
    height: 100%;
}
.below-hero-more-news .news-side-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.below-hero-more-news .news-side-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}
.below-hero-more-news .news-side-date-icon {
    flex-shrink: 0;
    color: var(--color-primary);
}
.below-hero-more-news .news-side-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-gray-800);
    margin: 0 0 0.25rem;
    transition: color 0.2s ease;
}
.below-hero-more-news .news-more-btn-wrap {
    margin: 1rem 0 0;
    margin-top: auto;
    padding: 0;
}
.below-hero-more-news .news-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.below-hero-more-news .news-more-btn:hover,
.below-hero-more-news .news-more-btn:focus-visible {
    background: var(--color-primary-light);
    color: var(--color-white);
    outline: none;
}
.below-hero-more-news .news-more-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
}
.below-hero-more-news .news-more-btn-arrow svg {
    width: 16px;
    height: 16px;
}
.below-hero-row-inner > .below-hero-more-news:only-child {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
}

/* Pasek z ikonami pod karuzelą – pełna szerokość, granatowy */
.below-hero-icon-bar {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--color-primary);
    padding: 2rem 1rem;
    box-sizing: border-box;
    overflow: visible;
}
.below-hero-icon-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 3.5rem;
    min-width: 0;
}
.below-hero-icon-bar-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2rem 0.25rem;
    padding: 2rem 2rem;
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 60px;
    min-height: 60px;
    box-sizing: border-box;
}
.below-hero-icon-bar-item:hover,
.below-hero-icon-bar-item:focus-visible {
    background: var(--color-white);
    color: var(--color-primary);
    outline: none;
}
.below-hero-icon-bar-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.below-hero-icon-bar-item svg {
    display: block;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}
.below-hero-icon-bar-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 1rem;
    padding: 0 0.25rem 0.5rem;
    background: transparent;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 2;
}
.below-hero-icon-bar-label-inner {
    display: block;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease 0.05s, transform 0.25s ease 0.05s;
}
.below-hero-icon-bar-label-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}
.below-hero-icon-bar-item:hover .below-hero-icon-bar-label,
.below-hero-icon-bar-item:focus-visible .below-hero-icon-bar-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s, 0s, 0s;
}
.below-hero-icon-bar-item:hover .below-hero-icon-bar-label-inner,
.below-hero-icon-bar-item:focus-visible .below-hero-icon-bar-label-inner {
    transform: translateY(0);
    opacity: 1;
}
.below-hero-icon-bar-item:hover .below-hero-icon-bar-label-line,
.below-hero-icon-bar-item:focus-visible .below-hero-icon-bar-label-line {
    transform: translateX(-50%) scaleX(1);
}
.below-hero-icon-bar-sep {
    width: 1px;
    height: 40px;
    background: var(--color-white);
    flex-shrink: 0;
    opacity: 0.8;
}

/* Karuzela aktualności – slajdy jak hero */
.news-carousel {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
}
.news-carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.news-carousel-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.news-carousel-slide.active {
    z-index: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.news-carousel-slide.exit-left { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
.news-carousel-slide.exit-right { -webkit-transform: translateX(100%); transform: translateX(100%); }
.news-carousel-slide.enter-from-left { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
.news-carousel-slide.enter-from-left.active { -webkit-transform: translateX(0); transform: translateX(0); }
.news-carousel-slide.no-transition { -webkit-transition: none; transition: none; }
.news-carousel-slide-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}
.news-carousel-pin-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 52px;
    height: 52px;
    background: var(--color-white);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 6px 6px 0 0;
    box-sizing: border-box;
}
.news-carousel-pin-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-carousel-pin-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
.news-carousel-slide-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.88;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease-out;
    z-index: 0;
}
.news-carousel-slide-link:hover::after,
.news-carousel-slide-link:focus-visible::after {
    transform: scaleY(1);
}
.news-carousel-slide-link:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
.news-carousel-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-gray-200);
    z-index: 0;
}
.news-carousel-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem 1.25rem 4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: var(--color-white);
    transition: justify-content 0.2s ease-out, background 0.2s ease-out;
}
.news-carousel-slide-link:hover .news-carousel-slide-overlay,
.news-carousel-slide-link:focus-visible .news-carousel-slide-overlay {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
}
.news-carousel-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    transition: margin-bottom 0.2s ease-out;
}
.news-carousel-date-icon {
    flex-shrink: 0;
    color: var(--color-white);
}
.news-carousel-slide-link:hover .news-carousel-date,
.news-carousel-slide-link:focus-visible .news-carousel-date {
    margin-bottom: 0.35rem;
}
.news-carousel-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.news-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.news-carousel-dot {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.news-carousel-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 60%;
    margin-left: -30%;
    margin-top: -30%;
    background: var(--color-white);
    transform: scale(0);
    transform-origin: center center;
    transition: transform 0.4s ease-out;
}
.news-carousel-dot:hover { transform: scale(1.08); }
.news-carousel-dot:hover::after,
.news-carousel-dot.active::after {
    transform: scale(1);
}
.news-carousel-more {
    margin: 0.6rem 1rem 0;
    font-size: 1rem;
}
.news-carousel-more a {
    color: var(--color-primary);
    text-decoration: none;
}
.news-carousel-more a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .below-hero-row-inner {
        flex-direction: column;
    }
    .below-hero-carousel-wrap {
        max-width: none;
    }
    .news-carousel {
        height: 340px;
    }
    .below-hero-more-news {
        width: 100%;
        max-width: none;
        min-height: 340px;
        padding: 1rem var(--gutter) 1.5rem;
    }
}

/* ----- Główna treść ----- */
.main-content {
    padding: 2rem 0;
    min-height: 50vh;
    min-width: 0;
}

.page-title {
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.75rem;
}

/* Sekcje na stronie głównej */
.home-section {
    margin-bottom: 2.5rem;
}
.home-section h2 {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-gray-200);
}

/* Lista aktualności */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-item {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0.85rem 0;
}
.news-item:first-child {
    padding-top: 0;
}
.news-item a {
    color: var(--color-gray-800);
    text-decoration: none;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.news-item a:hover {
    color: var(--color-primary);
}
.news-date {
    flex: 0 0 5.5rem;
    font-size: 0.85rem;
    color: var(--color-gray-600);
}
.news-title {
    flex: 1;
    font-weight: 500;
}

/* Na skróty */
.shortcuts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.shortcuts-list a {
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
}
.shortcuts-list a:hover {
    text-decoration: underline;
}

/* Mapa sołectw (wsi) */
.map-section-full {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.map-section-full .village-map-wrap {
    margin-top: 1rem;
    padding-left: 0;
    width: 100%;
}
.village-map-lists {
    display: block;
}
/* Tylko mapa na stronie (nie stopka) – stopka ma .footer-village-map-container */
.village-map-container:not(.footer-village-map-container) {
    flex-shrink: 1;
    width: 100%;
    min-width: 0;
    max-width: 1100px;
    height: 580px;
    background: transparent;
    overflow: hidden;
}
.village-map-leaflet {
    background: transparent !important;
    cursor: default !important;
}
.village-map-leaflet .leaflet-tile-pane { display: none; }
.village-map-leaflet .leaflet-control-zoom { display: none !important; }
.village-map-leaflet .leaflet-grab { cursor: default !important; }
.village-map-leaflet .leaflet-dragging { cursor: default !important; }
/* Firefox: tylko ścieżki (path) odbierają zdarzenia myszy – pane nie blokuje środka mapy */
.village-map-leaflet .leaflet-overlay-pane { pointer-events: none; }
.village-map-leaflet .leaflet-overlay-pane path { pointer-events: auto; cursor: pointer; }
.village-map-leaflet .leaflet-shadow-pane,
.village-map-leaflet .leaflet-marker-pane { pointer-events: none; }
.village-map-leaflet .leaflet-interactive { cursor: pointer; }
.village-map-leaflet:focus,
.village-map-leaflet *:focus,
.village-map-leaflet .leaflet-interactive:focus {
    outline: none !important;
    box-shadow: none !important;
}
.village-map-container:not(.footer-village-map-container):focus {
    outline: none;
}
.village-map-tooltip {
    font-size: 0.85rem;
    font-weight: 700;
}
@media (max-width: 1200px) {
    .map-section-full .village-map-container {
        max-width: 780px;
        height: 480px;
    }
}
@media (max-width: 900px) {
    .map-section-full .village-map-container {
        max-width: 100%;
        height: 420px;
    }
}
@media (max-width: 768px) {
    .map-section-full .village-map-lists {
        padding-left: 1rem;
    }
    .map-section-full .village-map-container {
        max-width: 100%;
        min-width: 0;
        height: 360px;
    }
}

/* Stopka – wysokość granatowego paska: tylko padding (mapa i bloki bez zmian) */
.site-footer {
    background: var(--color-primary-dark) url('/cms-uploads/footer/hero-background1.png') center / cover no-repeat;
    color: var(--color-white);
    margin-top: 3rem;
    padding: 0.2rem 0 0 !important;
    box-sizing: border-box;
    min-width: 0;
}
.site-footer .container.footer-grid {
    padding-top: 0 !important;
    padding-bottom: 0.25rem !important;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(280px, 480px);
    gap: 1.5rem;
    padding-bottom: 0.25rem !important;
    align-items: start;
    min-width: 0;
}
.footer-grid > .footer-block:not(.footer-map-block) {
    margin-top: 2rem;
}
.footer-grid > section.footer-block:first-of-type {
    transform: translateY(64px);
}
.footer-grid > section.footer-block:nth-of-type(2) {
    transform: translateY(64px);
}
.footer-map-block {
    padding: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 420px;
}
.footer-village-map-wrap .village-map-lists {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
}
.site-footer .footer-village-map-wrap {
    display: block;
    width: 100%;
    height: 420px;
    min-height: 420px;
}
.site-footer .footer-village-map-container,
.site-footer #footer-village-map-container {
    width: 100% !important;
    min-width: 100% !important;
    height: 420px !important;
    min-height: 420px !important;
    max-width: none !important;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}
.site-footer .footer-village-map-leaflet,
.site-footer #footer-village-map-container.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px !important;
}
.footer-village-map-leaflet {
    background: transparent !important;
}
.footer-village-map-leaflet .leaflet-tile-pane { display: none; }
.footer-village-map-leaflet .leaflet-control-zoom { display: none !important; }
.footer-village-map-leaflet .leaflet-overlay-pane { pointer-events: none; }
.footer-village-map-leaflet .leaflet-overlay-pane path { pointer-events: auto; cursor: pointer; }
.footer-village-map-leaflet .leaflet-shadow-pane,
.footer-village-map-leaflet .leaflet-marker-pane { pointer-events: none; }
.footer-village-map-leaflet path.leaflet-interactive {
    fill: rgba(255,255,255,0.85);
    stroke: rgba(255,255,255,0.9);
}
.footer-village-map-leaflet path.leaflet-interactive:hover,
.footer-village-map-leaflet path.leaflet-interactive.village-map-path-hover {
    fill: #e4222e !important;
    stroke: #c41e28 !important;
}
.village-map-leaflet path.leaflet-interactive.village-map-path-hover {
    fill: #e4222e !important;
    stroke: #c41e28 !important;
}
.footer-block h3,
.footer-block h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--color-white);
}
.footer-block p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-block a {
    color: #aad4ff;
    text-decoration: none;
}
.footer-block a:hover {
    text-decoration: underline;
}
.hours-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}
.hours-table td {
    padding: 0.2rem 0.5rem 0.2rem 0;
}
.footer-links {
    padding: 0.5rem 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0.25rem 0 !important;
}
.site-footer .footer-bottom .container {
    padding-top: 0 !important;
    padding-bottom: 0.35rem !important;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}
.footer-nav a {
    color: #aad4ff;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-nav a:hover {
    text-decoration: underline;
}
.footer-copy-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
}
.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.footer-credit {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    margin-left: auto;
}

/* Strona aktualności (lista) */
.news-meta {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}
.article-body {
    max-width: 70ch;
}
.article-body p {
    margin: 0 0 1rem;
}
.news-image {
    margin: 1rem 0 1.5rem;
}
.news-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}
.news-gallery-item {
    margin: 0;
}
.news-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* Kontakt */
.contact-block {
    margin-bottom: 1.5rem;
}
.contact-block h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

/* Paginacja */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-gray-200);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
}
.pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.pagination .current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ========== RESPONSYWNOŚĆ – smartfony i tablety ========== */

/* Tablet i mniejsze */
@media (max-width: 900px) {
    /* Pasek górny – bez dużych marginesów i przesunięć, wszystko mieści się na ekranie */
    .header-top-left {
        margin-left: 0;
    }
    .top-links {
        transform: none;
    }
    .site-header {
        flex-wrap: wrap;
    }
    .header-inner {
        min-height: 64px;
        min-width: 0;
    }
    .logo {
        margin-top: 0;
        min-width: 0;
    }
    /* Stopka na tablecie: 2 kolumny, mapa na pełną szerokość poniżej */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-map-block {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }
    .footer-grid > section.footer-block:first-of-type,
    .footer-grid > section.footer-block:nth-of-type(2) {
        transform: translateY(0);
    }
    .footer-grid > .footer-block:not(.footer-map-block) {
        margin-top: 0;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-sticky-wrap.is-scrolled .header-inner {
        padding-right: 0;
    }
    .header-sticky-wrap.is-scrolled .nav-bar {
        position: absolute;
        top: 100%;
        right: auto;
        bottom: auto;
        left: 0;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0 !important;
        display: block;
        z-index: auto;
    }
    .nav-bar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-out;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        margin-top: 0;
        margin-bottom: 0;
    }
    .nav-bar:has(.main-nav.is-open) {
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-bar-inner {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
    .main-nav {
        position: static;
    }
    .nav-list {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    .nav-item {
        width: 100%;
    }
    .nav-bar .nav-item:not(:last-child) > a {
        border-right: none;
    }
    .nav-item > a {
        padding: 1rem 1.25rem;
        width: 100%;
        font-size: 1rem;
    }
    .nav-item .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 0;
        margin-left: 1.25rem;
        border-left: 3px solid var(--color-gray-200);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease-out;
        min-width: auto;
    }
    .nav-item.is-open .submenu {
        max-height: 80vh;
    }
    /* Tylko is-open steruje podmenu; :hover nie otwiera (na touch :hover by się „przyklejał” i uniemożliwiał zwinięcie) */
    .nav-item:hover .submenu {
        max-height: 0;
    }
    .nav-item.is-open:hover .submenu {
        max-height: 80vh;
    }
    .nav-item .submenu a {
        padding: 0.85rem 1rem;
    }
    /* Navbar na mobile: nazwa zakładki zawsze widoczna i biała (również przy otwartym podmenu) */
    .nav-item > a {
        overflow: visible;
    }
    .nav-item.is-open > a,
    .nav-item.is-open > a .nav-link-inner {
        visibility: visible;
        opacity: 1;
    }
    /* Smartfon: nazwa zakładki zawsze biała, bez białej warstwy ::before (która zmienia kolor na granatowy) */
    .nav-bar .nav-item > a,
    .nav-bar .nav-item > a:hover,
    .nav-bar .nav-item > a:active,
    .nav-bar .nav-item.is-open > a,
    .nav-bar .nav-item.active > a {
        color: var(--color-white) !important;
    }
    .nav-bar .nav-item > a .nav-link-inner,
    .nav-bar .nav-item > a:hover .nav-link-inner,
    .nav-bar .nav-item > a:active .nav-link-inner,
    .nav-bar .nav-item.is-open > a .nav-link-inner {
        color: var(--color-white) !important;
    }
    .nav-bar .nav-item > a::before {
        display: none;
    }
    .nav-bar .nav-item > a::after {
        border-top-color: var(--color-white);
    }
    /* Smartfon: brak animacji w navbarze – zapobiega znikaniu nazwy zakładki przy kliknięciu */
    .nav-bar {
        transition: none;
    }
    .nav-bar-inner,
    .nav-bar .nav-item > a,
    .nav-bar .nav-item > a::before,
    .nav-bar .nav-item > a::after,
    .nav-bar .nav-item > a .nav-link-inner {
        transition: none;
    }
    .nav-bar .nav-item .submenu {
        transition: none;
    }
    .site-header {
        position: relative;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .hero-slider {
        margin-top: 0;
    }
    .main-content {
        padding: 1.5rem 0;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .home-section h2 {
        font-size: 1.25rem;
    }
}

/* Telefon (pion i poziom) – ten sam układ do 900px, żeby landscape działał jak portrait */
@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }
    /* Tylko smartfon: brak sticky headera – po scrollu header znika (nie ma „zminimalizowanego” paska) */
    .header-sticky-wrap {
        position: static;
    }
    /* Header przed scrollem: bez ujemnego marginesu logo (na desktopie logo jest „wciągnięte” w górę) */
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-top-row {
        max-height: none;
        flex-shrink: 0;
    }
    .logo {
        margin-top: 0;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Pasek z datą i pogodą – smartfon: data i pogoda w jednym wierszu */
    .site-top-bar-inner {
        flex-wrap: wrap;
        min-width: 0;
        gap: 0.35rem;
    }
    .site-top-bar-date-weather {
        flex-wrap: nowrap;
        min-width: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .site-top-bar .top-date {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .site-top-bar .top-bar-weather,
    .site-top-bar .top-bar-weather-slot {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .site-top-bar-ticker {
        margin-left: 0;
        min-width: 0;
        flex: 1 1 100%;
        padding-left: 30px;
        box-sizing: border-box;
    }
    .site-top-bar-ticker-viewport {
        margin-left: 0;
    }
    /* Header – górny wiersz z ikonkami */
    .header-top-row {
        padding: 0.5rem 1rem;
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        min-width: 0;
        max-width: 100%;
    }
    .header-top-left {
        margin-left: 0;
    }
    .top-links {
        transform: none;
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
        margin-top: 0.25rem;
    }
    .top-links a {
        padding: 0.4rem 0.25rem 0.4rem 0;
    }
    /* Mniejsze ikonki na telefonie */
    .top-link-img {
        width: 36px;
        height: 36px;
    }
    .top-link-img-edoreczenia {
        width: 42px;
        height: 42px;
    }
    .top-link-img-bip {
        width: 70px;
        height: 70px;
    }
    .top-link-img-epuap {
        width: 80px;
        height: 80px;
    }
    .top-date {
        font-size: 0.9rem;
    }
    /* Header – logo i przycisk menu (pion: logo w normalnym przepływie, obok hamburgera) */
    .header-inner {
        min-height: 56px;
        min-width: 0;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        flex-wrap: nowrap;
    }
    .logo {
        margin-top: 0;
        min-width: 0;
        max-width: calc(100% - 52px);
        font-size: 1.15rem;
    }
    .logo-img {
        height: 48px;
        width: auto;
        max-height: 48px;
        flex-shrink: 0;
    }
    .logo-text,
    .logo-text-part {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .menu-toggle {
        flex-shrink: 0;
    }
    /* Hero / baner */
    .hero-slider {
        aspect-ratio: 2.2 / 1;
        min-height: 130px;
        max-width: 100%;
    }
    /* Główna treść */
    .main-content {
        padding: 1.25rem 0;
        min-width: 0;
    }
    .page-title {
        font-size: 1.35rem;
        word-wrap: break-word;
    }
    /* Szybkie linki */
    .quick-links-bar {
        padding: 0.5rem 0;
        min-width: 0;
    }
    .quick-links-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        min-width: 0;
    }
    .quick-links-list a {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--color-gray-200);
    }
    .quick-links-list li:last-child a {
        border-bottom: none;
    }
    /* Stopka */
    .site-footer {
        min-width: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        min-width: 0;
    }
    .footer-grid > section.footer-block:first-of-type,
    .footer-grid > section.footer-block:nth-of-type(2) {
        transform: translateY(0);
    }
    .footer-grid > .footer-block:not(.footer-map-block) {
        margin-top: 0;
        min-width: 0;
    }
    .footer-map-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        min-height: 320px;
    }
    .site-footer .footer-village-map-container,
    .site-footer #footer-village-map-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 320px !important;
        min-height: 320px !important;
    }
    .site-footer .footer-village-map-wrap {
        height: 320px;
        min-height: 320px;
        max-width: 100%;
    }
    .footer-block p,
    .footer-block a {
        font-size: 0.95rem;
    }
    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-nav a {
        display: inline-block;
        padding: 0.35rem 0;
    }
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .news-date {
        flex: none;
    }
    .shortcuts-list {
        grid-template-columns: 1fr;
    }
    .shortcuts-list a {
        padding: 0.75rem 0;
    }
    .pagination a,
    .pagination span {
        padding: 0.6rem 0.9rem;
        min-height: var(--touch-min);
    }
}

/* Bardzo małe ekrany (np. iPhone SE) */
@media (max-width: 380px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .page-title {
        font-size: 1.2rem;
    }
    .logo {
        font-size: 1rem;
    }
    .logo-img {
        height: 42px;
        max-height: 42px;
    }
    .map-section-full .village-map-container {
        height: 280px;
    }
}

/* A+ i A++ na telefonie – zapobieganie rozjeżdżaniu (zoom już ograniczony w header.php) */
@media (max-width: 600px) {
    html.font-size-2 body,
    html.font-size-3 body {
        overflow-x: hidden;
    }
    html.font-size-2 .container,
    html.font-size-3 .container {
        max-width: 100%;
    }
    html.font-size-2 .search-dropdown.is-open,
    html.font-size-3 .search-dropdown.is-open {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Obsługa safe area (wycięcia w ekranie, np. iPhone X+) */
@supports (padding: max(0px)) {
    .header-top-row,
    .site-header {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    .container,
    .below-hero-row-inner {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .footer-bottom .container {
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom)) !important;
    }
}
