/* =========================================================================
   Šablona Černiv – hlavní styly
   Paleta vychází z obecního znaku: zelená, zlatá, modrá.
   ====================================================================== */

:root {
	--c-green-900: #0B361B;
	--c-green-800: #0F4A24;
	--c-green-700: #176A34;
	--c-green-100: #E3F1E6;
	--c-green-50: #F4F7F2;
	--c-gold: #E3B23C;
	--c-gold-dark: #D9A52A;
	--c-gold-100: #FBF0D3;
	--c-gold-text: #6B4E07;
	--c-blue: #1F4E8C;
	--c-blue-100: #E4ECF7;
	--c-blue-text: #1F3F73;
	--c-ink: #15221A;
	--c-ink-soft: #3F4B43;
	--c-muted: #5C6B60;
	--c-line: #E1E8E2;
	--c-line-strong: #C9D6CC;
	--c-white: #FFFFFF;
	--c-footer-text: #CFE0D3;
	--c-topbar-text: #D7E6DA;

	--font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: Manrope, Inter, system-ui, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 28px rgba(15, 74, 36, .10);
	--shadow-lg: 0 24px 60px rgba(15, 74, 36, .18);
	--wrap: 1440px;
	--gutter: 24px;
	--section: 72px;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-green-700); text-decoration: none; }
