/* Shared public page components. Keep page-specific CSS small and rare. */

:root {
    --brand: #1654b8;
    --brand-dark: #0b2a5b;
    --brand-bright: #2563eb;
    --gold: #f2b705;
    --green: #16a34a;
    --red: #dc2626;
    --sky: #0ea5e9;
    --ink: #233044;
    --line: #d8e3f2;
    --card: #ffffff;
    --bg: #f7fbff;
    --text-muted: #5d6d82;
    --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
    --shadow-lift: 0 22px 48px rgba(22, 84, 184, 0.16);
}

/* Targeted polish: contact, sacraments and safeguarding standards */
.contact-hero,
.som-hero,
.s-page-hero {
    width: 100%;
    background:
        linear-gradient(135deg, #ffffff 0%, #f3f9ff 72%, #fff8e6 100%);
    border: 1px solid rgba(130, 151, 180, 0.28);
    border-radius: 8px;
    padding: clamp(26px, 4vw, 42px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.contact-hero::before,
.som-hero::before,
.s-page-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--sky), var(--gold));
}

.contact-hero {
    margin-bottom: 28px;
}

.main-container.u-style-21e620cf3e {
    display: block;
}

.contact-eyebrow,
.som-eyebrow {
    margin: 0 0 8px;
    color: #b77900;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.contact-hero h1,
.som-hero h1 {
    margin: 0 0 12px;
    color: var(--brand-dark);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.contact-hero p,
.som-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-hero-actions,
.som-actions,
.s-sacrament-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}

.contact-office-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
    padding: 22px;
    border-radius: 8px;
    border: 1px solid rgba(130, 151, 180, 0.28);
    border-left: 4px solid var(--gold);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.s-page-hero {
    text-align: center;
}

.s-page-hero .u-style-55561adcb0 {
    margin-bottom: 12px;
}

.s-sacrament-nav {
    justify-content: center;
}

.s-sacrament-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(22, 84, 184, 0.18);
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.s-sacrament-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 84, 184, 0.38);
    background: #eef6ff;
}

.s-card-icon-confirmation {
    background: linear-gradient(135deg, #ecfdf5 0%, #dbeafe 100%);
    color: var(--green);
}

.s-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-left: 4px solid var(--green);
    background: #f0fdf4;
    color: #14532d;
    font-weight: 700;
    line-height: 1.55;
}

.som-hero {
    margin-bottom: 20px;
}

.som-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.som-summary article {
    background: #ffffff;
    border: 1px solid rgba(130, 151, 180, 0.28);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.som-summary strong {
    display: block;
    color: var(--brand-dark);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.som-summary span {
    display: block;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.94rem;
}

.som-grid > .content > .card {
    border-radius: 8px;
}

.content-doc {
    overflow-wrap: anywhere;
}

.content-doc .callout {
    font-style: normal;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

@media (max-width: 900px) {
    .som-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-hero-actions .ui-btn,
    .som-actions .ui-btn,
    .som-actions button,
    .s-sacrament-nav a {
        width: 100%;
    }

    .contact-wrapper {
        gap: 20px;
    }

    .contact-info,
    .contact-form {
        min-width: 0;
    }

    .som-hero,
    .contact-hero,
    .s-page-hero {
        padding: 22px 18px;
    }
}

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

html,
body {
    background:
        linear-gradient(180deg, #eef6ff 0%, #f7fbff 34%, #ffffff 62%, #f7fbff 100%);
    color: var(--ink);
    margin: 0;
    font-family: Arial, system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body,
input,
textarea,
select,
button {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body * {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

button,
a,
label,
nav {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    background:
        linear-gradient(125deg, var(--brand-dark) 0%, #1556bf 55%, #0f766e 100%);
    border-bottom: 2px solid rgba(242, 183, 5, 0.95);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, transparent 0 38%, rgba(242, 183, 5, 0.12) 38% 39%, transparent 39% 100%);
    pointer-events: none;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.header-logo img {
    width: 90px;
    height: 90px;
    border: 3px solid var(--gold);
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.header-brand {
    text-align: left;
}

.header-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-subtitle {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-nav {
    background: rgba(6, 24, 58, 0.28);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.header-nav .container {
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav ul li {
    margin: 0;
}

nav a {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid transparent;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    transform: translateY(-2px);
}

nav a.active {
    background: var(--gold);
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(242, 183, 5, 0.36);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ogloszenie-box,
.intencje-box,
.wazne-box,
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.05);
}

.gap-top {
    margin-top: 24px;
}

.ogloszenie-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px;
}

.intencje-dzisiaj .godzina {
    font-weight: 700;
    color: var(--brand);
    margin-right: 6px;
}

.zobacz-wiecej {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: var(--brand);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
}

.zobacz-wiecej:hover {
    background: #152c6e;
}

.k-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.k-item h3 {
    margin: 0.2rem 0;
    font-size: 1.05rem;
    color: var(--brand);
    font-family: 'Lora', serif;
}

.k-item .meta {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.k-item a {
    text-decoration: none;
}

.k-item a:hover h3 {
    text-decoration: underline;
}

.ostatnie-zdjecia .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    padding: 12px;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8), transparent);
    text-align: center;
    font-family: 'Lora', serif;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

.slider-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #bbbbbb;
    display: inline-block;
    margin: 0 5px;
}

.dot.active {
    background: var(--brand);
}

.fab-admin {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    text-decoration: none;
    z-index: 9800;
    color: #ffffff;
    background: rgba(30, 58, 138, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0.75;
}

.fab-admin:hover {
    opacity: 1;
    background: var(--brand);
}

.maint-note {
    background: #fff9db;
    border: 1px solid #ffe69c;
    border-left: 6px solid #d4af37;
    color: #4a3b00;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 14px auto;
    max-width: 1200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.maint-note strong {
    color: #593200;
}

.ui-page {
    max-width: 1120px;
    width: 100%;
    margin: 32px auto 54px;
    padding: 0 20px;
    box-sizing: border-box;
}

.ui-page--wide {
    max-width: 1200px;
}

.ui-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 24px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    margin-bottom: 24px;
}

.ui-eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ui-title {
    margin: 0 0 12px;
    color: var(--brand);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.ui-lead {
    margin: 0;
    color: var(--ink);
    font-family: 'Lora', serif;
    line-height: 1.72;
    font-size: 1.05rem;
}

.ui-panel,
.ui-stat,
.ui-card,
.ui-toolbar {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ui-panel,
.ui-stat {
    background: #f8fafc;
    padding: 14px 16px;
}

.ui-panel strong,
.ui-stat strong {
    display: block;
    color: var(--brand);
    line-height: 1.25;
}

.ui-panel strong {
    font-family: 'Lora', serif;
    margin-bottom: 8px;
}

.ui-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 0.94rem;
}

.ui-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ui-stat span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ui-stat strong {
    font-size: 1.35rem;
    margin-top: 4px;
}

.ui-toolbar {
    padding: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
    margin-bottom: 26px;
}

.ui-filter,
.ui-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ui-actions--center {
    justify-content: center;
    margin: 28px 0 34px;
}

.ui-actions--separated {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.ui-filter input[type="text"],
.ui-filter select {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
}

.ui-filter input[type="text"] {
    flex: 1 1 260px;
}

.ui-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.95rem;
    cursor: pointer;
}

.ui-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.ui-meta-line {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.ui-grid {
    display: grid;
    gap: 18px;
}

.ui-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ui-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin-top: 24px;
}

.ui-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ui-back {
    margin-bottom: 24px;
}

.ui-back a,
.ui-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.ui-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ui-back a:hover,
.ui-link:hover {
    color: var(--gold);
}

.ui-stack {
    display: grid;
    gap: 18px;
}

.ui-list-item {
    padding: 20px 0;
    border-bottom: 1px dashed var(--line);
}

.ui-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ui-card {
    padding: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.ui-card--row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
}

.ui-card--link {
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ui-card--flush {
    padding: 0;
    overflow: hidden;
}

.ui-card--link:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 58, 138, 0.24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ui-card--accent {
    border-left: 5px solid var(--gold);
    background: linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
}

.ui-card--muted {
    border-style: dashed;
    background: #fbfdff;
}

.ui-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ui-card-body--large {
    padding: 32px;
}

.ui-card-footer {
    padding: 13px 18px;
    border-top: 1px solid #f3f4f6;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-card-title,
.ui-section-title {
    color: var(--brand);
    font-family: 'Lora', serif;
    letter-spacing: 0;
}

.ui-card-title {
    margin: 0 0 9px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.ui-title--article {
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.ui-section-title {
    margin: 0 0 18px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
}

.ui-subtitle {
    display: block;
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #64748b;
}

.ui-card-heading {
    margin: 0 0 18px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 12px;
}

.ui-card-heading svg {
    color: var(--gold);
    flex: 0 0 auto;
}

.ui-card-date {
    margin-left: auto;
    color: #64748b;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.ui-card-count {
    color: #64748b;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.ui-meta {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 9px;
}

.ui-meta--inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    text-transform: none;
}

.ui-meta--inline svg {
    color: var(--gold);
}

.ui-text {
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.62;
}

.ui-note {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: -4px 0 18px;
}

.ui-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #eff6ff;
}

.ui-icon--amber {
    color: #92400e;
    background: #fffbeb;
}

.ui-icon--green {
    color: #047857;
    background: #ecfdf5;
}

.ui-icon--rose {
    color: #be123c;
    background: #fff1f2;
}

.ui-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.ui-pill--date {
    background: #eff6ff;
    color: var(--brand);
}

.ui-pill--quiet {
    background: #f1f5f9;
    color: #475569;
}

.ui-pill--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fee2e2;
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    padding: 9px 16px;
    background: var(--brand);
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--brand);
}

.ui-btn:hover {
    background: #152c6e;
    border-color: #152c6e;
}

.ui-btn--outline {
    background: #ffffff;
    color: var(--ink) !important;
    border-color: var(--line);
}

.ui-btn--outline:hover {
    background: #f8fafc;
    color: var(--brand) !important;
    border-color: var(--brand);
}

.ui-btn--gold {
    background: var(--gold);
    border-color: var(--gold);
}

.ui-btn--gold:hover {
    background: #b8962e;
    border-color: #b8962e;
}

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

.ui-step-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--ink);
    line-height: 1.55;
}

.ui-step-number {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
}

.ui-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #eef2f7;
}

.ui-media--article img {
    max-height: 480px;
}

.ui-media--zoom img,
.ui-card--link .ui-media img {
    transition: transform 0.5s ease;
}

.ui-media--zoom:hover img,
.ui-card--link:hover .ui-media img {
    transform: scale(1.04);
}

.ui-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ui-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(30, 58, 138, 0.65);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(212, 175, 55, 0.16)), #f8fafc;
}

.ui-media-placeholder svg {
    width: 42px;
    height: 42px;
}

.ui-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #b91c1c;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 2;
}

.ui-event {
    border-top: 1px dashed var(--line);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.ui-event:first-of-type {
    border-top: 0;
    padding-top: 4px;
}

.ui-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.ui-prose {
    flex: 1 1 260px;
    min-width: 0;
    line-height: 1.65;
    color: var(--ink);
}

.ui-prose--article {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 28px;
}

.ui-prose p {
    margin: 0 0 8px;
}

.ui-prose p:last-child,
.ui-prose ol:last-child,
.ui-prose ul:last-child {
    margin-bottom: 0;
}

.ui-prose ol,
.ui-prose ul {
    margin: 4px 0;
    padding-left: 22px;
}

.ui-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 38px 20px;
    margin: 0;
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.ui-neighbours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.ui-link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.03);
}

.ui-link-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}

.ui-link-card--right {
    text-align: right;
}

.ui-link-card span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0;
}

.ui-link-card strong {
    font-weight: 700;
    color: var(--brand);
    margin-top: 6px;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
}

.ui-contact-line {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--ink);
}

