/* =========================================================
   Parafia Korzen — kompletny style.css
   Jeden plik CSS: desktop + mobile. Nie wymaga mobile-fix.css.
   ========================================================= */

:root {
    --navy: #0d2444;
    --navy-2: #08162b;
    --navy-3: #12335d;
    --gold: #d9b47b;
    --gold-dark: #9f7542;
    --cream: #f7f0e6;
    --paper: #fffaf3;
    --white: #ffffff;
    --ink: #172033;
    --muted: #657084;
    --shadow: 0 24px 70px rgba(10, 28, 55, 0.16);
    --shadow-strong: 0 32px 90px rgba(10, 28, 55, 0.24);
    --radius-lg: 34px;
    --radius-md: 24px;
    --container: 1320px;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    box-sizing: border-box;
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    display: block;
}

a {
    color: inherit;
}

button,
a {
    touch-action: manipulation;
}

button {
    font: inherit;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--gold);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 760px;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-2) url('../img/hero-dron.webp') center / cover no-repeat;
    isolation: isolate;
}

.hero__bg-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.35s ease-in-out, transform 7s ease;
    will-change: opacity, transform;
    pointer-events: none;
}

.hero__bg-slide--active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8, 22, 43, 0.84) 0%, rgba(8, 22, 43, 0.54) 47%, rgba(8, 22, 43, 0.05) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(8, 22, 43, 0.56));
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 18% 20%, rgba(217, 180, 123, 0.17), transparent 34%),
        linear-gradient(180deg, rgba(8, 22, 43, 0.08), rgba(8, 22, 43, 0.28));
    pointer-events: none;
}

.hero__topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-top: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--white);
    text-decoration: none;
}

.brand__word {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
    color: var(--white);
    background: rgba(217, 180, 123, 0.24);
    border-color: rgba(217, 180, 123, 0.42);
    transform: translateY(-1px);
}

.site-nav .fb-btn {
    gap: 9px;
    background: rgba(217, 180, 123, 0.18);
    border-color: rgba(217, 180, 123, 0.48);
}

.fb-btn__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--white);
}

.site-nav .fb-btn svg {
    display: block;
    width: 15px;
    height: 15px;
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero__content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    min-height: calc(100svh - 104px);
    padding: 80px 0 92px;
}

.hero__copy {
    width: min(760px, 100%);
}