a:hover { color: var(--c-green-800); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
	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:focus {
	position: fixed !important; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto; margin: 0;
	padding: 12px 18px; clip: auto; background: var(--c-green-800); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
}

/* --- Layout ------------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--tint { background: var(--c-green-50); }
.section--dark { background: var(--c-green-800); color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section--flush-top { padding-top: 0; }
.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px;
}
.section-head__text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-green-700); }
.section--dark .eyebrow { color: var(--c-gold); }
.more-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.lead { font-size: 17px; color: var(--c-ink-soft); }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* --- Ikony, tlačítka, štítky ------------------------------------------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon-btn {
	width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--c-line-strong); background: #fff;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-ink);
}
.icon-btn:hover { background: var(--c-green-50); }
.icon-box {
	width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--c-green-100); color: var(--c-green-800);
	display: inline-flex; align-items: center; justify-content: center;
}
.icon-box--gold { background: var(--c-gold-100); color: var(--c-gold-text); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer;
	text-decoration: none; line-height: 1.2; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--c-green-700); color: #fff; }
.btn--primary:hover { background: var(--c-green-800); color: #fff; }
.btn--secondary { background: #fff; color: var(--c-green-800); border-color: var(--c-line-strong); }
.btn--secondary:hover { background: var(--c-green-50); color: var(--c-green-800); }
.btn--gold { background: var(--c-gold); color: var(--c-ink); }
.btn--gold:hover { background: var(--c-gold-dark); color: var(--c-ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
	display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 16px;
	white-space: nowrap; text-decoration: none;
}
.tag--green { background: var(--c-green-100); color: var(--c-green-800); }
.tag--blue { background: var(--c-blue-100); color: var(--c-blue-text); }
.tag--gold { background: var(--c-gold-100); color: var(--c-gold-text); }
.tag--gray { background: #EEF1EE; color: var(--c-ink-soft); }
a.tag:hover { text-decoration: underline; }

.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink); font-weight: 500; font-size: 14px; cursor: pointer;
	text-decoration: none;
}
.chip:hover { background: var(--c-green-50); text-decoration: none; color: var(--c-ink); }
.chip.is-active { background: var(--c-green-800); border-color: var(--c-green-800); color: #fff; }
.chip__count { opacity: .8; }

.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.card--pad { padding: 22px; }
.card--tint { background: var(--c-green-50); }
.card--dark { background: var(--c-green-800); border-color: var(--c-green-800); color: #fff; }
.card--dark a:not(.btn) { color: #fff; }
.card--dark .muted { color: var(--c-topbar-text); }

.input {
	min-height: 48px; border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm); padding: 0 14px;
	background: #fff; color: var(--c-ink); width: 100%;
}
textarea.input { min-height: 140px; padding: 12px 14px; resize: vertical; }
select.input { padding-right: 36px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6B60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }

.placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%;
	min-height: 120px; background: linear-gradient(135deg, #CFE0D3 0%, #9CC3A6 55%, #5E9A6D 100%); color: var(--c-green-800);
	font-size: 13px; font-weight: 600; text-align: center; padding: 12px;
}

/* --- Horní lišta ------------------------------------------------------- */
.topbar { background: var(--c-green-800); color: var(--c-topbar-text); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar__contacts, .topbar__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; color: var(--c-topbar-text); }
.topbar__contacts a { color: #fff; }
.topbar a:hover { color: #fff; }
@media (max-width: 719px) {
	.topbar__links, .topbar__contacts span { display: none; }
}

/* --- Hlavička ---------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 84px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--c-ink); }
.brand:hover { text-decoration: none; color: var(--c-ink); }
.brand__crest { width: 44px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand__sub { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav__link { color: var(--c-ink); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 8px; display: inline-block; }
.nav__link:hover { background: var(--c-green-50); text-decoration: none; color: var(--c-green-800); }
.nav__link.is-active { background: var(--c-green-100); color: var(--c-green-800); font-weight: 600; }
.nav__mobile-actions { display: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

.search-bar { border-top: 1px solid var(--c-line); background: var(--c-green-50); padding: 16px 0; }
.search-form { display: flex; gap: 10px; }
.search-form .input { flex: 1 1 auto; }

/* Středně široké obrazovky: menu se vejde na jeden řádek */
@media (min-width: 1024px) and (max-width: 1199px) {
	.site-header__inner { column-gap: 16px; }
	.brand__sub { display: none; }
	.nav__link { padding: 10px 8px; }
}

@media (max-width: 1023px) {
	.site-header__inner { min-height: 72px; gap: 12px; }
	.header-actions__contact { display: none; }
	.header-actions { order: 2; margin-left: auto; }
	.nav-toggle {
		display: inline-flex; width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid transparent;
		background: var(--c-green-700); color: #fff; align-items: center; justify-content: center; cursor: pointer; flex: none; order: 3;
	}
	.nav-toggle__close { display: none; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: block; }
	.brand__name { white-space: nowrap; }

	/* Menu jako panel přes celou šířku pod hlavičkou */
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
		background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 18px 40px rgba(16, 40, 24, .16);
		padding: 8px var(--gutter, 16px) 20px; max-height: calc(100vh - 120px); overflow-y: auto;
	}
	body.nav-open .nav { display: block; }
	body.nav-open::after {
		content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(16, 40, 24, .35);
	}
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; max-width: 720px; margin: 0 auto; }
	.nav__list > li { border-bottom: 1px solid var(--c-line); }
	.nav__link { display: flex; align-items: center; justify-content: space-between; padding: 15px 8px; font-size: 17px; border-radius: 0; }
	.nav__link::after { content: "›"; font-size: 22px; line-height: 1; color: var(--c-muted); }
	.nav__link.is-active { background: none; color: var(--c-green-800); box-shadow: inset 3px 0 0 var(--c-green-700); padding-left: 14px; }
	.nav__mobile-actions { display: flex; flex-direction: column; gap: 12px; margin: 18px auto 0; max-width: 720px; }
	.nav__mobile-actions > .btn--primary { width: 100%; }
	.nav__mobile-actions .search-form .input { min-width: 0; }
	.nav__mobile-actions .search-form .btn span { display: none; }
}
@media (max-width: 599px) {
	.brand { gap: 10px; }
	.brand__sub { display: none; }
	.brand__name { font-size: 19px; }
	.brand__crest { width: 36px; }
}

/* --- Úvod: hero -------------------------------------------------------- */
.hero { background: var(--c-green-50); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--c-green-800); }
.hero__lead { font-size: 19px; color: var(--c-ink-soft); max-width: 520px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--c-muted); }
.hero__facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero__media { flex: 1 1 440px; min-width: 0; position: relative; }
.hero__image { height: 400px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
	position: absolute; left: 24px; bottom: -24px; padding: 14px 18px; display: flex; gap: 14px; align-items: center;
	box-shadow: 0 12px 32px rgba(15, 74, 36, .14); max-width: calc(100% - 48px);
}
.hero__badge .icon-box { width: 40px; height: 40px; }
.hero__badge-text { display: flex; flex-direction: column; line-height: 1.3; }
@media (max-width: 719px) {
	.hero__inner { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
	.hero__image { height: 220px; }
	.hero__badge { position: static; margin-top: 12px; max-width: none; }
}

/* --- Rychlé akce ------------------------------------------------------- */
.quick { background: var(--c-green-50); padding-bottom: 56px; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 24px; }
.tile {
	display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: #fff;
	border: 1px solid var(--c-line); color: var(--c-ink); min-height: 150px;
}
.tile:hover { border-color: var(--c-green-700); text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); }
.tile__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.tile--row { flex-direction: row; align-items: flex-start; gap: 16px; min-height: 0; }
.tile--row .tile__text { display: flex; flex-direction: column; gap: 6px; }
.tile--row .tile__title { font-size: 17px; }
@media (max-width: 719px) {
	.quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tile { padding: 16px; min-height: 0; gap: 10px; }
	.tile__title { font-size: 15px; }
	.tile__desc { display: none; }
}

