/*
 * Šablona amrich2 (Figma Digiregion, Page 2 – hp2)
 *
 * Barvy, písma a zaoblení jsou CSS proměnné – výchozí hodnoty níže, obec je přepisuje
 * v administraci (Nastavení → Design panel, App\Services\Theme::cssVars() v hlavičce layoutu).
 * Nové pravidlo nesmí používat pevnou barvu – vždy var(--c-…), u průhlednosti rgba(var(--c-…-rgb), x);
 * výjimkou je text a stín přes fotku (bílá / černá).
 * Text na barevné ploše má odvozené barvy s dostatečným kontrastem (--c-accent-text, --c-soft-heading …,
 * Theme::Schemes[amrich2][derived]).
 * Bootstrap 4.6 se používá jen pro mřížku, utility a JS komponenty, jejich vzhled přebíjí tento soubor.
 */

/* ===================================================================== TOKENY */

:root {
	/* paleta – přepisuje Theme::cssVars() */
	--c-text: #1e1e1e; --c-text-rgb: 30,30,30; --c-text-contrast: #ffffff;
	--c-heading: #43312d; --c-heading-rgb: 67,49,45; --c-heading-contrast: #ffffff;
	--c-bg: #ffffff; --c-bg-rgb: 255,255,255; --c-bg-contrast: #111111;
	--c-muted: #6f6a64; --c-muted-rgb: 111,106,100; --c-muted-contrast: #ffffff;
	--c-line: #e8e1d8; --c-line-rgb: 232,225,216; --c-line-contrast: #111111;
	--c-primary: #1f1e1d; --c-primary-rgb: 31,30,29; --c-primary-contrast: #ffffff;
	--c-accent: #ea8a26; --c-accent-rgb: 234,138,38; --c-accent-contrast: #111111;
	--c-accent-soft: #fff2e0; --c-accent-soft-rgb: 255,242,224; --c-accent-soft-contrast: #111111;
	--c-button: #ffbc5e; --c-button-rgb: 255,188,94; --c-button-contrast: #111111;
	--c-band: #ffbc5e; --c-band-rgb: 255,188,94; --c-band-contrast: #111111;
	--c-deep: #43312d; --c-deep-rgb: 67,49,45; --c-deep-contrast: #ffffff;
	--c-highlight: #80f879; --c-highlight-rgb: 128,248,121; --c-highlight-contrast: #111111;
	--c-link: #4856d5; --c-link-rgb: 72,86,213; --c-link-contrast: #ffffff;
	--c-success: #4eba38; --c-success-rgb: 78,186,56; --c-success-contrast: #111111;
	--c-footer-bg: #000000; --c-footer-bg-rgb: 0,0,0; --c-footer-bg-contrast: #ffffff;
	--c-footer-text: #ffffff; --c-footer-text-rgb: 255,255,255; --c-footer-text-contrast: #111111;
	--c-accent-text: #a96620;
	--c-soft-heading: #c97823;
	--c-soft-text: #9e601f;
	--c-band-text: #73471a;
	--c-deep-text: #ea8a26;
	--c-primary-text: #ea8a26;
	--font-sans: 'Sofia Sans Semi Condensed', 'Arial Narrow', Arial, sans-serif;
	--font-mono: 'Roboto Mono', 'Courier New', monospace;
	--radius: 0px;

	/* odvozené barvy */
	--c-body: color-mix(in srgb, var(--c-text) 86%, var(--c-bg));
	--c-icon: color-mix(in srgb, var(--c-text) 30%, var(--c-bg));
	--c-surface: color-mix(in srgb, var(--c-accent-soft) 45%, var(--c-bg));
	--c-line-strong: color-mix(in srgb, var(--c-text) 85%, var(--c-bg));
	--c-chip-line: color-mix(in srgb, var(--c-text) 15%, var(--c-bg));
	--c-on-primary: color-mix(in srgb, var(--c-primary-contrast) 88%, var(--c-primary));
	--c-danger: #d92d20;
	--radius-sm: calc(var(--radius) * .6);
	--radius-lg: calc(var(--radius) * 1.6);

	/* typografie – úzké písmo, nadpisy velkými písmeny */
	--fs-hero: clamp(2.75rem, 7.1vw, 9rem);
	--fs-hub: clamp(1.75rem, 4.15vw, 5.25rem);
	--fs-h1: clamp(2.5rem, 3.65vw, 4.75rem);
	--fs-h2: clamp(2rem, 2.8vw, 3.5rem);
	--fs-h3: clamp(1.375rem, 1rem + .6vw, 1.75rem);
	--fs-card: clamp(1.625rem, 2.2vw, 2.75rem);
	--fs-lead: clamp(1.25rem, 1rem + .55vw, 1.625rem);
	--fs-body: 1.1875rem;
	--fs-ui: 1.0625rem;
	--fs-small: .9375rem;
	--ls-head: -.025em;
	--ls-ui: 0;

	/* rozvržení */
	--gutter: clamp(20px, 4.5vw, 90px);
	--wrap: 1500px;
	--wrap-pad: max(var(--gutter), (100% - var(--wrap)) / 2);
	--sec-gap: clamp(56px, 5.5vw, 110px);
}

/* ===================================================================== ZÁKLAD */

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body.amrich {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: var(--fs-ui);
	line-height: 1.4;
	letter-spacing: var(--ls-ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(.amrich) ::selection { background: var(--c-accent); color: var(--c-accent-contrast); }

:where(.amrich) a { color: inherit; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s, opacity .15s; }
:where(.amrich) a:hover { color: var(--c-accent-text); text-decoration: none; }
:where(.amrich) :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

:where(.amrich) h1, :where(.amrich) h2, :where(.amrich) h3, :where(.amrich) h4, :where(.amrich) h5, :where(.amrich) h6 {
	font-family: var(--font-sans);
	color: var(--c-heading);
	text-transform: uppercase;
	margin: 0 0 .5em;
}
:where(.amrich) h1, :where(.amrich) .h1 { font-size: var(--fs-h1); font-weight: 900; line-height: .95; letter-spacing: var(--ls-head); }
:where(.amrich) h2, :where(.amrich) .h2 { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.02em; }
:where(.amrich) h3, :where(.amrich) .h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
:where(.amrich) h4, :where(.amrich) .h4 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
:where(.amrich) h5, :where(.amrich) h6 { font-size: 1.0625rem; font-weight: 800; }
:where(.amrich) p { margin: 0 0 1em; }
:where(.amrich) img { max-width: 100%; }
:where(.amrich) hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
:where(.amrich) small, :where(.amrich) .small { font-size: var(--fs-small); }
:where(.amrich) .text-muted { color: var(--c-muted) !important; }
:where(.amrich) strong, :where(.amrich) b { font-weight: 700; }

.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

/* štítek nad nadpisem (OBECNÝ ÚŘAD, AKCE A UDÁLOSTI …) */
.eyebrow {
	display: block;
	margin: 0 0 .75rem;
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--c-accent-text);
}
.eyebrow a:hover { color: var(--c-heading); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.counter { font-size: 1rem; font-weight: 800; color: var(--c-accent-text); }
.muted { color: var(--c-muted); }

.sr-only-focusable:focus { position: static; width: auto; height: auto; }

/* ===================================================================== TLAČÍTKA A ODKAZY */

/* pilulka s kroužkem a šipkou (AKTUÁLNĚ →, VŠECHNY NOVINKY →, JSEM OBČAN →) */
.pill {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 48px;
	padding: 4px 4px 4px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-heading);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}
.pill:hover, .pill:focus-visible { color: var(--c-heading); }
.pill-label { padding: 8px 0; }
.pill-circle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); transition: transform .2s, background-color .15s; }
.pill-circle .icon { width: 18px; height: 18px; }
.pill-circle img { width: 100%; height: 100%; object-fit: cover; }
.pill:hover .pill-circle { transform: translateX(3px); }
.pill-circle--highlight { background: var(--c-highlight); color: var(--c-highlight-contrast); }
.pill--lg { min-height: 56px; gap: 40px; padding-left: 24px; font-size: 1.0625rem; }
.pill--lg .pill-circle { width: 48px; height: 48px; }
.pill--sm { min-height: 42px; gap: 12px; padding-left: 18px; font-size: .875rem; }
.pill--sm .pill-circle { width: 34px; height: 34px; }
.pill--sm .pill-circle .icon { width: 15px; height: 15px; }
.pill--rev { flex-direction: row-reverse; padding: 4px 22px 4px 4px; }
.pill--rev:hover .pill-circle { transform: translateX(-3px); }
.pill--dark { background: color-mix(in srgb, var(--c-primary-contrast) 13%, var(--c-primary)); color: var(--c-primary-contrast); }
.pill--dark:hover, .pill--dark:focus-visible { color: var(--c-primary-contrast); }
.pill--dark .pill-circle { background: var(--c-accent-soft); color: var(--c-heading); }
.pill--light { background: var(--c-accent-soft); }
.pill--soft { background: var(--c-accent-soft); }
.pill--soft .pill-circle { background: color-mix(in srgb, var(--c-button) 55%, var(--c-accent-soft)); }
.pill--soft.active .pill-circle, .pill--soft:hover .pill-circle { background: var(--c-button); }
.pill--button { background: var(--c-button); color: var(--c-button-contrast); }
.pill--button:hover, .pill--button:focus-visible { color: var(--c-button-contrast); }
.pill--button .pill-circle { background: var(--c-accent-soft); color: var(--c-heading); }

.btn-a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 44px;
	padding: 8px 26px;
	border: 1px solid var(--c-primary);
	border-radius: 999px;
	background: transparent;
	color: var(--c-text);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-a:hover, .btn-a:focus { background: var(--c-primary); color: var(--c-primary-contrast); text-decoration: none; }
.btn-a--fill { background: var(--c-primary); color: var(--c-primary-contrast); }
.btn-a--fill:hover, .btn-a--fill:focus { background: var(--c-button); border-color: var(--c-button); color: var(--c-button-contrast); }
.btn-a--accent { background: var(--c-button); border-color: var(--c-button); color: var(--c-button-contrast); }
.btn-a--accent:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }
.btn-a--light { border-color: var(--c-footer-text); color: var(--c-footer-text); }
.btn-a--light:hover { background: var(--c-footer-text); color: var(--c-footer-bg); }
.btn-a--sm { min-height: 34px; padding: 4px 16px; font-size: .8125rem; }
.btn-a--block { display: flex; width: 100%; }
.btn-a[disabled], .btn-a.disabled { opacity: .45; pointer-events: none; }
.btn-group-a { display: flex; flex-wrap: wrap; gap: 12px; }

/* odkaz se šipkou (Všechny akce →) */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding-bottom: 2px;
	border-bottom: 2px solid currentColor;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--c-heading);
	background: none;
	cursor: pointer;
}
.link-arrow .icon { width: .85em; height: .85em; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--mono { border-bottom: 0; }
button.link-arrow { border-width: 0 0 2px; padding-left: 0; padding-right: 0; }

/* Bootstrap tlačítka v barvách tématu */
.amrich .btn { border-radius: 999px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.amrich .btn-primary, .amrich .btn-success { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }
.amrich .btn-primary:hover, .amrich .btn-primary:focus, .amrich .btn-success:hover { background: var(--c-button); border-color: var(--c-button); color: var(--c-button-contrast); }
.amrich .btn-secondary { background: var(--c-accent-soft); border-color: var(--c-accent-soft); color: var(--c-heading); }
.amrich .btn-secondary:hover { background: var(--c-button); color: var(--c-button-contrast); }
.amrich .btn-outline-primary, .amrich .btn-outline-secondary { border-color: var(--c-primary); color: var(--c-text); background: transparent; }
.amrich .btn-outline-primary:hover, .amrich .btn-outline-secondary:hover { background: var(--c-primary); color: var(--c-primary-contrast); }
.amrich .btn-link { color: var(--c-link); text-transform: none; }
.amrich .btn:focus, .amrich .btn.focus { box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .3); }

/* ===================================================================== ROZVRŽENÍ */

.site-content { padding: clamp(40px, 4.5vw, 90px) var(--wrap-pad) var(--sec-gap); }
.homepage .site-content { padding: 0; }
.wrap { max-width: var(--wrap); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--c-text); font-size: 1.375rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.brand:hover { color: inherit; }
.brand img { display: block; width: auto; height: 30px; max-width: 180px; object-fit: contain; }
.brand--logo-only img { height: 40px; max-width: 220px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- horní lišta (tmavý pruh) – přilepená k horní hraně okna se zaoblenými spodními rohy; na úvodní stránce
   leží s odstupem --topnav-gap na fotce (výška 0, obsah přetéká) se všemi rohy zaoblenými, dokud při scrollování
   nedojede k hraně (.is-stuck, scripts.js) */

.topnav { --topnav-gap: 0px; --topnav-r: 8px; position: sticky; top: calc(-1 * var(--topnav-gap)); z-index: 1030; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-top: var(--topnav-gap); color: var(--c-primary-contrast); }
.homepage .topnav { --topnav-gap: clamp(12px, 2.25vw, 45px); height: 0; margin-bottom: calc(-1 * var(--topnav-gap)); }
.topnav-bar { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 8px 10px 8px 26px; border-radius: 0 0 var(--topnav-r) var(--topnav-r); background: var(--c-primary); transition: border-radius .2s; }
.homepage .topnav:not(.is-stuck) .topnav-bar { border-radius: var(--topnav-r); }
.topnav.has-panel .topnav-bar { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
html { scroll-padding-top: 88px; }
.topnav-brand { flex: none; max-width: 260px; color: var(--c-primary-contrast); font-size: 1.25rem; }
.topnav-brand:hover { color: var(--c-primary-contrast); }
.topnav-brand img { height: 28px; }
.topnav-menu { flex: 1 1 auto; min-width: 0; }
.topnav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(16px, 1.6vw, 32px); margin: 0; padding: 0; list-style: none; }
.topnav-list a { display: block; padding: 8px 0; color: var(--c-on-primary); font-size: .9375rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.topnav-list a:hover, .topnav-list .is-active > a, .topnav-list .is-open > a { color: var(--c-primary-text); }
.topnav-actions { display: flex; flex: none; align-items: center; gap: 14px; margin-left: auto; }
.topnav .langs { gap: 14px; font-family: var(--font-sans); font-size: .9375rem; font-weight: 800; }
.topnav .langs a { color: var(--c-on-primary); }
.topnav .langs a.active, .topnav .langs a:hover { color: var(--c-primary-text); }
.topnav-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-primary-contrast) 13%, var(--c-primary)); color: var(--c-primary-contrast); cursor: pointer; transition: background-color .15s, color .15s; }
.topnav-search:hover { background: var(--c-accent-soft); color: var(--c-heading); }
.topnav-search .icon { width: 18px; height: 18px; }
.topnav-user { position: relative; }
.topnav-user .avatar { display: block; }
.topnav-user-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: none; min-width: 210px; padding: 10px 0; background: var(--c-primary); box-shadow: 0 16px 40px rgba(var(--c-primary-rgb), .3); }
.topnav-user:hover .topnav-user-menu, .topnav-user.active .topnav-user-menu { display: block; }
.topnav-user-menu a { display: block; padding: 8px 20px; color: var(--c-on-primary); font-weight: 700; text-transform: uppercase; }
.topnav-user-menu a:hover { color: var(--c-primary-text); }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.burger .icon { width: 24px; height: 24px; }