.ui-contact-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border-radius: 50%;
    color: var(--brand);
}

.ui-contact-line a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.ui-contact-line a:hover {
    color: var(--brand);
}

.ui-muted {
    color: #64748b;
}

.ui-full-width {
    width: 100%;
    box-sizing: border-box;
}

.ui-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.ui-photo-link {
    display: block;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.05);
    position: relative;
    background: #eef2f7;
}

.ui-photo-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.ui-photo-link:hover::after {
    background: rgba(30, 58, 138, 0.15);
}

.ui-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ui-photo-link:hover img {
    transform: scale(1.05);
}

[data-animate="reveal"] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-animate="reveal"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-hero [data-animate="reveal"] {
    transform: translateY(16px);
}

.ui-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 32px 0 10px;
    flex-wrap: wrap;
}

.ui-pagination a {
    min-width: 42px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
}

.ui-pagination a.active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.site-footer {
    background-color: #0f172a;
    border-top: 3px solid var(--gold);
    padding: 40px 0 30px;
    color: #94a3b8;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-left p {
    margin: 0 0 8px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 5px !important;
}

.footer-contact {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer-contact svg {
    color: var(--gold);
    flex-shrink: 0;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-policy {
    margin-top: 12px;
}

.footer-policy a {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9900;
    transform: translateY(150%) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    border-left: 4px solid var(--brand);
}

.cookie-banner.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.cookie-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--brand);
}

.cookie-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.cookie-buttons {
    text-align: right;
    width: 100%;
}

.cookie-button {
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15);
    width: auto;
}

.cookie-button:hover {
    background: var(--gold);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.2);
}

@media (max-width: 960px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ui-hero,
    .ui-split {
        grid-template-columns: 1fr;
    }

    .ui-sidebar {
        position: static;
    }

    .ui-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .header-brand {
        text-align: center;
    }

    .header-logo img {
        width: 78px;
        height: 78px;
    }

    .header-subtitle {
        font-size: 0.8rem;
    }

    .slide img {
        height: 200px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ui-page {
        padding: 0 14px;
        margin-top: 24px;
    }

    .ui-hero,
    .ui-card {
        padding: 18px;
    }

    .ui-card--link {
        padding: 0;
    }

    .ui-card--row {
        grid-template-columns: 1fr;
    }

    .ui-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ui-filter input[type="text"],
    .ui-filter select,
    .ui-checkbox,
    .ui-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .ui-card-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ui-card-date,
    .ui-card-count {
        width: 100%;
        margin-left: 32px;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 16px;
        gap: 14px;
    }

    .cookie-button {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media print {
    .ui-hero,
    .ui-actions,
    .ui-toolbar,
    .today,
    header,
    footer,
    #cookieBanner,
    .fab-admin {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .ui-page {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ui-card {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        page-break-inside: avoid;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .ui-time {
        border: 0 !important;
        padding: 0 !important;
        font-size: 1.05rem !important;
    }

    .ui-section-title {
        font-size: 1.5rem !important;
    }
}


/* Migrated page styles: index.php */
/* DEDYKOWANE STYLE DLA STRONY GŁÓWNEJ */
.home-hero {
    position: relative;
    min-height: clamp(420px, 56vw, 620px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #102a6b;
}

.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.58) 42%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.68) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 52px 20px;
    color: #ffffff;
}

.home-hero-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.88rem;
}

.home-hero h1 {
    max-width: 780px;
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.home-hero-lead {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Lora', serif;
    font-size: 1.12rem;
    line-height: 1.7;
}

.home-hero-actions,
.home-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.home-hero-actions {
    margin-top: 24px;
}

.home-hero-actions .ui-btn--outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(8px);
}

.home-hero-actions .ui-btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.65);
}

.home-hero-facts {
    margin-top: 18px;
}

.home-hero-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.36);
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    backdrop-filter: blur(8px);
}

.main-container .content h2, 
.main-container .sidebar h2,
.ogloszenie-box h3,
.k-item h3 {
    font-family: 'Lora', 'Playfair Display', serif;
    color: var(--brand);
}

.home-main {
    align-items: flex-start;
    gap: 28px;
    max-width: 1220px;
    margin: 32px auto 48px;
    padding: 0 20px;
}

.home-main .content {
    min-width: 0;
}