/* --- Aktuality --------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.news-card {
	display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff;
	border: 1px solid var(--c-line); color: var(--c-ink);
}
.news-card:hover { text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); }
.news-card__media { display: block; height: 160px; background: var(--c-green-50); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Ilustrace aktuality bez obrázku (barva a ikona podle rubriky) */
.post-art {
	--a1: #3F4B43; --a2: #26302A; --glow: rgba(255, 255, 255, .16); --ic: #E3ECE5;
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 100%; min-height: 120px; overflow: hidden; background: linear-gradient(135deg, var(--a1), var(--a2));
}
.post-art::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.7px); background-size: 22px 22px;
}
.post-art::after {
	content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
}
.post-art__icon {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px;
	border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: var(--ic);
}
.post-art__icon .icon { width: 34px; height: 34px; }
.post-art__label {
	position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: 13px;
	letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.post-art--gold { --a1: #176A34; --a2: #0B361B; --glow: rgba(227, 178, 60, .38); --ic: #F6D77A; }
.post-art--green { --a1: #2F8A4C; --a2: #0F4A24; --glow: rgba(170, 225, 180, .3); --ic: #DDF2E2; }
.post-art--blue { --a1: #2A62A8; --a2: #16396A; --glow: rgba(160, 200, 245, .32); --ic: #E4ECF7; }
.news-card--compact .post-art { min-height: 0; }
.news-card--compact .post-art__label { display: none; }
.news-card--compact .post-art__icon { width: 46px; height: 46px; }
.news-card--compact .post-art__icon .icon { width: 22px; height: 22px; }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--c-muted); }
.news-card__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; }
.news-card__excerpt { font-size: 14px; color: var(--c-muted); }
.news-card--compact { flex-direction: row; align-items: center; }
.news-card--compact .news-card__media { width: 88px; height: 88px; flex: none; margin: 14px 0 14px 14px; border-radius: 10px; overflow: hidden; }
.news-card--compact .news-card__body { padding: 14px; gap: 6px; }
.news-card--compact .news-card__title { font-size: 16px; }
.news-card--featured { flex-direction: row; flex-wrap: wrap; }
.news-card--featured .news-card__media { flex: 1 1 320px; min-height: 280px; height: auto; }
.news-card--featured .news-card__body { flex: 1 1 320px; padding: 28px; justify-content: center; gap: 14px; }
.news-card--featured .news-card__title { font-size: 28px; font-weight: 800; }
.news-card--featured .news-card__excerpt { font-size: 16px; color: var(--c-ink-soft); }

/* --- Úřední deska: krátký výpis ---------------------------------------- */
.deska-list { padding: 4px 22px 18px; }
.deska-item {
	display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-line); align-items: flex-start; color: var(--c-ink);
}
.deska-item:first-child { border-top: none; }
.deska-item:hover { text-decoration: none; color: var(--c-green-800); }
.deska-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.deska-item__title { font-weight: 600; line-height: 1.3; }
.deska-list__footer { padding-top: 16px; border-top: 1px solid var(--c-line); }

