/* Parafia Szyszki – arkusz stylów strony publicznej (bez kroku budowania) */

@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 400 900; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-latin-ext-wght-italic.woff2") format("woff2");
    font-weight: 400 900; font-style: italic; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya";
    src: url("../fonts/alegreya-latin-wght-italic.woff2") format("woff2");
    font-weight: 400 900; font-style: italic; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-ext-400-italic.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya Sans";
    src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */

:root {
    color-scheme: light;

    --paper: #f6f1e9;
    --surface: #fffcf7;
    --surface-2: #eee6da;
    --line: #dcd1c1;
    --line-strong: #c4b6a2;

    --ink: #2a221d;
    --ink-2: #54483f;
    --ink-3: #6e6155;

    --brick: #a04d2e;
    --brick-hover: #873f24;
    --brick-soft: #f1e1d7;
    --on-brick: #ffffff;
    --link: #93452a;

    --gold: #b8892a;
    --gold-ink: #7a5714;
    --gold-soft: #f3e8cf;

    --footer-bg: #2a221d;
    --footer-ink: #e6dccf;
    --footer-muted: #b9ab9a;
    --footer-line: #43382f;
    --footer-accent: #d9ad55;

    --focus: #1f5f9e;
    --shadow: 0 1px 2px rgba(42, 34, 29, .06), 0 4px 16px rgba(42, 34, 29, .06);

    --font-serif: "Alegreya", Georgia, "Times New Roman", serif;
    --font-sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

    --step--1: .9rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.7rem);
    --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem);
    --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.3rem);

    --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
    --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;

    --radius: 6px;
    --radius-lg: 10px;
    --container: 72rem;
    --header-h: 4.5rem;
}

html.dark {
    color-scheme: dark;

    --paper: #1b1714;
    --surface: #241f1b;
    --surface-2: #2b2521;
    --line: #3b332d;
    --line-strong: #54493f;

    --ink: #eee6db;
    --ink-2: #cdc1b2;
    --ink-3: #a89a8a;

    --brick: #b65a37;
    --brick-hover: #c96b46;
    --brick-soft: #3a2820;
    --on-brick: #ffffff;
    --link: #e9a07f;

    --gold: #d2a54a;
    --gold-ink: #e3bd6c;
    --gold-soft: #3a3020;

    --footer-bg: #141110;
    --footer-line: #2e2722;

    --focus: #8cc4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
}

html.high-contrast {
    color-scheme: dark;

    --paper: #000; --surface: #000; --surface-2: #000;
    --line: #fff; --line-strong: #fff;
    --ink: #fff; --ink-2: #fff; --ink-3: #fff;
    --brick: #ffff00; --brick-hover: #fff; --brick-soft: #000; --on-brick: #000;
    --link: #ffff00;
    --gold: #ffff00; --gold-ink: #ffff00; --gold-soft: #000;
    --footer-bg: #000; --footer-ink: #fff; --footer-muted: #fff; --footer-line: #fff; --footer-accent: #ffff00;
    --focus: #ffff00;
    --shadow: none;
}

