/* Front public styles for florian.sulejow.pl.
   Tokens come from tokens.css (paleta burgundowa + szeryf + Inter). */

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

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface-white);
    line-height: 1.6;
    font-size: 17px;
    /* overflow: clip — klipuje bez tworzenia scroll-container, więc nie psuje
       position: sticky na headerze (overflow-x: hidden by go zepsuł). */
    overflow-x: clip;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--ink);
    margin: 0 0 var(--space-4);
    line-height: 1.18;
    font-weight: 600;
}
h1 { font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.3rem); }
h3 { font-size: 1.35rem; }

a { color: var(--brand); text-decoration-color: rgba(122,31,31,.35); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container--narrow { max-width: var(--container-narrow); }

.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .75rem;
    color: var(--brand);
    font-weight: 600;
    margin: 0 0 var(--space-3);
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--danger { background: #b14a4a; color: #fff; }
.btn--sm { padding: 6px 12px; font-size: .85rem; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(12,14,46,.08); }
.site-header__inner {
    display: flex; align-items: center; gap: var(--space-5);
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    max-width: var(--container);
    margin: 0 auto;
    transition: padding .2s ease;
}
.site-header.is-scrolled .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 72px; width: auto; transition: height .2s ease; }
.site-header.is-scrolled .brand img { height: 44px; }

.primary-nav__toggle {
    display: none;
    background: transparent; border: 1px solid var(--line);
    padding: 8px; border-radius: var(--radius-sm); font: inherit;
    width: 44px; height: 44px;
    cursor: pointer;
    align-items: center; justify-content: center;
}
.primary-nav__toggle-icon {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 22px; height: 16px;
    justify-content: center;
}
.primary-nav__toggle-icon span {
    display: block; height: 2px; width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .15s ease;
    transform-origin: center;
}
.primary-nav.is-open .primary-nav__toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.primary-nav.is-open .primary-nav__toggle-icon span:nth-child(2) {
    opacity: 0;
}
.primary-nav.is-open .primary-nav__toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.primary-nav__list { list-style: none; display: flex; gap: var(--space-5); margin: 0; padding: 0; }
.primary-nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.primary-nav__list a:hover { color: var(--brand); }
.primary-nav__item { position: relative; }
.primary-nav__item.has-children > a::after { content: " ▾"; color: var(--ink-mute); font-size: .8em; }
.primary-nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    list-style: none; padding: var(--space-3); margin: 0;
    display: none; z-index: 30;
}
.primary-nav__item:hover .primary-nav__sub,
.primary-nav__item:focus-within .primary-nav__sub { display: block; }
.primary-nav__sub a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); }
.primary-nav__sub a:hover { background: var(--brand-soft); }

@media (max-width: 820px) {
    .primary-nav__toggle { display: inline-flex; position: relative; z-index: 60; }

    /* Backdrop pod panelem */
    .primary-nav::before {
        content: "";
        position: fixed; inset: 0;
        background: rgba(12, 14, 46, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 40;
    }
    .primary-nav.is-open::before { opacity: 1; pointer-events: auto; }

    /* Wysuwany panel z prawej */
    .primary-nav__list {
        display: flex !important;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        background: #fff;
        padding: var(--space-8) var(--space-5) var(--space-5);
        margin: 0;
        box-shadow: -12px 0 40px rgba(12, 14, 46, 0.15);
        z-index: 50;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .28s ease;
        border-radius: 0;
        border: 0;
    }
    .primary-nav.is-open .primary-nav__list { transform: translateX(0); }

    .primary-nav__list > .primary-nav__item { border-bottom: 1px solid var(--line); }
    .primary-nav__list > .primary-nav__item:last-child { border-bottom: 0; }
    .primary-nav__list > .primary-nav__item > a {
        display: block;
        padding: var(--space-3) 0;
        font-weight: 600;
        font-size: 1.05rem;
    }
    .primary-nav__item.has-children > a::after { content: ""; }
    .primary-nav__sub {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 var(--space-3) var(--space-4);
        margin: 0;
        background: transparent;
        display: block;
        max-height: none;
        overflow: visible;
    }
    .primary-nav__sub a { padding: 6px 0; font-weight: 400; font-size: .95rem; }

    /* Body nie scrolluje gdy panel otwarty */
    body:has(.primary-nav.is-open) { overflow: hidden; }
}

/* Hero */
.hero--home {
    background: var(--surface) linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    padding: var(--space-9) 0;
}
.hero--home.hero--with-image {
    color: #fff;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.hero--home .hero__media {
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 0;
    right: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}
.hero--home.hero--with-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,14,46,0.45) 0%, rgba(12,14,46,0.72) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero--home.hero--with-image .hero__inner {
    position: relative;
    z-index: 2;
}
.hero--home.hero--with-image .hero__inner {
    animation: hero-rise .8s ease-out;
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero--home.hero--with-image .hero__title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero--home.hero--with-image .hero__lead { color: rgba(255,255,255,0.92); }
.hero--home.hero--with-image .eyebrow {
    text-transform: none;
    letter-spacing: .01em;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
}
.hero--home.hero--with-image .eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: rgba(255,255,255,0.6);
}
.hero--home.hero--with-image .btn--ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    background: transparent;
}
.hero--home.hero--with-image .btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
.hero__inner { max-width: var(--container-narrow); }
.hero__title { font-size: clamp(2.2rem, 3.8vw + 1rem, 3.6rem); margin-bottom: var(--space-4); }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/* Galeria na home */
.home-gallery {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--space-3);
    grid-template-columns: repeat(4, 1fr);
}
.home-gallery__item { margin: 0; }
.home-gallery__item a { display: block; }
.home-gallery__item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform .25s ease;
}
.home-gallery__item a:hover img { transform: scale(1.03); }
@media (max-width: 720px) {
    .home-gallery { grid-template-columns: repeat(2, 1fr); }
}