.home-main .card {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.home-main .content > .card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.home-main .content > .card > h2,
.home-section-heading {
    margin-top: 0;
    letter-spacing: 0;
}

.ogloszenie-box {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.ogloszenie-box:last-child { border-bottom: none; }

.home-announcement {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.home-announcement:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.home-announcement > div:only-child {
    grid-column: 1 / -1;
}

.home-announcement-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid var(--line);
}

.home-announcement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-announcement-meta,
.home-kicker {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    margin-bottom: 7px;
}

.home-announcement-title {
    margin: 0 0 8px;
    font-size: 1.24rem;
    line-height: 1.3;
    color: var(--brand);
}

.home-announcement-text {
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.58;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
}

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

.home-intention-list {
    display: grid;
    gap: 10px;
}

.home-intention-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 0;
    border-top: 1px dashed var(--line);
}

.home-intention-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.home-intention-time {
    min-width: 58px;
    display: inline-flex;
    justify-content: center;
    background: #eff6ff;
    color: var(--brand);
    padding: 5px 9px;
    border-radius: 7px;
    font-weight: 800;
    font-size: 0.88rem;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.home-intention-copy {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

.home-more-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.intencja-item .godzina {
    display: inline-block;
    background: #eff6ff;
    color: var(--brand);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 8px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.home-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    color: #64748b;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.home-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--brand);
}

.home-summary-main svg {
    color: var(--gold);
}

.home-summary-meta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.home-summary-link {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.home-summary-link:hover {
    color: var(--gold);
}

.home-summary-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.home-catechesis {
    margin: 0;
    padding: 16px;
    background: #eff6ff;
    border-radius: 8px;
}

.home-catechesis-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

.home-catechesis-link {
    text-decoration: none;
}

.home-catechesis-link h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    transition: color 0.2s;
}

.home-catechesis-link:hover h3 {
    color: var(--gold);
}

.home-catechesis p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.home-catechesis-cta {
    margin-top: 16px;
}

.home-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-gallery-action {
    text-align: center;
}

.side-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
}

.side-empty {
    margin: 0;
}

.section-action-full,
.home-contact-cta {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.section-action-full {
    margin-top: 14px;
}

.home-contact-cta {
    display: block;
    margin-top: 18px;
}

.contact-phone-link,
.sidebar-contact-link-strong {
    font-weight: 700;
}

.sidebar-contact-link-strong {
    font-size: 1.05rem;
}

.side-news-list {
    display: grid;
    gap: 12px;
}

.side-news-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.side-news-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.side-news-date {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.side-news-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.35;
    font-family: 'Lora', serif;
}

.side-news-link:hover {
    color: var(--gold);
}

.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 14px;
    background: #ffffff;
}

.section-action:hover {
    border-color: var(--brand);
    background: #eff6ff;
}

.home-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.side-card {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.side-card-body {
    padding: 18px;
}

.side-card-title {
    margin: 0;
    padding: 14px 18px;
    font-size: 1.16rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.important-card {
    border-color: rgba(212, 175, 55, 0.85);
}

.important-card .side-card-title {
    background: linear-gradient(135deg, var(--brand), #23489d);
    color: #ffffff;
    border-bottom: 0;
}

.important-card .side-card-title svg {
    color: var(--gold);
}

.important-title {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: var(--brand);
    font-family: 'Lora', serif;
}

.important-text {
    font-size: 0.94rem;
    margin: 0 0 12px;
    line-height: 1.58;
    color: var(--ink);
}

.side-muted {
    color: #64748b;
    font-size: 0.86rem;
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.94rem;
    line-height: 1.5;
}

.contact-row.is-center {
    align-items: center;
}

.contact-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #eff6ff;
    border-radius: 9px;
    color: var(--brand);
}

.contact-label {
    display: block;
    color: var(--brand);
    font-family: 'Lora', serif;
    font-weight: 700;
}

.contact-row a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.contact-row a:hover {
    color: var(--brand);
}

.local-partner-list {
    display: grid;
    gap: 10px;
}

.local-partner-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
    color: var(--ink);
}

.local-partner-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--brand);
    background: #eff6ff;
}

.local-partner-item[data-tone="red"] .local-partner-mark {
    color: #b91c1c;
    background: #fef2f2;
}

.local-partner-item[data-tone="green"] .local-partner-mark {
    color: #047857;
    background: #ecfdf5;
}

.local-partner-item[data-tone="gold"] .local-partner-mark {
    color: #92400e;
    background: #fffbeb;
}

.local-partner-name {
    display: block;
    color: var(--brand);
    font-weight: 800;
    margin-bottom: 3px;
}

.local-partner-desc {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .home-hero {
        min-height: 520px;
    }

    .home-hero-overlay {
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.24) 0%, rgba(15, 23, 42, 0.88) 100%);
    }

    .home-hero-content {
        padding: 42px 14px;
    }

    .home-hero-actions .ui-btn {
        flex: 1 1 150px;
    }

    .home-announcement {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-sidebar {
        position: static;
    }
}


/* Migrated page styles: historia.php */
/* --- SYSTEM ARCHITEKTURY WIZUALNEJ (PREMIUM) --- */
.h-container {
    max-width: 950px;
    margin: 64px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 64px; 
}

/* Zaawansowane animacje Scroll-Reveal */
.animate-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.h-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-card:hover {
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.06);
    transform: translateY(-2px);
}

.h-section-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 16px;
    margin-top: 0;
    margin-bottom: 32px;
    font-size: 2.1rem;
    letter-spacing: 0.4px;
}

.h-content {
    font-family: 'Lora', serif;
    line-height: 1.95;
    color: var(--ink);
    font-size: 1.08rem;
}

.h-content p {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
}
.h-content p:last-child {
    margin-bottom: 0;
}

/* --- OPTYKA I PARALLAX-ZOOM --- */
.h-figure {
    margin: 40px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.h-img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-figure:hover .h-img-zoom,
.h-grid-item:hover .h-img-zoom,
.h-split-aside:hover .h-img-zoom {
    transform: scale(1.04);
}

.h-caption {
    padding: 16px;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

/* --- STRUKTURA FLEX / SPLIT --- */
.h-split-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.h-split-text {
    flex: 1;
}

.h-split-aside {
    width: 280px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.h-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.h-grid-item {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* --- KUNSZTOWNA SEKCJA DZWONÓW (GLASSMORPHISM) --- */
.bell-intro-box {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 5px solid var(--gold);
    padding: 28px;
    border-radius: 0 20px 20px 0;
    margin-bottom: 44px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.bells-flex-wrapper {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.bell-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(8px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
}

.bells-flex-wrapper.is-visible .bell-card {
    opacity: 1;
    transform: translateY(0);
}
.bells-flex-wrapper.is-visible .bell-card:nth-child(1) { transition-delay: 0.15s; }
.bells-flex-wrapper.is-visible .bell-card:nth-child(2) { transition-delay: 0.35s; }
.bells-flex-wrapper.is-visible .bell-card:nth-child(3) { transition-delay: 0.55s; }

.bell-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.09);
}

.bell-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.bell-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.bell-tag {
    background: #eff6ff;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bell-tag.tone {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.bell-inscription {
    font-style: italic;
    color: #1e293b;
    background: #f8fafc;
    padding: 20px;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.6;
    margin: 24px 0 0 0;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    flex: 1;
}

/* Wizualizacja akordu aktywnego */
.chord-wave-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 20px;
    margin-top: 16px;
    opacity: 0.4;
}
.chord-wave-bar span {
    display: inline-block;
    width: 3px;
    background: var(--brand);
    border-radius: 50px;
    animation: wavePulse 1.2s infinite ease-in-out;
}
.chord-wave-bar span:nth-child(1) { height: 100%; animation-delay: 0.1s; }
.chord-wave-bar span:nth-child(2) { height: 60%; animation-delay: 0.4s; }
.chord-wave-bar span:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.chord-wave-bar span:nth-child(4) { height: 40%; animation-delay: 0.6s; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* --- LISTY SAKRALNE I PRZYCISKI --- */
.h-list {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
    background: #f8fafc;
    padding: 32px 32px 32px 44px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.h-list li {
    margin-bottom: 18px;
    position: relative;
}
.h-list li:last-child {
    margin-bottom: 0;
}

.h-list li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    font-size: 1.6rem;
    position: absolute;
    left: -22px;
    top: -5px;
}

.h-list li strong {
    color: var(--brand);
}

.h-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--brand);
    color: #ffffff !important;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}
.h-btn:hover {
    background: var(--gold);
    color: var(--brand) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}
.h-btn svg {
    transition: transform 0.3s ease;
}
.h-btn:hover svg {
    transform: translateX(4px);
}

/* --- ZŁOTY BLOK NA KSIĄŻKĘ I CYTATY --- */
.book-highlight {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid #d97706;
    padding: 32px;
    border-radius: 16px;
    margin-top: 32px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
}
.book-highlight h3 {
    font-family: 'Playfair Display', serif;
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 1.4rem;
}
.book-highlight p {
    color: #78350f;
    margin: 0;
    line-height: 1.7;
}

.mary-quote {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
    position: relative;
}
.mary-quote::before {
    content: "„";
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
}

/* --- EXTREME PREMIUM: PLANSZA "W BUDOWIE" --- */
.uc-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 40px 20px;
}
.under-construction {
    max-width: 650px;
    width: 100%;
    padding: 56px 40px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.06);
    position: relative;
    z-index: 1;
}
.uc-icon-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #eff6ff;
    border-radius: 50%;
    color: var(--brand);
    margin-bottom: 24px;
    animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.uc-icon-pulse svg {
    width: 42px;
    height: 42px;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.uc-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    font-size: 2.2rem;
    margin: 0 0 16px 0;
}
.uc-text {
    font-family: 'Lora', serif;
    color: var(--ink);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

@media (max-width: 850px) {
    .h-split-row, .h-image-grid, .bells-flex-wrapper {
        flex-direction: column;
        gap: 28px;
    }
    .h-split-aside {
        width: 100%;
    }
    .h-image-grid {
        grid-template-columns: 1fr;
    }
    .h-card {
        padding: 32px 20px;
    }
    .under-construction {
        padding: 40px 24px;
    }
}


/* Migrated page styles: kontakt.php */
/* --- DEDYKOWANE STYLE PREMIUM DLA KONTAKTU --- */

/* Animacje wejścia */
.animate-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-info:hover, .contact-form:hover {
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.06);
    transform: translateY(-2px);
}

.contact-info {
    border-top: 5px solid var(--gold);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}
.contact-form {
    border-top: 5px solid var(--brand);
}

.c-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--brand);
    margin-top: 0;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