.hero__eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero__title {
    margin: 0 0 22px;
    max-width: 10ch;
    font-family: var(--serif);
    font-size: clamp(5rem, 9.4vw, 9.7rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.hero__meta {
    margin: 0 0 14px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    font-weight: 600;
    line-height: 1.45;
}

.hero__founded {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.decor-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 180, 123, 0.18);
}

.decor-line {
    display: inline-block;
    width: 42px;
    height: 1px;
    background: rgba(159, 117, 66, 0.38);
}

.hero__tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    min-height: 68px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.hero-tile--accent {
    color: #24150b;
    background: var(--gold);
    border-color: rgba(217, 180, 123, 0.9);
}

.hero-tile--accent:hover {
    background: #e8c78d;
}

.hero-tile svg {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

/* Widoczny podpis autora zdjęcia w sliderze hero */
.hero__photo-credit {
    position: absolute;
    right: clamp(16px, 4vw, 38px);
    bottom: 24px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(8, 22, 43, 0.54);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .hero__photo-credit {
        right: 18px;
        bottom: 18px;
        z-index: 6;
        font-size: 0.74rem;
    }
}

@media (max-width: 430px) {
    .hero__photo-credit {
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
    }
}


/* =========================================================
   CONTENT
   ========================================================= */

.section {
    padding: 96px 0;
}

.section--top {
    background:
        radial-gradient(circle at 10% 0%, rgba(217, 180, 123, 0.22), transparent 34%),
        linear-gradient(180deg, var(--cream), #f4eadc);
}

.overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.card,
.info-tile {
    box-shadow: var(--shadow);
}

.card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.patron-card {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    min-height: 560px;
}

.patron-card__media {
    min-height: 100%;
    background: #d8c7b2;
}

.patron-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.patron-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(34px, 5vw, 84px);
    text-align: center;
}

.patron-card__eyebrow,
.info-tile__eyebrow,
.church-card__eyebrow {
    margin: 0;
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.patron-card__eyebrow {
    font-size: clamp(0.98rem, 1.3vw, 1.15rem);
    letter-spacing: 0.22em;
}

.patron-card__title {
    margin: 2px 0 2px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(4.8rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.045em;
}

.patron-card__sub {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.patron-card__ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 22px 0 24px;
}

.patron-card__quote {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.patron-card__translation {
    margin: 18px 0 0;
    color: var(--gold-dark);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.28;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--navy);
    font-weight: 900;
    text-decoration: none;
}

.text-link:hover {
    color: var(--gold-dark);
}

.church-card {
    position: relative;
    min-height: 540px;
    isolation: isolate;
    color: var(--white);
    background: var(--navy-2);
}

.church-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.church-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.94) contrast(1.02);
    transform: scale(1.01);
}

.church-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    background: linear-gradient(180deg, rgba(8, 22, 43, 0.76) 0%, rgba(8, 22, 43, 0.16) 44%, rgba(8, 22, 43, 0.84) 100%);
}

.church-card__eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.church-card__title {
    margin: 8px 0 auto;
    max-width: none;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: clamp(4.1rem, 7.8vw, 7.5rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.church-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.church-card__mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 205px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #191006;
    background: var(--gold);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.church-card__mini-btn:hover {
    transform: translateY(-2px);
    background: #e6c68e;
}

.church-card__mini-btn--dark {
    color: var(--white);
    background: rgba(8, 22, 43, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.church-card__mini-btn--dark:hover {
    background: rgba(13, 36, 68, 0.96);
}

.info-tile {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 170px;
    padding: 30px 28px;
    border-radius: var(--radius-md);
    color: inherit;
    background: var(--paper);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.info-tile__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: var(--navy);
    background: rgba(217, 180, 123, 0.25);
}

.info-tile__icon svg {
    width: 30px;
    height: 30px;
}

.info-tile__title {
    margin: 8px 0 8px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.info-tile__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer,
.pf-footer {
    padding: 34px 0;
    color: var(--white);
    background: var(--navy);
}

.pf-footer a {
    color: inherit;
    text-decoration: none;
}

.pf-footer__grid {
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) minmax(330px, 1.25fr) minmax(165px, 0.75fr) minmax(260px, 1fr);
    grid-template-areas: 'contact bank address copy';
    gap: 22px;
    align-items: start;
}

.pf-footer__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.pf-footer__item--contact { grid-area: contact; }
.pf-footer__item--bank { grid-area: bank; justify-self: center; }
.pf-footer__item--address { grid-area: address; justify-self: center; }
.pf-footer__copy { grid-area: copy; justify-self: end; }

.pf-footer__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.pf-footer__icon svg {
    display: block;
    width: 28px;
    height: 28px;
    color: currentColor;
    stroke: currentColor;
}

.pf-footer__label {
    margin: 0 0 7px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.pf-footer__main,
.pf-footer__text,
.pf-account-copy {
    display: block;
    max-width: 100%;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pf-footer__main {
    color: var(--white);
    font-weight: 800;
}

.pf-footer a:hover,
.pf-account-copy:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pf-account-copy {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--white);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.copy-account-status {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: var(--gold);
    font-size: 0.86rem;
    line-height: 1.2;
}

.pf-footer__copy {
    max-width: 280px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    line-height: 1.35;
}

.pf-footer__copy p {
    margin: 0;
}

.pf-footer__copy p + p {
    margin-top: 5px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
    .site-nav {
        gap: 7px;
    }

    .site-nav a {
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .overview {
        gap: 22px;
    }

    .church-card__overlay {
        padding: 30px;
    }

    .pf-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'contact address'
            'bank bank'
            'copy copy';
        gap: 28px;
    }

    .pf-footer__item--bank,
    .pf-footer__item--address,
    .pf-footer__copy {
        justify-self: start;
    }

    .pf-footer__copy {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-inline: clamp(16px, 5vw, 24px);
    }

    .hero {
        min-height: 820px;
        background: var(--navy-2);
    }

    .hero::after {
        display: none;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(8, 22, 43, 0.22) 0%, rgba(8, 22, 43, 0.46) 100%);
    }

    .hero__bg-slide {
        background-position: center top;
    }

    .hero__topbar {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .hero__overlay {
        background:
            radial-gradient(circle at 18% 16%, rgba(217, 180, 123, 0.10), transparent 30%),
            linear-gradient(180deg, rgba(8, 22, 43, 0.02), rgba(8, 22, 43, 0.12));
    }

    .brand__word {
        max-width: calc(100vw - 100px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(1.05rem, 5vw, 1.65rem);
        letter-spacing: 0.10em;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .hero__scroll {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 14px);
        left: clamp(16px, 5vw, 24px);
        right: clamp(16px, 5vw, 24px);
        z-index: 5;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 24px;
        background: rgba(8, 22, 43, 0.95);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
        backdrop-filter: blur(18px);
    }

    .site-nav--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav a {
        width: 100%;
        justify-content: flex-start;
        min-height: 48px;
        padding: 14px 16px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .site-nav .fb-btn {
        gap: 12px;
    }

    .fb-btn__icon {
        width: 26px;
        height: 26px;
    }

    .site-nav .fb-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero__content {
        display: flex;
        align-items: flex-end;
        min-height: calc(100svh - 104px);
        padding-top: clamp(330px, 68vw, 520px);
        padding-bottom: 24px;
    }

    .hero__copy {
        width: min(100%, 560px);
        max-width: 560px;
        padding: 20px 18px 18px;
        border-radius: 26px;
        background: linear-gradient(180deg, rgba(8, 22, 43, 0.66) 0%, rgba(8, 22, 43, 0.84) 100%);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(7px);
    }

    .hero__eyebrow {
        margin-bottom: 9px;
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        letter-spacing: 0.17em;
    }

    .hero__title {
        max-width: 11.5ch;
        margin-bottom: 14px;
        font-size: clamp(1.8rem, 6.4vw, 2.45rem);
        line-height: 0.96;
        letter-spacing: -0.02em;
    }

    .hero__title br {
        display: block;
    }

    .hero__meta {
        margin-bottom: 10px;
        font-size: clamp(0.84rem, 3.2vw, 0.96rem);
    }

    .hero__founded {
        margin-bottom: 18px;
        font-size: clamp(0.84rem, 3.2vw, 0.96rem);
        line-height: 1.35;
    }

    .hero__tiles {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 320px);
        gap: 10px;
    }

    .hero-tile {
        justify-content: flex-start;
        min-width: 0;
        min-height: 50px;
        padding: 12px 15px;
        border-radius: 17px;
    }

    .section {
        padding: 54px 0;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .patron-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .patron-card__media {
        height: min(98vw, 520px);
        min-height: 360px;
    }

    .patron-card__media img {
        object-fit: cover;
        object-position: 50% 8%;
        background: #d8c7b2;
    }

    .patron-card__eyebrow {
        font-size: clamp(1rem, 4vw, 1.08rem);
    }

    .patron-card__body {
        padding: 34px clamp(20px, 6vw, 42px) 40px;
    }

    .patron-card__title {
        font-size: clamp(3.3rem, 13vw, 5.2rem);
    }

    .patron-card__quote {
        font-size: clamp(1.65rem, 7vw, 2.4rem);
        line-height: 1.08;
    }

    .church-card {
        min-height: 430px;
        border-radius: 28px;
    }

    .church-card__overlay {
        padding: 22px 18px;
    }

    .church-card__title {
        max-width: 100%;
        white-space: normal;
        font-size: clamp(2.2rem, 10.6vw, 3.35rem);
        line-height: 0.94;
    }

    .church-card__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 12px;
    }

    .church-card__mini-btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 13px 16px;
        white-space: normal;
    }

    .info-tile {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 18px;
        min-height: 0;
        padding: 24px 20px;
        border-radius: 26px;
    }

    .info-tile__title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 700px;
        min-height: 82svh;
    }

    .hero__scroll {
        display: none;
    }

    .site-footer,
    .pf-footer {
        padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
    }

    .pf-footer .container {
        padding-inline: 24px;
    }

    .pf-footer__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'contact'
            'address'
            'bank'
            'copy';
        gap: 22px;
    }

    .pf-footer__item,
    .pf-footer__copy {
        width: 100%;
        justify-self: stretch;
        text-align: left;
    }

    .pf-footer__main,
    .pf-footer__text,
    .pf-account-copy {
        display: inline-block;
        min-height: 30px;
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        line-height: 1.45;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .pf-footer__copy {
        max-width: none;
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .container {
        padding-inline: 16px;
    }

    .hero {
        min-height: 760px;
        min-height: 86svh;
        background: var(--navy-2);
    }

    .hero__content {
        min-height: calc(100svh - 96px);
        padding-top: clamp(340px, 76vw, 520px);
        padding-bottom: 16px;
    }

    .hero__copy {
        width: 100%;
        max-width: 100%;
        padding: 18px 15px 16px;
        border-radius: 22px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.15rem);
        line-height: 0.98;
        max-width: 11.5ch;
    }

    .hero__tiles {
        width: 100%;
    }

    .patron-card__media {
        height: min(108vw, 500px);
        min-height: 390px;
    }

    .patron-card__media img {
        object-position: 50% 6%;
    }

    .patron-card__body {
        padding-inline: 18px;
    }

    .patron-card__title {
        font-size: clamp(2.7rem, 12vw, 3.7rem);
    }

    .church-card {
        min-height: 410px;
    }

    .church-card__overlay {
        padding: 20px 16px;
    }

    .church-card__title {
        font-size: clamp(2rem, 10vw, 2.9rem);
    }

    .church-card__mini-btn {
        min-height: 52px;
        padding: 13px 14px;
        font-size: 0.92rem;
    }

    .pf-footer .container {
        padding-inline: 24px;
    }
}

@media (max-width: 360px) {
    .hero__title {
        font-size: 1.95rem;
    }

    .brand__word {
        font-size: 1.02rem;
        letter-spacing: 0.08em;
    }

    .church-card__mini-btn {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        background: linear-gradient(90deg, rgba(8, 22, 43, 0.84) 0%, rgba(8, 22, 43, 0.54) 47%, rgba(8, 22, 43, 0.05) 100%), url('../img/hero-dron.webp');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   SUBPAGE TEMPLATE
   Professional subpage layout based on the main page design
   ========================================================= */

.subpage-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 16%, rgba(217, 180, 123, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(8, 22, 43, 0.98) 0%, rgba(13, 36, 68, 0.94) 52%, rgba(18, 51, 93, 0.90) 100%);
    isolation: isolate;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -42%;
    z-index: 0;
    height: 72%;
    background: radial-gradient(circle, rgba(217, 180, 123, 0.20), transparent 62%);
    pointer-events: none;
}


.subpage-heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 42px;
    align-items: end;
    padding: 92px 0 82px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.subpage-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.subpage-title {
    margin: 0;
    max-width: 11ch;
    font-family: var(--serif);
    font-size: clamp(4.2rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.subpage-lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    font-weight: 600;
    line-height: 1.6;
}

.subpage-hero-card {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.subpage-hero-card__label {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.subpage-hero-card__title {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.subpage-hero-card__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.subpage-main {
    background:
        radial-gradient(circle at 12% 0%, rgba(217, 180, 123, 0.20), transparent 34%),
        linear-gradient(180deg, var(--cream), #f4eadc);
}

.subpage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.content-panel,
.aside-panel,
.cta-panel {
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.content-panel {
    padding: clamp(30px, 4.5vw, 58px);
}

.prose-eyebrow {
    margin: 0 0 12px;
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.prose-title {
    margin: 0 0 22px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.prose-lead {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.75;
}

.prose h3 {
    margin: 34px 0 12px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.prose p {
    margin: 0 0 18px;
    color: #2f394c;
    line-height: 1.78;
}

.prose ul,
.prose ol {
    margin: 0 0 24px;
    padding-left: 1.2rem;
    color: #2f394c;
}

.prose li + li {
    margin-top: 8px;
}

.prose-note {
    margin: 30px 0;
    padding: 24px 26px;
    border-left: 5px solid var(--gold);
    border-radius: 22px;
    background: rgba(217, 180, 123, 0.16);
    color: var(--navy);
    font-weight: 800;
}

.aside-stack {
    position: sticky;
    top: 24px;
    align-self: start;
    display: grid;
    gap: 22px;
}

.aside-panel {
    padding: 28px;
}

.aside-panel__label {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aside-panel__title {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.aside-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.aside-list a,
.aside-list span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid rgba(13, 36, 68, 0.10);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.aside-list a:hover {
    color: var(--gold-dark);
}

.cta-panel {
    margin-top: 30px;
    padding: clamp(30px, 4.5vw, 48px);
    color: var(--white);
    background:
        radial-gradient(circle at 10% 10%, rgba(217, 180, 123, 0.28), transparent 36%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
}

.cta-panel__title {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.cta-panel__text {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: 999px;
    color: #1f1407;
    background: var(--gold);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.page-btn--ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 980px) {
    .aside-stack {
        position: static;
    }

    .subpage-heading,
    .subpage-layout {
        grid-template-columns: 1fr;
    }

    .subpage-heading {
        gap: 28px;
        padding: 64px 0 58px;
    }

    .subpage-title {
        max-width: 13ch;
        font-size: clamp(3.2rem, 11vw, 5.8rem);
    }
}

@media (max-width: 700px) {
    .subpage-hero-card,
    .content-panel,
    .aside-panel,
    .cta-panel {
        border-radius: 26px;
    }

    .subpage-heading {
        padding: 46px 0 44px;
    }

    .subpage-lead {
        font-size: 1rem;
    }

    .subpage-hero-card,
    .content-panel,
    .aside-panel,
    .cta-panel {
        padding: 24px 20px;
    }

    .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-btn {
        width: 100%;
    }
}

/* =========================================================
   SUBPAGE RIGHT NAVIGATION
   Prawa karta „Zobacz także” podąża za użytkownikiem na desktopie.
   Górna belka pozostaje zwykłym nagłówkiem, bez fixed/sticky.
   ========================================================= */

@media (min-width: 981px) {
    .aside-stack {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

@media (max-width: 980px) {
    .aside-stack {
        position: static;
    }
}

/* Footer podstrony bez bloku kontakt/kancelaria. */
.subpage-main + .pf-footer .pf-footer__grid {
    grid-template-columns: minmax(330px, 1.2fr) minmax(180px, 0.75fr) minmax(260px, 1fr);
    grid-template-areas: 'bank address copy';
}

.subpage-main + .pf-footer .pf-footer__item--bank,
.subpage-main + .pf-footer .pf-footer__item--address,
.subpage-main + .pf-footer .pf-footer__copy {
    justify-self: start;
}

@media (max-width: 1180px) {
    .subpage-main + .pf-footer .pf-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'bank address'
            'copy copy';
    }
}

@media (max-width: 700px) {
    .subpage-main + .pf-footer .pf-footer__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'bank'
            'address'
            'copy';
    }
}

/* =========================================================
   FINAL SUBPAGE FIXES
   - górna belka nie podąża za użytkownikiem
   - podąża tylko prawa karta „Zobacz także”
   - końcowy panel CTA został usunięty z HTML
   ========================================================= */
.subpage-hero .hero__topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: min(calc(100% - 48px), var(--container)) !important;
    margin-inline: auto !important;
    transform: none !important;
}

@media (min-width: 981px) {
    .aside-stack {
        position: sticky !important;
        top: 24px !important;
        align-self: start;
    }
}

@media (max-width: 980px) {
    .aside-stack {
        position: static !important;
    }
}

/* =========================================================
   MOBILE NAV FIX 2026-06-03
   Naprawia nachodzenie rozwijanego menu na tytuly podstron.
   Menu na mobile jest wysuwane jako panel fixed nad trescia,
   z pelnym tlem i blokada przewijania strony pod spodem.
   ========================================================= */

@media (max-width: 900px) {
    body.nav-is-open {
        overflow: hidden;
    }

    .hero__topbar,
    .subpage-hero .hero__topbar {
        position: relative !important;
        z-index: 1000 !important;
    }

    .site-nav,
    .subpage-hero .site-nav {
        position: fixed !important;
        top: calc(max(16px, env(safe-area-inset-top)) + 64px) !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 999 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        max-height: calc(100svh - 96px) !important;
        overflow-y: auto !important;
        padding: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 24px !important;
        background: rgba(8, 22, 43, 0.98) !important;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

    .site-nav.site-nav--open,
    .subpage-hero .site-nav.site-nav--open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .site-nav a,
    .subpage-hero .site-nav a {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 48px !important;
        padding: 14px 16px !important;
        border-radius: 16px !important;
        font-size: 1rem !important;
        line-height: 1.15 !important;
        background: rgba(255, 255, 255, 0.07) !important;
    }

    .site-nav a[aria-current='page'],
    .subpage-hero .site-nav a[aria-current='page'] {
        background: rgba(217, 180, 123, 0.25) !important;
        border-color: rgba(217, 180, 123, 0.48) !important;
    }

    .site-nav .fb-btn,
    .subpage-hero .site-nav .fb-btn {
        gap: 12px !important;
        background: rgba(217, 180, 123, 0.18) !important;
    }
}

@media (max-width: 430px) {
    .site-nav,
    .subpage-hero .site-nav {
        top: calc(max(14px, env(safe-area-inset-top)) + 60px) !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100svh - 86px) !important;
        border-radius: 22px !important;
    }
}
/* =========================================================
   MOBILE FINAL FIX - nawigacja + hero + zdjęcia
   Dopisane na końcu style.css
   ========================================================= */

@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.nav-is-open {
        overflow: hidden;
    }

    .hero,
    .subpage-hero {
        overflow: hidden;
    }

    .hero__topbar,
    .subpage-hero .hero__topbar {
        position: relative !important;
        z-index: 3000 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 16px !important;
    }

    .brand {
        max-width: calc(100vw - 92px);
    }

    .brand__word {
        max-width: 100%;
        font-size: clamp(1.05rem, 5vw, 1.45rem);
        letter-spacing: 0.08em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: grid !important;
        place-items: center;
        flex: 0 0 48px;
        z-index: 3100 !important;
    }

    .nav-toggle span {
        grid-area: 1 / 1;
        margin: 0;
    }

    .nav-toggle span:nth-child(1) {
        transform: translateY(-7px);
    }

    .nav-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .nav-toggle span:nth-child(3) {
        transform: translateY(7px);
    }

    .nav-toggle.nav-toggle--open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle.nav-toggle--open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.nav-toggle--open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .site-nav,
    .subpage-hero .site-nav {
        position: fixed !important;
        top: calc(env(safe-area-inset-top) + 78px) !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 2900 !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;

        max-height: calc(100svh - 100px) !important;
        overflow-y: auto !important;

        padding: 14px !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;

        background: #08162b !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-10px) !important;

        transition:
            opacity 0.18s ease,
            visibility 0.18s ease,
            transform 0.18s ease !important;
    }

    .site-nav.site-nav--open,
    .subpage-hero .site-nav.site-nav--open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .site-nav a,
    .subpage-hero .site-nav a {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        padding: 14px 16px !important;
        border-radius: 16px !important;

        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;

        font-size: 1rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .site-nav a[aria-current='page'],
    .subpage-hero .site-nav a[aria-current='page'] {
        background: rgba(217, 180, 123, 0.24) !important;
        border-color: rgba(217, 180, 123, 0.48) !important;
    }

    .site-nav .fb-btn,
    .subpage-hero .site-nav .fb-btn {
        background: rgba(217, 180, 123, 0.18) !important;
    }
}

/* =========================================================
   MOBILE HERO - lepsze proporcje i brak dziwnego skalowania
   ========================================================= */

@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
        padding-bottom: 32px;
        background-color: var(--navy-2);
    }

    .hero__bg-slide {
        background-size: cover !important;
        background-position: center top !important;
        transform: none !important;
    }

    .hero__content {
        min-height: auto !important;
        align-items: flex-end !important;
        padding-top: clamp(360px, 82vw, 560px) !important;
        padding-bottom: 0 !important;
    }

    .hero__copy {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
        padding: 20px 18px;
        border-radius: 24px;
        background: rgba(8, 22, 43, 0.86);
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hero__eyebrow {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        line-height: 1.2;
    }

    .hero__title {
        max-width: 12ch;
        font-size: clamp(2.3rem, 11vw, 4rem);
        line-height: 0.9;
        letter-spacing: -0.035em;
    }

    .hero__meta {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .hero__tiles {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .hero-tile {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .hero__content {
        padding-top: clamp(330px, 92vw, 470px) !important;
    }

    .hero__copy {
        padding: 18px 15px;
        border-radius: 22px;
    }

    .hero__title {
        font-size: clamp(2.1rem, 11vw, 3.25rem);
    }
}

/* =========================================================
   MOBILE IMAGES - patron, karty, zdjęcia w treści
   ========================================================= */

@media (max-width: 900px) {
    .patron-card__media {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5;
        background: #d8c7b2;
    }

    .patron-card__media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

    .church-card {
        min-height: auto !important;
        aspect-ratio: 4 / 5;
    }

    .church-card__media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
    }

    .card img,
    .content-panel img,
    .prose img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 430px) {
    .patron-card__media,
    .church-card {
        aspect-ratio: 3 / 4;
    }
}


.hero__photo-credit {
    text-decoration: none;
}

.hero__photo-credit:hover {
    color: #ffffff;
    background: rgba(8, 22, 43, 0.72);
    border-color: rgba(217, 180, 123, 0.44);
    text-decoration: none;
}

/* =========================================================
   SAFE FINAL MOBILE FIX 2026-06-05
   - menu mobilne klikalne, bez blokującego overlaya
   - kafelki kościołów widoczne na mobile
   - podpis autora zdjęcia widoczny na stronie głównej
   ========================================================= */

/* Podpis autora zdjęcia hero — desktop */
.hero__photo-credit {
    position: absolute;
    right: clamp(16px, 4vw, 38px);
    bottom: 24px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(8, 22, 43, 0.56);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__photo-credit:hover {
    color: #ffffff;
    background: rgba(8, 22, 43, 0.76);
    border-color: rgba(217, 180, 123, 0.48);
    text-decoration: none;
}

/* Menu mobilne — bez pseudo-overlaya blokującego kliknięcia */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.nav-is-open {
        overflow: hidden;
    }

    body.nav-is-open::before {
        content: none !important;
        display: none !important;
    }

    .hero,
    .subpage-hero {
        overflow: hidden;
    }

    .hero__topbar,
    .subpage-hero .hero__topbar {
        position: relative !important;
        z-index: 5000 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: 16px !important;
    }

    .brand {
        max-width: calc(100vw - 96px);
        min-width: 0;
    }

    .brand__word {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(1.05rem, 5vw, 1.45rem);
        letter-spacing: 0.08em;
    }

    .nav-toggle {
        display: grid !important;
        place-items: center !important;
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 5200 !important;
        color: #ffffff !important;
        background: rgba(8, 22, 43, 0.74) !important;
        border: 1px solid rgba(255, 255, 255, 0.28) !important;
        border-radius: 999px !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-toggle span {
        grid-area: 1 / 1;
        width: 20px;
        height: 2px;
        margin: 0;
        border-radius: 99px;
        background: currentColor;
    }

    .nav-toggle span:nth-child(1) {
        transform: translateY(-7px);
    }

    .nav-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .nav-toggle span:nth-child(3) {
        transform: translateY(7px);
    }

    .nav-toggle.nav-toggle--open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle.nav-toggle--open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.nav-toggle--open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .site-nav,
    .subpage-hero .site-nav {
        position: fixed !important;
        top: calc(env(safe-area-inset-top) + 78px) !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 5100 !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;

        width: auto !important;
        max-width: none !important;
        max-height: calc(100svh - 104px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 14px !important;
        border: 1px solid rgba(217, 180, 123, 0.28) !important;
        border-radius: 24px !important;
        background: rgba(8, 22, 43, 0.98) !important;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-8px) !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease !important;
    }

    .site-nav.site-nav--open,
    .subpage-hero .site-nav.site-nav--open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .site-nav a,
    .subpage-hero .site-nav a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 54px !important;

        padding: 14px 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 18px !important;

        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;

        font-size: 1rem !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        transform: none !important;
        box-shadow: none !important;
    }

    .site-nav a:hover,
    .site-nav a[aria-current='page'],
    .subpage-hero .site-nav a:hover,
    .subpage-hero .site-nav a[aria-current='page'] {
        color: #ffffff !important;
        background: rgba(217, 180, 123, 0.24) !important;
        border-color: rgba(217, 180, 123, 0.48) !important;
        transform: none !important;
    }

    .site-nav a span,
    .subpage-hero .site-nav a span {
        display: inline !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        color: inherit !important;
        background: transparent !important;
        font: inherit !important;
        line-height: inherit !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .site-nav svg,
    .subpage-hero .site-nav svg {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .site-nav .fb-btn,
    .subpage-hero .site-nav .fb-btn {
        background: rgba(217, 180, 123, 0.18) !important;
        border-color: rgba(217, 180, 123, 0.42) !important;
    }

    /* Podpis autora na mobile jako kafelek widoczny pod hero */
    .hero__photo-credit {
        position: relative !important;
        inset: auto !important;
        z-index: 8 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        max-width: calc(100% - 32px) !important;
        min-height: 42px !important;
        margin: 16px auto 0 !important;
        padding: 10px 14px !important;

        color: #ffffff !important;
        background: rgba(8, 22, 43, 0.88) !important;
        border: 1px solid rgba(217, 180, 123, 0.42) !important;
        border-radius: 999px !important;

        font-size: 0.82rem !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-decoration: none !important;

        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .hero__photo-credit::before {
        content: "Zdjęcie: ";
        color: var(--gold);
        margin-right: 4px;
    }

    /* Wymuszenie widoczności kart kościołów na indexie na mobile */
    .overview > .church-card,
    .church-card {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 430px !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
    }

    .church-card__media {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
    }

    .church-card__media img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .church-card__overlay {
        display: flex !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
    }
}

@media (max-width: 430px) {
    .site-nav,
    .subpage-hero .site-nav {
        top: calc(env(safe-area-inset-top) + 74px) !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100svh - 92px) !important;
        padding: 12px !important;
        border-radius: 22px !important;
    }

    .site-nav a,
    .subpage-hero .site-nav a {
        min-height: 52px !important;
        padding: 13px 14px !important;
        border-radius: 16px !important;
        font-size: 0.96rem !important;
    }

    .hero__photo-credit {
        max-width: calc(100% - 24px) !important;
        margin-top: 14px !important;
        font-size: 0.78rem !important;
    }

    .overview > .church-card,
    .church-card {
        min-height: 410px !important;
    }
}

/* =========================================================
   SEO / CWV TECHNICAL SAFE FIXES 2026-06-07
   Tylko techniczne poprawki CSS.
   Nie dodaje nowych sekcji ani widocznych treści na stronie.
   ========================================================= */

/* Stabilniejsze renderowanie obrazów i mniejsze ryzyko przesunięć layoutu. */
img {
    height: auto;
}

/* Lepsza dostępność przy nawigacji klawiaturą bez zmiany treści strony. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(217, 180, 123, 0.92);
    outline-offset: 4px;
}

/* Ograniczenie kosztów renderowania niżej położonych sekcji w nowoczesnych przeglądarkach. */
@supports (content-visibility: auto) {
    .section,
    .site-footer,
    .pf-footer,
    .subpage-main {
        content-visibility: auto;
        contain-intrinsic-size: 1px 720px;
    }

    .hero,
    .subpage-hero {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }
}

/* Bezpieczniejsze zachowanie slidera i animacji przy ograniczeniu ruchu/danych. */
@media (prefers-reduced-data: reduce) {
    .hero__bg-slide {
        transition: none !important;
        transform: none !important;
    }

    .hero__overlay {
        background: linear-gradient(180deg, rgba(8, 22, 43, 0.08), rgba(8, 22, 43, 0.28));
    }
}

/* Delikatne wygładzenie tekstu w UI; bez wpływu na strukturę strony. */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Zapobieganie niekontrolowanemu powiększaniu SVG ikon w linkach i przyciskach. */
a svg,
button svg {
    flex-shrink: 0;
}