/* panel podmenu – pokračování lišty, sloupce podle položek 2. úrovně (scripts.js); bez top = hned pod lištou (statická pozice,
   .topnav na úvodní stránce má výšku 0) */
.topnav-panel { position: absolute; left: 0; right: 0; display: none; max-height: calc(100vh - 120px); overflow-y: auto; padding: 8px 26px 48px; border-radius: 0 0 var(--topnav-r) var(--topnav-r); background: var(--c-primary); box-shadow: 0 30px 60px rgba(var(--c-primary-rgb), .25); }
.topnav-panel.is-open { display: block; }
.topnav-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 40px; }
.topnav-col h3 { margin: 0 0 12px; color: var(--c-primary-text); font-size: .75rem; font-weight: 800; line-height: 1.3; letter-spacing: .04em; }
.topnav-col h3 a { color: inherit; }
.topnav-col h3 a:hover { color: var(--c-primary-contrast); }
.topnav-col ul { margin: 0; padding: 0; list-style: none; }
.topnav-col li a { display: block; padding: 2px 0; color: var(--c-on-primary); font-size: clamp(1.0625rem, .9rem + .35vw, 1.3125rem); font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.topnav-col li a:hover, .topnav-col .is-active > a { color: var(--c-primary-text); }
.topnav-col .icon-ext { width: .6em; height: .6em; margin-left: .3em; opacity: .6; }
.topnav-backdrop { position: fixed; z-index: 1029; inset: 0; display: none; background: rgba(var(--c-primary-rgb), .55); }
body.topnav-panel-open .topnav-backdrop { display: block; }

/* ---------- mobilní menu */

.mmenu {
	position: fixed;
	z-index: 1050;
	inset: 0;
	display: none;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-primary);
	color: var(--c-primary-contrast);
}
.mmenu.is-open { display: flex; }
body.mmenu-open { overflow: hidden; }
.mmenu-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 8px 10px 8px var(--gutter); }
.mmenu-head .burger { display: inline-flex; }
.mmenu-body { padding: 16px var(--gutter) 40px; }
.mnav, .mnav ul { margin: 0; padding: 0; list-style: none; }
.mnav-item { border-bottom: 1px solid color-mix(in srgb, var(--c-primary-contrast) 14%, var(--c-primary)); }
.mnav-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--c-on-primary); font-size: 1.625rem; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.mnav-link:hover, .mnav-item.is-active > .mnav-link { color: var(--c-primary-text); }
.mnav-toggle { width: 22px; height: 22px; transition: transform .2s; }
.mnav-item.is-open .mnav-toggle { transform: rotate(180deg); }
.mnav-sub { display: none; padding: 0 0 16px !important; }
.mnav-item.is-open > .mnav-sub { display: block; }
.mnav-sub a { display: block; padding: 5px 0; color: var(--c-on-primary); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; }
.mnav-sub a:hover, .mnav-sub .is-active > a { color: var(--c-primary-text); }
.mnav-group-title { display: block; padding: 12px 0 4px; color: var(--c-primary-text); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mnav-sub .icon-ext { width: .6em; height: .6em; margin-left: .3em; opacity: .6; }
.mmenu-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mmenu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.mmenu .langs { gap: 18px; font-family: var(--font-sans); font-weight: 800; }
.mmenu .langs a { color: var(--c-on-primary); }
.mmenu .langs a.active { color: var(--c-primary-text); }
.mmenu-social { display: flex; gap: 18px; }
.mmenu-social a { display: inline-flex; color: var(--c-on-primary); }
.mmenu-social a:hover { color: var(--c-primary-text); }
.mmenu-social .icon { width: 22px; height: 22px; }
.mmenu-user { margin: 28px 0 0; }

.langs { display: flex; align-items: center; gap: 20px; text-transform: uppercase; }

/* ===================================================================== HLAVIČKA STRÁNKY */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding: 0 0 clamp(32px, 3.6vw, 72px); }
.page-head-main { flex: 1 1 520px; min-width: 0; max-width: 1100px; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head h1 { margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.page-head .page-perex { max-width: 760px; margin: 24px 0 0; font-size: 1.25rem; line-height: 1.45; color: var(--c-body); }
.page-head-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-bottom: 6px; }
.page-head + .tabs-row { margin-top: -28px; }

/* drobečková navigace */
.amrich .breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 28px;
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: .875rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--c-muted);
	list-style: none;
}
.amrich .breadcrumb li + li::before { content: '/'; padding: 0 .6em; color: var(--c-icon); }
.amrich .breadcrumb a:hover { color: var(--c-accent-text); }

/* ===================================================================== SEKCE OBSAHU */

.section-content { position: relative; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 64px; align-items: start; }

.sec { margin-top: var(--sec-gap); }
.sec:first-child { margin-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.sec-head .eyebrow { margin-bottom: 8px; }
.sec-title-row { display: flex; align-items: flex-start; gap: 14px; }
.sec-title-row .counter { margin-top: 8px; }
.sec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.sec--split, .sec-head--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px clamp(32px, 3vw, 56px); }
.sec-head--split { align-items: end; }
.sec--split .sec-intro p { max-width: 400px; font-size: 1.2rem; line-height: 1.3; color: color-mix(in srgb, var(--c-text) 62%, var(--c-bg)); }

/* záložky (AKTUÁLNÍ / DLOUHODOBÉ / ARCHIV) */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(20px, 1.6vw, 32px); margin: 0; padding: 0; list-style: none; }
.tabs a, .tabs button {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	border: 0;
	background: none;
	font-family: var(--font-sans);
	font-size: clamp(1.1875rem, 1rem + .4vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--c-heading);
	cursor: pointer;
}
.tabs a:hover, .tabs button:hover { color: var(--c-accent-text); }
.tabs .active, .tabs a.active, .tabs button.active { color: var(--c-accent-text); }
.tabs--line .active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; }
.tabs--sm { gap: 8px 24px; }
.tabs--sm a { font-size: 1.0625rem; }
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; }

/* rozbalovací výběr (VŠECHNY DOKUMENTY ⌄) – chování .title-selector v scripts.js */
.title-selector { position: relative; display: inline-block; }
.title-selector > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 230px;
	min-height: 48px;
	padding: 8px 60px 8px 22px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--c-heading);
}
.title-selector > a:hover { color: var(--c-heading); }
.title-selector > a::before { content: ''; position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--c-button); }
.title-selector > a::after { content: ''; position: absolute; top: 50%; right: 20px; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--c-button-contrast); border-bottom: 2px solid var(--c-button-contrast); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.title-selector.active > a::after, .title-selector.opened > a::after { transform: rotate(-135deg); margin-top: -2px; }
.title-selector-inner {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: none;
	min-width: 100%;
	max-height: 60vh;
	overflow-y: auto;
	padding: 6px 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-bg);
	box-shadow: 0 16px 40px rgba(var(--c-text-rgb), .14);
}
.title-selector.active .title-selector-inner, .title-selector.opened .title-selector-inner { display: block; }
.title-selector-inner a { display: block; padding: 7px 18px; font-size: .9375rem; font-weight: 700; text-transform: uppercase; }
.title-selector-inner a:hover, .title-selector-inner a.active { background: var(--c-accent-soft); color: var(--c-heading); }
.title-selector--wide > a { min-width: 280px; }

/* „pilulky“ z výchozí šablony (filtry roků, sekcí) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pills a, .pills .pill {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--c-accent-soft);
	font-family: var(--font-sans);
	font-size: .875rem;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--c-heading);
}
.pills a:hover { background: var(--c-button); color: var(--c-button-contrast); }
.pills a.active { background: var(--c-primary); color: var(--c-primary-contrast); }

/* ===================================================================== SEZNAMY */

/* řádkový výpis (Aktuálně): nadpis vlevo, perex vpravo */
.row-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.row-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	gap: 8px clamp(24px, 6vw, 120px);
	align-items: center;
	min-height: 77px;
	padding: 16px 0;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-text);
}
.row-item:hover { color: var(--c-text); }
.row-title { display: flex; align-items: center; gap: 0; color: var(--c-heading); font-size: 1.375rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; transition: gap .2s; }
.row-title .icon { width: 0; height: 12px; overflow: hidden; transition: width .2s; }
.row-item:hover .row-title { gap: 10px; }
.row-item:hover .row-title .icon { width: 12px; }
.row-meta { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--c-accent-text); }
.row-perex { font-size: 1.0625rem; line-height: 1.3; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-perex p { margin: 0; }

/* akordeon (+ položka) – úřední deska na úvodní stránce */
.acc-list { margin: 0; padding: 0; list-style: none; }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-item > a, .acc-item > button {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	padding: 22px 0;
	border: 0;
	background: none;
	text-align: left;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--c-heading);
}
.acc-item .acc-plus { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c-text); transition: transform .2s, color .15s; }
.acc-item > a:hover .acc-plus { transform: rotate(90deg); color: var(--c-accent-text); }
.acc-item .acc-meta { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 600; text-transform: none; color: var(--c-muted); }