.c-info-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}
.c-info-box:hover {
    transform: translateX(6px);
}

.c-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 50%;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}
.c-info-box:hover .c-info-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand);
    color: var(--gold);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
}

.c-info-text {
    padding-top: 4px;
}
.c-info-text strong {
    display: block;
    color: var(--brand);
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.c-info-text p, .c-info-text a {
    color: var(--ink);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s;
}

.c-info-text a:hover {
    color: var(--gold);
}

.bank-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    padding: 24px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.bank-card strong {
    color: #854d0e;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}
.bank-card p {
    margin: 0;
    font-family: monospace;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: 1px;
}

/* --- FORMULARZ PREMIUM --- */
.c-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--ink);
    background-color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.c-input:focus {
    outline: none;
    border-color: var(--brand);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

.c-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
    margin-left: 4px;
}

.c-btn {
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 18px 36px;
    border-radius: 50px; 
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.2);
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.c-btn:hover {
    background: var(--gold);
    color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}
.c-btn svg {
    transition: transform 0.3s ease;
}
.c-btn:hover svg {
    transform: translateX(4px) translateY(-4px);
}

.c-alert {
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 28px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    line-height: 1.5;
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.c-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
}

.c-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.1);
}

/* --- MAPA GOOGLE --- */
.map-container {
    padding: 0;
    overflow: hidden;
    height: 480px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.05);
    border: 1px solid var(--line);
    position: relative;
}

.map-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--brand);
    pointer-events: none;
    border-left: 3px solid var(--gold);
}

@media (max-width: 850px) {
    .contact-info, .contact-form { padding: 36px 24px; }
}


/* Migrated page styles: sakramenty.php */
/* --- SYSTEM ARCHITEKTURY WIZUALNEJ (PREMIUM) --- */
.s-container {
    max-width: 950px;
    margin: 64px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 56px; 
}

/* Animacje wejścia */
.animate-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.s-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.02);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.s-card:hover {
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.06);
    transform: translateY(-2px);
}

.s-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 24px;
}

.s-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    color: var(--brand);
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 4px 10px rgba(30, 58, 138, 0.1);
}

.s-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    font-size: 2.2rem;
    margin: 0;
}