html.high-contrast a:not(.btn):not(.chip):not(.brand) { color: #ff0; text-decoration: underline; text-underline-offset: 3px; }
html.high-contrast a:not(.btn):not(.chip):not(.brand):hover,
html.high-contrast a:not(.btn):not(.chip):not(.brand):focus { color: #000; background: #ff0; outline: 2px solid #ff0; }
html.high-contrast .btn, html.high-contrast button:not(.linklike) { border: 2px solid #fff; box-shadow: none; }
html.high-contrast button:not(.linklike):not(.btn--primary):hover { background: #fff; color: #000; }
html.high-contrast :focus-visible { outline: 3px solid #ff0; outline-offset: 3px; }
html.high-contrast img { filter: grayscale(30%) contrast(1.15) brightness(.9); }
html.high-contrast .post-card:hover, html.high-contrast .card:hover { box-shadow: none; }
html.high-contrast .switch__track { background: #000; border: 2px solid #fff; }
html.high-contrast .switch__track::after { top: 1px; left: 1px; background: #fff; }
html.high-contrast .switch__input:checked + .switch__track { background: #000; border-color: #ff0; }
html.high-contrast .switch__input:checked + .switch__track::after { background: #ff0; }

html.font-size-large { font-size: 112.5%; }
html.font-size-xlarge { font-size: 131.25%; }

/* ---------- Podstawy ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 var(--s4);
    text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

::selection { background: var(--gold-soft); color: var(--ink); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: var(--s4); top: -100px; z-index: 100;
    background: var(--brick); color: var(--on-brick); padding: var(--s2) var(--s4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); color: var(--on-brick); }

[hidden] { display: none !important; }

/* ---------- Układ ---------- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.container--narrow { max-width: 48rem; }

.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--alt { background: var(--surface-2); }
.section:not(.section--alt) + .section:not(.section--alt) { padding-top: 0; }

.section-head { margin-bottom: var(--s6); max-width: 40rem; }
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--ink-2); }

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: var(--s2);
}

.rule { width: 3rem; height: 3px; background: var(--gold); border: 0; margin: var(--s3) 0 var(--s5); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { display: grid; gap: var(--s6); }
.grid-3 { display: grid; gap: var(--s5); }
@media (min-width: 48rem) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s7); align-items: start; }
}

.stack > * + * { margin-top: var(--s4); }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.center { text-align: center; }

/* ---------- Nagłówek ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 2.75rem; height: 2.75rem; border-radius: var(--radius); object-fit: cover; }
.brand__name { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.brand__sub { display: block; font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 26rem) { .brand__sub { display: none; } }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: var(--s1); margin: 0; padding: 0; }
.nav a {
    position: relative; display: block; padding: var(--s2) var(--s3);
    color: var(--ink-2); text-decoration: none; font-weight: 500;
    transition: color .3s ease;
}
.nav a::after {
    content: ""; position: absolute; left: var(--s3); bottom: 0;
    width: 0; height: 2px; background: var(--brick);
    transition: width .3s ease;
}
.nav a:hover { color: var(--link); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: calc(100% - 2 * var(--s3)); }
.nav a[aria-current="page"] { color: var(--link); }

.header-tools { display: flex; align-items: center; gap: var(--s2); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink-2);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn .icon-sun { display: none; }
html.dark .icon-btn .icon-sun { display: block; }
html.dark .icon-btn .icon-moon { display: none; }

.menu-btn { display: inline-flex; }

.mobile-nav { border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s4); animation: slideDown .3s ease-out both; }
.mobile-nav a { transition: color .2s ease, background-color .2s ease, padding-left .2s ease; }
.mobile-nav a:hover { color: var(--link); background: var(--surface-2); padding-left: var(--s4); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
    display: block; padding: var(--s3) var(--s2);
    color: var(--ink); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--link); }

@media (min-width: 64rem) {
    .nav { display: block; }
    .menu-btn, .mobile-nav { display: none !important; }
}

.a11y { position: relative; }
.a11y-panel {
    position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 200;
    width: min(18rem, calc(100vw - 2rem));
    background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(42, 34, 29, .3); padding: 1.25rem;
    animation: panelIn .2s ease-out both; transform-origin: top right;
}
.a11y-panel__title {
    display: flex; align-items: center; gap: var(--s2);
    font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: var(--s4);
}
.a11y-panel__title svg { width: 1rem; height: 1rem; color: var(--brick); }
.a11y-group { margin-bottom: 1.25rem; }
.a11y-label {
    margin: 0 0 var(--s2); font-size: .75rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}
.a11y-row .a11y-label { margin-bottom: 0; }
.a11y-hint { margin: .125rem 0 0; font-size: .75rem; color: var(--ink-3); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.a11y-sizes { display: flex; gap: var(--s2); }
.a11y-sizes button {
    flex: 1; padding: var(--s2) 0;
    border: 2px solid var(--line); border-radius: .75rem;
    background: transparent; color: var(--ink-2); font-weight: 500; line-height: 1.4;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.a11y-sizes button:hover { border-color: var(--brick); color: var(--link); }
.a11y-sizes button[aria-pressed="true"] { border-color: var(--brick); color: var(--link); background: rgba(160, 77, 46, .05); }
.a11y-size--s { font-size: .875rem; }
.a11y-size--m { font-size: 1rem; }
.a11y-size--l { font-size: 1.125rem; }
.a11y-reset {
    width: 100%; padding: var(--s2) 0;
    border: 1px solid var(--line); border-radius: .75rem;
    background: transparent; color: var(--ink-3); font-size: .75rem;
    transition: color .2s ease, border-color .2s ease;
}
.a11y-reset:hover { color: var(--link); border-color: var(--brick); }

.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
    position: relative; width: 2.75rem; height: 1.5rem; border-radius: 999px;
    background: var(--line-strong); transition: background-color .2s ease;
}
.switch__track::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.switch__input:checked + .switch__track { background: var(--brick); }
.switch__input:checked + .switch__track::after { transform: translateX(1.25rem); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }

.a11y-mobile {
    border-top: 1px solid var(--line); margin-top: var(--s2); padding: var(--s4) var(--s4) var(--s4);
    animation: slideDown .3s ease-out both;
}
.a11y-mobile .a11y-hint { font-size: .75rem; margin-bottom: var(--s2); }
.a11y-mobile .a11y-sizes { margin-bottom: var(--s4); }
.a11y-mobile__label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
@media (min-width: 64rem) { .a11y-mobile { display: none !important; } }

.check { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brick); margin: 0; }

/* ---------- Przyciski ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    padding: .65rem 1.2rem;
    border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 700; font-size: var(--step-0); line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(42, 34, 29, .35); }
.btn:active { transform: scale(.98); }
.btn--pop:hover { transform: scale(1.05); }
.btn--pop:active { transform: scale(.98); }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--primary { background: var(--brick); color: var(--on-brick); box-shadow: 0 8px 16px -8px rgba(160, 77, 46, .45); }
.btn--primary:hover { background: var(--brick-hover); color: var(--on-brick); box-shadow: 0 14px 24px -10px rgba(160, 77, 46, .55); }
.btn--glass { background: rgba(255, 255, 255, .2); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { color: var(--ink); border-color: var(--ink-3); }
.btn--light { background: #fffcf7; color: #2a221d; }
.btn--light:hover { background: #fff; color: #2a221d; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--small { padding: .45rem .85rem; font-size: var(--step--1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--link); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Nagłówek podstrony ---------- */

.page-head { padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-head h1 { margin-bottom: var(--s3); }
.page-head p { color: var(--ink-2); font-size: var(--step-1); max-width: 40rem; }

.crumbs { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--s3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }

/* ---------- Hero (strona główna) ---------- */

.hero {
    position: relative; color: #fff; isolation: isolate;
    min-height: min(78vh, 40rem);
    display: flex; align-items: flex-end;
    background: #2a221d;
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(27, 20, 16, .15) 0%, rgba(27, 20, 16, .55) 55%, rgba(27, 20, 16, .88) 100%);
}
.hero__body { padding: var(--s8) 0 var(--s7); max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: var(--s3); }
.hero__sub { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); color: #f3e8d6; margin-bottom: var(--s5); }
.hero__facts {
    display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6);
    margin: 0 0 var(--s5); padding: var(--s4) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .3);
    list-style: none; color: #f3ece2;
}
.hero__facts strong { color: #fff; }
html.high-contrast .hero::before { background: rgba(0, 0, 0, .85); }

/* ---------- Karty i wpisy ---------- */

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--s5);
}
.card h2, .card h3 { font-size: var(--step-2); margin-bottom: var(--s3); }

.posts { display: grid; gap: var(--s5); }
@media (min-width: 40rem) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 20px 40px -15px rgba(160, 77, 46, .25); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--ink-3); background: var(--surface-2);
    font-family: var(--font-serif); font-size: var(--step-1); font-style: italic;
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s4) var(--s5) var(--s5); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--s2); }
.post-card__title { font-size: var(--step-1); line-height: 1.25; margin-bottom: var(--s2); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--link); }
.post-card__excerpt { color: var(--ink-2); font-size: var(--step--1); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tag {
    display: inline-block; padding: .1rem .5rem;
    border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--paper);
}
.tag--accent { border-color: var(--gold); color: var(--gold-ink); }

.status { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); color: var(--ink-3); font-size: var(--step--1); margin-bottom: var(--s4); min-height: 1.6em; }