.page-header { background: var(--surface); padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid var(--line); }
.page-title { margin: 0; }
.breadcrumbs { font-size: .9rem; color: var(--ink-mute); margin-bottom: var(--space-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: " ›"; color: var(--ink-mute); padding-left: 8px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* Sections */
.section { padding: var(--space-8) 0; max-width: 100%; }
.section--narrow { padding: var(--space-7) 0; }
.section--full { padding: 0; }
.section--full .section__columns { gap: 0; }
.section__columns, .section__col { max-width: 100%; min-width: 0; }
.widget { max-width: 100%; min-width: 0; }
.page-body { max-width: 100%; overflow-x: clip; }
/* Na home (gdy nie ma page-headera) pierwsza pełnoekranowa sekcja
   (slider/hero) siedzi już od razu pod headerem przez padding: 0.
   Na innych stronach pierwsza sekcja zachowuje swój padding — odstęp
   między page-titlem a treścią. */
.section__header { text-align: center; margin: 0 auto var(--space-6); max-width: 720px; }
.section__title { margin: 0; }
.section__more { text-align: center; margin-top: var(--space-6); }

.columns { display: grid; gap: var(--space-5); }
.columns--1col-wide, .columns--1col-narrow { grid-template-columns: 1fr; }
.columns--2col-50-50 { grid-template-columns: 1fr 1fr; }
.columns--2col-66-33 { grid-template-columns: 2fr 1fr; }
.columns--2col-33-66 { grid-template-columns: 1fr 2fr; }
.columns--3col-33   { grid-template-columns: 1fr 1fr 1fr; }
.columns--3col-25-50-25 { grid-template-columns: 1fr 2fr 1fr; }
.columns--2col-25-75 { grid-template-columns: 1fr 3fr; }
.columns--2col-75-25 { grid-template-columns: 3fr 1fr; }
@media (max-width: 820px) { .columns { grid-template-columns: 1fr !important; } }

.prose p { margin: 0 0 var(--space-4); }
.prose h2, .prose h3 { margin-top: var(--space-6); }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote {
    border-left: 4px solid var(--brand);
    margin: var(--space-5) 0; padding: var(--space-3) var(--space-5);
    background: var(--surface);
    color: var(--ink-soft); font-style: italic;
}
/* Długie paragrafy z proboszczami / księżmi: pierwszy <strong> w paragrafie
   działa jak nagłówek sekcji — daje breathing room przed nim. */
.prose p > strong:first-child {
    display: block;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: .04em;
}
.prose p > strong:first-child:first-line { /* no-op, just specificity */ }

/* Placeholder dla obrazków których nie udało się załadować
   (po stripie/migracji z WP, oryginał nie został zaimportowany). */
.missing-image {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: var(--surface-alt);
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-mute);
    font-size: .85rem;
    font-style: italic;
    vertical-align: middle;
}

/* News */
.news-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,51,145,0.25); }
.news-card__media { overflow: hidden; }
.news-card__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.news-card__cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--space-3); font-weight: 600; }
.news-card__title { font-size: 1.35rem; line-height: 1.2; margin: 0 0 var(--space-2); font-weight: 600; letter-spacing: -0.005em; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--brand); }
.news-card__date { color: var(--ink-mute); font-size: .82rem; margin: 0 0 var(--space-3); font-variant-numeric: tabular-nums; }
.news-card__lead { margin: 0 0 var(--space-4); color: var(--ink-soft); font-size: .98rem; }
.news-card__more { margin: auto 0 0; font-size: .9rem; font-weight: 600; }
.news-card__more a { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.news-card__more a span { transition: transform .2s ease; display: inline-block; }
.news-card__more a:hover span { transform: translateX(4px); }
.news-card--empty { padding: var(--space-5); color: var(--ink-mute); }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.news-list__item { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-5); align-items: start; border-bottom: 1px solid var(--line); padding-bottom: var(--space-5); }
.news-list__item--empty { grid-template-columns: 1fr; color: var(--ink-mute); }
@media (max-width: 720px) { .news-list__item { grid-template-columns: 1fr; } }