/* dokumenty (úřední deska): velký nadpis, datum vpravo, soubory, šipka */
.doc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.doc-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 48px;
	padding: 18px 0 22px;
	border-bottom: 1px solid var(--c-line);
	transition: background-color .15s, color .15s;
}
.doc-item::before { content: ''; position: absolute; z-index: -1; top: -1px; bottom: -1px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); background: transparent; transition: background-color .15s; }
.doc-title { max-width: 900px; margin: 0; color: inherit; font-size: clamp(1.3125rem, 1rem + .55vw, 1.625rem); font-weight: 500; line-height: 1.23; letter-spacing: -.01em; text-transform: none; }
.doc-title a { color: inherit; }
.doc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.doc-date { padding-top: 4px; font-size: 1rem; font-weight: 600; white-space: nowrap; color: var(--c-accent-text); }
.doc-sub { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.doc-files { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }	/* dlouhý štítek souboru se zkrátí, nevytlačí šipku */
.doc-go { position: relative; z-index: 2; flex: none; width: 40px; height: 40px; margin-left: auto; padding: 12px; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); transition: transform .2s; }
.doc-item:hover .doc-go { transform: translate(2px, -2px); }
.doc-meta { margin-top: 8px; font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.doc-perex { margin-top: 8px; font-size: 1rem; line-height: 1.45; color: var(--c-body); }
.doc-item:hover { color: var(--c-primary-contrast); }
.doc-item:hover::before { background: var(--c-primary); }
.doc-item:hover .doc-meta, .doc-item:hover .doc-perex { color: color-mix(in srgb, var(--c-primary-contrast) 70%, var(--c-primary)); }
.doc-item:hover .doc-date { color: var(--c-accent-soft); }
.doc-item:hover .file-chip { background: color-mix(in srgb, var(--c-primary-contrast) 20%, var(--c-primary)); border-color: color-mix(in srgb, var(--c-primary-contrast) 35%, var(--c-primary)); color: var(--c-primary-contrast); }
.doc-list--plain .doc-item:hover { color: inherit; }
.doc-list--plain .doc-item:hover::before { background: var(--c-surface); }
.doc-list--plain .doc-item:hover .doc-date { color: var(--c-accent-text); }

/* soubor ke stažení jako štítek */
.file-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 31px;
	max-width: 100%;
	padding: 6px 12px 6px 9px;
	border: 1px solid var(--c-chip-line);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--c-text);
}
.file-chip:hover { border-color: var(--c-text); color: var(--c-text); }
.file-chip .file-ext { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 16px; padding: 0 2px; border-radius: 2px; background: var(--c-danger); color: #fff; font-size: 6px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.file-chip .file-ext[data-ext="DOC"], .file-chip .file-ext[data-ext="DOCX"], .file-chip .file-ext[data-ext="ODT"] { background: #2b579a; }
.file-chip .file-ext[data-ext="XLS"], .file-chip .file-ext[data-ext="XLSX"], .file-chip .file-ext[data-ext="ODS"], .file-chip .file-ext[data-ext="CSV"] { background: #217346; }
.file-chip .file-ext[data-ext="JPG"], .file-chip .file-ext[data-ext="JPEG"], .file-chip .file-ext[data-ext="PNG"], .file-chip .file-ext[data-ext="ZIP"] { background: var(--c-muted); }
.file-chip .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .file-size { color: var(--c-muted); white-space: nowrap; }

/* soubory ke stažení pod článkem */
.files { margin-top: 48px; }
.files h2, .files h3 { margin-bottom: 18px; font-size: .9375rem; font-weight: 800; color: var(--c-accent-text); }
.files-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===================================================================== KARTY */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card-a { position: relative; display: flex; flex-direction: column; color: var(--c-text); }
.card-a:hover { color: var(--c-text); }
.card-a-img { position: relative; aspect-ratio: 4 / 3; margin-bottom: 18px; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.card-a-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-a:hover .card-a-img img { transform: scale(1.03); }
.card-a-img--empty { display: flex; align-items: center; justify-content: center; }
.card-a-img--empty img { width: 40%; height: auto; object-fit: contain; opacity: .25; filter: grayscale(1); }
.card-a-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.card-a-meta .is-accent { color: var(--c-accent-text); }
.card-a-title { margin: 0 0 10px; color: var(--c-heading); font-size: clamp(1.375rem, 1.1rem + .6vw, 1.75rem); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; }
.card-a-title a { color: inherit; }
.card-a-title a::after { content: ''; position: absolute; inset: 0; }
.card-a:hover .card-a-title, .card-a-title a:hover { color: var(--c-accent-text); }
.card-a-perex { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--c-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-a-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--c-highlight); color: var(--c-highlight-contrast); font-size: .8125rem; font-weight: 800; text-transform: uppercase; }

/* dlaždice s obrázkem vlevo (osoby, organizace, stezky) */
.tile { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; color: var(--c-text); }
.tile:hover { color: var(--c-text); }
.tile-img { width: 112px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img--contain img { object-fit: contain; padding: 10px; }
.tile-title { margin: 0 0 6px; color: var(--c-heading); font-size: 1.375rem; font-weight: 800; line-height: 1.12; text-transform: uppercase; }
.tile-title a::after { content: ''; position: absolute; inset: 0; }
.tile:hover .tile-title { color: var(--c-accent-text); }
.tile-text { font-size: 1.0625rem; line-height: 1.5; color: var(--c-body); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 48px 64px; }

/* ===================================================================== ÚVODNÍ STRÁNKA */

/* ---------- úvod přes celou šířku (fotka, video, prezentace) */
.hero2 { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(560px, 51vw, 1020px); padding: clamp(110px, 9vw, 180px) var(--gutter) 0; overflow: hidden; background: var(--c-primary); color: #fff; isolation: isolate; }
.hero2-media { position: absolute; z-index: -2; inset: 0; }
.hero2-media img, .hero2-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero2-media .carousel, .hero2-media .carousel-inner, .hero2-media .carousel-item { height: 100%; }
.hero2-code { width: 100%; height: 100%; }
.hero2::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.5) 100%); pointer-events: none; }
.hero2-text { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; text-align: center; }
.hero2-text h1 { margin: 0 0 clamp(18px, 1.6vw, 32px); color: #fff; font-size: var(--fs-hero); line-height: .87; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero2-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 0 0 clamp(32px, 3.2vw, 64px); font-size: clamp(1.0625rem, .9rem + .45vw, 1.5rem); line-height: 1.2; }
.hero2-facts div { display: flex; align-items: center; gap: 8px; }
.hero2-facts dt { font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero2-facts dd { margin: 0; padding: 5px 16px 6px; border-radius: 999px; background: var(--c-primary); color: var(--c-primary-contrast); font-weight: 600; }
.hero2-cta { min-width: 228px; }
.hero2-bottom { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; margin-top: auto; padding: clamp(40px, 5vw, 100px) 0 clamp(20px, 2vw, 40px); }
.hero2-social { position: absolute; left: 0; bottom: clamp(20px, 2vw, 40px); display: flex; gap: 18px; }
.hero2-social a { display: inline-flex; color: #fff; }
.hero2-social a:hover { color: var(--c-highlight); }
.hero2-social .icon { width: 22px; height: 22px; }
.hero2-today { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px clamp(20px, 2vw, 40px); margin: 0; font-size: clamp(1.25rem, 1rem + .7vw, 2.25rem); font-weight: 700; line-height: 1; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero2-today > span { display: inline-flex; align-items: baseline; gap: 8px; font-size: .45em; font-weight: 800; text-transform: uppercase; color: var(--c-button); }
.hero2-today strong { font-size: 2.2em; font-weight: 700; color: #fff; text-transform: uppercase; }
.hero2-today .today-weather { align-items: center; }
.hero2-today .weathericon { width: 2.6em; height: 2.6em; margin: -.6em 0; }

/* ---------- rozcestník (loga projektů, rychlé odkazy s fotkami, text) */
.hub { padding: clamp(40px, 4vw, 80px) var(--gutter) clamp(64px, 6vw, 120px); background: var(--c-primary); color: var(--c-on-primary); text-align: center; }
.hub-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px clamp(32px, 3.5vw, 64px); margin: 0 auto clamp(56px, 6vw, 120px); max-width: 1400px; }
.hub-logos a { display: inline-flex; opacity: .85; }
.hub-logos a:hover { opacity: 1; }
.hub-logos img { display: block; width: auto; max-width: 150px; height: auto; max-height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.hub-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .08em .28em; max-width: 1400px; margin: 0 auto; font-size: var(--fs-hub); font-weight: 900; line-height: .92; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.hub-links a { color: var(--c-on-primary); }
.hub-links a:hover { color: var(--c-highlight); }
.hub-img { display: inline-block; flex: none; width: 1.02em; height: .73em; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--c-primary-contrast) 10%, var(--c-primary)); }
.hub-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-perex { max-width: 23em; margin: clamp(40px, 4.4vw, 88px) auto 0; font-size: clamp(1.375rem, 1rem + 1.2vw, 2.7rem); font-weight: 500; line-height: 1.15; }
.hub-perex p { margin: 0; }
.hub > .pill { margin-top: clamp(32px, 3.6vw, 72px); }
.hub-links + .pill { margin-top: clamp(40px, 4.4vw, 88px); }

/* ---------- pruhy sekcí */
.band { position: relative; padding: clamp(56px, 6vw, 120px) var(--wrap-pad) clamp(48px, 5vw, 100px); overflow: hidden; }
.band-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(16px, 1.6vw, 32px); padding-bottom: clamp(12px, 1.2vw, 20px); border-bottom: 1px solid var(--band-line, var(--c-line)); }
.band-head h2 { margin: 0; color: var(--band-heading, var(--c-heading)); }
.band-foot { margin-top: clamp(32px, 3.6vw, 64px); }
.band--soft { --band-heading: var(--c-soft-heading); --band-line: color-mix(in srgb, var(--c-accent) 30%, var(--c-bg)); background: color-mix(in srgb, var(--c-accent-soft) 55%, var(--c-bg)); }
.band--deep { --band-heading: var(--c-deep-text); background: var(--c-deep); color: var(--c-deep-contrast); padding-left: 0; padding-right: 0; }
.band--deep .band-head { margin: 0; padding: 0 var(--wrap-pad) clamp(28px, 2.6vw, 48px); border: 0; }
.band--deep .band-foot { padding: 0 var(--wrap-pad); }
.band--band { --band-heading: var(--c-band-text); --band-line: var(--c-accent); background: var(--c-band); color: var(--c-band-contrast); }
.band--module + .band--module { padding-top: 0; }

/* ---------- slider karet (Swiper, scripts.js) – karty přesahují doprava ke kraji okna */
.slider { position: relative; }
.slider .swiper-container { overflow: visible; clip-path: inset(-20px -100vw -20px -20px); }
.slider .swiper-slide { height: auto; }
.slider-nav { display: flex; align-items: center; gap: 12px; width: min(100%, 440px); margin: clamp(24px, 2.2vw, 40px) 0 0 auto; padding: 12px 14px 12px 22px; background: var(--c-accent-soft); }
.slider-progress { position: relative; flex: 1 1 auto; height: 6px; margin-right: 16px; border-radius: 3px; background: color-mix(in srgb, var(--c-accent) 28%, var(--c-accent-soft)); }
.slider-progress .swiper-scrollbar-drag { position: relative; height: 100%; border-radius: 3px; background: var(--c-accent); cursor: grab; }
.slider-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); cursor: pointer; transition: opacity .15s, transform .15s; }
.slider-btn .icon { width: 16px; height: 16px; }
.slider-btn:hover { transform: scale(1.06); }
.slider-btn.swiper-button-disabled { opacity: .3; cursor: default; transform: none; }
.slider-nav .swiper-scrollbar-lock ~ .slider-btn { display: none; }
.slider-nav:has(.swiper-scrollbar-lock) { display: none; }

/* karta příspěvku (Aktuálně) */
.news-card { position: relative; display: flex; flex-direction: column; width: clamp(250px, 21.5vw, 430px); margin-right: clamp(16px, 1.6vw, 32px); padding: 0 0 18px; color: var(--c-heading); transition: background-color .2s, box-shadow .2s; }
.news-card-img { aspect-ratio: 428 / 508; overflow: hidden; background: var(--c-accent-soft); }
.news-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card-img--empty { display: flex; align-items: center; justify-content: center; }
.news-card-img--empty img { width: 40%; height: auto; object-fit: contain; opacity: .25; filter: grayscale(1); }
.news-card-title { flex: 1 1 auto; margin: clamp(14px, 1.2vw, 22px) 0 0; padding-bottom: clamp(18px, 2vw, 40px); border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 30%, var(--c-bg)); color: var(--c-soft-heading); font-size: var(--fs-card); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.news-card-title a { color: inherit; }
.news-card-title a::after { content: ''; position: absolute; inset: 0; }
.news-card-date { margin: 14px 0 0; color: var(--c-soft-text); font-size: .875rem; font-weight: 600; text-transform: uppercase; }
.news-card:hover { background: var(--c-accent); box-shadow: 0 0 0 clamp(8px, .55vw, 11px) var(--c-accent); }
.news-card:hover .news-card-title { border-bottom-color: var(--c-accent-contrast); color: var(--c-accent-contrast); }
.news-card:hover .news-card-date { color: var(--c-accent-contrast); }
.news-card:hover .news-card-img img { transform: scale(1.03); }

/* ---------- úřední deska – číslované řádky */
.desk-rows { margin: 0; padding: 0; list-style: none; counter-reset: desk; }
.desk-rows li { border-top: 1px solid color-mix(in srgb, var(--c-deep-contrast) 14%, var(--c-deep)); }
.desk-rows a { display: grid; grid-template-columns: clamp(32px, 4vw, 80px) clamp(120px, 10vw, 200px) minmax(0, 1fr); align-items: baseline; gap: 8px clamp(12px, 1.2vw, 24px); padding: clamp(18px, 1.9vw, 38px) var(--wrap-pad); color: color-mix(in srgb, var(--c-deep-contrast) 92%, var(--c-deep)); transition: background-color .15s, color .15s; }
.desk-row-num { font-size: clamp(1.75rem, 2.5vw, 3.125rem); font-weight: 500; line-height: 1; color: color-mix(in srgb, var(--c-deep-contrast) 38%, var(--c-deep)); }
.desk-row-date { font-size: .9375rem; font-weight: 700; white-space: nowrap; color: var(--c-deep-text); }
.desk-row-title { font-size: clamp(1.375rem, 2vw, 2.5rem); font-weight: 800; line-height: 1.12; text-transform: uppercase; }
.desk-rows a:hover { background: color-mix(in srgb, var(--c-deep-contrast) 7%, var(--c-deep)); color: var(--c-deep-contrast); }
.desk-rows a:hover .desk-row-num { color: var(--c-deep-text); }
.desk-rows-empty { padding: 24px var(--wrap-pad); color: color-mix(in srgb, var(--c-deep-contrast) 60%, var(--c-deep)); }
.band--deep .band-foot { margin-top: clamp(40px, 4vw, 80px); }

/* ---------- teplota + kalendář akcí (tmavý pruh a pod ním fotka) */
.weather2 { position: relative; padding: clamp(56px, 4.3vw, 86px) var(--wrap-pad) clamp(64px, 6vw, 120px); background: var(--c-primary); color: var(--c-primary-contrast); isolation: isolate; }
.weather2::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: clamp(300px, 26vw, 520px); bottom: 0; background: var(--weather-img, none) center / cover no-repeat, var(--c-primary); }
.weather2-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.temp-now strong { display: block; color: var(--c-accent-soft); font-size: clamp(3.5rem, 5vw, 6.25rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.temp-now span { display: block; color: var(--c-primary-text); font-size: clamp(1.0625rem, 1.1vw, 1.375rem); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.cal-col { grid-column: 2; }
.cal-col .eyebrow { color: color-mix(in srgb, var(--c-primary-contrast) 55%, var(--c-primary)); font-weight: 600; }
.cal-col h2 { margin: 0 0 clamp(24px, 2vw, 40px); color: var(--c-primary-text); font-size: clamp(2rem, 2.1vw, 2.625rem); }
.cal-card { position: relative; width: min(100%, 540px); padding: clamp(18px, 1.6vw, 30px) clamp(18px, 1.8vw, 34px) clamp(22px, 1.8vw, 34px); border-radius: 16px; background: var(--c-bg); color: var(--c-text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.cal-card h2 { margin-bottom: 18px; }
.cal-head { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 10px; font-size: .9375rem; font-weight: 800; text-transform: uppercase; }
.cal-head .cal-month { margin-right: auto; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-heading); cursor: pointer; }
.cal-nav:hover { background: var(--c-button); color: var(--c-button-contrast); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid .cal-dow { padding: 6px 0; font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.cal-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 3px; font-size: 1rem; font-weight: 600; color: var(--c-text); }
.cal-day.is-other { color: var(--c-icon); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--c-accent); }
.cal-day.has-event { background: color-mix(in srgb, var(--c-primary) 92%, var(--c-bg)); color: var(--c-primary-contrast); font-weight: 800; cursor: pointer; }
.cal-day.has-event:hover, .cal-day.is-selected { background: var(--c-button); color: var(--c-button-contrast); }
.cal-events { margin-top: 18px; }
.cal-event { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 10px 14px; border-radius: 3px; background: var(--c-accent-soft); color: var(--c-heading); font-size: 1rem; font-weight: 700; }
.cal-event:hover { background: var(--c-button); color: var(--c-button-contrast); }
.cal-event .cal-event-date { flex: none; font-size: .875rem; opacity: .75; }

/* ---------- kalendář akcí – pás dnů měsíce (Post/eventsFilter.latte) */
.ev-month { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ev-month h2 { margin: 0 auto 0 0; font-size: clamp(1.5rem, 1.2rem + .8vw, 2.125rem); text-transform: uppercase; }
.ev-days { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); gap: 3px; margin-bottom: clamp(28px, 2.4vw, 44px); padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.ev-day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 0 11px; border-radius: 3px; background: var(--c-accent-soft); color: var(--c-heading); font-size: 1.125rem; font-weight: 800; line-height: 1; }
.ev-day small { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.ev-day.is-weekend small { color: var(--c-accent-text); }
.ev-day.is-today { box-shadow: inset 0 0 0 2px var(--c-accent); }
.ev-day:hover, .ev-day.active { background: var(--c-button); color: var(--c-button-contrast); }
.ev-day:hover small, .ev-day.active small { color: inherit; opacity: .8; }

/* ---------- projekty */
.band-head--projects { display: grid; grid-template-columns: auto 1fr auto; }
.proj-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.proj-tabs .pill:not(.active) { background: color-mix(in srgb, var(--c-accent-soft) 70%, var(--c-band)); }
.proj-years { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; font-size: 1.25rem; font-weight: 800; }
.proj-years a { color: var(--c-band-text); }
.proj-years a.active, .proj-years a:hover { color: var(--c-band-contrast); }
.proj-card { position: relative; display: flex; flex-direction: column; width: clamp(260px, 29.5vw, 590px); margin-right: clamp(16px, 1.6vw, 32px); color: var(--c-band-text); }
.proj-card-img { aspect-ratio: 585 / 693; overflow: hidden; background: color-mix(in srgb, var(--c-band-contrast) 8%, var(--c-band)); }
.proj-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj-card-img--empty { display: flex; align-items: center; justify-content: center; }
.proj-card-img--empty img { width: 40%; height: auto; object-fit: contain; opacity: .3; filter: grayscale(1); }
.proj-card-title { flex: 1 1 auto; margin: clamp(16px, 1.4vw, 28px) 0 0; padding-bottom: clamp(24px, 3vw, 60px); border-bottom: 1px solid var(--c-band-text); color: var(--c-band-text); font-size: clamp(1.75rem, 3.2vw, 4rem); font-weight: 900; line-height: .97; letter-spacing: -.03em; }
.proj-card-title a { color: inherit; }
.proj-card-title a::after { content: ''; position: absolute; inset: 0; }
.proj-card-date { margin: 14px 0 0; font-size: .875rem; font-weight: 600; text-transform: uppercase; }
.proj-card:hover .proj-card-img img { transform: scale(1.03); }
.proj-card:hover .proj-card-title { color: var(--c-band-contrast); }
.band--band .slider-nav { background: transparent; padding-right: 0; }
.band--band .slider-progress { background: color-mix(in srgb, var(--c-accent) 55%, var(--c-band)); }
.band--band .slider-progress .swiper-scrollbar-drag { background: var(--c-band-text); }
.band--band .slider-btn { background: var(--c-accent-soft); color: var(--c-heading); }

/* ---------- sociální sítě */
.social2 { background: var(--c-bg); }
.social2-tabs { display: flex; flex-wrap: wrap; gap: 8px clamp(24px, 2.2vw, 44px); margin-bottom: clamp(36px, 3.6vw, 72px); }
.social2-tabs button, .social2-tabs a { padding: 0; border: 0; background: none; color: var(--c-accent-text); font-family: var(--font-sans); font-size: clamp(1.5rem, 1.3vw, 1.75rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; cursor: pointer; }
.social2-tabs .active, .social2-tabs button:hover, .social2-tabs a:hover { color: var(--c-heading); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 56px) clamp(32px, 3.5vw, 70px); }
.feed-item { display: grid; grid-template-columns: clamp(80px, 6.6vw, 132px) minmax(0, 1fr); gap: clamp(18px, 2vw, 40px); align-items: start; color: var(--c-text); }
.feed-item:hover { color: var(--c-accent-text); }
.feed-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-surface); }
.feed-img img { width: 100%; height: 100%; object-fit: cover; }
.feed-img .icon { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; color: #fff; }
.feed-text { font-size: clamp(1.125rem, 1.2vw, 1.4rem); font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-date { display: block; margin-top: 6px; font-size: .875rem; font-weight: 600; text-transform: uppercase; color: var(--c-muted); }
.feed-pane { display: none; }
.feed-pane.active { display: block; }
.social2 .band-foot { margin-top: clamp(40px, 4.4vw, 88px); }

/* ---------- ostatní moduly úvodní stránky (Page/components/mod-*) */
.band--module { background: var(--c-bg); }
.band--module .sec { margin-top: 0; }

/* ===================================================================== DETAIL */

.detail-date { margin: clamp(-48px, -2.4vw, -20px) 0 clamp(24px, 2.2vw, 40px); font-size: .9375rem; font-weight: 700; text-transform: uppercase; color: var(--c-accent-text); }
.detail-date span + span::before { content: '·'; margin: 0 .6em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 874px) minmax(0, 424px); justify-content: space-between; gap: 40px 64px; align-items: start; }
.detail-grid--single { grid-template-columns: minmax(0, 874px); }
.detail-lead { margin-bottom: 1.4em; font-size: var(--fs-lead); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--c-text); }
.detail-lead p:last-child { margin-bottom: 0; }
.detail-figure { margin: 0; }
.detail-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.detail-aside .detail-figure { margin-top: clamp(0px, 1.6vw, 32px); }
.detail-figure figcaption { margin-top: 10px; font-size: .875rem; color: var(--c-muted); }
.detail-aside > * + * { margin-top: 32px; }
.detail-info { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.detail-info li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 1rem; }
.detail-info li > span:first-child { font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--c-muted); padding-top: 2px; }
.detail-sep { margin: 56px 0 72px; border-top: 1px solid var(--c-line); }
.detail-next { display: flex; justify-content: flex-end; margin: 48px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* náhledy fotek */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 32px); }
.thumbs a, .thumbs .thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-surface); }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumbs a:hover img { transform: scale(1.04); }
.thumbs .thumb-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--c-primary-rgb), .65); color: var(--c-primary-contrast); font-size: 2rem; font-weight: 900; }
.thumbs-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(10px, 1.6vw, 32px); margin-bottom: clamp(10px, 1.6vw, 32px); align-items: start; }
.thumbs-lead a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.thumbs-lead img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ===================================================================== TEXT Z EDITORU */