.s-content {
    font-family: 'Lora', serif;
    line-height: 1.85;
    color: var(--ink);
    font-size: 1.05rem;
}
.s-content p {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Listy dokumentów */
.doc-list {
    margin: 24px 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.doc-list li {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    transition: transform 0.2s ease;
}
.doc-list li:hover {
    transform: translateX(4px);
    border-left-color: var(--gold);
}
.doc-list li svg {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}
.doc-list li strong {
    display: block;
    color: #1e293b;
    margin-bottom: 4px;
}

/* Specjalny blok dla regulaminu muzyki */
.music-alert {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
    padding: 32px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
}
.music-alert h4 {
    font-family: 'Playfair Display', serif;
    color: #92400e;
    font-size: 1.4rem;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.music-alert p {
    color: #78350f;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}
.music-alert p:last-child {
    margin-bottom: 0;
}
.music-rule-list {
    margin: 20px 0;
    padding-left: 20px;
    color: #92400e;
    font-weight: 500;
}
.music-rule-list li {
    margin-bottom: 8px;
}
.music-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b45309;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: sans-serif;
    margin-top: 12px;
    transition: background 0.3s;
}
.music-link-btn:hover {
    background: #92400e;
}

@media (max-width: 768px) {
    .s-card { padding: 32px 24px; }
    .s-card-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .s-title { font-size: 1.8rem; }
    .doc-list { grid-template-columns: 1fr; }
    .music-alert { padding: 24px; }
}


/* Migrated page styles: modlitewnik.php */
/* ================= STYL MARYJNY DLA MODLITEWNIKA ================= */
    .missal-container {
        max-width: 900px; 
        margin: 40px auto; 
        padding: 0 20px;
    }

    /* Nagłówek główny */
    .missal-header {
        text-align: center;
        border-bottom: 3px solid var(--gold);
        padding-bottom: 20px;
        margin-bottom: 40px;
    }
    
    .missal-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2.8rem;
        color: var(--brand);
        font-weight: 700;
        margin: 0 0 10px 0;
    }

    .missal-header p {
        font-family: 'Lora', serif;
        font-style: italic;
        color: #64748b;
        font-size: 1.15rem;
        margin: 0;
    }

    /* Narzędzia (Wyszukiwarka i rozmiar) */
    .tools-bar {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px 24px;
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 15px rgba(30, 58, 138, 0.05);
    }

    .search-wrapper {
        position: relative;
        flex: 1;
        min-width: 250px;
    }

    .search-wrapper input {
        width: 100%;
        padding: 12px 16px 12px 40px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        color: var(--ink);
        background: #f8fafc;
        transition: all 0.2s;
        box-sizing: border-box;
    }

    .search-wrapper input:focus {
        outline: none;
        border-color: var(--brand);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }

    .search-wrapper svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .text-size-tools {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .text-size-tools span {
        color: #64748b;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-right: 4px;
    }

    .tools-bar button {
        background: var(--brand);
        color: #fff;
        border: none;
        border-radius: 6px;
        padding: 8px 14px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .tools-bar button:hover { background: #152c6e; }
    .tools-bar button.btn-minus { background: #64748b; }
    .tools-bar button.btn-minus:hover { background: #475569; }

    /* Kategorie i Modlitwy */
    .kategoria-tytul {
        font-family: 'Playfair Display', serif;
        color: var(--brand);
        font-size: 1.8rem;
        font-weight: 600;
        border-bottom: 2px solid var(--line);
        padding-bottom: 8px;
        margin: 40px 0 20px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .kategoria-tytul svg { color: var(--gold); }

    details.prayer-item {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 10px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        transition: all 0.2s;
    }

    details.prayer-item:hover {
        border-color: rgba(212, 175, 55, 0.4);
    }

    details.prayer-item summary {
        padding: 16px 20px;
        font-size: 1.15rem;
        font-weight: 600;
        font-family: 'Lora', serif;
        cursor: pointer;
        list-style: none;
        position: relative;
        color: var(--brand);
    }

    details.prayer-item summary::-webkit-details-marker { display: none; }
    
    details.prayer-item summary::after {
        content: "▼";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gold);
        font-size: 1rem;
        font-family: sans-serif;
    }
    
    details.prayer-item[open] summary::after { content: "▲"; }
    details.prayer-item[open] summary { border-bottom: 1px dashed var(--line); }

    .prayer-content {
        padding: 24px;
        font-size: 1.15rem;
        line-height: 1.8;
        font-family: 'Lora', serif;
        color: var(--ink);
        white-space: pre-wrap;
    }

    /* Wyróżnienia w tekście (np. odpowiedzi wiernych) */
    .response {
        font-weight: bold;
        color: var(--brand);
    }
    
    .rubric {
        color: #b91c1c; /* Czerwony kolor dla wskazówek liturgicznych */
        font-style: italic;
        font-size: 0.9em;
    }


/* Migrated page styles: nowenna.php */
/* Dedykowane style dla sekcji Nowenny pasujące do nowego motywu */
.n-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    margin-top: 0;
}

.n-subtitle {
    font-family: 'Lora', serif;
    color: var(--brand);
    margin-top: 0;
    margin-bottom: 12px;
}

.n-status-box {
    background: linear-gradient(to bottom, #ffffff, #eff6ff);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.05);
}

.n-guide-block {
    background: #eff6ff; 
    border-left: 5px solid var(--brand); 
    padding: 24px; 
    border-radius: 4px 12px 12px 4px; 
    margin: 24px 0;
}

.n-guide-block p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
}

.n-guide-block em {
    display: block;
    margin-top: 14px;
    font-family: 'Lora', serif;
    color: #1e293b;
}

.n-list {
    line-height: 1.8; 
    color: var(--ink); 
    padding-left: 20px; 
    margin-bottom: 25px;
}

.n-list li strong {
    color: var(--brand);
}

.n-alert {
    background: #fffbeb; 
    border: 1px solid #fef08a; 
    padding: 16px; 
    border-radius: 10px; 
    color: #854d0e; 
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.n-alert svg {
    color: var(--gold);
    flex-shrink: 0;
}

.sidebar-contact-link {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s;
}
.sidebar-contact-link:hover {
    color: var(--brand);
}


/* Migrated page styles: transmisje.php */
/* Animacja czerwonej kropki "Na żywo" */
@keyframes blink-red { 
    0% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.4; transform: scale(1.1); } 
    100% { opacity: 1; transform: scale(1); } 
}

/* Kafelki w archiwum */
.archive-card {
    display: block; 
    text-decoration: none; 
    background: #ffffff; 
    border: 1px solid var(--line); 
    border-radius: 16px; 
    padding: 24px; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.archive-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.08);
}
.yt-btn {
    background: #fef2f2; 
    color: #dc2626; 
    font-weight: 600; 
    text-decoration: none; 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-size: 0.95rem; 
    border: 1px solid #fca5a5; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.2s;
}
.yt-btn:hover {
    background: #dc2626;
    color: #ffffff;
}


/* Migrated page styles: informacje.php */
.progress-bar { position:fixed; top:0; left:0; height:4px; background:var(--brand); z-index:9999; width:0%; transition: width 0.1s; }
    
    /* Główne kolumny: 1fr dla tekstu i stała szerokość dla paska bocznego */
    .som-grid { 
        display: grid; 
        grid-template-columns: 1fr 320px; 
        gap: 30px; 
        align-items: start; 
    }

    .content-doc { font-size: 1.1rem; line-height: 1.8; color: #2d3748; }
    .content-doc p { margin: 1.2em 0; text-align: justify; }
    .content-doc ul, .content-doc ol { margin: 1.2em 0 1.2em 1.5em; }
    .content-doc h3 { color: var(--brand); margin-top: 1.5em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
    
    .callout { border-left:5px solid var(--brand); background:#f0f4ff; padding:20px; border-radius:4px 12px 12px 4px; margin:2em 0; font-style: italic; color: #334155; }
    
    .table-wrapper { width: 100%; overflow-x: auto; margin: 1.5em 0; border-radius: 12px; border: 1px solid var(--line); }
    table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
    th, td { border: 1px solid var(--line); padding: 12px 15px; text-align: left; }
    th { background: #f8fafc; color: var(--brand); font-weight: 700; }

    .sidebar-section { margin-bottom: 25px; }
    .sidebar-section h3 { font-size: 1.1rem; margin: 0 0 12px 0; color: var(--ink); border-bottom: 2px solid var(--bg); padding-bottom: 8px; }

    .quick-list { list-style: none; padding: 0; margin: 0; }
    .quick-list a { display: block; padding: 10px 14px; background: #f8fafc; border-radius: 8px; text-decoration: none; color: var(--ink); transition: all .2s; font-size: 0.95rem; margin-bottom: 6px; border: 1px solid var(--line); }
    .quick-list a:hover { background: #eff6ff; color: var(--brand); border-color: var(--brand); transform: translateX(5px); }

    .toc ol { padding-left: 20px; margin: 0; }
    .toc li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.4; }
    .toc a { text-decoration: none; color: #4b5563; transition: all .2s; }
    .toc a:hover, .toc a.active { color: var(--brand); font-weight: 700; }

    .anchor-target { scroll-margin-top: 120px; }

    @media (max-width: 1024px) {
        .som-grid { grid-template-columns: 1fr; }
        .sidebar { order: 2; }
        .content { order: 1; }
    }

    @media print { 
        .sidebar, .progress-bar, .toolbar, header, footer { display:none !important; } 
        .som-grid { display: block; } 
        .card { border: none; box-shadow: none; }
        .content-doc { font-size: 12pt; }
    }


/* Migrated page styles: polityka.php */
/* Dedykowany styl dla dokumentu Polityki Prywatności */
.policy-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 2rem;
}

.policy-subtitle {
    font-family: 'Lora', serif;
    color: var(--brand);
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.policy-content {
    line-height: 1.8; 
    color: var(--ink); 
    font-size: 1.05rem;
}

.policy-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

.policy-list {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-list li {
    margin-bottom: 8px;
}

.policy-list li strong {
    color: var(--brand);
}

.policy-mail {
    color: var(--brand); 
    text-decoration: none; 
    font-weight: 600;
    border-bottom: 1px dashed var(--brand);
}
.policy-mail:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}


/* Migrated page styles: 404.php */
/* Dedykowane style dla eleganckiej strony 404 */
.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.error-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Złota górna linijka akcentująca */
.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.error-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    margin: 0 auto 24px auto;
}

.error-icon-wrapper svg {
    color: var(--gold);
}

.error-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--brand);
    margin: 0 0 10px 0;
    line-height: 1;
    font-weight: 700;
}

.error-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--ink);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.error-text {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 50px; /* Pigułka */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.error-btn:hover {
    background: #152c6e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}


/* Migrated inline styles from public PHP */
.u-style-d878412288 { display: inline-flex; }
.u-style-d02c752288 { margin-right: 8px; transform: none; }
.u-style-990db95ba3 { max-width: 950px; margin: 32px auto -16px; padding: 0 20px; }
.u-style-ad2ea4e16c { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 10px rgba(30, 58, 138, 0.05); }
.u-style-cad980f4b7 { width:100%; }
.u-style-fabe3fd802 { font-size: 1.15rem; color: #1e293b; margin: 0; font-style: italic; line-height: 1.8; }
.u-style-86769c5f5a { margin: 0; height: 100%; display: flex; flex-direction: column; }
.u-style-5d8dc00d8e { flex: 1; object-fit: cover; }
.u-style-b5dec29717 { border-top: none; }
.u-style-886113f4cf { height: 250px; object-fit: cover; border-bottom: 1px solid var(--line); }
.u-style-ff227d0632 { margin: 0; }
.u-style-8d703344e0 { margin-bottom: 24px; }
.u-style-6510746038 { margin: 0; text-align: center; overflow:hidden; border-radius:10px; }
.u-style-323e43a302 { height: 200px; object-fit: contain; background: #fafafa; width: 100%; padding: 4px; }
.u-style-8b423f0424 { margin-top: 40px; background: #fffbeb; border: 1px solid #fef08a; padding: 28px; border-radius: 16px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 4px 15px rgba(254, 240, 138, 0.3); }
.u-style-795fe86686 { color: var(--gold); flex-shrink: 0; padding-top: 2px; }
.u-style-9e6522cc07 { margin: 0 0 8px 0; font-family: 'Playfair Display', serif; color: #854d0e; font-size: 1.25rem; font-weight: bold; }
.u-style-b352febfd3 { margin: 0; font-size: 1.05rem; color: #713f12; line-height: 1.7; }
.u-style-00555fe8dc { border-left: 6px solid var(--brand); background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%); }
.u-style-0402dfd250 { border-bottom: none; padding-bottom: 0; margin-bottom: 16px; }
.u-style-3a55a5d47b { margin-top: 40px; }
.u-style-21e620cf3e { max-width:1150px; margin:56px auto; padding:0 20px; }
.u-style-648149cea2 { margin-bottom: 0; }
.u-style-c789d3a633 { border:0; border-top:1px dashed var(--line); margin: 36px 0; }
.u-style-7f95c567e1 { background: #f8fafc; padding: 24px; border-radius: 14px; border-left: 4px solid var(--gold); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.u-style-3c31593fd4 { color: var(--brand); display: block; margin-bottom: 8px; font-family: 'Lora', serif; font-size: 1.15rem; }
.u-style-d6764e7159 { color: var(--ink); font-size: 1rem; line-height: 1.6; display: block; }
.u-style-f38a951c89 { flex-shrink:0; }
.u-style-849a9729f1 { display:flex; flex-direction:column; gap:24px; }
.u-style-62e36bc5ad { position: absolute; left: -5000px; }
.u-style-bfd952331a { min-height:180px; resize:vertical; }
.u-style-93420d7878 { border:0; }
.u-style-a89265e7d6 { text-align: center; margin-bottom: 16px; }
.u-style-55561adcb0 { font-family: 'Playfair Display', serif; color: var(--brand); font-size: 2.8rem; margin: 0 0 16px 0; }
.u-style-deb9b1f398 { font-family: 'Lora', serif; font-size: 1.15rem; color: #475569; max-width: 700px; margin: 0 auto; line-height: 1.7; }
.u-style-80e7f3b0fe { color: var(--brand); font-family: 'Playfair Display', serif; margin: 32px 0 16px; }
.u-style-77a1607d77 { font-size: 0.95rem; color: #64748b; margin-top: 16px; }
.u-style-f904b463d8 { border-bottom-color: #e2e8f0; }
.u-style-106265e78d { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); color: #475569; }
.u-style-410ae90450 { color: #334155; }
.u-style-b6cb0c08eb { color: #334155; font-family: 'Playfair Display', serif; margin: 32px 0 16px; }
.u-style-be06918527 { border-left-color: #64748b; }
.u-style-d82513d1a3 { color: #64748b; }
.u-style-fd9b5b16cd { display: flex; justify-content: center; margin-bottom: 16px; color: var(--gold); }
.u-style-ab5f754a1e { font-size: 1.8rem; margin-bottom: 12px; }
.u-style-4a79053b4c { font-size: 1.05rem; max-width: 600px; margin: 0 auto 20px; line-height: 1.6; color: var(--ink); }
.u-style-14fd412001 { background: var(--line); border-radius: 10px; height: 8px; width: 100%; max-width: 400px; margin: 0 auto; overflow: hidden; }
.u-style-94c6aa193f { background: var(--brand); height: 100%; width: 100%; }
.u-style-c1341b87cf { margin-top: 24px; padding: 32px; }
.u-style-d745120b56 { font-size: 1.6rem; margin-bottom: 16px; }
.u-style-157098c696 { line-height: 1.6; margin-bottom: 24px; }
.u-style-a267dbf31d { font-size: 1.15rem; margin-bottom: 6px; }
.u-style-9720601ad0 { margin-top: 32px; font-size: 1.3rem; }
.u-style-367c243365 { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 24px; }
.u-style-94bfe2afa3 { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); color: #fff; border: none; padding: 24px; }
.u-style-2d8618e24a { color: #fff; margin-top: 0; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 12px; font-family: 'Playfair Display', serif; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.u-style-3c372abe6f { color: var(--gold); }
.u-style-67a5d84ae8 { font-size: 1rem; line-height: 1.6; margin: 0; color: #e2e8f0; }
.u-style-0acd0995e2 { padding: 24px; }
.u-style-eb9144ef52 { margin-top:0; font-size: 1.3rem; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom: 16px; font-family: 'Playfair Display', serif; }
.u-style-a3dc42cdf6 { font-size: 0.95rem; line-height: 1.6; display: flex; flex-direction: column; gap: 16px; }
.u-style-a09151cb98 { display: flex; gap: 14px; align-items: flex-start; }
.u-style-9b501e5cf3 { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #eff6ff; border-radius: 50%; color: var(--brand); }
.u-style-443c60dcb0 { padding-top: 6px; }
.u-style-7997df3647 { color: var(--brand); font-family: 'Lora', serif; }
.u-style-d7c41c6f41 { display: flex; gap: 14px; align-items: center; }
.u-style-fa44f075fc { display: block; width: 100%; box-sizing: border-box; text-align: center; margin-top: 20px; }
.u-style-ee4ee6245a { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.u-style-b5eed53b26 { text-align: center; margin-bottom: 48px; }
.u-style-5aae91b6dd { font-family: 'Playfair Display', serif; color: var(--brand); font-size: 2.8rem; margin-bottom: 12px; }
.u-style-e9550da915 { color: #64748b; font-size: 1.15rem; max-width: 650px; margin: 0 auto; line-height: 1.6; }
.u-style-e8a9e81532 { background: linear-gradient(180deg, var(--brand) 0%, #152c6e 100%); border: none; border-radius: 20px; padding: 4px; box-shadow: 0 20px 40px rgba(30,58,138,0.2); margin-bottom: 56px; }
.u-style-a7e1430a08 { background: #ffffff; border-radius: 16px; padding: 32px; }
.u-style-d829093c32 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.u-style-48f4627f34 { font-family: 'Playfair Display', serif; color: var(--brand); margin: 0; font-size: 1.8rem; display: flex; align-items: center; gap: 12px; }
.u-style-9c62192704 { width: 14px; height: 14px; background: #ef4444; border-radius: 50%; display: inline-block; animation: blink-red 1.5s infinite; box-shadow: 0 0 10px rgba(239,68,68,0.4); }
.u-style-f8155cb3b8 { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid var(--line); }
.u-style-de0374f4c7 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.u-style-1613ac96cf { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.u-style-7d589686bd { font-family: 'Playfair Display', serif; color: var(--brand); font-size: 2rem; margin: 0; }
.u-style-08269b547d { flex: 1; height: 1px; background: var(--gold); opacity: 0.5; }
.u-style-ceb9acf688 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.u-style-deb6ff6647 { width: 52px; height: 52px; background: #eff6ff; color: var(--brand); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.u-style-6e0530b7a9 { font-family: 'Playfair Display', serif; color: var(--brand); margin: 0 0 8px 0; font-size: 1.3rem; }
.u-style-bb100f1292 { color: #64748b; margin: 0; font-size: 0.95rem; line-height: 1.5; }
.u-style-66bbf3ccee { width: 52px; height: 52px; background: #fffbeb; color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.u-style-4a31b36a31 { max-width:1240px; margin:40px auto; padding:0 20px; }
.u-style-67713d1975 { padding:0; overflow:hidden; }
.u-style-e0c20cf24e { padding:35px; border-bottom:1px solid var(--line); background: #fcfcfd; }
.u-style-1382fc21fe { margin:0; color:var(--brand); font-size:2.2rem; letter-spacing:-0.02em; }
.u-style-76f8789395 { color:var(--muted); font-size:1rem; margin-top:10px; display:flex; align-items:center; gap:10px; }
.u-style-300255c121 { background:var(--brand); color:#fff; padding:2px 8px; border-radius:4px; font-size:0.8rem; }
.u-style-9eb125f52f { margin-top:20px; }
.u-style-55e69c93d2 { padding:40px; }
.u-style-8049139cfe { position: sticky; top: 120px; }
.u-style-8f7bb087f7 { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; outline:none; background:#f9fafb; }
.u-style-9ed71c1484 { background: #fff5f5; padding: 15px; border-radius: 10px; border: 1px solid #feb2b2; }
.u-style-a5b90c20ce { color: #c53030; border-bottom-color: #feb2b2; }
.u-style-0e26bfd88e { font-size: 0.9rem; margin-bottom: 5px; }
.u-style-027065dbd3 { color: #c53030; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.u-style-923e3f513f { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.u-style-73fc9c3769 { padding: 40px; }

/* Visual refresh: brighter colors, shared motion and cleaner cards */
@media screen {
    header {
        animation: headerGlow 12s ease-in-out infinite alternate;
    }

    .header-logo img {
        border-color: rgba(242, 183, 5, 0.95);
        box-shadow:
            0 12px 26px rgba(3, 10, 28, 0.24),
            0 0 0 6px rgba(255, 255, 255, 0.12);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .header-logo:hover img {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            0 18px 34px rgba(3, 10, 28, 0.28),
            0 0 0 6px rgba(242, 183, 5, 0.18);
    }

    nav a::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 7px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: center;
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    nav a:hover::after,
    nav a.active::after {
        opacity: 0.8;
        transform: scaleX(1);
    }

    nav ul {
        gap: 6px;
        padding: 12px 16px;
    }

    nav a {
        padding: 10px 13px;
        font-size: 0.9rem;
    }

    .main-container,
    .ui-page {
        position: relative;
    }

    .card,
    .home-main .card,
    .ui-panel,
    .ui-stat,
    .ui-card,
    .side-card,
    .h-card,
    .s-card,
    .contact-info,
    .contact-form,
    .archive-card,
    .bank-card,
    .error-card {
        border-radius: 8px;
        border-color: rgba(140, 161, 188, 0.34);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.98) 100%);
        box-shadow: var(--shadow-soft);
        transition:
            transform 0.28s ease,
            box-shadow 0.28s ease,
            border-color 0.28s ease,
            background 0.28s ease;
    }

    .card:hover,
    .home-main .card:hover,
    .ui-card--link:hover,
    .h-card:hover,
    .s-card:hover,
    .contact-info:hover,
    .contact-form:hover,
    .archive-card:hover {
        transform: translateY(-4px);
        border-color: rgba(22, 84, 184, 0.34);
        box-shadow: var(--shadow-lift);
    }

    .card,
    .ui-card,
    .side-card,
    .h-card,
    .s-card {
        position: relative;
    }

    .home-main .content > .card::before,
    .ui-card::before,
    .side-card::before,
    .h-card::before,
    .s-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), var(--sky), var(--green), var(--gold));
        opacity: 0.9;
        pointer-events: none;
    }

    .side-card::before {
        opacity: 0.75;
    }

    .important-card::before {
        background: linear-gradient(90deg, var(--red), var(--gold), var(--brand));
        opacity: 1;
    }

    .ui-hero {
        border-radius: 8px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 255, 0.94) 100%);
        border-color: rgba(22, 84, 184, 0.18);
        box-shadow: var(--shadow-soft);
    }

    .ui-eyebrow,
    .home-hero-kicker,
    .home-announcement-meta,
    .home-kicker,
    .side-news-date {
        color: #b77900;
    }

    .ui-title,
    .ui-card-title,
    .ui-section-title,
    .home-announcement-title,
    .side-card-title,
    .local-partner-name,
    .contact-label {
        color: var(--brand-dark);
    }

    .ui-btn,
    .zobacz-wiecej,
    .h-btn,
    .c-btn,
    .yt-btn,
    .music-link-btn,
    .cookie-button {
        border-radius: 8px;
        background: linear-gradient(135deg, var(--brand), var(--brand-bright));
        border-color: transparent;
        box-shadow: 0 10px 22px rgba(22, 84, 184, 0.18);
        transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            background 0.22s ease,
            border-color 0.22s ease;
    }

    .ui-btn:hover,
    .zobacz-wiecej:hover,
    .h-btn:hover,
    .c-btn:hover,
    .yt-btn:hover,
    .music-link-btn:hover,
    .cookie-button:hover {
        background: linear-gradient(135deg, var(--green), #0f766e);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(22, 163, 74, 0.2);
    }

    .ui-btn--outline,
    .section-action,
    .ui-link-card,
    .quick-list a {
        background: #ffffff;
        border-color: rgba(22, 84, 184, 0.18);
    }

    .ui-btn--outline:hover,
    .section-action:hover,
    .ui-link-card:hover,
    .quick-list a:hover {
        color: var(--brand-dark) !important;
        border-color: rgba(22, 84, 184, 0.42);
        background: #eef6ff;
        box-shadow: 0 10px 22px rgba(22, 84, 184, 0.12);
    }

    .home-hero {
        background: var(--brand-dark);
        min-height: 520px;
        border-bottom: 4px solid var(--gold);
    }

    .home-hero-image {
        filter: saturate(1.14) contrast(1.04);
        transform: scale(1.01);
        animation: heroImageBreathe 18s ease-in-out infinite alternate;
    }

    .home-hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 13, 35, 0.84) 0%, rgba(12, 43, 91, 0.62) 45%, rgba(15, 118, 110, 0.2) 100%),
            linear-gradient(180deg, rgba(5, 13, 35, 0.08) 0%, rgba(5, 13, 35, 0.76) 100%);
    }

    .home-hero-content {
        padding-bottom: 70px;
    }

    .home-hero h1 {
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
    }

    .home-hero-lead {
        color: rgba(255, 255, 255, 0.94);
    }

    .home-hero-actions .ui-btn {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home-hero-actions .ui-btn--outline {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.42);
    }

    .home-hero-facts span {
        border-radius: 8px;
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(8, 26, 57, 0.54);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    }

    .home-summary {
        border-radius: 8px;
        border-color: rgba(22, 84, 184, 0.18);
        background:
            linear-gradient(90deg, #ffffff 0%, #eef6ff 72%, #fff8df 100%);
        box-shadow: 0 10px 26px rgba(22, 84, 184, 0.08);
    }

    .home-summary-main svg,
    .ui-icon,
    .ui-card-heading svg {
        color: var(--green);
    }

    .home-announcement-thumb,
    .ui-media,
    .ui-photo-link,
    .home-slider,
    .side-image,
    .map-container {
        border-radius: 8px;
        border-color: rgba(140, 161, 188, 0.34);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .home-announcement-thumb img,
    .ui-media img,
    .side-image,
    .slide img {
        filter: saturate(1.08) contrast(1.03);
    }

    .home-announcement-thumb:hover img,
    .ui-photo-link:hover img,
    .ui-card--link:hover .ui-media img {
        transform: scale(1.04);
    }

    .home-intention-row {
        border-top-color: rgba(140, 161, 188, 0.32);
    }

    .home-intention-time,
    .intencja-item .godzina,
    .ui-time,
    .ui-pill--date {
        background: #e9f7ef;
        color: #0f7a3f;
        border-color: rgba(22, 163, 74, 0.16);
    }

    .home-catechesis {
        border: 1px solid rgba(22, 84, 184, 0.12);
        background:
            linear-gradient(135deg, #eef6ff 0%, #ffffff 58%, #fff8df 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    }

    .side-card-title {
        background:
            linear-gradient(90deg, #f7fbff 0%, #eef6ff 100%);
        border-bottom-color: rgba(140, 161, 188, 0.28);
    }

    .important-card .side-card-title {
        background:
            linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 58%, var(--green) 100%);
    }

    .contact-icon,
    .local-partner-mark,
    .ui-contact-icon,
    .c-info-icon,
    .s-card-icon {
        border-radius: 8px;
        background: #eef6ff;
        color: var(--brand);
    }

    .local-partner-item {
        border-radius: 8px;
        background: #ffffff;
        transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    }

    .local-partner-item:hover {
        transform: translateX(4px);
        border-color: rgba(22, 84, 184, 0.3);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .local-partner-item[data-tone="red"] .local-partner-mark {
        color: #ffffff;
        background: linear-gradient(135deg, var(--red), #f97316);
    }

    .local-partner-item[data-tone="green"] .local-partner-mark {
        color: #ffffff;
        background: linear-gradient(135deg, var(--green), #0f766e);
    }

    .local-partner-item[data-tone="gold"] .local-partner-mark {
        color: var(--brand-dark);
        background: linear-gradient(135deg, var(--gold), #facc15);
    }

    .cookie-banner {
        left: auto;
        right: 22px;
        bottom: 18px;
        width: min(390px, calc(100% - 40px));
        max-width: 390px;
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 8px;
        border: 1px solid rgba(140, 161, 188, 0.28);
        border-left: 4px solid var(--green);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
        transform: translateY(150%) scale(0.98);
    }

    .cookie-banner.show {
        transform: translateY(0) scale(1);
    }

    .cookie-banner p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .cookie-buttons {
        width: 100%;
        text-align: right;
    }

    .cookie-button {
        white-space: nowrap;
    }

    [data-animate="reveal"] {
        transform: translate3d(0, 24px, 0) scale(0.985);
        transition:
            opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        filter: saturate(0.9);
    }

    [data-reveal-motion="left"] {
        transform: translate3d(-24px, 12px, 0) scale(0.985);
    }

    [data-reveal-motion="right"] {
        transform: translate3d(24px, 12px, 0) scale(0.985);
    }

    [data-reveal-motion="zoom"] {
        transform: translate3d(0, 12px, 0) scale(0.96);
    }

    .home-hero [data-reveal-motion="zoom"] {
        transform: translate3d(0, 12px, 0) scale(0.96);
    }

    [data-animate="reveal"].is-visible {
        transform: translate3d(0, 0, 0) scale(1);
        filter: saturate(1);
    }

    .slider-arrow,
    .dot {
        transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
    }

    .slider-arrow:hover,
    .dot:hover,
    .dot.active {
        transform: scale(1.08);
    }

    @keyframes heroImageBreathe {
        from {
            transform: scale(1.01) translateX(0);
        }

        to {
            transform: scale(1.055) translateX(-1.5%);
        }
    }

    @keyframes headerGlow {
        from {
            background-position: 0 50%;
        }

        to {
            background-position: 100% 50%;
        }
    }

    @media (max-width: 720px) {
        .home-hero {
            min-height: 520px;
        }

        .home-hero-content {
            padding-bottom: 52px;
        }

        .cookie-banner {
            grid-template-columns: 1fr;
            width: calc(100% - 28px);
            right: 14px;
            bottom: 14px;
            padding: 14px;
        }

        .cookie-buttons {
            width: 100%;
        }

        .cookie-button {
            width: 100%;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
        }

        [data-animate="reveal"],
        [data-reveal-motion] {
            transform: none !important;
            filter: none !important;
        }
    }
}

/* Standards page cleanup */
.som-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.som-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
}

.som-side-card {
    background: #ffffff;
    border: 1px solid rgba(130, 151, 180, 0.3);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.som-side-card .sidebar-section {
    margin: 0;
    padding: 18px;
    border-bottom: 1px solid rgba(130, 151, 180, 0.2);
}

.som-side-card .sidebar-section h3,
.som-contact-box h3 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--brand-dark);
    font-family: 'Lora', serif;
    font-size: 1rem;
}

.som-side-status {
    padding: 18px;
    background: linear-gradient(135deg, #eef6ff 0%, #fff9e8 100%);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid rgba(130, 151, 180, 0.2);
}

.som-side-status span {
    display: block;
    margin-bottom: 4px;
    color: #b77900;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.som-side-status strong {
    display: block;
    color: var(--brand-dark);
    line-height: 1.35;
}

.som-search-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.som-search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(130, 151, 180, 0.36);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--ink);
    font: inherit;
    box-sizing: border-box;
}

.som-search-input:focus {
    outline: none;
    border-color: rgba(22, 84, 184, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 84, 184, 0.12);
}

.som-toc ol {
    max-height: 260px;
    overflow: auto;
    padding-left: 18px;
}

.som-toc li {
    margin-bottom: 8px;
}

.som-toc a {
    color: var(--ink);
    font-size: 0.9rem;
}

.som-quick-list li {
    margin: 0 0 8px;
}

.som-quick-list a,
.som-quick-list button,
.som-contact-box a {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid rgba(22, 84, 184, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.som-quick-list a:hover,
.som-quick-list button:hover,
.som-contact-box a:hover {
    background: #eef6ff;
    border-color: rgba(22, 84, 184, 0.45);
    transform: translateY(-1px);
}

.som-contact-box {
    padding: 18px;
    background: #f8fbff;
}

.som-contact-box p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.som-actions .ui-btn--outline {
    background: #ffffff;
    color: var(--brand-dark) !important;
    border-color: rgba(22, 84, 184, 0.24);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.som-actions .ui-btn--outline:hover {
    background: #eef6ff;
    color: var(--brand-dark) !important;
    border-color: rgba(22, 84, 184, 0.45);
    box-shadow: 0 10px 22px rgba(22, 84, 184, 0.12);
}

.content-doc {
    line-height: 1.75;
}

.content-doc p {
    text-align: left;
}

.content-doc ul {
    padding-left: 1.15rem;
}

@media (max-width: 1024px) {
    .som-grid {
        grid-template-columns: 1fr;
    }

    .som-sidebar {
        position: static;
    }

    .som-side-card {
        width: 100%;
    }
}

/* Visual refresh v2: cleaner, calmer and still vivid */
@media screen {
    header {
        animation: none;
        background:
            linear-gradient(120deg, #12356f 0%, var(--brand) 58%, #0f766e 100%);
    }

    header::before {
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 44%),
            linear-gradient(90deg, transparent 0 62%, rgba(242, 183, 5, 0.12) 62% 63%, transparent 63% 100%);
    }

    .header-top {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .header-logo img {
        width: 82px;
        height: 82px;
        border-radius: 16px;
        box-shadow:
            0 10px 24px rgba(3, 10, 28, 0.22),
            0 0 0 5px rgba(255, 255, 255, 0.1);
    }

    .header-logo:hover img {
        transform: translateY(-1px);
    }

    .header-title {
        font-size: clamp(1.55rem, 2.55vw, 2.25rem);
    }

    .header-nav {
        background: rgba(8, 31, 72, 0.24);
    }

    nav ul {
        gap: 8px;
        padding: 11px 16px;
    }

    nav a {
        padding: 10px 14px;
        background: transparent;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    nav a.active {
        background: #f5c51d;
        box-shadow: 0 7px 18px rgba(242, 183, 5, 0.26);
    }

    nav a::after {
        bottom: 6px;
        height: 2px;
        opacity: 0;
    }

    .card,
    .home-main .card,
    .ui-panel,
    .ui-stat,
    .ui-card,
    .side-card,
    .h-card,
    .s-card,
    .contact-info,
    .contact-form,
    .archive-card,
    .bank-card,
    .error-card {
        border-color: rgba(130, 151, 180, 0.28);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    }

    .card:hover,
    .home-main .card:hover,
    .ui-card--link:hover,
    .h-card:hover,
    .s-card:hover,
    .contact-info:hover,
    .contact-form:hover,
    .archive-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(22, 84, 184, 0.12);
    }

    .home-main .content > .card::before,
    .ui-card::before,
    .side-card::before,
    .h-card::before,
    .s-card::before {
        height: 2px;
        background: linear-gradient(90deg, var(--brand), var(--sky), var(--gold));
        opacity: 0.8;
    }

    .important-card::before {
        background: linear-gradient(90deg, var(--red), var(--gold));
    }

    .ui-btn,
    .zobacz-wiecej,
    .h-btn,
    .c-btn,
    .yt-btn,
    .music-link-btn,
    .cookie-button {
        background: linear-gradient(135deg, var(--brand), #1d6de0);
        box-shadow: 0 9px 18px rgba(22, 84, 184, 0.16);
    }

    .ui-btn:hover,
    .zobacz-wiecej:hover,
    .h-btn:hover,
    .c-btn:hover,
    .yt-btn:hover,
    .music-link-btn:hover,
    .cookie-button:hover {
        background: linear-gradient(135deg, #125bc7, #0f766e);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(22, 84, 184, 0.18);
    }

    .home-hero {
        min-height: 500px;
        border-bottom: 2px solid var(--gold);
    }

    .home-hero-image {
        animation: none;
        filter: saturate(1.06) contrast(1.02);
        transform: none;
    }

    .home-hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 13, 35, 0.78) 0%, rgba(12, 43, 91, 0.5) 50%, rgba(15, 118, 110, 0.16) 100%),
            linear-gradient(180deg, rgba(5, 13, 35, 0.04) 0%, rgba(5, 13, 35, 0.68) 100%);
    }

    .home-hero-content {
        padding-bottom: 58px;
    }

    .home-hero h1 {
        font-size: clamp(2.1rem, 4.4vw, 4rem);
    }

    .home-hero-facts span {
        background: rgba(8, 26, 57, 0.42);
        box-shadow: none;
    }

    .home-summary {
        background: #ffffff;
        border-left: 4px solid var(--gold);
    }

    .home-catechesis {
        background: linear-gradient(135deg, #f6fbff 0%, #ffffff 68%, #fff9e8 100%);
    }

    .cookie-banner {
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
        border-left-color: var(--brand);
    }

    [data-animate="reveal"],
    [data-reveal-motion="left"],
    [data-reveal-motion="right"],
    [data-reveal-motion="zoom"],
    .home-hero [data-reveal-motion="zoom"] {
        transform: translate3d(0, 14px, 0);
        filter: none;
        transition:
            opacity 0.58s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-animate="reveal"].is-visible {
        transform: translate3d(0, 0, 0);
    }

    @media (max-width: 768px) {
        .header-top {
            padding: 18px 16px;
            gap: 12px;
        }

        .header-logo img {
            width: 66px;
            height: 66px;
            border-radius: 14px;
        }

        .header-title {
            font-size: clamp(1.35rem, 6.2vw, 1.72rem);
        }

        .header-subtitle {
            margin-top: 5px;
            font-size: 0.76rem;
        }

        nav ul {
            justify-content: flex-start;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 8px;
            padding: 10px 12px;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        nav ul::-webkit-scrollbar {
            display: none;
        }

        nav a {
            white-space: nowrap;
            padding: 9px 13px;
            font-size: 0.88rem;
        }

        .home-hero {
            min-height: 500px;
        }

        .home-hero-content {
            padding: 36px 16px 46px;
        }

        .home-hero h1 {
            font-size: clamp(1.9rem, 9vw, 2.65rem);
        }

        .cookie-banner {
            width: calc(100% - 32px);
            right: 16px;
            bottom: 10px;
            gap: 10px;
            padding: 12px;
        }

        .cookie-banner p {
            font-size: 0.82rem;
        }

        .cookie-button {
            padding: 10px 12px;
        }
    }
}