.date-block {
	display: flex; flex-direction: column; align-items: center; width: 52px; flex: none; background: var(--c-green-50);
	border-radius: var(--radius-sm); padding: 8px 0; line-height: 1.1; color: var(--c-ink);
}
.date-block__day { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.date-block__month { font-size: 12px; text-transform: uppercase; color: var(--c-muted); }
.date-block--dark, .date-block--green { width: 60px; padding: 10px 0; color: #fff; border-radius: 12px; }
.date-block--dark { background: var(--c-green-800); }
.date-block--green { background: var(--c-green-700); }
.date-block--dark .date-block__day, .date-block--green .date-block__day { font-size: 24px; }
.date-block--dark .date-block__month, .date-block--green .date-block__month { color: #fff; opacity: .85; }
.date-block--gold { background: var(--c-gold-100); color: var(--c-gold-text); }
.date-block--gold .date-block__month { color: var(--c-gold-text); }

/* --- Události ---------------------------------------------------------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.event-card {
	display: flex; gap: 16px; padding: 18px; color: var(--c-ink); align-items: flex-start; background: #fff;
	border: 1px solid var(--c-line); border-radius: var(--radius);
}
.event-card:hover { text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); }
.event-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.event-card__title { font-weight: 600; }
.event-card__time { font-size: 14px; }
.event-card--compact { padding: 14px 0; border: none; border-top: 1px solid var(--c-line); border-radius: 0; }
.event-card--compact:first-of-type { border-top: none; }
.event-card--compact:hover { box-shadow: none; color: var(--c-green-800); }
.event-list { display: flex; flex-direction: column; }
.month-head { font-size: 20px; font-weight: 800; margin: 32px 0 12px; text-transform: capitalize; }
.month-head:first-child { margin-top: 0; }

/* --- Životní situace / O obci / Odběr ---------------------------------- */
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 8px; }
.fact { display: flex; flex-direction: column; }
.fact__value { font-family: var(--font-head); font-weight: 800; font-size: 36px; color: var(--c-gold); }
.fact__label { font-size: 14px; color: var(--c-topbar-text); }
.about__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__text h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.about__text p { color: var(--c-topbar-text); font-size: 17px; }
.about__gallery { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about__gallery a, .about__gallery .placeholder { height: 170px; border-radius: 14px; overflow: hidden; display: block; }
.about__gallery img { width: 100%; height: 100%; object-fit: cover; }

.subscribe { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px; align-items: center; }
.subscribe__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.subscribe__text h2 { font-size: 28px; font-weight: 800; }
.subscribe__actions { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 719px) { .subscribe { padding: 24px; } }

/* --- Záhlaví podstránek a drobečky ------------------------------------- */
.page-head { background: var(--c-green-50); border-bottom: 1px solid var(--c-line); padding: 32px 0 40px; }
.page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 16px; }
.page-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--c-green-800); }
.page-head__aside { display: flex; flex-wrap: wrap; gap: 10px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.crumb a { color: var(--c-muted); }
.crumb a:hover { color: var(--c-green-800); }
.crumb__sep { color: var(--c-muted); }

/* --- Úřední deska: tabulka --------------------------------------------- */
.filter { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.filter__row { display: flex; flex-wrap: wrap; gap: 12px; }
.filter__search { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.filter__search .icon { position: absolute; left: 14px; color: var(--c-muted); width: 20px; height: 20px; pointer-events: none; }
.filter__search .input { padding-left: 44px; }
.filter__select { flex: 0 1 220px; }
.filter__select--sm { flex: 0 1 130px; }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.doc-table { overflow: hidden; }
.doc-table__scroll { overflow-x: auto; }
.doc-table__inner { min-width: 760px; }
.doc-head, .doc-row {
	display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 120px 130px; gap: 16px; align-items: center; padding: 18px 20px;
}
.doc-head { padding: 12px 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.doc-row { border-top: 1px solid var(--c-line); }
.doc-row:hover { background: #F9FBF9; }
.doc-row__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc-row__title a { font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.doc-row__title a:hover { color: var(--c-green-800); }
.doc-row__meta { font-size: 14px; color: var(--c-muted); }
.doc-row__name { font-weight: 600; line-height: 1.3; color: var(--c-ink-soft); }
.doc-row--archived .doc-row__date { color: var(--c-muted); }
.doc-row__date { font-size: 14px; }
.doc-table__footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px;
	border-top: 1px solid var(--c-line); background: #F9FBF9;
}
.doc-links { display: flex; flex-direction: column; gap: 12px; }
.doc-links a { display: flex; gap: 10px; align-items: flex-start; color: var(--c-ink); font-size: 14px; }
.doc-links a .icon { color: var(--c-green-700); margin-top: 1px; }
.doc-links a:hover { color: var(--c-green-800); }

/* --- Stránkování ------------------------------------------------------- */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { background: #fff; color: var(--c-green-800); border-color: var(--c-line-strong); min-width: 40px; padding: 0 12px; }
.pagination .page-numbers:hover { background: var(--c-green-50); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-green-700); color: #fff; border-color: var(--c-green-700); }
.pagination .page-numbers.dots { border: none; background: none; }

/* --- Obecní úřad / osoby ----------------------------------------------- */
.subnav { flex: 1 1 220px; max-width: 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.subnav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--c-ink); font-weight: 500; }
.subnav a:hover { background: var(--c-green-50); text-decoration: none; color: var(--c-green-800); }
.subnav a.is-active { background: var(--c-green-100); color: var(--c-green-800); font-weight: 600; }
@media (max-width: 1023px) { .subnav { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; } }
.content-stack { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.content-stack h2 { font-size: 28px; font-weight: 800; }
.content-stack h3 { font-size: 18px; font-weight: 700; }
.block { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }

.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; font-size: 15px; margin: 0; }
.dl dt { color: var(--c-muted); }
.dl dd { margin: 0; font-weight: 500; }
@media (max-width: 479px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; } }
.dl.dl--stack { grid-template-columns: 1fr; gap: 2px 0; }
.dl.dl--stack dd { margin-bottom: 10px; }
.hours { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hours span { font-family: var(--font-head); font-weight: 800; font-size: 28px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--c-line); background: #fff; }
.person--plain { border: none; padding: 0; }
.person__body { display: flex; flex-direction: column; min-width: 0; }
.person__name { font-weight: 700; }
.person__role { font-size: 14px; overflow-wrap: anywhere; }
.person__contact { font-size: 14px; overflow-wrap: anywhere; }
.avatar {
	width: 48px; height: 48px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-800);
	display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 16px; flex: none;
}
.avatar--gold { background: var(--c-gold-100); color: var(--c-gold-text); }
.avatar--blue { background: var(--c-blue-100); color: var(--c-blue-text); }
.members { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.members li { display: flex; justify-content: space-between; gap: 12px; }
.notice-bar { padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* --- Obsah článku / stránky -------------------------------------------- */
.article { padding-top: 40px; padding-bottom: var(--section); }
.article__inner { max-width: 760px; margin: 0 auto; }
.article__media { border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
.article__media img { width: 100%; height: auto; }
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { border-left: 4px solid var(--c-gold); margin: 1.5em 0; padding: .5em 0 .5em 1.2em; color: var(--c-ink-soft); font-style: italic; }
.prose table { font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-green-50); }
.prose a { text-decoration: underline; }
.prose .wp-block-file a:first-child { font-weight: 600; }
.prose .wp-block-button__link { border-radius: var(--radius-sm); background: var(--c-green-700); }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--c-muted); text-align: center; }
.alignwide { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.gallery, .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-item img { border-radius: var(--radius-sm); width: 100%; height: 160px; object-fit: cover; }
.article__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.post-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.post-nav a { flex: 1 1 240px; }
.post-nav__label { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }

/* --- 404 / hledání ----------------------------------------------------- */
.empty { text-align: center; padding: 64px 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.empty h2 { font-size: 24px; }
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.result__title { font-weight: 700; font-size: 18px; font-family: var(--font-head); }

/* --- Patička ----------------------------------------------------------- */
.site-footer { background: var(--c-green-900); color: var(--c-footer-text); margin-top: auto; }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; }
.site-footer__title { font-weight: 700; color: #fff; }
.site-footer__title--mt { margin-top: 8px; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__cookies { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--c-footer-text); font-size: 14px; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__cookies:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; }

/* --- Drobnosti --------------------------------------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
@media (max-width: 719px) {
	:root { --section: 44px; --gutter: 16px; }
	.section-head { margin-bottom: 20px; }
}
@media print {
	.topbar, .site-header, .site-footer, .filter, .pagination, .btn { display: none !important; }
	body { color: #000; }
	a { color: #000; text-decoration: none; }
}

/* --- Stránky na plnou šířku, soubory ke stažení, podatelna ------------- */
.page-content > * + * { margin-top: 32px; }
.page-children { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.prose .wp-block-file {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; margin: 0;
}
.prose .wp-block-file + .wp-block-file { margin-top: 10px; }
.prose .wp-block-file a:first-child { font-weight: 600; color: var(--c-ink); text-decoration: none; flex: 1 1 300px; }
.prose .wp-block-file a:first-child::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px;
	background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
	color: var(--c-green-700);
}
.prose .wp-block-file a:first-child:hover { color: var(--c-green-800); text-decoration: underline; }
.prose .wp-block-file .wp-block-file__button {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
	background: #fff; color: var(--c-green-800); border: 1px solid var(--c-line-strong); text-decoration: none;
}
.prose .wp-block-file .wp-block-file__button:hover { background: var(--c-green-50); }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.prose .wp-block-column { flex: 1 1 300px; min-width: 0; }
.prose .wp-block-group.has-background, .prose .is-style-card { padding: 22px 24px; border-radius: var(--radius); }
.prose .is-style-card { border: 1px solid var(--c-line); background: #fff; }
.prose .has-tint-background-color { background: var(--c-green-50); }
.prose .wp-block-list li::marker, .prose ul li::marker { color: var(--c-green-700); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-image img { height: auto; }
.prose .wp-block-page-list { columns: 2 260px; padding-left: 1.2em; }
.prose .emergency { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.prose .emergency li { margin: 0; padding: 18px; border-radius: var(--radius-sm); background: var(--c-green-50); text-align: center; }
.prose .emergency strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--c-green-800); line-height: 1.1; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field .req { color: #B42318; }
.field .hint { font-size: 13px; color: var(--c-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--c-green-700); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.alert--ok { background: var(--c-green-100); color: var(--c-green-800); }
.alert--error { background: #FDECEA; color: #8A1C12; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
input[type="file"].input { padding-top: 10px; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-left: 0; margin-right: 0; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.prose .wp-block-image.is-crest img { max-width: 220px; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { display: block; width: auto; margin: 0; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { width: 100%; height: 200px; object-fit: cover; }
.prose .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 719px) { .prose .wp-block-gallery.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Úřední deska na mobilu: řádky jako karty ------------------------- */
@media (max-width: 719px) {
	.doc-table__inner { min-width: 0; }
	.doc-head { display: none; }
	.doc-row { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
	.filter__select, .filter__select--sm { flex: 1 1 140px; }
	.doc-row__title, .doc-row__cat, .doc-row__action { grid-column: 1 / -1; }
	.doc-row__date:nth-child(3)::before { content: "Vyvěšeno: "; color: var(--c-muted); }
	.doc-row__date:nth-child(4)::before { content: "Sejmuto: "; }
}

/* --- Fotogalerie ------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-card .news-card__media { height: 220px; }
.prose .wp-block-gallery a, .prose a:has(> img) { cursor: zoom-in; }
.galerie-detail .prose .wp-block-gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.galerie-detail .prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { height: 240px; }
@media (max-width: 719px) {
	.galerie-detail .prose .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.galerie-detail .prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { height: 150px; }
}

/* --- Prohlížeč fotografií --------------------------------------------- */
html.lightbox-open { overflow: hidden; }
.lightbox {
	position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(8, 18, 12, .94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 18, 12, .94); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__img { max-width: calc(100vw - 160px); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__caption { font-size: 15px; color: #E3ECE5; text-align: center; padding: 0 16px; }
.lightbox__btn {
	position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255, 255, 255, .2); outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) {
	.lightbox__img { max-width: 100vw; max-height: calc(100vh - 170px); border-radius: 0; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* --- Mimořádné upozornění (pruh nad horní lištou) ---------------------- */
.alert-bar { background: #F6D77A; color: #3A2A00; }
.alert-bar[hidden] { display: none; }
.alert-bar__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.alert-bar__icon { flex: none; display: flex; }
.alert-bar__icon .icon { width: 22px; height: 22px; }
.alert-bar__text { margin: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.45; }
.alert-bar__text a { color: inherit; font-weight: 700; text-decoration: underline; margin-left: 4px; white-space: nowrap; }
.alert-bar__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.alert-bar__close .icon { width: 20px; height: 20px; }
.alert-bar__close:hover, .alert-bar__close:focus-visible { background: rgba(0, 0, 0, .1); outline: 2px solid currentColor; outline-offset: 1px; }
.alert-bar--info { background: #1F4E8C; color: #FFFFFF; }
.alert-bar--nalehave { background: #B42318; color: #FFFFFF; }
.alert-bar--info .alert-bar__close:hover, .alert-bar--info .alert-bar__close:focus-visible,
.alert-bar--nalehave .alert-bar__close:hover, .alert-bar--nalehave .alert-bar__close:focus-visible { background: rgba(255, 255, 255, .16); }