.section-content-main-text, .text-content {
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: 0;
	color: var(--c-body);
	overflow-wrap: break-word;
}
.section-content-main-text > *:first-child, .text-content > *:first-child { margin-top: 0; }
.section-content-main-text p, .text-content p { margin: 0 0 1.15em; }
.section-content-main-text h1, .section-content-main-text h2, .section-content-main-text h3, .section-content-main-text h4,
.text-content h1, .text-content h2, .text-content h3, .text-content h4 { margin: 1.6em 0 .55em; color: var(--c-heading); }
.section-content-main-text h1, .text-content h1 { font-size: var(--fs-h2); line-height: 1; font-weight: 900; }
.section-content-main-text h2, .text-content h2 { font-size: clamp(1.625rem, 1.2rem + .9vw, 2.25rem); font-weight: 900; line-height: 1.02; }
.section-content-main-text h3, .text-content h3 { font-size: 1.5rem; font-weight: 800; }
.section-content-main-text h4, .text-content h4 { font-size: 1.1875rem; font-weight: 800; }
.section-content-main-text a, .text-content a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section-content-main-text a:hover, .text-content a:hover { color: var(--c-text); }
.section-content-main-text strong, .text-content strong { color: var(--c-text); }
.section-content-main-text ul, .section-content-main-text ol, .text-content ul, .text-content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.section-content-main-text li, .text-content li { margin-bottom: .35em; }
.section-content-main-text ul li::marker, .text-content ul li::marker { color: var(--c-accent-text); }
.section-content-main-text img, .text-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.section-content-main-text blockquote, .text-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--c-accent); font-size: var(--fs-lead); line-height: 1.3; color: var(--c-text); }
.section-content-main-text table, .text-content table { width: 100% !important; margin: 1.5em 0; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.section-content-main-text table td, .section-content-main-text table th, .text-content table td, .text-content table th { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--c-line); vertical-align: top; text-align: left; }
.section-content-main-text table th, .text-content table th, .section-content-main-text table thead td { font-size: .9375rem; font-weight: 800; text-transform: uppercase; color: var(--c-heading); }
.section-content-main-text hr, .text-content hr { margin: 2.5em 0; }
.section-content-main-text iframe, .text-content iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.section-content-main-text .table-responsive, .text-content .table-responsive { margin: 1.5em 0; }
.section-content-main-text .video-embed, .text-content .video-embed { margin: 1.5em 0; }

/* ===================================================================== KONTAKTY */

.contact-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-bottom: 64px; }
.contact-top h2 { margin-bottom: 18px; color: var(--c-text); font-size: 1.625rem; font-weight: 800; }
.contact-big { display: block; margin-bottom: 18px; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; color: var(--c-text); }
.contact-label { margin: 14px 0 4px; font-size: 1.125rem; font-weight: 600; color: var(--c-text); }
.contact-mono, .contact-mono a { font-family: var(--font-mono); font-size: 1rem; font-weight: 400; line-height: 1.65; color: var(--c-body); letter-spacing: 0; }
.contact-mono a, a.contact-mail { color: var(--c-link); font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; }
.contact-mono a:hover, a.contact-mail:hover { color: var(--c-text); }
.hours { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--c-text); }
.hours .is-office { color: var(--c-success); font-weight: 500; }
.hours-note { margin-top: 10px; font-size: .875rem; color: var(--c-muted); }
.hours-note span { color: var(--c-success); }

.person-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 3.8vw, 76px); }
.person-grid > * { padding: 28px 0 30px; border-top: 1px solid var(--c-line); }
.person-grid > *:nth-child(-n+3) { border-top: 2px solid var(--c-text); }
.person-card { position: relative; }
.person-card h3 { margin: 0 0 14px; color: var(--c-text); font-size: 1.625rem; font-weight: 800; line-height: 1.1; }
.person-card h3 a:hover { color: var(--c-accent-text); }
.person-name { margin-bottom: 12px; font-size: 1.125rem; font-weight: 600; color: var(--c-text); }
.person-photo { float: right; width: 84px; height: 84px; margin: 0 0 12px 16px; border-radius: 50%; object-fit: cover; }
.person-card .contact-mono { line-height: 1.55; }

/* tmavý box (otevírací doba) */
.soft-box { max-width: 760px; padding: clamp(28px, 3.6vw, 72px) clamp(24px, 3.6vw, 72px); border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-on-primary); }
.soft-box .eyebrow { margin-bottom: 18px; color: var(--c-primary-text); font-size: 1.125rem; letter-spacing: .14em; }
.soft-box .hours { font-family: var(--font-sans); font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); font-weight: 700; line-height: 1.6; color: var(--c-on-primary); }
.soft-box .hours .is-office { color: var(--c-highlight); }
/* kontakty subjektu na světlé ploše (Figma Kontakty 2) */
.subject-content { margin: 0 calc(-1 * clamp(0px, 4.2vw, 84px)); padding: clamp(28px, 3vw, 56px) clamp(20px, 4.2vw, 84px) clamp(32px, 3.4vw, 64px); background: var(--c-accent-soft); }
.subject-content .person-grid > * { border-top-color: color-mix(in srgb, var(--c-text) 18%, var(--c-accent-soft)); }

/* ===================================================================== VYHLEDÁVÁNÍ */

.search-overlay { position: fixed; z-index: 1060; inset: 0; display: none; overflow-y: auto; background: var(--c-primary); color: var(--c-primary-contrast); }
.search-overlay .eyebrow { color: var(--c-primary-text); }
.search-overlay.is-open { display: block; }
.search-overlay-inner { max-width: 980px; margin: 0 auto; padding: 14vh 24px 60px; }
.search-overlay .eyebrow { margin-bottom: 18px; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid currentColor; }
.search-form input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: inherit; font-family: var(--font-sans); font-size: clamp(2rem, 1.2rem + 3vw, 4.5rem); font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; outline: none; }
.search-form input::placeholder { color: inherit; opacity: .35; }
.search-form button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); cursor: pointer; }
.search-form button .icon { width: 22px; height: 22px; }
.search-close { position: absolute; top: 24px; right: 24px; display: inline-flex; padding: 8px; border: 0; background: none; color: inherit; cursor: pointer; }
.search-close .icon { width: 26px; height: 26px; }

.result-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); max-width: 1180px; }
.result-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 40px; padding: 26px 0; border-bottom: 1px solid var(--c-line); }
.result-type { font-size: .875rem; font-weight: 800; text-transform: uppercase; color: var(--c-accent-text); }
.result-title { grid-column: 1; margin: 0; color: var(--c-text); font-size: 1.375rem; font-weight: 700; line-height: 1.25; text-transform: none; }
.result-title a::after { content: ''; position: absolute; inset: 0; }
.result-item:hover .result-title { color: var(--c-accent-text); }
.result-text { grid-column: 1; font-size: 1.0625rem; line-height: 1.5; color: var(--c-body); }
.result-text mark, .result-title mark { padding: 0 2px; background: var(--c-highlight); color: var(--c-highlight-contrast); }
.result-go { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: 40px; height: 40px; padding: 12px; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); }

/* ===================================================================== STRÁNKOVÁNÍ, NAČÍST DALŠÍ */

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.pager-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.pager-pages a, .pager-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; font-size: 1.25rem; font-weight: 800; color: var(--c-text); }
.pager-pages a:hover { background: var(--c-accent-soft); }
.pager-pages .active { background: var(--c-primary); color: var(--c-primary-contrast); }
.pager-pages .icon { width: 16px; height: 16px; }

.more-element { margin-top: 36px; }
/* NAČÍST DALŠÍ – tmavá pilulka s kroužkem */
.more-element a { display: inline-flex; align-items: center; gap: 22px; min-height: 48px; padding: 4px 4px 4px 22px; border-radius: 999px; background: var(--c-primary); color: var(--c-primary-contrast); font-size: .9375rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.more-element a:hover { color: var(--c-primary-contrast); }
.more-element a::after { content: '→'; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-button); color: var(--c-button-contrast); font-size: 1.125rem; transition: transform .15s; }
.more-element a:hover::after { transform: translateX(3px); }
.more-element a.ajaxed { opacity: .4; pointer-events: none; }

/* Bootstrap stránkování */
.amrich .pagination { gap: 4px; }
.amrich .page-link { border: 0; border-radius: 999px !important; color: var(--c-text); background: none; font-weight: 800; }
.amrich .page-item.active .page-link { background: var(--c-primary); color: var(--c-primary-contrast); }
.amrich .page-link:hover { background: var(--c-accent-soft); color: var(--c-text); }

/* ===================================================================== PATIČKA */

