/* ==========================================================================
   KZ Stargard – style bazowe (mobile-first, tryb jasny i ciemny)
   Czcionki systemowe: bez Google Fonts (RODO, szybkość).
   ========================================================================== */

:root {
    /* Kolory z logo zboru: szarozielony #839a92 i grafit #2d2928. Sam szarozielony ma z białym tylko 3:1,
       więc tekst i przyciski używają ciemniejszego odcienia (kontrast ≥ 4.5:1 na każdym tle). */
    --bg: #f5f7f5;
    --surface: #ffffff;
    --surface-2: #ebf0ed;
    --text: #2d2928;
    --muted: #58625e;
    --border: #d9e1dc;
    --primary: #46625a;
    --primary-hover: #36504a;
    --on-primary: #ffffff;
    --focus: #1d6fd8;
    --hero-from: #e6eeea;
    --hero-to: #d8e4de;
    --warn-bg: #fff4d6;
    --warn-text: #6b4a00;
    --warn-border: #f0c34a;
    --danger-bg: #fde8e8;
    --danger-text: #8a1c1c;
    --today: #ecf3ef;

    --radius: 14px;
    --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 72rem;
    --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1a1918;
        --surface: #242221;
        --surface-2: #2d2928;
        --text: #eceae6;
        --muted: #aba7a2;
        --border: #3b3735;
        --primary: #9fbbb1;
        --primary-hover: #b8cec6;
        --on-primary: #1a1918;
        --focus: #7fb2ff;
        --hero-from: #25302c;
        --hero-to: #242221;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
        --warn-bg: #3a2f12;
        --warn-text: #f5d58a;
        --warn-border: #8a6a1c;
        --danger-bg: #3d1b1b;
        --danger-text: #f3a8a8;
        --today: #222b28;
    }
}

:root[data-theme="dark"] {
    --bg: #1a1918;
    --surface: #242221;
    --surface-2: #2d2928;
    --text: #eceae6;
    --muted: #aba7a2;
    --border: #3b3735;
    --primary: #9fbbb1;
    --primary-hover: #b8cec6;
    --on-primary: #1a1918;
    --focus: #7fb2ff;
    --hero-from: #25302c;
    --hero-to: #242221;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
    --warn-bg: #3a2f12;
    --warn-text: #f5d58a;
    --warn-border: #8a6a1c;
    --danger-bg: #3d1b1b;
    --danger-text: #f3a8a8;
    --today: #222b28;
}

/* --- Reset i baza --------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* długie słowa bez spacji (adresy stron, nazwy) łamią się, zamiast wychodzić poza ekran */
    overflow-wrap: break-word;
}

main { flex: 1; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: .15em; }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

address { font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--surface); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* --- Nagłówek i nawigacja ------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 4rem; flex-wrap: wrap;
}

.brand {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 700; font-size: 1.1rem;
    color: var(--text); text-decoration: none;
}
/* gołębica z logo zboru w kółku (pełne logo z napisem dookoła byłoby w tym rozmiarze nieczytelne) */
.brand-logo { border-radius: 50%; flex-shrink: 0; }

.nav-toggle, .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem;               /* cel dotyku ≥ 44px */
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text); cursor: pointer;
}

.main-nav {
    display: none;
    width: 100%;
    padding-bottom: 1rem;
}
/* Telefon i tablet: menu otwiera się jako panel NAD stroną, tuż pod nagłówkiem – nagłówek (logo, ☰/✕) zostaje
   w miejscu, a strona pod spodem nie przesuwa się, tylko przyciemnia (cień panelu). Dotknięcie przyciemnionej
   strony albo Esc zamyka menu (app.js). Gdy menu jest wyższe niż ekran (telefon poziomo, menu po zalogowaniu),
   przewija się samo, a strona pod nim stoi w miejscu. */
@media (max-width: 59.99rem) {
    .header-inner { flex-wrap: nowrap; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        padding: .25rem var(--gutter) 1.25rem;
        background: var(--bg); border-bottom: 1px solid var(--border);
        /* przyciemnienie strony pod panelem: cień przesunięty w dół, zaczyna się od górnej krawędzi panelu */
        box-shadow: 0 100vmax 0 100vmax rgb(0 0 0 / .45);
        max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem);
        overflow-y: auto; overscroll-behavior: contain;
    }
    .main-nav.is-open { display: block; transition: opacity .18s ease-out, translate .18s ease-out; }
    /* łagodne wysunięcie (przeglądarki bez @starting-style po prostu pokażą menu) */
    @starting-style { .main-nav.is-open { opacity: 0; translate: 0 -.5rem; } }
    .site-header:has(.main-nav.is-open) { background: var(--bg); backdrop-filter: none; }
    html:has(.main-nav.is-open) { overflow: hidden; }
}