.posts { transition: opacity .3s ease-out; }
.posts[aria-busy="true"] { opacity: .45; }

.empty { text-align: center; padding: var(--s7) var(--s4); color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* ---------- Filtry ---------- */

.filters { display: grid; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: var(--s6); }
@media (min-width: 48rem) { .filters__row { display: grid; grid-template-columns: 1fr 14rem; gap: var(--s4); } }

.field label, .field .label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s1); }
.input, .select, .textarea {
    width: 100%; padding: .6rem .8rem;
    background: var(--paper); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.chip {
    display: inline-block; padding: .35rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--paper); color: var(--ink-2); font-weight: 500; text-decoration: none;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-current="true"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }

/* ---------- Paginacja ---------- */

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2); margin-top: var(--s6); }
.pagination button, .pagination a, .pagination span {
    min-width: 2.5rem; height: 2.5rem; padding: 0 var(--s3);
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); text-decoration: none;
}
.pagination span { border-color: transparent; background: none; color: var(--ink-3); }
.pagination [aria-current="page"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); font-weight: 700; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Listy informacyjne (godziny, kontakt) ---------- */

.info-list { margin: 0; padding: 0; list-style: none; }
.info-list > li, .info-list > div {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4);
    padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.info-list > :last-child { border-bottom: 0; }