.site-footer {
	padding: clamp(56px, 5.5vw, 110px) var(--wrap-pad) 40px;
	background: var(--c-footer-bg);
	color: var(--c-footer-text);
	font-size: 1.0625rem;
}
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-button); }
.footer-brand { padding-bottom: 14px; margin-bottom: clamp(32px, 3vw, 56px); max-width: 1080px; border-bottom: 1px solid rgba(var(--c-footer-text-rgb), .2); }
.footer-brand .brand { color: var(--c-footer-text); font-size: clamp(1.75rem, 2.2vw, 2.75rem); font-weight: 600; }
.footer-brand .brand img { height: 1.1em; filter: none; }
.footer-brand--white .brand img { filter: brightness(0) invert(1); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-cols h2 { margin: 0 0 22px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--c-footer-text-rgb), .5); }
.footer-cols p { margin: 0 0 8px; line-height: 1.5; color: rgba(var(--c-footer-text-rgb), .78); }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols address { margin: 0 0 10px; line-height: 1.35; color: rgba(var(--c-footer-text-rgb), .78); }
.footer-html { color: rgba(var(--c-footer-text-rgb), .78); line-height: 1.5; }
.footer-html a { text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(var(--c-footer-text-rgb), .22); }
.footer-social a:hover { border-color: var(--c-button); color: var(--c-button); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: clamp(48px, 5vw, 96px); padding-top: 28px; border-top: 1px solid rgba(var(--c-footer-text-rgb), .16); font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; letter-spacing: .02em; color: rgba(var(--c-footer-text-rgb), .55); }
.footer-bottom a { color: var(--c-footer-text); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom .langs { gap: 20px; font-size: .8125rem; }
.footer-bottom .langs a { color: rgba(var(--c-footer-text-rgb), .45); }
.footer-bottom .langs a.active, .footer-bottom .langs a:hover { color: var(--c-footer-text); }

/* ===================================================================== FORMULÁŘE */

.amrich label { font-size: .9375rem; font-weight: 600; color: var(--c-text); }
.amrich .form-control, .amrich .custom-select, .amrich select.form-control {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--c-chip-line);
	border-radius: var(--radius-sm);
	background-color: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: var(--ls-ui);
	box-shadow: none;
}
.amrich textarea.form-control { min-height: 120px; }
.amrich .form-control:focus, .amrich .custom-select:focus { border-color: var(--c-text); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .18); }
.amrich .form-control::placeholder { color: var(--c-icon); }
.amrich .form-group { margin-bottom: 1.25rem; }
.amrich .form-text { color: var(--c-muted); }
.amrich .required label::after, .amrich label.required::after { content: ' *'; color: var(--c-danger); }
.amrich .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--c-primary); border-color: var(--c-primary); }
.amrich .custom-control-label::before { border-color: var(--c-chip-line); }
.amrich .form-check-input { accent-color: var(--c-primary); }
.amrich input[type=checkbox], .amrich input[type=radio] { accent-color: var(--c-primary); }
.amrich .invalid-feedback, .amrich .error, .amrich .form-errors, .amrich ul.error { color: var(--c-danger); font-size: .875rem; }
.amrich .is-invalid { border-color: var(--c-danger) !important; }
.amrich .form-wide { max-width: 820px; }
.amrich .form-side { color: var(--c-body); }
.amrich .form-finish { margin-top: 28px; }
.amrich .input-group-text { border-color: var(--c-chip-line); background: var(--c-surface); color: var(--c-text); }

/* ===================================================================== BOOTSTRAP KOMPONENTY */

.amrich .alert { border: 0; border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent-soft-contrast); font-size: 1rem; }
.amrich .alert-success { border-left-color: var(--c-success); background: rgba(var(--c-success-rgb), .12); color: var(--c-text); }
.amrich .alert-danger, .amrich .alert-warning { border-left-color: var(--c-danger); background: rgba(217,45,32,.08); color: var(--c-text); }
.amrich .alert a { color: inherit; text-decoration: underline; }
.amrich .card { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.amrich .card-header { border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.amrich .card-img-top { border-radius: var(--radius) var(--radius) 0 0; }
.amrich .table { color: var(--c-text); }
.amrich .table td, .amrich .table th { border-color: var(--c-line); }
.amrich .table thead th { border-bottom: 1px solid var(--c-text); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; text-transform: uppercase; }
.amrich .table-striped tbody tr:nth-of-type(odd) { background: var(--c-surface); }
.amrich .table-hover tbody tr:hover { background: rgba(var(--c-accent-rgb), .06); }
.amrich .table-bordered, .amrich .table-bordered td, .amrich .table-bordered th { border-color: var(--c-line); }
.amrich .thead-light th { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.amrich .bg-white { background: var(--c-bg) !important; }
.amrich .bg-light { background: var(--c-surface) !important; }
.amrich .badge { border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; }
.amrich .badge-secondary { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); }
.amrich .badge-primary { background: var(--c-accent); color: var(--c-accent-contrast); }
.amrich .modal-content { border: 0; border-radius: var(--radius-lg); background: var(--c-bg); color: var(--c-text); }
.amrich .modal-header, .amrich .modal-footer { border-color: var(--c-line); }
.amrich .close { color: var(--c-text); opacity: .7; text-shadow: none; }
.amrich .dropdown-menu { border-color: var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.amrich .dropdown-item { color: var(--c-text); }
.amrich .dropdown-item:hover, .amrich .dropdown-item.active { background: var(--c-surface); color: var(--c-accent-text); }
.amrich .nav-tabs { border-bottom-color: var(--c-line); }
.amrich .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; font-family: var(--font-mono); font-size: .875rem; text-transform: uppercase; color: var(--c-muted); }
.amrich .nav-tabs .nav-link.active { border-bottom-color: var(--c-accent); background: none; color: var(--c-accent-text); }
.amrich .progress { border-radius: var(--radius); background: var(--c-surface); }
.amrich .progress-bar { background: var(--c-accent); }
.amrich .list-group-item { border-color: var(--c-line); background: var(--c-bg); }
.amrich .text-dark { color: var(--c-text) !important; }
.amrich .text-white { color: #fff !important; }
.amrich .border, .amrich .border-bottom, .amrich .border-top { border-color: var(--c-line) !important; }
.amrich .carousel-control-prev, .amrich .carousel-control-next { width: 10%; }

/* ===================================================================== HLÁŠKY */

.flash-messages { position: fixed; z-index: 1080; top: 20px; left: 50%; display: flex; flex-direction: column; gap: 10px; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }
.flash-message { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-primary); color: var(--c-primary-contrast); box-shadow: 0 16px 40px rgba(var(--c-text-rgb), .2); font-size: 1rem; }
.flash-message.error, .flash-message.danger { background: var(--c-danger); color: #fff; }
.flash-message.success { background: var(--c-success); color: var(--c-success-contrast); }
.flash-message .close { padding: 0; border: 0; background: none; color: inherit; font-size: 1.5rem; line-height: 1; opacity: .8; }

#blind { position: absolute; z-index: 1100; top: 0; left: 0; }
#blind ul { margin: 0; padding: 0; list-style: none; }
#blind a { position: absolute; left: -9999px; padding: 10px 16px; background: var(--c-primary); color: var(--c-primary-contrast); white-space: nowrap; }
#blind a:focus { left: 10px; top: 10px; }

/* ===================================================================== VÝCHOZÍ KOMPONENTY (moduly sdílené s výchozí šablonou) */

/* nadpis sekce ve stylu výchozí šablony (.title > h2) */
.amrich .title { margin-bottom: 24px; }
.amrich .title h2, .amrich .title h3 { margin-bottom: 6px; }
.amrich .title > div, .amrich .title > p { color: var(--c-muted); }

/* Swiper / slidery modulů */
.amrich .swiper-button-next, .amrich .swiper-button-prev { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--c-bg); color: var(--c-text); box-shadow: 0 6px 18px rgba(var(--c-text-rgb), .12); }
.amrich .swiper-button-next::after, .amrich .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
.amrich .swiper-pagination-bullet-active { background: var(--c-accent); }

/* lightGallery v tématu */
.lg-backdrop { background-color: rgba(var(--c-primary-rgb), .96) !important; }

/* QR/vizitka kontaktu – barvy tématu */
.amrich .contact-qr-btn { border-radius: var(--radius-sm); }

/* ===================================================================== DOPLŇKY DESKY A DETAILU */

.desk-intro { max-width: 1148px; margin: -24px 0 40px; }
.doc-item--empty { display: block; color: var(--c-muted); }
.doc-item--empty::before { display: none; }
.table-a { max-width: 1148px; }
.table-a td a { font-weight: 500; }
.table-a td a:hover { color: var(--c-accent-text); }
.page-head-logo { flex: none; max-width: 160px; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.detail-main { min-width: 0; }
.form-pass { max-width: 520px; margin: 24px 0; }
.form-pass-row { display: flex; gap: 10px; margin-top: 8px; }
.form-pass-row .form-control { flex: 1 1 auto; }
.article-discussion { margin-top: 56px; }
.article-discussion h2 { font-size: 1.5rem; }

/* ===================================================================== VÝPISY – Post, News, Announ, Instagram, Newspaper, Chronicle */

/* karty: odkaz v meta řádku (organizace) nad odkazem celé karty */
.card-a-meta a { position: relative; z-index: 1; color: inherit; }
.card-a-meta a:hover { color: var(--c-accent-text); }

/* videa: náhled spouští lightGallery (nad odkazem karty), ikona play uprostřed */
.card-a .video-thumb { z-index: 1; cursor: pointer; }
.card-a-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(var(--c-primary-rgb), .55); color: var(--c-primary-contrast); transition: background-color .15s, transform .2s; pointer-events: none; }
.card-a-play .icon { width: 26px; height: 26px; margin-left: 4px; }
.card-a:hover .card-a-play { background: var(--c-accent); color: var(--c-accent-contrast); transform: scale(1.06); }

/* titulní strany na výšku (zpravodaj, kroniky) */
.cards--covers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 40px 28px; }
.card-a-img--cover { aspect-ratio: 210 / 297; border: 1px solid var(--c-line); }
.card-a--cover .card-a-title { font-size: 1.125rem; }
.card-a.is-current .card-a-img { box-shadow: 0 0 0 2px var(--c-accent); }
.card-a.is-current .card-a-title { color: var(--c-accent-text); }

/* výpis příspěvků vložený do textu stránky (placeholder postTagList) */
.section-content-main-text .cards--placeholder { margin: 2em 0; }
.section-content-main-text .cards--placeholder a { color: inherit; text-decoration: none; }
.section-content-main-text .cards--placeholder .card-a-title { margin: 0 0 10px; font-size: 1.375rem; font-weight: 500; line-height: 1.25; color: var(--c-text); }
.section-content-main-text .cards--placeholder .card-a:hover .card-a-title { color: var(--c-accent-text); }
.section-content-main-text .cards--placeholder p { margin: 0; }
.section-content-main-text .cards--placeholder .card-a-meta { margin-bottom: 10px; }
.section-content-main-text .cards--placeholder img { border-radius: 0; }

/* aktuality a oznámení v seznamu .doc-list: autor a úryvek přes celou šířku řádku */
.news-item .doc-meta, .news-item .doc-perex, .announ-item .doc-perex { grid-column: 1 / -1; margin: -6px 0 0; }
.news-item .doc-meta a { position: relative; z-index: 2; color: inherit; }
.news-item .doc-meta a:hover { text-decoration: underline; }
.news-item .doc-perex, .announ-item .doc-perex { max-width: 860px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* filtr roku v hlavičce */
.title-selector--year > a { min-width: 150px; }

/* stránkování (oznámení matriky) */
.pager-info { font-size: .875rem; text-transform: uppercase; color: var(--c-muted); }
.pager-gap { color: var(--c-muted); }

/* detail oznámení: datum a nadpis uvnitř textu (zdroj pro externího chatbota) */
.section-content-main-text > .announ-date { margin: -40px 0 28px; }
.section-content-main-text .announ-heading { margin: 0 0 .8em; font-size: var(--fs-lead); font-weight: 500; line-height: 1.23; }

/* Instagram */
.ig-hashtag { color: var(--c-accent-text); }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.ig-item { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.ig-item iframe.igframe { display: block; width: 100%; height: 560px; border: 0; }

/* zpravodaj a kroniky: listovací verze (dFlip), úvodní text, videozpravodaj vedle čísel */
.flipbook { margin-bottom: var(--sec-gap); }
.flipbook .sec-head { margin-bottom: 24px; }
.flipbook ._df_book { border-radius: var(--radius); background: var(--c-surface); }
.np-text { max-width: 860px; margin-bottom: 48px; }
.np-text--outro { margin: 56px 0 0; }
.np-text > *:last-child { margin-bottom: 0; }
.np-layout--aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 48px 64px; align-items: start; }
.np-videos { padding-left: 32px; border-left: 1px solid var(--c-line); }
.np-videos .eyebrow { margin-bottom: 20px; }
.np-videos-list { display: grid; gap: 32px; }
.np-videos .card-a-img { margin-bottom: 12px; aspect-ratio: 16 / 10; }
.np-videos .card-a-title { font-size: 1.125rem; }
.np-videos .card-a-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.np-videos .card-a-play .icon { width: 20px; height: 20px; }

@media (max-width: 1199px) {
	.np-layout--aside { grid-template-columns: minmax(0, 1fr); }
	.np-videos { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
	.np-videos-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}

@media (max-width: 991px) {
	.news-item .doc-meta, .news-item .doc-perex, .announ-item .doc-perex { order: 2; margin-top: 0; }
	.cards--covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
	.page-head-aside .tabs + .title-selector { margin-top: 4px; }
	.ig-item iframe.igframe { height: 520px; }
	.section-content-main-text > .announ-date { margin-top: -20px; }
}

@media (max-width: 575px) {
	.pager-info { display: none; }
	.card-a-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
}

/* ===================================================================== STRÁNKY – Page, Content, Error, moduly úvodní stránky */

/* ---------- vyhledávání (Page:search) */
.search-jump { margin: 0 0 8px; }
.search-jump a { gap: 8px; }
.search-jump-count { color: var(--c-muted); }
.search-jump a:hover .search-jump-count { color: inherit; }
.search-group { max-width: 1148px; margin-top: 56px; scroll-margin-top: 24px; }
.search-group-head { margin-bottom: 20px; }
.search-group-head h2 { margin: 0; }
.result-item .result-go { color: var(--c-text); transition: transform .15s, color .15s; }
.result-item:hover .result-go { transform: translate(2px, -2px); }
.result-files, .result-contacts, .result-item .contact-vcard { grid-column: 1; position: relative; z-index: 2; }
.result-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.result-badge { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: .6875rem; line-height: 1.5; }
.result-contacts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 4px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: .9375rem; font-weight: 400; letter-spacing: 0; }
.result-contacts li { display: inline-flex; align-items: center; gap: 8px; }
.result-contacts li > span { font-size: .75rem; text-transform: uppercase; color: var(--c-muted); }
.result-contacts a { color: var(--c-link); }
.result-contacts a:hover { color: var(--c-text); }
.result-item .contact-vcard { margin-top: 8px; }
.search-empty { max-width: 760px; }
.search-form--inline { max-width: 640px; margin-top: 28px; }
.search-form--inline { color: var(--c-heading); }
.search-form--inline input { padding: 10px 0; font-size: var(--fs-h3); }
.search-form--inline button { width: 44px; height: 44px; }
.search-form--inline button .icon { width: 18px; height: 18px; }

/* ---------- povinné informace (Page:mandatory) */
.mandatory-list { max-width: 1148px; border-top: 1px solid var(--c-line); }
.mandatory-list .acc-item > button { cursor: pointer; }
.mandatory-list .acc-item > button:hover, .mandatory-list .acc-item > button:hover .acc-plus { color: var(--c-accent-text); }
.mandatory-list .acc-item > button[aria-expanded="true"] .acc-plus { transform: rotate(45deg); color: var(--c-accent-text); }
.mandatory-num { display: inline-block; min-width: 2.2em; font-family: var(--font-mono); font-weight: 400; color: var(--c-accent-text); }
.mandatory-body { max-width: 874px; padding: 0 0 32px 32px; }
.mandatory-body h3 { margin: 1.6em 0 .4em; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-ui); }
.mandatory-body > h3:first-child { margin-top: 0; }

/* ---------- chybové stránky (Error/*) */
.error-head { align-items: center; }
.error-code { flex: none; margin: 0; font-family: var(--font-mono); font-size: clamp(5rem, 2rem + 9vw, 13rem); font-weight: 500; line-height: .9; letter-spacing: -.05em; color: var(--c-accent-text); }
.error-actions { display: flex; flex-direction: column; gap: 36px; max-width: 760px; }
.error-actions .search-form--inline { margin-top: 0; }

/* ---------- moduly úvodní stránky (Page/components/mod-*) */
.mod-html { max-width: 1010px; }
.mod-head-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.slider-arrows, .projects-arrows { display: inline-flex; gap: 8px; }
.slider-arrow, .projects-arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); }
.slider-arrow:hover, .projects-arrow:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }
.slider-arrow .icon, .projects-arrow .icon { width: 18px; height: 18px; }

