/* ==========================================================================
   Farnosť Varín – hlavné štýly
   Farby vychádzajú z erbu farnosti: tmavomodrá, liturgická červená, zlatá.
   ========================================================================== */

:root {
	--navy: #1f2a44;
	--navy-2: #16203a;
	--navy-3: #2d3c60;
	--ink: #1c2130;
	--text: #2f3442;
	--muted: #5f6676;
	--red: #a8232d;
	--red-2: #8b1c25;
	--gold: #c9a227;
	--gold-2: #e7c65a;
	--gold-soft: #f6ecd0;
	--cream: #faf6ee;
	--paper: #ffffff;
	--line: #e7dfd0;
	--focus: #1a73e8;

	--font-head: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .08);
	--shadow-lg: 0 20px 50px rgba(22, 32, 58, .18);
	--container: 1200px;
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-2); color: var(--ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: .75rem 1.25rem; background: var(--ink); color: #fff; border-radius: var(--radius-sm);
	font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
#site-content:focus { outline: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hide-sm { }

/* ---------- Tlačidlá ---------- */
.btn {
	--b: var(--red);
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.4rem;
	border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(168, 35, 45, .25); }
.btn--primary:hover { background: var(--red-2); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(201, 162, 39, .35); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--text { background: none; color: var(--navy); padding-inline: .5rem; text-decoration: underline; }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .94rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-row--center { justify-content: center; }
.link-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: 0; background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.link-btn .icon { width: 18px; height: 18px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem;
	font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }

.tag {
	display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px;
	font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	background: var(--gold-soft); color: #6b5310;
}
.tag .icon { width: 14px; height: 14px; }
.tag--new { background: var(--red); color: #fff; }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--light { background: rgba(255, 255, 255, .16); color: #fff; }

.ornament { color: var(--gold); margin: .25rem 0 1.25rem; width: 120px; }

/* ---------- Horná lišta ---------- */
.topbar { background: var(--navy-2); color: rgba(255, 255, 255, .85); font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.topbar__item:hover { color: #fff; }
.topbar__item .icon { width: 16px; height: 16px; color: var(--gold-2); }
.topbar__a11y {
	margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
	padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
	background: none; color: #fff; font-size: .85rem;
}
.topbar__a11y:hover { background: rgba(255, 255, 255, .1); }
.topbar__a11y .icon { width: 18px; height: 18px; }

/* ---------- Hlavička ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 42, 68, .08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.admin-bar .site-header { top: 32px; }

.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__erb { width: auto; height: 58px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .12)); transition: transform .3s var(--ease); }
.brand:hover .brand__erb { transform: rotate(-3deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.brand__sub { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav__list, .nav__list ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__list > li { position: relative; }
.nav__list a {
	display: flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
	transition: background .2s, color .2s;
}
.nav__list > li > a:hover { background: var(--cream); color: var(--red); }
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current_page_item > a { color: var(--red); background: #fbeeee; }
.nav__list .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg) translateY(-2px); margin-left: .25rem; opacity: .6;
}
.nav__list .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 50%; min-width: 230px; padding: .5rem;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: all .2s var(--ease);
}
.nav__list .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__list .sub-menu a { border-radius: 8px; font-weight: 500; }
.nav__list .sub-menu a:hover { background: var(--cream); color: var(--red); }
.submenu-toggle { display: none; }

.nav__search { display: flex; align-items: center; background: var(--cream); border-radius: 999px; border: 1px solid var(--line); overflow: hidden; }
.nav__search input { width: 120px; border: 0; background: transparent; padding: .55rem .2rem .55rem 1rem; font: inherit; font-size: .95rem; color: var(--ink); transition: width .25s var(--ease); }
.nav__search input:focus { width: 180px; outline: none; }
.nav__search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 42, 68, .12); }
.nav__search button { border: 0; background: none; padding: .55rem .85rem; color: var(--navy); display: flex; }
.nav__search .icon { width: 19px; height: 19px; }

.nav-toggle {
	display: none; margin-left: auto; align-items: center; gap: .5rem;
	padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* ---------- Hero (úvod) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 18s ease-out both; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(100deg, rgba(16, 23, 42, .92) 0%, rgba(22, 32, 58, .78) 38%, rgba(22, 32, 58, .25) 70%, rgba(22, 32, 58, .35) 100%),
		linear-gradient(0deg, rgba(16, 23, 42, .55), transparent 40%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { display: grid; grid-template-columns: 1.35fr .9fr; gap: 3rem; align-items: center; padding-block: 5rem 7rem; }
.hero__title { color: #fff; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 34em; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 60px; }
.hero__wave path { fill: #fff; }

.today-card {
	justify-self: end; width: min(100%, 380px);
	padding: 1.75rem; border-radius: 22px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
	animation: rise .9s .2s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.today-card__day { margin: 0 0 .25rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.today-card__title { color: #fff; font-size: 1.9rem; margin-bottom: 1rem; }
.today-card__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.today-card__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.today-card__list strong { font-size: 1.2rem; color: #fff; font-variant-numeric: tabular-nums; }
.today-card__note { font-size: .88rem; color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.today-card__link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-2); font-weight: 600; text-decoration: none; }
.today-card__link .icon { width: 18px; transition: transform .2s; }
.today-card__link:hover { color: #fff; }
.today-card__link:hover .icon { transform: translateX(3px); }

/* ---------- Sekcie ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; overflow-x: clip; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .86); }
.section--navy::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(1200px 400px at 50% -10%, rgba(201, 162, 39, .22), transparent 70%);
}
.section--navy .section__title { color: #fff; }
.section__head { margin-bottom: 2.5rem; }
.section__head--split { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section__head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__title { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 0; }
.section__lead { margin-top: 1rem; font-size: 1.08rem; }
.section__subtitle { font-size: 1.8rem; margin: 3rem 0 1.5rem; }

.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Karta oznamu ---------- */
.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img, .card:hover .card__media svg { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.55rem; margin: .4rem 0 .5rem; }
.card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 1px; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* celá karta klikateľná */
.card__text { color: var(--muted); font-size: .98rem; margin-bottom: 1.2rem; }
.card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; font-size: .95rem; }
.more .icon { width: 18px; transition: transform .2s; }
.card:hover .more .icon { transform: translateX(4px); }
.card .tag--new { align-self: flex-start; }

.date-badge {
	position: absolute; top: 1rem; left: 1rem; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 62px; height: 66px; border-radius: 14px; background: #fff; color: var(--ink);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .18); line-height: 1;
}
.date-badge__d { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.date-badge__m { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 700; margin-top: .2rem; }

.file-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 8px; background: var(--cream); color: var(--navy); font-size: .78rem; font-weight: 700; }
.file-chip .icon { width: 14px; height: 14px; }
.file-chip--pdf { background: #fdeceb; color: #a8232d; }
.file-chip--doc, .file-chip--docx { background: #e8f0fd; color: #1d4fa3; }

.oznam-art { display: block; width: 100%; height: 100%; }

.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--cream); border-radius: var(--radius); }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state > .icon { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--gold); }

/* ---------- Split / O farnosti ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.photo-stack { position: relative; margin: 0 0 3rem; }
.photo-stack__main { width: 88%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack__small {
	position: absolute; right: 0; bottom: -3rem; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--radius); border: 6px solid var(--cream); box-shadow: var(--shadow-lg);
}
.photo-stack::before {
	content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; z-index: -1;
	background: radial-gradient(var(--gold) 1.6px, transparent 1.8px) 0 0 / 14px 14px; opacity: .6;
}
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--red); }
.stats span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Rozpis omší ---------- */
.schedules { position: relative; }
.schedule { padding: 1.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.schedule__church { display: flex; flex-direction: column; color: #fff; font-size: 1.85rem; margin-bottom: 1rem; }
.schedule__church small { font-family: var(--font-body); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); margin-top: .25rem; }
.schedule__list { margin: 0; }
.schedule__row { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem .75rem; border-radius: 10px; }
.schedule__row + .schedule__row { border-top: 1px solid rgba(255, 255, 255, .08); }
.schedule__row dt { font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.schedule__row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
.schedule__row.is-empty dd { color: rgba(255, 255, 255, .35); font-weight: 400; }
.schedule__row.is-today { background: var(--gold); color: var(--ink); border-color: transparent; }
.schedule__row.is-today dd { color: var(--ink); }
.schedule__row.is-today + .schedule__row { border-top-color: transparent; }
.today-pill { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .45rem; border-radius: 99px; background: var(--ink); color: #fff; }

.schedules--light .schedule { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.schedules--light .schedule__church { color: var(--ink); }
.schedules--light .schedule__church small { color: var(--red); }
.schedules--light .schedule__row + .schedule__row { border-top-color: var(--line); }
.schedules--light .schedule__row dd { color: var(--ink); }
.schedules--light .schedule__row.is-empty dd { color: #b4b8c2; }
.schedules--light .schedule__row.is-today { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }

.schedule__list--office .schedule__row { padding: .5rem 0; border-radius: 0; }
.site-footer .schedule__list--office .schedule__row + .schedule__row { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .schedule__list--office .schedule__row dd { color: #fff; font-weight: 600; }
.site-footer .schedule__list--office .schedule__row.is-today { background: none; color: var(--gold-2); }
.site-footer .schedule__list--office .schedule__row.is-today dd { color: var(--gold-2); }
.contact-card .schedule__row { padding: .7rem .75rem; }
.contact-card .schedule__row + .schedule__row { border-top: 1px solid var(--line); }
.contact-card .schedule__row dd { color: var(--ink); }
.contact-card .schedule__row.is-today { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.contact-card .schedule__row.is-empty dd { color: #b4b8c2; }

/* ---------- Kostoly ---------- */
.churches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.church { display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.church:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.church__media { aspect-ratio: 2 / 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); position: relative; overflow: hidden; }
.church__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(201, 162, 39, .25), transparent 60%); }
.church__media img { width: 100%; height: 100%; object-fit: cover; }
.church__icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(231, 198, 90, .6); color: var(--gold-2); position: relative; z-index: 1; }
.church__icon .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.church__body { padding: 1.25rem 1.4rem 1.5rem; }
.church__place { margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.church__title { font-size: 1.45rem; }
.church__body p:last-child { margin: 0; color: var(--muted); font-size: .97rem; }
.church--feature { grid-row: span 2; grid-column: span 2; }
.church--feature .church__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.church--feature .church__media::after { background: linear-gradient(0deg, rgba(22, 32, 58, .25), transparent 50%); }
.church--feature .church__title { font-size: 1.9rem; }

/* ---------- Sviatosti ---------- */
.sac-strip, .sac-strip ul { list-style: none; margin: 0; padding: 0; }
.sac-strip, .sac-strip--nav ul { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.sac-strip--nav { display: block; margin-bottom: 3rem; }
.sac-strip a {
	display: flex; flex-direction: column; align-items: center; gap: .75rem; height: 100%;
	padding: 1.4rem .6rem 1.2rem; text-align: center; text-decoration: none;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.25;
	transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.sac-strip a:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); color: var(--red); }
.sac-art { width: 60px; height: 60px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sac-art .g { fill: var(--gold-soft); stroke: var(--gold); }
.sac-art .b { fill: #cfe3f6; stroke: #3d6fa8; }
.sac-art .w { stroke: var(--red); }

.prose--sacraments h2 {
	display: flex; align-items: center; gap: 1rem; font-size: 2.2rem; margin-top: 3.5rem;
	padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose--sacraments h2 .sac-art { width: 54px; height: 54px; flex: none; padding: 6px; border-radius: 14px; background: var(--cream); }
.prose--sacraments h2:target { color: var(--red); }

/* ---------- Erb ---------- */
.section--erb { background: linear-gradient(180deg, #fff, var(--cream)); }
.erb { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: center; max-width: 1000px; }
.erb__img { position: relative; }
.erb__img::before { content: ""; position: absolute; inset: 8% -10%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, .28), transparent 65%); z-index: 0; }
.erb__img img { position: relative; z-index: 1; width: 100%; max-width: 300px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(31, 42, 68, .25)); }

/* ---------- Kontakt ---------- */
.contact-band { background: var(--navy); color: rgba(255, 255, 255, .85); }
.contact-band .section__title { color: #fff; margin-bottom: 1.5rem; }
.contact-band .eyebrow { color: var(--gold-2); }
.contact-band__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(201, 162, 39, .15); color: var(--gold-2); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); }
.contact-band .contact-list a { color: #fff; }
.contact-grid .contact-list .icon { background: var(--gold-soft); color: var(--red); }
.contact-grid .contact-list strong { color: var(--red); }

.map-consent { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; background: #e9e4da; display: grid; }
.map-consent__placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25rem;
	padding: 2rem; color: var(--ink);
	background:
		repeating-linear-gradient(45deg, rgba(31, 42, 68, .04) 0 2px, transparent 2px 22px),
		radial-gradient(circle at 50% 45%, #fff 0, #efe9dd 70%);
}
.map-consent__placeholder > .icon { width: 52px; height: 52px; color: var(--red); margin-bottom: .5rem; }
.map-consent__note { font-size: .88rem; color: var(--muted); max-width: 32em; }
.map-consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.map-consent iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.contact-map { margin-top: 2.5rem; }
.contact-map .map-consent { min-height: 420px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.contact-card { padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card__h { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; margin: 0 0 1.25rem; }
.contact-card__h .icon { width: 26px; height: 26px; color: var(--red); }
.contact-card .contact-list + .contact-card__h { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.priests { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.priests li { display: flex; align-items: center; gap: 1rem; }
.priests li > span:last-child { display: flex; flex-direction: column; }
.priests small { color: var(--muted); }
.priests__avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-2); flex: none; }
.priests__avatar .icon { width: 22px; height: 22px; }

/* ---------- Hlavička podstránky ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.03); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(16, 23, 42, .94) 0%, rgba(22, 32, 58, .82) 55%, rgba(22, 32, 58, .55)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold), var(--red)); }
.page-hero__title { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); margin: .25rem 0 .5rem; }
.page-hero__lead { max-width: 40em; color: rgba(255, 255, 255, .85); font-size: 1.12rem; margin: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.25rem; padding: 0; font-size: .9rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "›"; color: var(--gold-2); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--gold-2); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Obsah (prose) ---------- */
.prose { font-size: 1.1rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 2.1rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-head); font-size: 1.4rem; font-style: italic; color: var(--ink); }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream); font-weight: 700; }
.prose .lead { font-size: 1.25rem; color: var(--ink); }
.prose .box { padding: 1.5rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); margin: 1.5rem 0; }
.prose .box > :last-child { margin-bottom: 0; }

.links-list { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.links-list li { margin: 0; padding: 1.4rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.links-list h3 { margin: 0 0 .4rem; font-size: 1.5rem; }
.links-list p { margin: 0; color: var(--muted); font-size: 1rem; }

.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.4rem; margin-bottom: 2rem; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #ecd9a0; color: #4f3e0d; }
.notice .icon { flex: none; width: 24px; height: 24px; color: #8a6a0e; margin-top: .15rem; }
.notice p { margin: 0; }
.notice a { color: #6b1219; font-weight: 600; }

.child-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 3rem; }
.child-pages__item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; transition: background .2s, transform .2s; }
.child-pages__item:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.child-pages__item .icon { color: var(--gold-2); }

.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff; font-size: .9rem; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); }

/* ---------- Časová os (kronika) ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 139px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.timeline__item { display: grid; grid-template-columns: 116px 1fr; gap: 2.75rem; padding-bottom: 1.75rem; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 133px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 0 0 5px #fff; }
.timeline__year { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--red); text-align: right; line-height: 1.2; padding-right: .5rem; }
.timeline__card { padding: 1.1rem 1.4rem; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.timeline__card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline__title { font-size: 1.45rem; margin-bottom: .3rem; }
.timeline__card p { margin: 0; }

/* ---------- Oznam – detail ---------- */
.oznam-hero { position: relative; isolation: isolate; color: #fff; padding-block: clamp(3rem, 7vw, 5rem) 7rem; overflow: hidden; }
.oznam-hero__art { position: absolute; inset: 0; z-index: -2; }
.oznam-hero__art svg, .oznam-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.oznam-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 23, 42, .55), rgba(16, 23, 42, .85)); }
.oznam-hero__meta { display: flex; gap: .5rem; margin-bottom: .9rem; }
.oznam-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.oznam-hero__date { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0; color: rgba(255, 255, 255, .85); }
.oznam-hero__date .icon { width: 18px; height: 18px; color: var(--gold-2); }
.oznam-hero__date .dot { margin-inline: .35rem; }

.oznam-main { padding-top: 0; }
.oznam-sheet {
	position: relative; margin-top: -5rem; padding: clamp(1.75rem, 5vw, 3.25rem);
	background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.oznam-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--red), var(--gold), var(--red)); }
.oznam-sheet__seal { position: absolute; right: clamp(1rem, 4vw, 2.5rem); top: -36px; width: 64px; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.oznam-sheet__seal img { width: 100%; height: auto; }
.oznam-sheet__foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.oznam-sheet__sign { margin: 0; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3; color: var(--muted); }
.oznam-sheet__sign strong { color: var(--ink); font-size: 1.4rem; }
.oznam-sheet__tools { display: flex; gap: .5rem; flex-wrap: wrap; }

.attachment { margin-top: 2.25rem; }
.attachment__h { font-family: var(--font-body); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .75rem; }
.attachment__image { display: block; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.attachment__card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.attachment__icon { position: relative; width: 52px; height: 60px; flex: none; display: grid; place-items: center; color: var(--navy); }
.attachment__icon .icon { width: 52px; height: 60px; stroke-width: 1.2; }
.attachment__icon b { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px; background: var(--navy); color: #fff; font-size: .62rem; letter-spacing: .04em; }
.attachment__icon--pdf { color: var(--red); }
.attachment__icon--pdf b { background: var(--red); }
.attachment__icon--doc b, .attachment__icon--docx b { background: #1d4fa3; }
.attachment__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.attachment__info strong { overflow-wrap: anywhere; color: var(--ink); }
.attachment__info small { color: var(--muted); }
.attachment__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pdf-preview { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #525659; }
.pdf-preview iframe { width: 100%; height: min(80vh, 900px); border: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.post-nav__item { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.post-nav__item:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.post-nav__item small { display: inline-flex; align-items: center; gap: .35rem; color: var(--red); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.post-nav__item small .icon { width: 16px; height: 16px; }
.post-nav__item span { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.post-nav__item--next { grid-column: 2; text-align: right; align-items: flex-end; }

/* Archív – zvýraznený oznam */
.oznam-lead { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: 22px; background: var(--navy); color: rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg); }
.oznam-lead__media { min-height: 320px; }
.oznam-lead__media img, .oznam-lead__media svg { width: 100%; height: 100%; object-fit: cover; }
.oznam-lead__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.oznam-lead__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .92rem; color: var(--gold-2); }
.oznam-lead__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.oznam-lead__title a { color: #fff; text-decoration: none; }
.oznam-lead__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.oznam-lead .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.oznam-lead .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Stránkovanie */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.page-numbers .icon { width: 18px; height: 18px; }

/* Vyhľadávanie */
.search-form { display: flex; gap: .5rem; margin: 0 0 2rem; }
.search-form input { flex: 1; min-width: 0; min-height: 52px; padding: .7rem 1.2rem; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.search-form input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31, 42, 68, .12); }
.results { list-style: none; padding: 0; margin: 0; }
.results__item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.results__item h2 { font-size: 1.7rem; margin: .5rem 0; }
.results__item h2 a { color: var(--ink); text-decoration: none; }
.results__item h2 a:hover { color: var(--red); }
.big-404 { font-family: var(--font-head); font-size: clamp(6rem, 20vw, 11rem); line-height: 1; font-weight: 700; color: var(--gold-soft); -webkit-text-stroke: 2px var(--gold); margin: 0 0 1rem; }

/* Mapa stránok */
.sitemap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.sitemap__col { padding: 1.75rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.sitemap__col h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; }
.sitemap__col h2 .icon { width: 26px; height: 26px; color: var(--red); }
.sitemap__col h2 a { color: inherit; text-decoration: none; }
.sitemap__tree, .sitemap__tree ul { list-style: none; margin: 0; padding: 0; }
.sitemap__tree ul { margin: .25rem 0 .25rem 1rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.sitemap__tree li { margin: .35rem 0; }
.sitemap__tree a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sitemap__tree a:hover { color: var(--red); text-decoration: underline; }
.sitemap__tree small { color: var(--muted); }
.sitemap .search-form { flex-direction: column; }

/* ---------- Pätička ---------- */
.site-footer { position: relative; background: var(--navy-2); color: rgba(255, 255, 255, .75); font-size: .97rem; }
.site-footer__cross { display: flex; justify-content: center; padding-top: 3rem; }
.site-footer__cross .ornament { width: 180px; margin: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
.site-footer__h { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-2); margin-bottom: 1.1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold-2); }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__erb { height: 70px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: rgba(255, 255, 255, .6); }
.site-footer__list, .site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer__list li { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__list .icon { width: 18px; height: 18px; color: var(--gold-2); flex: none; margin-top: .25rem; }
.site-footer__links a { display: inline-flex; align-items: center; gap: .4rem; }
.site-footer__links a::before { content: "›"; color: var(--gold-2); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .75rem; }
.site-footer__bottom p { margin: 0; font-size: .9rem; }
.to-top { display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; }
.to-top__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .25s var(--ease), background .2s; }
.to-top:hover { text-decoration: none !important; }
.to-top:hover .to-top__icon { transform: translateY(-4px); background: var(--gold-2); }
.to-top__icon .icon { width: 20px; height: 20px; }

.to-top-float {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
	display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top-float:hover { background: var(--red); color: #fff; }
.to-top-float .icon { width: 22px; height: 22px; }

/* ---------- Panel prístupnosti ---------- */
.a11y-fab {
	position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 95;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff;
	background: #1556b8; color: #fff; box-shadow: 0 8px 24px rgba(21, 86, 184, .4); transition: transform .2s;
}
.a11y-fab:hover { transform: scale(1.08); }
.a11y-fab .icon { width: 28px; height: 28px; stroke-width: 2; }
.a11y-panel {
	position: fixed; left: 1.25rem; bottom: 5.5rem; z-index: 200; width: min(360px, calc(100vw - 2.5rem));
	max-height: calc(100vh - 7rem); overflow: auto; padding: 1.4rem;
	background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); border: 1px solid var(--line);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.45;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; }
.a11y-panel h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-family: inherit; font-size: 1.25rem; font-weight: 700; }
.a11y-panel h2 .icon { width: 26px; height: 26px; color: #1556b8; }
.a11y-panel__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.a11y-panel__intro { margin: .5rem 0 1rem; font-size: 14px; color: var(--muted); }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin-bottom: .75rem; border-radius: 14px; background: #eef4fd; font-weight: 600; }
.a11y-size__ctrl { display: flex; align-items: center; gap: .5rem; }
.a11y-size__ctrl button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1556b8; color: #fff; }
.a11y-size__ctrl output { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.a11y-opt {
	display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; min-height: 86px;
	border-radius: 14px; border: 2px solid #e2e6ee; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center;
	transition: border-color .15s, background .15s;
}
.a11y-opt .icon { width: 26px; height: 26px; color: #1556b8; }
.a11y-opt:hover { border-color: #1556b8; }
.a11y-opt[aria-pressed="true"] { background: #1556b8; border-color: #1556b8; color: #fff; }
.a11y-opt[aria-pressed="true"] .icon { color: #fff; }
.a11y-panel__hint { font-size: 13px; color: var(--muted); margin: .75rem 0; }
.a11y-panel .btn { font-family: inherit; }
.a11y-panel__more { margin: .75rem 0 0; text-align: center; font-size: 14px; }
.speak-highlight { background: #fff3a8 !important; color: #000 !important; border-radius: 4px; box-shadow: 0 0 0 4px #fff3a8; }

/* ---------- Lišta cookies ---------- */
.cookie-bar {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; margin-inline: auto;
	max-width: 980px; padding: 1.25rem 1.5rem; border-radius: 20px;
	background: #fff; color: var(--ink); box-shadow: 0 25px 70px rgba(0, 0, 0, .3); border: 1px solid var(--line);
	animation: rise .5s var(--ease) both;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; }
.cookie-bar__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gold-soft); color: #8a6a0e; }
.cookie-bar__icon .icon { width: 30px; height: 30px; }
.cookie-bar h2 { font-size: 1.4rem; margin: 0 0 .2rem; }
.cookie-bar p { margin: 0; font-size: .95rem; color: var(--muted); }
.cookie-bar__actions { display: flex; flex-direction: column; gap: .5rem; min-width: 190px; }
.cookie-bar__actions .btn { min-height: 44px; }
.cookie-bar__prefs { display: grid; gap: .5rem; margin-top: .9rem; }
.cookie-bar__prefs[hidden] { display: none; }
.switch { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; background: var(--cream); font-weight: 600; }
.switch input { width: 20px; height: 20px; accent-color: var(--red); }
.switch small { color: var(--muted); font-weight: 400; margin-left: auto; }

/* ---------- Animácie pri skrolovaní ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responzívnosť
   ========================================================================== */
@media (max-width: 1180px) {
	.nav__search input { width: 90px; }
	.nav__list a { padding: .55rem .6rem; }
	.sac-strip, .sac-strip--nav ul { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.nav-toggle { display: inline-flex; }
	.site-header { backdrop-filter: none; background: #fff; }
	.nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 99;
		border-top: 1px solid var(--line);
		flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem 1.25rem 3rem;
		background: #fff; overflow-y: auto; margin: 0;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease);
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.nav__list > li > a { flex: 1; padding: 1rem .5rem; font-size: 1.15rem; border-radius: 8px; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--cream); border-radius: 10px; color: var(--ink); }
	.submenu-toggle .icon { transition: transform .2s; }
	.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.nav__list .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem 1rem; border: 0; box-shadow: none; background: none;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.nav__list .sub-menu.is-open { display: block; }
	.nav__list li:hover > .sub-menu { transform: none; }
	.nav__search { order: -1; }
	.nav__search input, .nav__search input:focus { width: 100%; flex: 1; padding-block: .8rem; }
	body.nav-open { overflow: hidden; }

	.hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 4rem 6rem; }
	.today-card { justify-self: start; }
	.grid--3, .churches { grid-template-columns: repeat(2, 1fr); }
	.church--feature { grid-row: auto; grid-column: span 2; }
	.church--feature .church__media { min-height: 320px; }
	.split, .contact-band__grid, .oznam-lead { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.sitemap { grid-template-columns: 1fr 1fr; }
	.sitemap__col:first-child { grid-column: span 2; }
	.erb { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 720px) {
	body { font-size: 1rem; }
	.hide-sm { display: none !important; }
	.topbar__inner { gap: 1rem; font-size: .82rem; }
	.topbar__item:first-child span { display: none; }
	.topbar__a11y span { display: none; }
	.brand__erb { height: 46px; }
	.brand__name { font-size: 1.35rem; }
	.brand__sub { font-size: .62rem; letter-spacing: .04em; }
	.nav-toggle__label { display: none; }
	.nav-toggle { padding: .6rem; }

	.hero { min-height: 0; }
	.hero__actions .btn { flex: 1 1 100%; }
	.today-card { width: 100%; }
	.grid--3, .churches, .contact-grid, .sitemap, .post-nav { grid-template-columns: 1fr; }
	.church--feature { grid-column: auto; }
	.church:not(.church--feature) .church__media { aspect-ratio: 3 / 1; }
	.sitemap__col:first-child { grid-column: auto; }
	.post-nav__item--next { grid-column: auto; }
	.sac-strip, .sac-strip--nav ul { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
	.stats strong { font-size: 1.8rem; }
	.stats span { font-size: .7rem; }
	.photo-stack__main { width: 100%; }
	.photo-stack__small { width: 55%; right: 0; }
	.erb { grid-template-columns: 1fr; text-align: left; }
	.erb__img img { max-width: 200px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
	.site-footer__bottom-inner { flex-direction: column-reverse; justify-content: center; text-align: center; padding-block: 1.25rem; }
	.section__head--split { align-items: flex-start; }
	.timeline::before { left: 7px; }
	.timeline__item { grid-template-columns: 1fr; gap: .4rem; padding-left: 2rem; }
	.timeline__item::before { left: 1px; top: 6px; }
	.timeline__year { text-align: left; }
	.cookie-bar__inner { grid-template-columns: 1fr; gap: .9rem; }
	.cookie-bar__icon { display: none; }
	.cookie-bar__actions { min-width: 0; }
	.cookie-bar { left: .5rem; right: .5rem; bottom: .5rem; padding: 1.1rem; max-height: calc(100vh - 1rem); overflow: auto; }
	.a11y-fab { width: 48px; height: 48px; left: .75rem; bottom: .75rem; }
	.to-top-float { width: 46px; height: 46px; right: .75rem; bottom: .75rem; }
	.a11y-panel { left: .75rem; bottom: 4.5rem; }
	.oznam-sheet__seal { width: 52px; top: -28px; }
	.search-form { flex-direction: column; }
	.attachment__actions { width: 100%; }
	.attachment__actions .btn { flex: 1; }
}

/* ==========================================================================
   Režimy prístupnosti
   ========================================================================== */
html.a11y-contrast {
	--navy: #000; --navy-2: #000; --navy-3: #000; --ink: #000; --text: #000; --muted: #000;
	--red: #b00000; --red-2: #800000; --gold: #ffd800; --gold-2: #ffd800; --gold-soft: #fff6b0;
	--cream: #fff; --line: #000; --focus: #ff00ff;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast a { text-decoration: underline !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .page-hero::before, html.a11y-contrast .oznam-hero::before { background: rgba(0, 0, 0, .9); }
html.a11y-contrast .section--navy, html.a11y-contrast .contact-band, html.a11y-contrast .site-footer, html.a11y-contrast .topbar, html.a11y-contrast .oznam-lead { color: #fff; }
html.a11y-contrast .section--navy *, html.a11y-contrast .contact-band *:not(.btn):not(.map-consent *), html.a11y-contrast .site-footer * { color: #fff; }
html.a11y-contrast .section--navy .is-today *, html.a11y-contrast .eyebrow--light, html.a11y-contrast .site-footer__h, html.a11y-contrast .contact-band .eyebrow { color: #ffd800 !important; }
html.a11y-contrast .schedule__row.is-today, html.a11y-contrast .schedule__row.is-today * { background: #ffd800; color: #000 !important; }
html.a11y-contrast .card, html.a11y-contrast .church, html.a11y-contrast .contact-card, html.a11y-contrast .sac-strip a, html.a11y-contrast .timeline__card { border: 2px solid #000; }
html.a11y-contrast .btn { border: 2px solid currentColor; }
html.a11y-contrast .btn--primary { background: #000; color: #fff; }
html.a11y-contrast .btn--gold { background: #ffd800; color: #000; }
html.a11y-contrast .card__text, html.a11y-contrast .church__body p { color: #000 !important; }

html.a11y-gray { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background-color: #fff6b0; color: #00349b !important; box-shadow: 0 0 0 2px #fff6b0; border-radius: 2px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4, html.a11y-readable .brand__name, html.a11y-readable .date-badge__d, html.a11y-readable .stats strong, html.a11y-readable .timeline__year {
	font-family: Verdana, Tahoma, "Atkinson Hyperlegible", Arial, sans-serif !important; letter-spacing: .02em; font-style: normal !important;
}
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { font-weight: 700; }
html.a11y-spacing body { line-height: 2 !important; word-spacing: .16em; letter-spacing: .03em; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.4em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l32 17-14 4-6 16z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 2, auto !important;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