.info-list dt, .info-list .k { color: var(--ink-2); }
.info-list dd, .info-list .v { margin: 0; text-align: right; font-weight: 500; }
.time { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }

.note { font-size: var(--step--1); color: var(--ink-3); margin-top: var(--s3); }

.callout {
    border-left: 3px solid var(--gold); background: var(--gold-soft);
    padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.callout--brick { border-left-color: var(--brick); background: var(--brick-soft); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.contact-list svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .25rem; color: var(--gold-ink); }

/* ---------- Treść wpisu ---------- */

.prose { font-size: 1.125rem; line-height: 1.7; max-width: 42rem; }
.prose > * + * { margin-top: var(--s4); }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { margin: var(--s6) 0 var(--s3); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: var(--s4) 0 0; }
.prose li + li { margin-top: var(--s2); }
.prose blockquote {
    margin: var(--s5) 0 0; padding: var(--s2) 0 var(--s2) var(--s5);
    border-left: 3px solid var(--gold); font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--ink-2);
}
.prose figure { margin: var(--s5) 0 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: var(--step--1); color: var(--ink-3); margin-top: var(--s2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose .table-wrap { overflow-x: auto; }
.prose img { border-radius: var(--radius); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.post-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; color: var(--ink-3); font-size: var(--step--1); }
.post-hero { margin: var(--s6) 0 0; }
.post-hero img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: var(--radius-lg); }

.share { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ---------- Ramki osadzeń ---------- */

.frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.frame iframe { width: 100%; border: 0; }
.frame--map iframe { height: 24rem; }
.frame--tall iframe { height: 40rem; }
.frame--liturgy { background: #f6f1e9; }
.frame--liturgy iframe { height: 42rem; }
html.dark .frame--liturgy iframe { filter: invert(.9) hue-rotate(180deg); }
html.high-contrast iframe { filter: invert(1) hue-rotate(180deg); }

.sidebar-sticky { position: sticky; top: calc(var(--header-h) + var(--s4)); }

/* ---------- Historia ---------- */

.figure { margin: 0; }
.figure img { border-radius: var(--radius-lg); width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--ink-3); margin-top: var(--s2); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 var(--s5) var(--s5); }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: .45rem;
    width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold);
}
.timeline .year { font-family: var(--font-serif); font-weight: 700; font-size: var(--step-1); color: var(--gold-ink); display: block; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: auto; }
.site-footer a { color: var(--footer-ink); text-decoration: none; transition: color .3s ease; }
.site-footer a:hover { color: #e9a07f; }
.site-footer h2 { color: var(--footer-accent); font-size: var(--step-1); font-weight: 600; margin-bottom: var(--s4); }
.site-footer__grid { display: grid; gap: var(--s6); padding: var(--s7) 0; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-footer p { color: var(--footer-ink); line-height: 1.7; }
.site-footer .contact-list { gap: var(--s3); }
.site-footer .contact-list svg { color: #c96b46; }

.footer-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.footer-brand h2 { margin: 0; }
.footer-brand__icon {
    flex: none; width: 3rem; height: 3rem; padding: 2px; border-radius: .75rem; overflow: hidden;
    background: linear-gradient(135deg, #46413d 0%, #2a2623 100%); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3);
}
.footer-brand__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.footer-more { margin-top: var(--s4); }
.footer-links a { display: inline-flex; align-items: center; gap: var(--s2); }
.footer-links svg { width: 1rem; height: 1rem; }

.site-footer__bottom { border-top: 1px solid var(--footer-line); padding: var(--s5) 0; font-size: var(--step--1); color: var(--footer-muted); }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.site-footer__bottom p { margin: 0; color: var(--footer-muted); }
.site-footer__bottom a { color: #f1c4ae; text-decoration: underline; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom .sep { margin: 0 var(--s2); opacity: .6; }
.site-footer__legal { display: flex; align-items: center; gap: var(--s3); }
.site-footer__legal a { color: var(--footer-muted); }
.site-footer__legal .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--footer-line); }
@media (max-width: 47.99rem) { .site-footer__bottom .container { flex-direction: column; text-align: center; } }
.linklike { background: none; border: 0; padding: 0; color: var(--footer-muted); transition: color .3s ease; }
.linklike:hover { color: #fff; }

.visit { background: var(--surface-2); border-top: 1px solid var(--line); }

/* ---------- Znajdź nas (stopka strony głównej) ---------- */

.find-us {
    position: relative; overflow: hidden; padding: var(--s8) 0; color: #fff;
    background: linear-gradient(135deg, #a04d2e 0%, #823b22 100%);
}
.find-us__decor { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.find-us__decor span { position: absolute; border-radius: 50%; }
.find-us__decor span:first-child { top: 0; left: 0; width: 24rem; height: 24rem; background: #fff; transform: translate(-50%, -50%); }
.find-us__decor span:last-child { right: 0; bottom: 0; width: 16rem; height: 16rem; background: var(--gold); transform: translate(50%, 50%); }
.find-us .container { position: relative; }
.find-us__head { text-align: center; margin-bottom: var(--s7); }
.find-us__head h2 { color: #fff; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); margin-bottom: var(--s4); }
.find-us__head p { color: rgba(255, 255, 255, .85); font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }
.find-us__grid { display: grid; gap: var(--s6); align-items: stretch; }
@media (min-width: 64rem) { .find-us__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.find-us__map { height: 25rem; border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35); }
.find-us__map iframe { width: 100%; height: 100%; border: 0; }
.find-us__panel {
    padding: var(--s6); border-radius: 1rem;
    background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.find-us__panel h3 { display: flex; align-items: center; gap: var(--s3); color: #fff; font-size: var(--step-2); margin-bottom: var(--s5); }
.find-us__panel h3 svg { width: 1.5rem; height: 1.5rem; color: #e9c77d; }
.find-us__cols { display: grid; gap: var(--s5); }
@media (min-width: 48rem) { .find-us__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.find-us__box { padding: var(--s4); border-radius: .75rem; background: rgba(255, 255, 255, .1); font-size: .875rem; }
.find-us__box h4 { color: #fff; font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; margin-bottom: var(--s3); }
.find-us__box p { margin: 0 0 var(--s4); }
.find-us__box p:last-child { margin-bottom: 0; }
.find-us__box h4 + p + h4 { margin-bottom: var(--s2); }
.find-us .dots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.find-us .dots li { display: flex; align-items: center; }
.find-us .dots li::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-right: var(--s2); border-radius: 50%; background: #e9c77d; }
.find-us .soft { color: rgba(255, 255, 255, .7); margin-left: .25rem; }
.find-us__note { margin-top: var(--s2) !important; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.find-us .btn--glass { margin-top: var(--s5); }
html.high-contrast .find-us { background: #000; }
html.high-contrast .find-us__decor { display: none; }

/* ---------- Baner cookies ---------- */

.cookie-banner {
    position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 70;
    max-width: 44rem; margin: 0 auto;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: var(--s5);
    animation: slideUp .5s ease-out both;
}
html.has-consent .cookie-banner { display: none; }
.cookie-banner h2 { font-size: var(--step-1); margin-bottom: var(--s2); }
.cookie-banner p { color: var(--ink-2); font-size: var(--step--1); }
.cookie-banner .btn-row { margin-top: var(--s4); }
.cookie-options { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); display: grid; gap: var(--s3); font-size: var(--step--1); }
.cookie-options .check { align-items: flex-start; }
.cookie-options .check input { margin-top: .2rem; }

/* ---------- Przycisk do góry ---------- */

.to-top {
    position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 40;
    width: 3rem; height: 3rem; border-radius: 50%;
    border: 2px solid #fff; background: rgba(160, 77, 46, .9); color: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .2);
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: scale(.95);
    transition: opacity .3s ease, visibility .3s, transform .3s ease, background-color .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.to-top.is-visible:hover { background: var(--brick-hover); transform: translateY(-2px); }
.to-top svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 47.99rem) {
    .to-top { left: 50%; transform: translateX(-50%) scale(.95); }
    .to-top.is-visible { transform: translateX(-50%) scale(1); }
    .to-top.is-visible:hover { transform: translateX(-50%) translateY(-2px); }
}

/* ---------- Strony błędów ---------- */

.error-page { padding: var(--s9) 0; text-align: center; }
.error-page .code { font-family: var(--font-serif); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; line-height: 1; color: var(--gold); margin-bottom: var(--s3); }
.error-page p { color: var(--ink-2); max-width: 32rem; margin-left: auto; margin-right: auto; }
.error-page .btn-row { justify-content: center; margin-top: var(--s5); }

/* ---------- Chatbot ---------- */

.chat { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 60; }
.chat__toggle {
    position: relative;
    display: inline-flex; align-items: center; gap: var(--s2);
    padding: .7rem 1.1rem; border: 0; border-radius: 999px;
    background: var(--brick); color: var(--on-brick); font-weight: 700;
    box-shadow: 0 12px 24px -8px rgba(160, 77, 46, .5);
    animation: gentleFloat 3s ease-in-out infinite;
    transition: background-color .2s ease, box-shadow .3s ease;
}
.chat__toggle::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--brick); animation: pulseRing 2.4s cubic-bezier(.2, .6, .4, 1) infinite;
}
.chat__toggle:hover { background: var(--brick-hover); animation: none; box-shadow: 0 16px 30px -8px rgba(160, 77, 46, .6); }
.chat__toggle svg { width: 1.2rem; height: 1.2rem; animation: iconSpinIn .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.chat[data-open="true"] .chat__toggle { display: none; }
html.high-contrast .chat__toggle::before { display: none; }

.chat__panel {
    position: fixed; right: var(--s4); bottom: var(--s4);
    width: min(24rem, calc(100vw - 2rem)); height: min(36rem, calc(100vh - 2rem));
    display: flex; flex-direction: column;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 25px 50px -12px rgba(42, 34, 29, .35);
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatSpringIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.chat__panel.is-closing { animation: chatSpringOut .3s ease-in both; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat__head h2 { font-size: var(--step-1); margin: 0; }
.chat__head p { margin: 0; font-size: .8rem; color: var(--ink-3); }
.chat__log { flex: 1; overflow-y: auto; padding: var(--s4); display: grid; align-content: start; gap: var(--s3); overscroll-behavior: contain; }
.chat__msg { max-width: 92%; padding: var(--s3) var(--s4); border-radius: var(--radius-lg); font-size: .98rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat__msg--bot { background: var(--paper); border: 1px solid var(--line); justify-self: start; animation: msgPopIn .5s cubic-bezier(.34, 1.2, .64, 1) both; transform-origin: bottom left; }
.chat__msg--user { background: var(--brick-soft); justify-self: end; animation: msgSlideRight .4s cubic-bezier(.34, 1.2, .64, 1) both; transform-origin: bottom right; }
.chat__msg ul { margin: var(--s2) 0; padding-left: 1.2rem; }
.chat__msg p { margin: 0 0 var(--s2); }
.chat__msg p:last-child { margin: 0; }
.chat__msg h3 { font-size: 1.05rem; margin: 0 0 var(--s1); }
.chat__msg .meta { font-size: .8rem; color: var(--ink-3); margin-bottom: var(--s2); }
.chat__msg--error { border-color: var(--brick); }
.chat__options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chat__options button {
    padding: .35rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-size: .92rem;
    animation: slideIn .3s ease-out both;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, background-color .2s ease;
}
.chat__options button:nth-child(2) { animation-delay: .04s; }
.chat__options button:nth-child(3) { animation-delay: .08s; }
.chat__options button:nth-child(4) { animation-delay: .12s; }
.chat__options button:nth-child(5) { animation-delay: .16s; }
.chat__options button:nth-child(6) { animation-delay: .2s; }
.chat__options button:nth-child(7) { animation-delay: .24s; }
.chat__options button:nth-child(8) { animation-delay: .28s; }
.chat__options button:nth-child(n+9) { animation-delay: .32s; }
.chat__options button:hover { border-color: var(--brick); color: var(--link); background: var(--brick-soft); transform: translateY(-1px); }
.chat__options button:disabled { opacity: .5; cursor: not-allowed; }
.chat__form { display: flex; gap: var(--s2); padding: var(--s3); border-top: 1px solid var(--line); }
.chat__form .input { flex: 1; min-width: 0; }
.chat__foot { display: flex; justify-content: space-between; padding: 0 var(--s3) var(--s2); font-size: .78rem; color: var(--ink-3); }
.chat__typing { display: flex; align-items: center; gap: var(--s2); color: var(--ink-3); font-style: italic; font-size: .92rem; animation: fadeIn .3s ease-out both; }
.chat__dots { display: inline-flex; gap: 4px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.chat__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--brick); animation: typingWave 1.2s ease-in-out infinite; }
.chat__dots span:nth-child(2) { animation-delay: .15s; }
.chat__dots span:nth-child(3) { animation-delay: .3s; }
.chat__log::-webkit-scrollbar { width: 5px; }
.chat__log::-webkit-scrollbar-track { background: transparent; }
.chat__log::-webkit-scrollbar-thumb { background: rgba(160, 77, 46, .2); border-radius: 10px; }
.chat__log::-webkit-scrollbar-thumb:hover { background: rgba(160, 77, 46, .4); }

@media (max-width: 30rem) {
    .chat__panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
    .chat__toggle span { display: none; }
    .chat__toggle { padding: .8rem; }
}

/* ---------- Ruch ---------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes postEnter { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }

@keyframes chatSpringIn {
    0% { transform: scale(.3) translateY(20px); opacity: 0; }
    50% { transform: scale(1.05) translateY(-5px); opacity: 1; }
    70% { transform: scale(.97) translateY(2px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes chatSpringOut { from { transform: scale(1); opacity: 1; } to { transform: scale(.3) translateY(20px); opacity: 0; } }
@keyframes msgPopIn {
    0% { opacity: 0; transform: translateY(16px) scale(.9); }
    60% { opacity: 1; transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: none; }
}
@keyframes msgSlideRight {
    0% { opacity: 0; transform: translateX(20px) scale(.95); }
    60% { transform: translateX(-3px) scale(1.01); }
    100% { opacity: 1; transform: none; }
}
@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes typingWave { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
@keyframes iconSpinIn { from { transform: rotate(-90deg) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }

.fade-in { animation: fadeIn .5s ease-out both; }
.slide-up { animation: slideUp .6s ease-out both; }
.slide-down { animation: slideDown .6s ease-out both; }
.post-enter { animation: postEnter .5s ease-out both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

.page-head .crumbs { animation: fadeIn .5s ease-out .2s both; }
.page-head h1 { animation: slideUp .6s ease-out both; }
.page-head h1 + p { animation: slideUp .6s ease-out .1s both; }

.frame, .figure img { transition: box-shadow .3s ease, transform .3s ease; }
.figure:hover img { transform: scale(1.01); box-shadow: 0 20px 40px -15px rgba(42, 34, 29, .35); }
.card { transition: box-shadow .3s ease, border-color .3s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 16px 32px -18px rgba(160, 77, 46, .3); }
.chip, .pagination a, .pagination button { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.chip:hover, .pagination a:hover { transform: translateY(-1px); }
.pagination a:hover { border-color: var(--brick); color: var(--link); }
.timeline li { animation: slideIn .5s ease-out both; }
.timeline li:nth-child(2) { animation-delay: .05s; }
.timeline li:nth-child(3) { animation-delay: .1s; }
.timeline li:nth-child(4) { animation-delay: .15s; }
.timeline li:nth-child(n+5) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    .chat__toggle, .chat__toggle::before { animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media print {
    .site-header, .site-footer, .chat, .cookie-banner, .to-top, .share { display: none !important; }
    body { background: #fff; color: #000; }
}