/* ☰ zamienia się w ✕, gdy menu jest otwarte */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.main-nav a {
    display: block; padding: .75rem .25rem;
    color: var(--text); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.main-nav a:hover { color: var(--primary); }
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}

@media (min-width: 60rem) {
    .nav-toggle { display: none; }
    .main-nav {
        display: flex; align-items: center; gap: 1rem;
        width: auto; padding: 0;
    }
    .main-nav ul { display: flex; gap: .25rem; margin: 0; }
    .main-nav a { border: 0; padding: .5rem .75rem; border-radius: 8px; }
    .main-nav a:hover { background: var(--surface-2); }
    /* zakładki nigdy nie łamią się w pół („Розклад на / тиждень”); logo i menu w jednym wierszu */
    .header-inner { flex-wrap: nowrap; }
    .brand { white-space: nowrap; flex-shrink: 0; }
    .main-nav { min-width: 0; }
    .main-nav li a { white-space: nowrap; }
    /* zalogowani: przyciski konta i język w niskim górnym wierszu, zakładki pod nimi – miejsce na dłuższe
       napisy po angielsku i ukraińsku bez rozjeżdżania się nagłówka */
    .main-nav.has-user {
        display: grid; grid-template-columns: 1fr auto auto; align-items: center;
        grid-template-areas: "user user lang" "links links theme"; column-gap: .75rem; row-gap: .25rem;
        padding: .45rem 0;
    }
    .main-nav.has-user .user-menu { grid-area: user; justify-content: flex-end; flex-wrap: nowrap; }
    .main-nav.has-user .lang-switch { grid-area: lang; }
    .main-nav.has-user ul { grid-area: links; justify-content: flex-end; }
    .main-nav.has-user .theme-toggle { grid-area: theme; }
    .main-nav.has-user .user-menu a, .main-nav.has-user .user-menu .btn { min-height: 2.25rem; padding: .3rem .8rem; white-space: nowrap; }
}
/* węższe ekrany z pełnym menu: mniejsze odstępy między zakładkami (dłuższe napisy EN/UA) */
@media (min-width: 60rem) and (max-width: 74.99rem) {
    .main-nav ul { gap: 0; }
    .main-nav a { padding: .5rem .55rem; }
    .main-nav:not(.has-user) { gap: .6rem; }
}

/* --- Przyciski ------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.75rem; padding: .6rem 1.25rem;
    border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
/* formularz właśnie wysłany (app.js) – drugie kliknięcie nic nie zrobi */
form[aria-busy="true"] button[type="submit"], form[aria-busy="true"] button:not([type]) { opacity: .65; cursor: progress; }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* --- Sekcje ---------------------------------------------------------------- */

.hero {
    padding-block: clamp(3rem, 12vw, 7rem);
    background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
}
.lead { font-size: clamp(1.1rem, 3vw, 1.35rem); color: var(--muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
/* Grafika zboru: na telefonie nad nazwą, na szerokim ekranie obok */
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 59.99rem) {
    .hero { padding-block: 1.5rem 2.75rem; }
    .hero-img { order: -1; max-width: 34rem; }
}
@media (min-width: 60rem) {
    .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
}

.section { padding-block: clamp(2.5rem, 8vw, 5rem); }

.cards {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card + p { margin-top: 1rem; }
.after-list { margin-top: 1rem; }
.app-install { display: grid; gap: 1rem; padding-bottom: 2rem; }
.steps { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
[hidden] { display: none !important; }
.plan-email { padding-bottom: 2.5rem; }
.plan-email-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.plan-email-form input[type="email"] {
    flex: 1 1 16rem; min-height: 2.75rem; padding: .5rem .75rem; font: inherit;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text);
}
/* Przełącznik języka PL / EN / UA */
.lang-switch { display: flex; gap: .15rem; align-items: center; }
.lang-switch a { padding: .3rem .45rem; border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--muted);
    text-decoration: none; letter-spacing: .03em; }
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 6px 6px 0 0; }
@media (max-width: 59.99rem) { .lang-switch { margin: .25rem 0 .75rem; } .lang-switch a { padding: .45rem .7rem; font-size: .95rem; } }