.news-single__cover { margin: var(--space-5) 0 0; display: flex; justify-content: center; }
.news-single__cover img { max-width: 100%; max-height: 75vh; width: auto; height: auto; border-radius: var(--radius-md); object-fit: contain; }
.news-single__body { padding-top: var(--space-6); padding-bottom: var(--space-8); }
.news-single__lead { font-size: 1.2rem; color: var(--ink-soft); }
.news-single__meta { display: flex; gap: var(--space-3); color: var(--ink-mute); font-size: .9rem; }

.pagination { margin-top: var(--space-5); display: flex; gap: 6px; }
.pagination a, .pagination__current { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.pagination__current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Quick tiles on homepage */
.quick-tiles { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.quick-tile { display: block; padding: var(--space-5); background: var(--surface); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.quick-tile:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.quick-tile h3 { color: var(--brand); margin: 0 0 var(--space-2); }
.quick-tile p { margin: 0; color: var(--ink-soft); }

/* Banner widget */
/* Ozdobne zdjęcie z parallaxem (widget parallax_image) */
.widget-parallax { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.widget-parallax--small  { height: 200px; }
.widget-parallax--medium { height: 320px; }
.widget-parallax--large  { height: 480px; }
.widget-parallax--xlarge { height: 640px; }
.widget-parallax__media {
    position: absolute; inset: -20% 0;
    background-size: cover; background-repeat: no-repeat;
    will-change: transform;
}
.widget-parallax__overlay { position: absolute; inset: 0; pointer-events: none; }
.widget-parallax--overlay-dark .widget-parallax__overlay { background: linear-gradient(180deg, rgba(12,14,46,0.45) 0%, rgba(12,14,46,0.72) 100%); }
.widget-parallax--overlay-light .widget-parallax__overlay { background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.75)); }
/* W sekcji 'full' wystawiamy się edge-to-edge bez radius */
.section--full .widget-parallax { border-radius: 0; }

.widget-banner { background-position: center; background-size: cover; color: #fff; border-radius: var(--radius-md); position: relative; overflow: hidden; }
.widget-banner__inner { position: relative; padding: var(--space-8) var(--space-6); max-width: 760px; }
.widget-banner__heading { color: #fff; font-size: clamp(1.6rem, 2.5vw + 1rem, 2.6rem); }
.widget-banner__subtext { color: rgba(255,255,255,.9); }
.widget-banner--overlay-dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.widget-banner--overlay-light::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.85)); }
.widget-banner--overlay-light .widget-banner__heading,
.widget-banner--overlay-light .widget-banner__subtext { color: var(--ink); }
.widget-banner--small  .widget-banner__inner { padding: var(--space-6) var(--space-5); }
.widget-banner--large  .widget-banner__inner { padding: var(--space-9) var(--space-6); }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; background: var(--surface); }
.hero-slider--medium { min-height: 380px; }
.hero-slider--large { min-height: 560px; }
.hero-slider--full { min-height: calc(100vh - var(--site-header-h, 96px)); }
.hero-slider__viewport { min-height: inherit; }
.hero-slider__track { display: flex; transition: transform .6s ease; list-style: none; padding: 0; margin: 0; min-height: inherit; }
.hero-slider__slide { position: relative; flex: 0 0 100%; min-height: inherit; background: var(--surface); color: var(--ink); overflow: hidden; display: flex; align-items: center; }
.hero-slider__slide--with-image { color: #fff; }
.hero-slider__media {
    position: absolute;
    top: -20%; bottom: -20%; left: 0; right: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}
.hero-slider__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-slider__slide--with-image .hero-slider__overlay { background: linear-gradient(180deg, rgba(12,14,46,0.45) 0%, rgba(12,14,46,0.72) 100%); }
.hero-slider__inner { position: relative; z-index: 2; padding: var(--space-9) 0; max-width: 760px; width: 100%; }
.hero-slider__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero-slider__slide--align-center .hero-slider__cta { justify-content: center; }
.hero-slider__slide--align-right .hero-slider__cta { justify-content: flex-end; }
.hero-slider__slide--with-image .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); background: transparent; }
.hero-slider__slide--with-image .btn--ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.hero-slider__slide--align-center .hero-slider__inner { margin: 0 auto; text-align: center; }
.hero-slider__slide--align-right .hero-slider__inner { margin-left: auto; text-align: right; }
.hero-slider__heading { color: #fff; font-size: clamp(2rem, 3vw + 1rem, 3.4rem); }
.hero-slider__subtext { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.hero-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.hero-slider__nav--prev { left: var(--space-4); }
.hero-slider__nav--next { right: var(--space-4); }
.hero-slider__dots { position: absolute; bottom: var(--space-5); left: 0; right: 0; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-slider__dots li { display: block; line-height: 0; margin: 0; padding: 0; }
.hero-slider__dots button { display: block; width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.hero-slider__dots button:hover { background: rgba(255,255,255,.85); }
.hero-slider__dots [aria-selected="true"] { background: #fff; transform: scale(1.25); }
.hero-slider__dots [aria-selected="true"] { background: #fff; }

/* Mass schedule */
.mass-schedule { width: 100%; border-collapse: collapse; }
.mass-schedule th, .mass-schedule td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--line); }
.mass-schedule thead th { background: var(--surface); font-family: var(--font-serif); }

/* Tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(var(--tiles-cols, 4), minmax(0, 1fr)); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s ease; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile__link { display: block; color: inherit; text-decoration: none; }
.tile__media img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.tile__title { font-size: 1.15rem; margin: 0 0 var(--space-2); color: var(--brand); }
.tile__desc { color: var(--ink-soft); margin: 0; }

/* Gallery */
.widget-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(var(--gallery-cols, 3), 1fr); }
.widget-gallery__item img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); }

/* Video */
.widget-video__frame { position: relative; }
.widget-video__frame--16x9 { aspect-ratio: 16/9; }
.widget-video__frame--4x3 { aspect-ratio: 4/3; }
.widget-video__frame--1x1 { aspect-ratio: 1/1; }
.widget-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-md); }