/* akce – posuvník Swipe (eventSlider.js) po stránkách se třemi kartami */
.swipe { position: relative; overflow: hidden; }
.swipe-wrap { position: relative; overflow: hidden; }
.swipe-wrap > div { position: relative; float: left; width: 100%; }
.ev-page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ev-card-place { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--c-body); }
.ev-card.is-past .card-a-img img { filter: grayscale(1); opacity: .75; }
.ev-card .card-a-img--empty > .icon { width: 48px; height: 48px; color: var(--c-icon); }

/* zpravodaj a videozpravodaj – posuvník Swiper */
.mod-swiper .swiper-slide { height: auto; }
.np-slide { display: block; width: 180px; color: var(--c-text); }
.np-slide:hover { color: var(--c-text); }
.np-cover { display: block; aspect-ratio: 210 / 297; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); }
.np-cover img, .vn-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.np-slide:hover img, .vn-slide:hover img { transform: scale(1.03); }
.np-title { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: .875rem; font-weight: 400; text-transform: uppercase; letter-spacing: var(--ls-ui); }
.np-slide:hover .np-title, .vn-slide:hover .np-title { color: var(--c-accent-text); }
.vn-slide { display: block; width: 340px; color: var(--c-text); }
.vn-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.vn-thumb .vn-play { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

/* ankety */
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 48px; }
.poll-card { display: flex; flex-direction: column; padding-top: 24px; border-top: 2px solid var(--c-text); }
.poll-card h3 { margin: 0 0 18px; font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.poll-label { margin: 0 0 6px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; text-transform: uppercase; color: var(--c-muted); }
.poll-question { margin: 0 0 22px; font-size: 1.125rem; line-height: 1.4; color: var(--c-body); }
.poll-options { margin: 0 0 28px; padding: 0; list-style: none; }
.poll-options li + li { margin-top: 14px; }
.poll-option { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 1rem; line-height: 1.3; }
.poll-percent { flex: none; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; color: var(--c-muted); white-space: nowrap; }
.poll-card .progress { display: flex; height: 6px; }
.poll-card .btn-a { align-self: flex-start; margin-top: auto; }

/* nepřehlédněte, výkladní skříň, mapa */
.card-a-title .promo-ext { width: .65em; height: .65em; vertical-align: .05em; }
.showcase-items { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.showcase-item { display: block; }
.showcase-item img { display: block; width: auto; height: auto; max-width: 170px; max-height: 220px; border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(var(--c-text-rgb), .14); transition: transform .2s, box-shadow .2s; }
a.showcase-item:hover img { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(var(--c-text-rgb), .2); }
.mod-showcase.has-bg { padding: clamp(28px, 3vw, 56px); border-radius: var(--radius); background: var(--showcase-bg); color: #fff; }
.mod-showcase.has-bg h2, .mod-showcase.has-bg .link-arrow { color: inherit; }
.mod-map-canvas { position: relative; z-index: 0; height: clamp(320px, 30vw, 520px); overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }

/* ---------- boxy topof-* (pravý sloupec) */
.right-col-inner { display: flex; flex-direction: column; gap: 48px; }
.side-box { padding-top: 18px; border-top: 2px solid var(--c-text); }
.side-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.side-box-title { margin: 0 0 10px; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; line-height: 1.3; text-transform: uppercase; letter-spacing: var(--ls-ui); }
.side-box-head .side-box-title { margin: 0; }
.side-box .side-box-btn { width: 32px; min-height: 32px; padding: 0; }
.side-box .cal { margin-bottom: 20px; }
.side-box-text { font-size: 1rem; }
.side-list { margin: 0 0 20px; padding: 0; list-style: none; }
.side-list li { border-bottom: 1px solid var(--c-line); }
.side-list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; color: var(--c-text); }
.side-list-title { font-size: 1rem; font-weight: 500; line-height: 1.35; }
.side-list a:hover .side-list-title { color: var(--c-accent-text); }
.side-list-meta { font-family: var(--font-mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; color: var(--c-muted); }
.side-list-meta.is-accent { color: var(--c-accent-text); }
.side-list-text { font-size: .875rem; line-height: 1.4; color: var(--c-body); }
.side-list-text:empty { display: none; }

/* ---------- proužek projektů (components/projectsStrip) */
.projects-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.projects-label { grid-column: 1 / -1; margin: 0; font-size: .8125rem; color: var(--c-muted); }
.projects-content { min-width: 0; }
.project-row { color: var(--c-text); }
.project-row:hover { color: var(--c-text); }
.project-row-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.project-text { min-width: 0; font-size: .9375rem; line-height: 1.45; color: var(--c-body); }
.project-text p { margin: 0; }
.project-text img { max-height: 48px; width: auto; }
.project-logo { flex: none; width: auto; height: auto; max-width: 180px; max-height: 64px; object-fit: contain; }

/* ---------- vypnutý web (Page:locked, bez layoutu) */
.locked-page { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 80px var(--gutter); }
.locked-brand { position: absolute; top: 16px; right: 16px; }
.locked-brand img { display: block; width: auto; height: 44px; }
.locked-main { max-width: 900px; text-align: center; }
.locked-logo { display: block; max-width: 160px; max-height: 120px; margin: 0 auto 32px; }
.locked-main h1 { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 1199px) {
	.ev-page { gap: 24px; }
}

@media (max-width: 991px) {
	.error-code { order: -1; font-size: 5.5rem; }
	.mandatory-body { padding-left: 0; }
	.ev-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ev-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
	.ev-card .card-a-img { margin: 0; aspect-ratio: 1; }
	.ev-card .card-a-title { font-size: 1.125rem; }
	.vn-slide { width: 280px; }
	.np-slide { width: 150px; }
}

@media (max-width: 575px) {
	.mod-head-aside { width: 100%; justify-content: space-between; }
	.showcase-items { gap: 16px; }
	.showcase-item img { max-width: 120px; max-height: 160px; }
	.project-row-inner { flex-direction: column; align-items: flex-start; }
	.projects-strip { grid-template-columns: minmax(0, 1fr); }
	.search-form--inline input { font-size: 1.25rem; }
}

/* ===================================================================== ORGANIZACE – Org, Project, Trail, Doc */

/* dlaždice ve výpisech (organizace, projekty, stezky, body): linka nad každou, bez mezery mezi řádky */
.tiles.tiles--lined { gap: 0 64px; max-width: 1408px; }
.tiles--lined > .tile { padding: 28px 0 34px; border-top: 1px solid var(--c-line); }
.tiles--lined > p { grid-column: 1 / -1; }
/* dlaždice s odkazy v textu – klikací je jen název (a obrázek) */
.tile--static .tile-title a::after { content: none; }
.tile--static .tile-title a:hover { color: var(--c-accent-text); }
.tile--static:hover .tile-title { color: inherit; }
.tile-img--emblem { display: flex; align-items: center; justify-content: center; }
.tile-img--emblem img { width: 56%; height: auto; object-fit: contain; opacity: .25; filter: grayscale(1); }
.tile-img > a { display: block; width: 100%; height: 100%; }
.tile-html { overflow-wrap: break-word; }
.tile-html > :last-child { margin-bottom: 0; }
.tile-html p { margin: 0 0 .6em; }
.tile-html a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.tile-html a:hover { color: var(--c-text); }
.tile-html img { max-width: 100%; height: auto; }
.tile-html ul, .tile-html ol { margin: 0 0 .6em; padding-left: 1.2em; }

/* organizace: hlavička, záložky podmenu, podstránky */
.page-head.org-head { padding-bottom: clamp(24px, 2.6vw, 44px); }
.org-head + .org-tabs-row { margin-top: 0; }
.org-tabs-row { margin-bottom: clamp(36px, 3.6vw, 64px); }
.org-tabs { width: 100%; gap: 8px 40px; box-shadow: inset 0 -1px 0 var(--c-line); }
.org-tabs a { padding: 0 0 14px; }
.org-tabs a .icon { width: .7em; height: .7em; margin-left: .25em; vertical-align: 0; }
.org-tabs a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.org-page-title { margin: 0 0 28px; font-size: var(--fs-h2); }
.org-tag-row { align-items: center; }
.org-tag-row .eyebrow { margin: 0; }
.org-tag-row .eyebrow strong { font-weight: 500; color: var(--c-accent-text); }
.org-tag-row .pills { margin: 0; }
.org-projects .tile-img { background: var(--c-bg); border: 1px solid var(--c-line); }

/* projekty */
.project-yeartext { max-width: 874px; margin: 8px 0 40px; }
.project-tile .tile-img { background: var(--c-bg); border: 1px solid var(--c-line); }
.project-tile .tile-img > a:hover img { opacity: .85; }
.project-publicity a { display: block; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.project-publicity img { border-radius: 0; }

/* stezky: úvodní texty, body s číslem, mapa */
.trail-intro { max-width: 874px; margin: -24px 0 48px; }
.trail-outro { max-width: 874px; margin: 48px 0 0; }
.point-tile .tile-img { position: relative; }
.point-number { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-primary-contrast); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; line-height: 1; letter-spacing: 0; }
.point-tile:hover .point-number { background: var(--c-accent); color: var(--c-accent-contrast); }
.trail-map { position: relative; z-index: 0; isolation: isolate; height: clamp(320px, 38vw, 540px); overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.trail-map .leaflet-container, .trail-map.leaflet-container { font-family: var(--font-sans); }

/* dokumenty: úvod sekce, značka archivu, strom sekcí */
.doc-intro { max-width: 1148px; margin: -16px 0 40px; }
.doc-badge { display: inline-flex; align-items: center; min-height: 31px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--c-highlight); color: var(--c-highlight-contrast); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; line-height: 1.3; text-transform: uppercase; }

.doc-tree-filter { position: relative; max-width: 360px; margin: 0 0 28px; }
.doc-tree-filter .icon { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; margin-top: -9px; color: var(--c-muted); pointer-events: none; }
.amrich .doc-tree-filter .form-control { padding-left: 44px; }
.doc-tree { max-width: 1148px; }
.doc-tree ul { margin: 0; padding: 0; list-style: none; }
.doc-tree > ul { border-top: 1px solid var(--c-line); }
.doc-tree > ul > li { border-bottom: 1px solid var(--c-line); }
.doc-tree > ul > li > .doc-tree-line { min-height: 76px; padding: 18px 0; font-size: var(--fs-h3); line-height: 1.23; letter-spacing: -.01em; }
.doc-tree ul ul { margin: 0 0 20px 13px; padding-left: 24px; border-left: 1px solid var(--c-line); }
.doc-tree-line { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.doc-tree-line a { min-width: 0; color: var(--c-text); overflow-wrap: anywhere; }
.doc-tree-line a:hover { color: var(--c-accent-text); }
.doc-tree .node-toggle, .doc-tree .node-leaf { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--c-chip-line); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.doc-tree .node-leaf { border-color: transparent; background: none; color: var(--c-icon); cursor: default; }
.doc-tree .node-toggle .icon, .doc-tree .node-leaf .icon { width: 14px; height: 14px; transition: transform .2s; }
.doc-tree .node-toggle:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-primary-contrast); }
.doc-tree .node-toggle.collapsed .icon { transform: rotate(-90deg); }
.doc-tree-count { flex: none; min-width: 28px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-muted); font-family: var(--font-mono); font-size: .75rem; font-weight: 400; line-height: 1.3; letter-spacing: 0; text-align: center; }
.doc-tree li.branch-collapsed > ul { display: none; }
.doc-tree li.filter-hidden { display: none; }
.doc-tree mark { padding: 0 1px; border-radius: 2px; background: var(--c-highlight); color: var(--c-highlight-contrast); }

/* placeholdery dokumentů v textu z editoru */
.doc-files-list { margin: 1.5em 0; }
.doc-files-list .file-chip { color: var(--c-text); text-decoration: none; }
.doc-files-list .file-chip:hover { color: var(--c-text); }
.doc-section-list { margin: 1.8em 0; }
.section-content-main-text .doc-section-list-title { margin: 0 0 .8em; font-family: var(--font-mono); font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: var(--ls-ui); }
.section-content-main-text .doc-section-list-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.section-content-main-text .doc-section-list-items li { margin: 0; border-bottom: 1px solid var(--c-line); }
.section-content-main-text .doc-section-list-items a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--c-text); font-weight: 500; text-decoration: none; }
.section-content-main-text .doc-section-list-items a::after { content: '→'; flex: none; color: var(--c-icon); transition: transform .15s, color .15s; }
.section-content-main-text .doc-section-list-items a:hover { color: var(--c-accent-text); }
.section-content-main-text .doc-section-list-items a:hover::after { color: var(--c-accent-text); transform: translateX(3px); }