/* Dzwonek z powiadomieniami (nagłówek) i lista powiadomień */
.main-nav .user-menu a.bell {
    position: relative; display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 999px;
}
.bell-count {
    position: absolute; top: -.35rem; right: -.35rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--primary); color: var(--on-primary);
    font-size: .72rem; font-weight: 700; line-height: 1.2rem; text-align: center;
}
.bell-label { font-size: .95rem; }
@media (min-width: 60rem) { .bell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.inbox-item a {
    display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text); text-decoration: none;
}
.inbox-item a:hover { border-color: var(--primary); }
.inbox-item.is-new a { border-left: 4px solid var(--primary); }
.inbox-kind { display: flex; gap: .5rem; align-items: center; font-size: .82rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em; }
.inbox-text { font-size: 1rem; }
/* Stałe miejsca: „← Nowsze” | Strona X z Y | „Starsze →” – brak jednego przycisku nie przesuwa pozostałych. */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.pager-prev { grid-column: 1; justify-self: end; }
.pager-info { grid-column: 2; text-align: center; }
.pager-next { grid-column: 3; justify-self: start; }

/* --- Elementy wspólne ----------------------------------------------------- */

.narrow { max-width: 46rem; }
.muted { color: var(--muted); }
.h3 { font-size: 1.15rem; }
.page-head { padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.breadcrumbs { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--primary); margin: 0 0 .25rem; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.btn-sm { min-height: 2.5rem; padding: .4rem .9rem; }
.btn:disabled { opacity: .4; cursor: default; pointer-events: none; }

.badge {
    display: inline-block; padding: .1rem .55rem; border-radius: 999px;
    background: var(--surface-2); color: var(--text);
    font-size: .75rem; font-weight: 700; vertical-align: middle;
}
.badge-special { background: var(--primary); color: var(--on-primary); }

.card { position: relative; }
.card h2, .card h3 { margin-top: .25rem; }
/* nagłówek karty nad formularzem (np. „Napisz do nas”) – odstęp od pierwszych pól */
.card > h2 + .form, .card > h3 + .form { margin-top: .75rem; }
/* karty boczne: równe, małe odstępy między liniami (telefon, e-mail, opis) */
.side > p { margin-block: .35rem; }
.side > p:last-child { margin-bottom: 0; }
.card-date { color: var(--muted); font-size: .9rem; margin: 0; display: flex; gap: .5rem; align-items: center; }
.card-img, .detail-img { width: 100%; border-radius: calc(var(--radius) - 4px); object-fit: cover; aspect-ratio: 16 / 9; margin-bottom: .75rem; }
.detail-img { margin-bottom: 1.5rem; }
/* Cała karta klikalna, ale jeden link (dostępność) */
.stretched { color: var(--text); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.stretched:hover { color: var(--primary); }
.card:has(.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.stretched:focus-visible { outline: none; }

.prose > :first-child { margin-top: 0; }
/* wklejone długie linki (np. z Facebooka) łamią się w dowolnym miejscu – także w tabelach i skrótach na listach */
.prose a, .prose td, .prose th, .prose code { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; margin-block: 1rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
/* telefon: tabela z treści jako karty (jak tabele panelu) – trzy wąskie kolumny były nieczytelne */
@media (max-width: 40rem) {
    .prose table { display: block; border-collapse: separate; }
    .prose thead { display: none; }
    .prose tbody, .prose tr, .prose td { display: block; }
    .prose tr { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; margin-bottom: .6rem; }
    .prose td { border: 0; padding: .2rem 0; }
    .prose td[data-label]::before {
        content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--muted);
    }
}
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.notice {
    background: var(--warn-bg); color: var(--warn-text);
    border: 1px solid var(--warn-border); border-radius: var(--radius);
    padding: .75rem 1rem;
}

/* --- Najbliższe nabożeństwo -------------------------------------------------- */

.next-service { background: var(--surface); border-block: 1px solid var(--border); padding-block: 1.5rem; }
.next-service-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.next-service-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 .15rem; }
.next-service-when { font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 700; margin: 0 0 .25rem; }
.next-service-meta { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* --- Wpisy planu ------------------------------------------------------------ */

.entries { display: grid; gap: .75rem; }
.entry {
    display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: .9rem 1rem;
}
.entry-when { display: flex; flex-direction: column; }
.entry-day { font-size: .85rem; color: var(--muted); }
.entry-time { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.entry-time.is-range { font-size: .95rem; display: flex; flex-direction: column; }
.entry-time.is-range span { white-space: nowrap; }
.entry-title { font-size: 1.05rem; margin: 0 0 .15rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.entry-title a { color: var(--text); padding-block: .15rem; } /* cel dotyku ≥ 24 px */
.entry-title a:hover { color: var(--primary); }
.entry-meta { margin: 0; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.entry-note { margin: .25rem 0 0; font-style: italic; }
.entry-more { margin-top: .35rem; }
.entry-more summary { cursor: pointer; color: var(--muted); font-size: .95rem; width: fit-content; }
.entry-more summary:hover { color: var(--text); }
.entry-description { margin: .35rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.entry-signup { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.signup-state { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.lead-admin { font-size: 1.05rem; margin: 0 0 1rem; }
.entry-alert {
    margin: .35rem 0; padding: .3rem .6rem; border-radius: 8px;
    background: var(--warn-bg); color: var(--warn-text); font-size: .95rem;
}
.entry { position: relative; padding-right: 3rem; }
.entry-ics {
    position: absolute; top: .6rem; right: .6rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 8px; color: var(--muted);
}
.entry-ics:hover { background: var(--surface-2); color: var(--primary); }
.calendar-links { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; margin: 0 0 1rem; }
@media (max-width: 40rem) {
    .calendar-links { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .calendar-sep { display: none; }
}
.entry.is-changed { border-left-color: var(--warn-border); }
.entry.is-cancelled { border-left-color: var(--danger-text); }
.entry.is-cancelled .entry-time,
.entry.is-cancelled .entry-title > :first-child { text-decoration: line-through; color: var(--muted); }
.entry-alert-cancelled { background: var(--danger-bg); color: var(--danger-text); }

@media (max-width: 30rem) {
    .entry { grid-template-columns: 1fr; }
    .entry-when { flex-direction: row; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
    .entry-time.is-range { flex-direction: row; flex-wrap: wrap; gap: 0 .3rem; }
}

/* --- Plan tygodnia ---------------------------------------------------------- */

.week { padding-bottom: 2rem; }
.week-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
/* Strzałki w stałym miejscu: tytuł (tydzień / miesiąc / okres grafiku) ma stałą szerokość na najdłuższy możliwy napis,
   np. „28 grudnia 2026 – 3 stycznia 2027” (po angielsku „28 December 2026 – 3 January 2027” – 326 px),
   więc krótsza data nie przesuwa strzałki „→”. */
.week-nav { --nav-title: 21rem; display: grid; grid-template-columns: auto var(--nav-title) auto auto;
    align-items: center; justify-content: start; gap: .5rem; }
.week-nav > :is(h2, strong) { margin: 0; min-width: 0; text-align: center; }
.week-nav > .btn { justify-self: start; }
.week-range { font-size: 1.15rem; }
@media (max-width: 40rem) {
    /* telefon: tytuł wypełnia miejsce między strzałkami, „Ten tydzień” w następnym wierszu */
    .week-nav { grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
    .week-nav > :nth-child(4) { grid-column: 1 / -1; }
    .week-range { font-size: 1.05rem; }
    .rota-nav strong { font-size: .92rem; }
}
.week-filter { display: flex; align-items: center; gap: .5rem; }
.week-filter select {
    font: inherit; min-height: 2.5rem; padding: .3rem .6rem;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
}
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.day-head { display: flex; gap: .5rem; align-items: baseline; font-size: 1rem; margin: 0 0 .5rem; }
.day-name { text-transform: capitalize; }
.day-date { color: var(--muted); font-weight: 400; }
.day.is-today { background: var(--today); border-radius: var(--radius); padding: .75rem; margin-inline: -.75rem; }
.day-empty { margin: 0; font-size: .95rem; }
.htmx-request .days, .htmx-request.week { opacity: .6; transition: opacity .2s; }

/* --- Przełącznik Tydzień / Miesiąc i plan miesiąca ------------------------- */

.view-switch {
    display: inline-flex; gap: .2rem; padding: .2rem; margin-bottom: 1rem;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.view-switch a { padding: .35rem 1rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.view-switch a:hover { color: var(--primary); }
.view-switch a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.month { padding-bottom: 2rem; }
.month-nav { --nav-title: 10.5rem; }
/* wielka tylko pierwsza litera („Grudzień 2026”, „Wtorek, 1 grudnia”) – capitalize zmieniłoby też „Grudnia” */
.month-title::first-letter, .month-day-label::first-letter { text-transform: uppercase; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekdays span {
    padding: .3rem .5rem; font-size: .78rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.month-grid {
    list-style: none; margin: 0; padding: 0;
    border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.month-day {
    min-width: 0; min-height: 7rem; padding: .35rem .4rem;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface);
}
.month-day.is-outside { background: var(--surface-2); }
.month-day.is-outside .month-date { color: var(--muted); }
.month-day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
.month-date { display: inline-block; min-width: 1.75rem; font-weight: 700; color: var(--text); text-decoration: none; border-radius: 6px; }
.month-date:hover { color: var(--primary); text-decoration: underline; }
.month-day-label { display: none; }
.month-entries { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .2rem; }
.month-entry {
    padding: .1rem .3rem; border-radius: 4px; border-left: 3px solid var(--primary);
    background: var(--surface-2); font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere;
}
.month-entry.is-cancelled { text-decoration: line-through; color: var(--muted); border-left-color: var(--danger-text); }
.month-entry.is-changed { border-left-color: var(--warn-border); }
.month-entry.is-special { border-left-color: var(--accent, var(--primary)); font-weight: 600; }
.month-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.month-none { display: none; }
/* telefon: lista dni ze spotkaniami zamiast siatki 7 kolumn */
@media (max-width: 48rem) {
    .month-weekdays { display: none; }
    .month-grid { grid-template-columns: 1fr; gap: .6rem; border: 0; }
    .month-day { min-height: 0; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); }
    .month-day.is-outside, .month-day.is-empty { display: none; }
    .month-day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
    .month-date-num { display: none; }
    .month-day-label { display: inline-block; }
    .month-entry { font-size: .95rem; padding: .25rem .5rem; }
    .month-none { display: block; }
    /* bieżący miesiąc zaczyna się od dziś; wcześniejsze dni po kliknięciu (app.js) */
    .month-cal.hides-past .month-day.is-past { display: none; }
    .month-cal.hides-past .month-earlier { display: inline-flex; margin-bottom: .6rem; }
}
.month-earlier { display: none; }

/* --- Szczegóły (grupa, kontakt) ----------------------------------------------- */

.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) {
    .detail-grid { grid-template-columns: 1fr 20rem; align-items: start; }
}
.side { margin-bottom: 1rem; }
.facts { margin: 0; }
.facts dt { font-weight: 700; margin-top: .75rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; color: var(--muted); }
.news-item { margin-bottom: 1rem; }
.visit { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.visit address { font-size: 1.15rem; }
.prayer { margin-bottom: 1rem; }
/* Grafik służb */
.rota-nav { --nav-title: 19rem; margin-bottom: 1rem; }
/* Stały układ kolumn: otwarte „Wpisz osobę” wydłuża tylko wiersz, nie poszerza tabeli. Przy wielu służbach
   tabela przewija się w bok (każda kolumna co najmniej 11rem). */
@media (min-width: 40.01rem) {
    .rota { table-layout: fixed; min-width: calc(13rem + var(--cols, 3) * 11rem); }
    .rota th:first-child { width: 13rem; }
}
.rota-when strong { white-space: nowrap; }
.rota-when div { color: var(--muted); font-size: .9rem; }
.duty-names { list-style: none; margin: 0 0 .25rem; padding: 0; display: grid; gap: .15rem; }
.duty-names li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.duty-add { margin-top: .35rem; }
.duty-add summary { cursor: pointer; color: var(--primary); font-size: .9rem; }
.duty-add .form { margin-top: .5rem; gap: .5rem; }
.duty-add :is(select, input) { width: 100%; min-width: 0; }
.btn-link {
    border: 0; background: none; padding: 0 .3rem; cursor: pointer; color: var(--danger-text);
    font: inherit; font-size: 1.1rem; line-height: 1; border-radius: 4px;
}
.btn-link:hover { background: var(--danger-bg); }
.duty { margin-bottom: 1rem; }
.duty.is-cancelled h2 { text-decoration: line-through; color: var(--muted); }
.account-requests { margin: 0 0 2rem; }
.account-request { margin-bottom: .75rem; }
.account-request h3 { margin-bottom: .1rem; }
.account-request p { margin: .15rem 0; }
.prayer-content { white-space: pre-line; overflow-wrap: anywhere; }
.prayer-testimony { white-space: pre-line; border-left: 3px solid var(--primary); padding-left: .75rem; }
.wall-editor {
    margin-block: .75rem; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface-2);
}
.prayer > .form-actions { margin-top: .75rem; }
.wall-editor summary { cursor: pointer; font-weight: 600; }
.wall-editor .form { margin-top: .75rem; }
.pray-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0; }
.account-number { font-variant-numeric: tabular-nums; letter-spacing: .03em; text-wrap: balance; }

.person { text-align: center; }
.person .card-date { justify-content: center; }
/* auto-fill: jedna lub dwie osoby nie rozciągają się na całą szerokość */
.cards.people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.people-section { padding-bottom: 2.5rem; }
.detail-date { margin-bottom: 1.25rem; }
.person-photo { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; }
.person-initials {
    display: grid; place-items: center; background: var(--surface-2);
    font-size: 2.5rem; font-weight: 700; color: var(--primary);
}

.map { margin-top: 1rem; }
.map-placeholder, .map iframe {
    width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius);
}
.map-placeholder {
    display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center;
    background: var(--surface-2); padding: 1.5rem; color: var(--muted);
}
@media (min-width: 40rem) { .map-placeholder, .map iframe { aspect-ratio: 16 / 9; } }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
/* cel dotyku ≥ 24 px (na telefonie linki jeden pod drugim) */
.footer-links a, .social a { display: inline-block; padding-block: .25rem; }

/* --- Formularze i konto -------------------------------------------------- */

.auth { max-width: 28rem; padding-block: clamp(2rem, 6vw, 3.5rem); }
.form { display: grid; gap: 1rem; }
/* align-content: start – pole nie rozciąga się do wysokości sąsiada w wierszu (np. gdy obok jest podpowiedź) */
.field { display: grid; gap: .3rem; align-content: start; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
    font: inherit; width: 100%; min-height: 2.75rem; padding: .5rem .75rem;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex: none; accent-color: var(--primary); }
.field-row > .checkbox, .checkbox-list .checkbox { align-items: center; }
.field-row > .checkbox input, .checkbox-list .checkbox input { margin-top: 0; }
.small { font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field p { margin: 0; }
.field-error:empty { display: none; }
.field-error, .form-error { color: var(--danger-text); font-weight: 600; }
/* pole z błędem – czerwona ramka, żeby w długim formularzu było je widać od razu */
.field:has(.field-error:not(:empty)) :is(input, select, textarea) { border-color: var(--danger-text); }
.form-error { background: var(--danger-bg); border-radius: 8px; padding: .6rem .8rem; }
.flash-area { padding-top: 1rem; }
.flash {
    margin: 0; padding: .75rem 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
}
.badge-members { background: var(--warn-bg); color: var(--warn-text); }

.user-menu { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.user-menu form { margin: 0; }
.main-nav .user-menu a { border: 1px solid var(--border); padding: .4rem .9rem; display: inline-flex; }
.main-nav .user-menu a[aria-current="page"] { border-color: var(--primary); }
@media (min-width: 60rem) {
    .user-menu { margin: 0; }
}

/* --- Panel administracyjny --------------------------------------------------- */

.admin-grid { display: grid; gap: 1.5rem; padding-block: 1.5rem 3rem; }
/* telefon: pozycje zawijane do kilku linii – wszystkie widoczne (wcześniej przewijany pasek ucinał nazwy) */
.admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.admin-nav .badge { margin-left: .4rem; }
.admin-nav a {
    white-space: nowrap; padding: .4rem .65rem; border-radius: 8px;
    color: var(--text); text-decoration: none; font-weight: 500;
}
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
@media (min-width: 60rem) {
    .admin-grid { grid-template-columns: 14rem 1fr; align-items: start; }
    .admin-nav { flex-direction: column; border: 0; position: sticky; top: 5rem; }
}
.admin-main { min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.admin-section { margin-top: 2rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { display: inline-flex; margin-left: .25rem; }
.table .is-muted td { color: var(--muted); }

/* Telefon: wiersze tabel panelu jako karty – bez przewijania w bok i z widocznym przyciskiem akcji.
   Etykiety kolumn (data-label) dopisuje app.js z nagłówków tabeli. */
@media (max-width: 40rem) {
    .table-wrap { overflow: visible; border: 0; background: none; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; }
    .table tr {
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: .5rem .85rem; margin-bottom: .75rem;
    }
    .table td { border: 0; padding: .3rem 0; }
    .table td:empty { display: none; }
    .table td[data-label]::before {
        content: attr(data-label); display: block;
        font-size: .8rem; font-weight: 600; color: var(--muted);
    }
    .table .actions { text-align: left; white-space: normal; padding-top: .5rem; }
    .table .actions > * { margin: 0 .5rem .25rem 0; }
}

.form-grid { display: grid; gap: 1rem; max-width: 46rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: start; }
/* pole wyboru obok pola tekstowego (np. „Widoczna na stronie” + „Kolejność”) – na wysokości pola, nie etykiety */
.field-row > .checkbox { align-self: end; min-height: 2.75rem; }
.field textarea { min-height: 8rem; resize: vertical; font-family: inherit; }
.field textarea.tall { min-height: 18rem; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0; display: grid; gap: 1rem; }
.fieldset legend { font-weight: 700; padding-inline: .25rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.checkbox-list { display: grid; gap: .4rem; }
.inline-form { display: inline; margin: 0; }

/* Panel: tłumaczenia pól (EN / UA) – zwinięte, nieobowiązkowe */
.translations summary { cursor: pointer; font-weight: 600; }
.translations[open] summary { margin-bottom: .5rem; }
.translations .field-row { margin-top: .75rem; }
.translations textarea { min-height: 7rem; }

/* Filtry nad listą (Historia zmian) */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 0 0 1rem; }
.filter-bar .field { margin: 0; min-width: 12rem; }
.nowrap { white-space: nowrap; }
/* Długie ciągi bez spacji (e-maile, linki w notatkach) łamią się w dowolnym miejscu, zamiast rozpychać tabelę.
   Tylko w wybranych komórkach – ustawione na całej tabeli pozwoliłoby przeglądarce łamać też zwykłe słowa. */
.wrap-any { overflow-wrap: anywhere; }
.badge.audit-delete { background: var(--danger-bg); color: var(--danger-text); }
.history td:nth-child(3) .badge { margin-right: .35rem; }
/* Historia zmian: szerokości kolumn jak zwykle dobiera przeglądarka, ale długa lista zmienionych pól ma limit
   szerokości (nie ściska kolumny „Co”), a długi e-mail lub link w nazwie zawija się zamiast wypychać tabelę */
.history-label { overflow-wrap: anywhere; }
@media (min-width: 40.01rem) {
    .history-fields { max-width: 16rem; }
}
.badge.audit-export { background: var(--warn-bg); color: var(--warn-text); }
.history-tabs { align-self: center; }
.warn-text { color: var(--warn-text); font-weight: 600; }
/* Szczegóły zmiany: pełne wartości pól (długie treści przewijane w polu, bez rozpychania strony) */
.history-values th:first-child { width: 11rem; }
.history-value {
    white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto;
    font-size: .92rem;
}
.history-restore { margin-top: 1.25rem; }
/* Zmienione linie dłuższego tekstu: usunięte (−) i dodane (+), z odrobiną kontekstu */
.diff { font-size: .92rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.diff-line { display: flex; gap: .5rem; padding: .1rem .6rem; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em; }
.diff-sign { flex: none; width: 1ch; font-weight: 700; }
.diff-line.is-removed { background: var(--danger-bg); color: var(--danger-text); box-shadow: inset 3px 0 var(--danger-text);
    text-decoration: line-through; text-decoration-thickness: 1px; }
.diff-line.is-added { background: var(--today); color: var(--text); box-shadow: inset 3px 0 var(--primary); font-weight: 600; }
.diff-line.is-gap { color: var(--muted); }
.diff-full { margin-top: .6rem; }
.diff-full summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.diff-full-grid { display: grid; gap: 1rem; margin-top: .5rem; }
@media (min-width: 48rem) { .diff-full-grid { grid-template-columns: 1fr 1fr; } }
.filter-bar .checkbox { align-items: center; min-height: 2.75rem; }
.filter-bar .checkbox input { margin-top: 0; }

/* Statystyki odwiedzin */
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 999px; padding: .2rem; gap: .2rem; }
.segmented a { padding: .3rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .92rem; }
.segmented a:hover { background: var(--bg); }
.segmented a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.stat-tile { display: grid; gap: .15rem; align-content: start; padding: .9rem 1rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .82rem; color: var(--muted); }
.stat-value.is-split { font-size: 1.5rem; line-height: 1.5; }
.stat-value.is-split > span { white-space: nowrap; }
.bar-chart { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .5rem; height: 13rem;
    padding: .75rem .75rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bar-grid { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 1.9rem);
    font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bar-grid span { line-height: 0; }
.bars { position: relative; list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(var(--bars), minmax(0, 1fr)); gap: 2px; align-items: end; height: 100%;
    background: linear-gradient(var(--border), var(--border)) 0 0 / 100% 1px no-repeat,
                linear-gradient(var(--border), var(--border)) 0 calc((100% - 1.9rem) / 2) / 100% 1px no-repeat,
                linear-gradient(var(--muted), var(--muted)) 0 calc(100% - 1.9rem) / 100% 1px no-repeat; }
.bar { position: relative; display: grid; grid-template-rows: 1fr 1.9rem; height: 100%; outline: none; }
.bar-fill { align-self: end; min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; }
.bar-fill.is-zero { background: transparent; min-height: 0; }
.bar:hover .bar-fill, .bar:focus-visible .bar-fill { filter: brightness(1.15); }
.bar:focus-visible { box-shadow: 0 0 0 2px var(--primary); border-radius: 4px; }
.bar-axis { padding-top: .35rem; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: visible; }
.bar-tip { display: none; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
    min-width: 11rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
    color: var(--text); font-size: .8rem; box-shadow: 0 4px 14px rgb(0 0 0 / .12); pointer-events: none; }
.bar-tip strong, .bar-tip span { display: block; }
.bar:hover .bar-tip, .bar:focus-visible .bar-tip { display: block; }
.bar:first-child .bar-tip, .bar:nth-child(2) .bar-tip { left: 0; transform: none; }
.bar:last-child .bar-tip, .bar:nth-last-child(2) .bar-tip { left: auto; right: 0; transform: none; }
.chart-table { margin-top: .6rem; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.stats-columns { display: grid; gap: 0 2rem; }
@media (min-width: 60rem) { .stats-columns { grid-template-columns: 1fr 1fr; } }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rank-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; align-items: baseline; }
.rank-name { min-width: 0; overflow-wrap: anywhere; }
.rank-value { font-variant-numeric: tabular-nums; font-weight: 600; }
.rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.btn-danger { background: var(--danger-bg); color: var(--danger-text); border-color: transparent; }
.btn-danger:hover { filter: brightness(.95); }
.preview { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.preview:empty { display: none; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; background: var(--surface-2); padding: .25rem .5rem; border-radius: 6px; user-select: all; }

/* --- Stopka ---------------------------------------------------------------- */

.site-footer {
    margin-top: 3rem;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding-block: 2.5rem 1.5rem;
    color: var(--muted);
}
.site-footer h2 { font-size: 1rem; color: var(--text); }
.site-footer section > p { margin: .25rem 0; }
.footer-grid {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-copy { margin-top: 2rem; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Panel: lista rzeczy do uzupełnienia przed pokazaniem strony */
.launch-checklist { margin-bottom: 1.5rem; border-left: 4px solid var(--primary); }
.launch-checklist h2 { margin-top: 0; }
.launch-checklist ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.launch-checklist li + li { margin-top: .25rem; }

/* O nas: pełne logo zboru (napis dookoła mieści się w kółku) obok tytułu */
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; }
.about-head h1 { margin: 0; }
.about-logo { width: clamp(5.5rem, 22vw, 9rem); height: auto; border-radius: 50%; flex-shrink: 0; }

/* Telefon: pola formularzy co najmniej 16 px – przy mniejszej czcionce iPhone powiększa stronę po dotknięciu pola
   (np. w tabelach panelu, gdzie tekst jest mniejszy). */
@media (max-width: 59.99rem) {
    :is(input, select, textarea):not([type=checkbox], [type=radio]) { font-size: max(1rem, 16px); }
}