/* Map */
.widget-map__frame { position: relative; height: var(--map-height, 360px); }
.widget-map__frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-md); }

/* Accordion */
.accordion { display: grid; gap: var(--space-2); }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 var(--space-4); background: #fff; }
.accordion__q { padding: var(--space-4) 0; font-family: var(--font-serif); font-size: 1.1rem; cursor: pointer; }
.accordion__a { padding-bottom: var(--space-4); color: var(--ink-soft); }

/* Forms / alerts */
.contact-form label { display: block; margin: 0 0 var(--space-3); font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; background: #fff;
}
.contact-form__row { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form .hp { position: absolute; left: -9999px; }
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.alert--ok { background: #E8F1E8; color: #1f4d1f; }
.alert--err { background: #F8E5E5; color: #781f1f; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #E4ECFA; padding: var(--space-8) 0 var(--space-5); margin-top: 0; }
.site-footer__grid { display: grid; gap: var(--space-6); grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { filter: invert(1) brightness(1.2); max-width: 200px; height: auto; }
.site-footer__tagline { color: rgba(228,236,250,.7); margin: var(--space-3) 0 0; }
.site-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: var(--space-3); }
.site-footer__menu, .site-footer__address { list-style: none; padding: 0; margin: 0; font-style: normal; color: #E4ECFA; }
.site-footer__nav { display: flex; flex-direction: column; gap: var(--space-4); }
.site-footer__group-title { display: block; font-weight: 600; color: #fff; margin-bottom: 4px; }
.site-footer__group .site-footer__menu { padding-left: 0; }
.site-footer__group .site-footer__menu li { padding: 2px 0; font-size: .9rem; opacity: .85; }
.site-footer__group .site-footer__menu li:hover { opacity: 1; }
.site-footer a { color: #E4ECFA; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(228,236,250,.15); margin-top: var(--space-6); padding-top: var(--space-4); color: rgba(228,236,250,.55); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__credit { margin-top: 4px !important; font-size: .75rem; opacity: .55; letter-spacing: .04em; }
.site-footer__credit a { color: inherit; text-decoration: none; }
.site-footer__credit a:hover { color: #fff; text-decoration: underline; }

/* Cookie consent banner — pokazywany do momentu wyboru.
   Style oparte o tokens, więc automatycznie podąża za themem. */
.cookie-consent {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 900;
    background: var(--surface-white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: var(--container);
    margin: 0 auto;
}
.cookie-consent__inner {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-4) var(--space-5);
}
.cookie-consent__title {
    font-size: 1rem;
    margin: 0 0 var(--space-2);
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: .02em;
}
.cookie-consent__desc {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.cookie-consent__desc a { color: var(--brand); }
.cookie-consent__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cookie-consent__btn { white-space: nowrap; }
@media (max-width: 720px) {
    .cookie-consent { left: 8px; right: 8px; bottom: 8px; }
    .cookie-consent__inner { grid-template-columns: 1fr; padding: var(--space-4); }
    .cookie-consent__actions { justify-content: stretch; }
    .cookie-consent__btn { flex: 1; text-align: center; }
}

/* Admin FAB — pojawia się tylko gdy user zalogowany (twig if current_user()) */
.admin-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(12,14,46,0.35);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    font-family: var(--font-sans);
}
.admin-fab:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(12,14,46,0.45);
}
.admin-fab svg { flex: 0 0 auto; }

/* Reveal on scroll — subtelne fade-in z lekkim podniesieniem.
   JS dorzuca .is-visible przez IntersectionObserver. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Theme switcher (preview only) — widoczny gdy ?preview=1.
   Stan zwinięty: mały okrągły button. Po kliknięciu wysuwa się pill z 4 kropkami. */
.theme-switcher {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
}
.theme-switcher__toggle {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 20, 30, 0.92);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform .18s ease, background-color .18s ease;
    order: 2;
}
.theme-switcher__toggle:hover { transform: scale(1.08); }
.theme-switcher__toggle[aria-expanded="true"] {
    background: var(--brand, #003391);
    transform: rotate(20deg);
}
.theme-switcher__panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 18px;
    background: rgba(20, 20, 30, 0.92);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: .8rem;
    order: 1;
    transform-origin: right center;
    animation: theme-switcher-slide .22s ease-out;
    flex-wrap: wrap;
    max-width: min(360px, calc(100vw - 80px));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.theme-switcher__panel[hidden] { display: none; }
@keyframes theme-switcher-slide {
    from { opacity: 0; transform: translateX(8px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0)  scale(1); }
}
.theme-switcher__label {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .7rem;
    opacity: .8;
    margin-right: 4px;
}
.theme-switcher__dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease, border-color .15s ease;
}
.theme-switcher__dot:hover { transform: scale(1.12); }
.theme-switcher__dot[aria-pressed="true"] { border-color: #fff; transform: scale(1.15); }
.theme-switcher__dot--classic { background: linear-gradient(135deg, #003391 50%, #bf001a 50%); }
.theme-switcher__dot--warm-stone { background: linear-gradient(135deg, #7A2E2E 50%, #B8893B 50%); }
.theme-switcher__dot--modern-light { background: linear-gradient(135deg, #FFFFFF 50%, #2E4BA0 50%); }
.theme-switcher__dot--evening-chapel { background: linear-gradient(135deg, #11131F 50%, #C9A24B 50%); }
.theme-switcher__dot--paper-archive { background: linear-gradient(135deg, #F4F0E6 50%, #9C3030 50%); }
.theme-switcher__dot--monastery-stone { background: linear-gradient(135deg, #DDD9CC 50%, #7B4D2E 50%); }
.theme-switcher__dot--liturgical-pastel { background: linear-gradient(135deg, #EFE9F5 50%, #D4A5A5 50%); }
.theme-switcher__dot--gradient-mesh { background: conic-gradient(from 0deg, #7B5EE8, #FF6B9D, #00D4FF, #FFC857, #7B5EE8); }
.theme-switcher__dot--scandinavian-quiet { background: linear-gradient(135deg, #FAFAF7 50%, #0A0A0A 50%); }
.theme-switcher__dot--illuminated { background: linear-gradient(135deg, #4A1018 50%, #D4AF37 50%); }