@media (max-width: 1199px) {
	.tiles.tiles--lined { gap: 0 40px; }
}

@media (max-width: 991px) {
	.tiles.tiles--lined { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tiles--lined > .tile { padding: 22px 0 26px; }
	/* záložky organizace: na mobilu vodorovně posuvné */
	.org-tabs { flex-wrap: nowrap; gap: 0 28px; width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
	.org-tabs::-webkit-scrollbar { display: none; }
	.org-tabs a { flex: none; white-space: nowrap; }
	.org-tag-row { gap: 14px; }
	.doc-tree > ul > li > .doc-tree-line { min-height: 0; padding: 14px 0; }
	.doc-tree ul ul { margin-left: 12px; padding-left: 16px; }
	.doc-intro, .trail-intro { margin-top: 0; }
	.doc-tree-filter { max-width: none; }
}

@media (max-width: 575px) {
	/* logo organizace / projektu / stezky nad nadpisem */
	.page-head--logo .page-head-logo { order: -1; max-width: 120px; max-height: 64px; }
}


/* ===================================================================== KONTAKTY A FORMULÁŘE – Contact, Form, User, Poll, Survey, Defect */

/* ---------- kontakty: obsah subjektu z editoru (třídy .contact-top, .hours, .soft-box v HTML) */
.subject-content > * + * { margin-top: clamp(48px, 4.5vw, 72px); }
.subject-text { max-width: 1240px; }
.section-content-main-text .contact-top { margin-bottom: 0; }
.section-content-main-text .contact-top h2 { margin: 0 0 18px; font-size: 1.5rem; }
.section-content-main-text a.contact-big { color: var(--c-text); text-decoration: none; }
.section-content-main-text a.contact-big:hover { color: var(--c-accent-text); }
.section-content-main-text p.contact-label { margin: 14px 0 4px; }
.section-content-main-text p.contact-mono { margin: 0; }
.section-content-main-text .contact-mono a { text-decoration: none; }
.section-content-main-text ul.hours { margin: 0; padding: 0; }
.section-content-main-text .hours li { margin: 0; }
.section-content-main-text p.hours-note { margin: 10px 0 0; line-height: 1.4; }
.section-content-main-text .soft-box p.eyebrow { margin-bottom: 14px; }

/* ---------- kontakty: karta osoby */
.person-card .person-name a, .person-card h3 a { color: inherit; }
.person-card .person-name a:hover, .person-card h3 a:hover { color: var(--c-accent-text); }
.person-card .person-photo { float: none; display: block; width: 72px; height: 72px; margin: 0 0 16px; }
.person-affil { margin: -6px 0 14px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; line-height: 1.4; text-transform: uppercase; color: var(--c-muted); }
.person-roles { margin: 0 0 14px; padding: 0; list-style: none; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--c-body); }
.person-roles li + li { margin-top: 6px; }
.person-roles a { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-chip-line); text-underline-offset: 3px; }
.person-roles a:hover { color: var(--c-accent-text); text-decoration-color: currentColor; }
.person-contacts { font-family: var(--font-mono); font-size: 1rem; font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--c-text); }
/* kontakt a za ním QR tlačítko (u posledního řádku kontaktu); e-mail se zalamuje před @ (<wbr>) */
.person-contacts > div { display: flex; align-items: flex-end; }
.person-contacts > div + div { margin-top: 2px; }
.person-contacts a { min-width: 0; overflow-wrap: break-word; }
.person-tel { color: var(--c-text); white-space: nowrap; }
.person-tel:hover { color: var(--c-accent-text); }
.person-contacts button.contact-qr-btn { flex: none; margin-bottom: 1px; }
.person-detail a.contact-mail { overflow-wrap: anywhere; }
.person-role-sep { margin: 0 .3em; color: var(--c-icon); }

/* QR kódy a vizitka (contact.css) v barvách tématu */
.amrich button.contact-qr-btn { width: 1.375em; height: 1.375em; margin-left: .5em; border-color: var(--c-chip-line); color: var(--c-text); opacity: 1; vertical-align: -.3em; }
.amrich button.contact-qr-btn:hover, .amrich button.contact-qr-btn:focus-visible { border-color: var(--c-accent); color: var(--c-accent-text); }
.amrich button.contact-vcard-qr { margin: 0 0 12px 20px; padding: 7px; border-color: var(--c-line); border-radius: var(--radius); }
.amrich button.contact-vcard-qr:hover, .amrich button.contact-vcard-qr:focus-visible { box-shadow: 0 6px 20px rgba(var(--c-text-rgb), .12); }
.amrich .contact-vcard { margin-top: 14px; }
.amrich .contact-vcard-link { gap: .55em; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text); }
.amrich .contact-vcard-link:hover { color: var(--c-accent-text); }
.amrich .contact-qr[popover] { border-radius: var(--radius-lg); font-family: var(--font-sans); letter-spacing: var(--ls-ui); }
.amrich .contact-qr .contact-qr-value { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0; }
.amrich .contact-qr .contact-qr-hint { line-height: 1.4; }

/* mřížka osob v textu stránky (zástupné kódy osoby / osob subjektu) */
.person-grid--embed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); margin: 2em 0; border-top: 2px solid var(--c-text); }
.person-grid--embed > *, .person-grid--embed > *:nth-child(-n+3) { border-top: 0; border-bottom: 1px solid var(--c-line); }
.person-grid--one { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
.section-content-main-text .person-card h3 { margin: 0 0 10px; font-size: 1.375rem; }
.section-content-main-text .person-card p { margin-top: 0; }
.section-content-main-text .person-card a { text-decoration: none; }
.section-content-main-text .person-card a.contact-mail, .section-content-main-text .person-roles a { color: var(--c-accent-text); }
.section-content-main-text .person-card ul { padding-left: 0; }
.section-content-main-text .person-card li::marker { content: none; }
.section-content-main-text .person-card img { border-radius: 50%; }
.section-content-main-text .contact-vcard-qr img { border-radius: 0; }

/* ---------- kontakty: organizační struktura */
.subject-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 5vw, 96px); align-items: start; max-width: 1240px; }
.subject-tree ul { margin: 0; padding: 0; list-style: none; }
.subject-tree-l0 > li + li { margin-top: 48px; }
.subject-tree-l0 > li > a, .subject-tree-l1 > li > a { display: inline-flex; align-items: center; gap: 0; color: var(--c-text); transition: gap .2s, color .15s; }
.subject-tree-l0 > li > a { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.subject-tree-l1 > li > a { font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.subject-tree-l0 > li > a .icon, .subject-tree-l1 > li > a .icon { width: 0; height: .6em; overflow: hidden; transition: width .2s; }
.subject-tree-l0 > li > a:hover, .subject-tree-l1 > li > a:hover { gap: 12px; color: var(--c-accent-text); }
.subject-tree-l0 > li > a:hover .icon, .subject-tree-l1 > li > a:hover .icon { width: .6em; }
.subject-tree-l1 { margin-top: 20px !important; border-top: 2px solid var(--c-text); }
.subject-tree-l1 > li { padding: 16px 0 18px; border-bottom: 1px solid var(--c-line); }
.subject-tree-l2 { margin-top: 8px !important; padding-left: 18px !important; border-left: 1px solid var(--c-line); }
.subject-tree-l2 .subject-tree-l2 { margin-top: 2px !important; }
.subject-tree-l2 > li > a { display: inline-block; padding: 3px 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--c-body); }
.subject-tree-l2 > li > a:hover { color: var(--c-accent-text); }
.person-roles a { white-space: nowrap; }
.subject-intro { padding-top: 6px; }
.subject-intro > *:first-child { margin-top: 0; }

/* ---------- kontakty: seznam osob s hledáním */
.person-search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 1240px; margin: 0 0 clamp(40px, 4vw, 64px); }
.amrich .person-search .person-search-q { flex: 1 1 320px; width: auto; min-width: 0; }
.amrich .person-search .person-search-subject { flex: 0 1 340px; width: auto; min-width: 0; font-family: var(--font-mono); font-size: .875rem; }
.person-search .btn-a { min-height: 46px; }
.person-empty { grid-column: 1 / -1; margin: 0; color: var(--c-muted); }

/* ---------- kontakty: detail osoby */
.person-detail-card { display: flow-root; max-width: 760px; }
.person-detail-title { margin: 0 0 18px; font-family: var(--font-mono); font-size: 1rem; font-weight: 400; letter-spacing: var(--ls-ui); text-transform: uppercase; }
.person-detail-info { display: flow-root; border-top: 2px solid var(--c-text); }
.person-detail-info li { align-items: center; }
.person-detail-info li > span:last-child { font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; }
.person-detail-roles { margin-top: 56px; max-width: 760px; }
.person-detail-roles .person-roles { margin: 0; border-top: 2px solid var(--c-text); font-size: 1.125rem; }
.person-detail-roles .person-roles li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.person-note { margin-top: 56px; max-width: 760px; }
.person-detail-photo img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- formuláře obce (Form/*): rozcestník a formulář výchozího rendereru (form-a.latte) */
.form-index > * + * { margin-top: clamp(40px, 4vw, 64px); }
.form-index-text { max-width: 874px; }
.form-index-text h2 { margin-bottom: 14px; font-size: var(--fs-h3); font-weight: 600; }
.form-list .doc-perex { margin: 0; max-width: 760px; }
.form-list .doc-sub { align-items: center; }
.form-page { max-width: 874px; }
.form-page-desc { margin-bottom: clamp(32px, 3vw, 48px); }
.form-page-desc:empty { display: none; }
.form-a { max-width: 820px; padding-top: 32px; border-top: 2px solid var(--c-text); }
.form-a fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-a legend { margin-bottom: 18px; font-family: var(--font-mono); font-size: 1rem; font-weight: 400; text-transform: uppercase; }
.form-a .form-group > label { display: block; margin-bottom: 6px; }
.form-a .form-group--check { margin-bottom: 14px; }
.form-a .form-group--check label { position: relative; display: block; margin: 0; padding-left: 32px; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--c-text); cursor: pointer; }
.form-a .form-group--check input { position: absolute; top: 1px; left: 0; width: 20px; height: 20px; margin: 0; }
.form-a .form-group--check .form-group, .form-a .form-group--check br { display: none; }
.form-a .has-error .invalid-feedback { display: block; }
.form-a .form-errors { margin: 0 0 24px; padding: 14px 18px 14px 36px; }
.form-a #pes-container { margin: 6px 0 24px; padding: 24px 24px 6px; border-radius: var(--radius-sm); background: var(--c-surface); border-left: 3px solid var(--c-accent); }
.form-a input[type=submit], .form-a button[type=submit] { min-height: 48px; margin-top: 12px; padding: 10px 40px; }
.form-a .form-control-file { display: block; width: 100%; padding: 10px 14px; border: 1px dashed var(--c-chip-line); border-radius: var(--radius-sm); background: var(--c-surface); font-size: .9375rem; }
.form-a .form-control-file::file-selector-button { margin-right: 14px; padding: 6px 14px; border: 1px solid var(--c-primary); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); font-family: var(--font-mono); font-size: .8125rem; text-transform: uppercase; cursor: pointer; }
.amrich .form-req { color: var(--c-danger); }

/* ---------- uživatel: přihlášení, registrace, hesla */
.auth-box { max-width: 520px; }
.auth-box--wide { max-width: 820px; }
.auth-box > .alert { margin-bottom: 28px; }
.auth-form { padding-top: 32px; border-top: 2px solid var(--c-text); }
.auth-form .form-finish { margin-top: 28px; }
.auth-form .btn-a { min-height: 48px; }
.auth-form .form-control-code { max-width: 240px; font-family: var(--font-mono); font-size: 1.375rem; letter-spacing: .3em; text-align: center; }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--c-line); list-style: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
:is(.auth-form, .profile-settings) .custom-control-label { font-size: 1rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
:is(.auth-form, .profile-settings) .custom-control-label a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.auth-form .custom-checkbox .custom-control-label::before { border-radius: var(--radius-sm); }
:is(.auth-form, .profile-settings) .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .25); }

/* ---------- uživatel: profil */
.profile-cover { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: clamp(220px, 20vw, 340px); margin-bottom: clamp(48px, 4vw, 72px); padding: 24px clamp(20px, 2.5vw, 40px); border-radius: var(--radius); background: var(--c-surface) center / cover no-repeat; isolation: isolate; }
.profile-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(var(--c-text-rgb), 0) 40%, rgba(var(--c-text-rgb), .55) 100%); }
.profile-cover-person { display: flex; align-items: flex-end; gap: 20px; min-width: 0; }
.profile-cover .profile-image { flex: none; width: 112px; height: 112px; margin-bottom: -56px; padding: 0; border: 4px solid var(--c-bg); border-radius: 50%; background: var(--c-surface) center / cover no-repeat; cursor: pointer; box-shadow: 0 8px 24px rgba(var(--c-text-rgb), .15); }
.profile-cover .profile-image:hover { border-color: var(--c-accent-soft); }
.profile-name { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; color: var(--c-bg); overflow-wrap: anywhere; }
.profile-cover-menu { position: absolute; top: 20px; right: 20px; }
.profile-cover-menu > a { min-width: 0; min-height: 38px; padding: 8px 14px; border-color: transparent; background: rgba(var(--c-bg-rgb), .92); font-size: .75rem; }
.profile-cover-menu .title-selector-inner { left: auto; min-width: 260px; padding: 14px 16px; }
.profile-cover-menu .title-selector-inner strong { display: block; margin-bottom: 10px; font-size: .9375rem; }
.profile-cover-menu .title-selector-inner input { display: block; width: 100%; margin-bottom: 6px; padding: 8px 12px; border: 1px solid var(--c-primary); border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-primary-contrast); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; cursor: pointer; }
.profile-cover-menu .title-selector-inner input:hover { background: var(--c-accent); border-color: var(--c-accent); }
.profile-cover-menu .title-selector-inner a { padding: 6px 0; font-size: .75rem; }
.profile-cover-menu .title-selector-inner a:hover { background: none; }
.profile-main > * + * { margin-top: clamp(48px, 4vw, 64px); }
.profile-messages { display: grid; gap: 16px; max-width: 1240px; }
.profile-messages .section-content-main-text { font-size: 1rem; color: var(--c-accent-soft-contrast); }
.profile-messages .section-content-main-text > *:last-child { margin-bottom: 0; }
.profile-block { max-width: 1240px; }
.profile-title { margin: 0 0 18px; font-family: var(--font-mono); font-size: 1rem; font-weight: 400; letter-spacing: var(--ls-ui); text-transform: uppercase; }
.profile-settings { border-top: 2px solid var(--c-text); }
.profile-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px 32px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.profile-label { padding-top: 2px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; text-transform: uppercase; color: var(--c-muted); }
.profile-value { font-size: 1.0625rem; overflow-wrap: anywhere; }
.profile-value.mono { font-weight: 400; }
.profile-opts .custom-control + .custom-control { margin-top: 8px; }
.profile-opts:empty { display: none; }
.profile-settings .form-finish { margin-top: 24px; }
.profile-pass { max-width: 560px; padding-top: 24px; border-top: 2px solid var(--c-text); }
.profile-pass-row { display: flex; flex-wrap: wrap; gap: 12px; }
.amrich .profile-pass-row .form-control { flex: 1 1 240px; width: auto; }
.profile-pass-row .btn-a { min-height: 46px; }

/* registrace v iframe (User:signUpFrame, bez layoutu) */
.signup-frame { min-height: 0; }
.signup-frame-inner { max-width: 860px; margin: 0 auto; padding: 32px 20px 40px; }
.signup-frame-title { margin-bottom: 28px; font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; }
.signup-frame-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; font-size: 1rem; line-height: 1.5; }
.signup-frame-intro p:last-child { margin-bottom: 0; }
.signup-frame-intro a { color: var(--c-accent-text); text-decoration: underline; }
.signup-frame-qr { flex: none; width: 100px; height: auto; border-radius: var(--radius-sm); background: #fff; }
.signup-frame-flashes .alert { display: flex; justify-content: space-between; gap: 16px; }
.signup-frame-again { margin-top: 28px; }
.signup-frame .modal-body { font-size: 1rem; }

/* ---------- ankety a minireferenda */
.vote-list .doc-perex { margin: 0; }
.vote-live { color: var(--c-accent-text); }
.vote-list .vote-live { margin-top: 8px; }
.vote-list .doc-item:hover .vote-live { color: var(--c-accent-soft); }
.detail-date .vote-live::before { color: var(--c-muted); }
.vote-detail { max-width: 874px; }
.vote-detail > .eyebrow { margin-bottom: 10px; color: var(--c-muted); }
.vote-detail .detail-lead { margin-bottom: 32px; }
.vote-desc { margin-bottom: 32px; }
.vote-title { margin: 48px 0 18px; font-family: var(--font-mono); font-size: 1rem; font-weight: 400; letter-spacing: var(--ls-ui); text-transform: uppercase; }
.vote-options { border-top: 2px solid var(--c-text); }
.vote-option { position: relative; border-bottom: 1px solid var(--c-line); }
.amrich .vote-option > input { position: absolute; top: 22px; left: 16px; width: 20px; height: 20px; margin: 0; }
.vote-option > label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; margin: 0; padding: 18px 16px 18px 52px; font-size: 1.125rem; font-weight: 500; line-height: 1.35; color: var(--c-text); cursor: pointer; transition: background-color .15s; }
.vote-option > input:not(:disabled) + label:hover { background: var(--c-surface); }
.vote-option > input:checked + label { background: var(--c-accent-soft); color: var(--c-accent-soft-contrast); }
.vote-option > input:disabled + label { cursor: default; }
.vote-option-count { font-family: var(--font-mono); font-size: .875rem; font-weight: 400; color: var(--c-muted); white-space: nowrap; }
.vote-option .progress { grid-column: 1 / -1; height: 6px; }
.vote-option .hidden-openans { display: none; padding: 0 16px 18px 52px; }
.vote-option .form-check-input:checked + label + .openans { display: block; }
.vote-option > input:checked + label + .openans { background: var(--c-accent-soft); }
.vote-form > .alert, .vote-form .form-finish { margin-top: 28px; }
.vote-form button[type=submit] { position: relative; min-height: 48px; padding-left: 40px; padding-right: 40px; }
.vote-form button[type=submit]:disabled { padding-right: 52px; opacity: .6; }
.vote-form button[type=submit]:disabled::before { content: ''; position: absolute; top: 50%; right: 18px; width: 16px; height: 16px; margin-top: -8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: vote-spin .6s linear infinite; }
@keyframes vote-spin { to { transform: rotate(360deg); } }

/* ---------- závady na webu (mapa + výpis); barvy stavů ze stavových tokenů tématu */
.defect-state-created { --defect-c: var(--c-danger); --defect-fg: var(--c-bg); }
.defect-state-opened { --defect-c: var(--c-accent); --defect-fg: var(--c-accent-contrast); }
.defect-state-closed { --defect-c: var(--c-success); --defect-fg: var(--c-success-contrast); }
.defect-badge { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--defect-c); color: var(--defect-fg); font-family: var(--font-mono); font-size: .75rem; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.defect-dot { display: inline-block; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--defect-c); }
.defect-states a { gap: 8px; }
.defect-states .defect-count { color: var(--c-muted); }
.defect-states a.active .defect-count { color: inherit; opacity: .7; }
.defect-states a.active .defect-dot { box-shadow: 0 0 0 2px var(--c-primary-contrast); }
.pills.defect-states { margin: 0; }
.defect-intro { max-width: 874px; margin-bottom: 32px; }
.defect-map { position: relative; z-index: 0; height: clamp(360px, 32vw, 560px); max-width: 1240px; margin-bottom: clamp(40px, 4vw, 64px); overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.defect-map.leaflet-container { font-family: var(--font-sans); }
.defect-pin svg { display: block; overflow: visible; filter: drop-shadow(0 1px 2px rgba(var(--c-text-rgb), .5)); }
.defect-pin path { fill: var(--defect-c); stroke: var(--c-bg); stroke-width: 1.5; }
.defect-pin circle { fill: var(--c-bg); }
.defect-popup img { display: block; width: 100%; height: 140px; margin-bottom: 8px; border-radius: var(--radius-sm); object-fit: cover; }
.defect-popup strong { display: block; margin-bottom: 6px; font-size: .9375rem; line-height: 1.3; }
.defect-popup a { display: inline-block; margin-top: 8px; color: var(--c-accent-text); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; }
.defect-list { max-width: 1240px; border-top: 2px solid var(--c-text); }
.defect-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 28px 0 30px; border-bottom: 1px solid var(--c-line); scroll-margin-top: 80px; }
.defect-item:target { box-shadow: -12px 0 0 var(--c-bg), -15px 0 0 var(--c-accent); }
.defect-img a, .defect-img-empty { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.defect-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.defect-img a:hover img { transform: scale(1.04); }
.defect-img-empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--c-icon); }
.defect-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; text-transform: uppercase; color: var(--c-muted); }
.defect-title { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 500; line-height: 1.23; }
.defect-desc, .defect-note { margin: 0 0 12px; font-size: 1rem; line-height: 1.55; color: var(--c-body); }
.defect-note { padding: 12px 16px; border-left: 3px solid var(--c-success); border-radius: var(--radius-sm); background: rgba(var(--c-success-rgb), .1); color: var(--c-text); }
.defect-note strong { color: var(--c-text); }
.defect-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.defect-photos a { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.defect-photos img { display: block; height: 64px; width: auto; }
.defect-go { margin: 4px 0 0; }
.defect-go .link-arrow { gap: 8px; color: var(--c-text); }
.defect-go .link-arrow:hover { color: var(--c-accent-text); }
.defect-empty { margin: 0; padding: 24px 0; color: var(--c-muted); }
.defect-list + .pager { max-width: 1240px; }

@media (max-width: 1199px) {
	.subject-layout { grid-template-columns: minmax(0, 1fr); }
	.subject-intro { padding-top: 0; }
	.profile-row { grid-template-columns: 160px minmax(0, 1fr); }
	.profile-opts { grid-column: 2; }
}

@media (max-width: 991px) {
	.person-search .btn-a { flex: 1 1 100%; }
	.amrich .person-search .person-search-subject { flex: 1 1 100%; }
	.person-detail-info li { grid-template-columns: 96px minmax(0, 1fr); }
	.person-detail-roles, .person-note { margin-top: 40px; }
	.defect-item { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 0 24px; }
	.defect-item:target { box-shadow: none; background: var(--c-accent-soft); }
}

@media (max-width: 575px) {
	.form-grid { grid-template-columns: minmax(0, 1fr); }
	.form-a input[type=submit], .auth-form .btn-a { width: 100%; }
	.profile-cover { min-height: 200px; padding: 16px; }
	.profile-cover .profile-image { width: 88px; height: 88px; margin-bottom: -44px; }
	.profile-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.profile-opts { grid-column: auto; margin-top: 6px; }
	.vote-option > label { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-right: 12px; }
	.vote-option-count { justify-self: start; }
	.defect-item { grid-template-columns: minmax(0, 1fr); }
	.defect-img { max-width: 100%; }
	.defect-img a, .defect-img-empty { aspect-ratio: 16 / 9; }
	.defect-img:has(.defect-img-empty) { display: none; }
	.signup-frame-intro { flex-direction: column; align-items: flex-start; }
}


/* ===================================================================== RESPONZIVITA */

@media (max-width: 1399px) {
	.topnav .langs { display: none; }
	.content-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 48px; }
	.detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
}

@media (max-width: 1199px) {
	/* lišta: logo, lupa, menu */
	.topnav-menu, .topnav-actions > .pill, .topnav-actions > .topnav-user, .topnav-panel, .topnav-backdrop { display: none !important; }
	.burger { display: inline-flex; }
	.topnav-bar { justify-content: space-between; padding-left: 20px; }
	.topnav-actions { gap: 6px; }

	.feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.weather2-inner { grid-template-columns: minmax(0, 1fr); }
	.cal-col { grid-column: auto; }
	.weather2::after { top: clamp(420px, 50vw, 560px); }
	.band-head--projects { grid-template-columns: auto 1fr; }
	.proj-tabs { justify-content: flex-start; }
	.proj-years { grid-column: 1 / -1; justify-content: flex-start; }
	.contact-top, .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.person-grid > *:nth-child(3) { border-top-width: 1px; border-top-color: var(--c-line); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-grid { grid-template-columns: minmax(0, 1fr); }
	.detail-aside { max-width: 560px; }
	.content-grid { grid-template-columns: minmax(0, 1fr); }
	.sec--split, .sec-head--split { grid-template-columns: minmax(0, 1fr); }
	.sec-head--split { gap: 20px; }
}

@media (max-width: 991px) {
	:root { --gutter: 20px; --sec-gap: 64px; }

	.topnav, .homepage .topnav { width: calc(100% - 2 * 12px); }
	.homepage .topnav { --topnav-gap: 12px; }
	html { scroll-padding-top: 76px; }
	.topnav-bar { min-height: 56px; padding: 6px 6px 6px 16px; }
	.topnav-search { width: 40px; height: 40px; background: transparent; border: 1px solid color-mix(in srgb, var(--c-primary-contrast) 25%, var(--c-primary)); }
	.topnav-brand { font-size: 1.0625rem; }
	.topnav-brand img { height: 24px; }
	.site-content { padding-top: 32px; }

	.hero2 { min-height: min(560px, 100svh); padding-top: 120px; }
	.hero2-facts { gap: 8px 12px; }
	.hero2-bottom { padding-top: 56px; }
	.hero2-social { display: none; }
	.hero2-today { gap: 6px 18px; }

	.band-head { align-items: flex-end; }
	.desk-rows a { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
	.desk-row-num { grid-row: span 2; font-size: 1.75rem; }
	.desk-row-date { font-size: .8125rem; }

	.weather2::after { display: none; }
	.weather2 { padding-bottom: 56px; }
	.cal-card { box-shadow: none; }

	.feed-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }

	.row-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
	.row-title { font-size: 1.125rem; }
	.doc-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0 26px; }
	.doc-date { order: 2; padding-top: 0; }
	.doc-sub { order: 3; }
	.doc-item::before { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
	.thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.thumbs-lead { grid-template-columns: minmax(0, 1fr); }
	.detail-date { margin-top: -16px; }
	.contact-top, .person-grid { grid-template-columns: minmax(0, 1fr); }
	.person-grid > * { border-top-width: 1px !important; border-top-color: var(--c-line) !important; }
	.person-grid > *:first-child { border-top: 2px solid var(--c-text) !important; }
	.subject-content { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
	.tabs { gap: 10px 24px; }
	.page-head-aside { width: 100%; }
	.page-head-aside .title-selector, .page-head-aside .title-selector > a { width: 100%; }
	.cards { gap: 40px 24px; }
	.result-item { grid-template-columns: minmax(0, 1fr); }
	.result-go { display: none; }
	.footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tiles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.tile { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
	.tile-img { width: 84px; }
}

@media (max-width: 575px) {
	.topnav-brand { max-width: 180px; }
	.hero2 { padding-top: 104px; }
	.hero2-facts { display: none; }
	.hero2-cta { min-width: 0; gap: 28px; }
	.hero2-today { font-size: 1.125rem; }
	.hub-links { font-size: clamp(1.625rem, 8.6vw, 2.25rem); }
	.hub-logos { gap: 16px 28px; }
	.hub-logos img { max-width: 110px; max-height: 32px; }
	.band-head--projects { display: flex; }
	.band-head--projects h2 { flex: 1 1 100%; }
	.proj-tabs { justify-content: flex-start; }
	.band-head .pill { gap: 10px; padding-left: 14px; font-size: .8125rem; }
	.band-head .pill .pill-circle { width: 34px; height: 34px; }
	.news-card { width: 78vw; }
	.proj-card { width: 82vw; }
	.slider-nav { padding-left: 16px; }
	.thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pager { flex-direction: column; align-items: flex-start; }
	.pager-pages { margin-left: 0; }
}

@media print {
	.topnav, .topnav-backdrop, .mmenu, .site-footer, .search-overlay, .flash-messages, .slider-nav { display: none !important; }
	.homepage .site-content, .site-content { padding: 0; }
}
