/* Obec Ořechov – styly webu (převedeno z návrhu, bez Tailwindu) */

:root {
  --forest: 146 100% 29%;
  --forest-deep: 152 43% 16%;
  --forest-pale: 144 33% 93%;
  --leaf: 115 30% 43%;
  --cream: 48 42% 96%;
  --paper: 48 32% 98%;
  --tomato: 359 86% 45%;
  --tomato-deep: 359 86% 36%;
  --gold: 43 70% 59%;
  --ink: 151 28% 16%;
  --ink-soft: 153 11% 36%;
  --line: 150 20% 18% / 0.13;
  --white: 0 0% 100%;
  --font-display: Merriweather, Georgia, serif;
  --font-body: 'IBM Plex Sans', Arial, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: hsl(var(--paper)); color: hsl(var(--ink)); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid hsl(var(--gold)); outline-offset: 2px; }

.page-width { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -100px; padding: 12px 18px; background: hsl(var(--tomato)); color: hsl(var(--white)); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Hlavička ---------- */
.utility-bar { background: hsl(var(--forest-deep)); color: hsl(var(--white) / .85); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.utility-content { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-content p { margin: 0; }
.utility-links { display: flex; flex-wrap: wrap; gap: 22px; }
.utility-links a { text-decoration: none; }
.utility-links a:hover { color: hsl(var(--gold)); }
.site-header { position: relative; z-index: 10; background: hsl(var(--paper)); }
.brand-row { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 12px; color: hsl(var(--forest-deep)); text-decoration: none; letter-spacing: -.05em; }
.brand img { width: 54px; height: 61px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 15px; line-height: 1.35; }
.brand strong { font-size: 28px; line-height: .9; }
.desktop-nav { display: flex; align-items: center; gap: 27px; height: 100%; }
.desktop-nav > a { position: relative; color: hsl(var(--ink)); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.desktop-nav > a::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 0; height: 2px; background: hsl(var(--tomato)); transition: width .2s ease; }
.desktop-nav > a:hover::after, .desktop-nav > a[aria-current]::after { width: 100%; }
.site-search { display: flex; align-items: center; height: 34px; margin-left: 4px; border-bottom: 1px solid hsl(var(--ink) / .42); }
.site-search input { width: 84px; border: 0; outline: 0; background: transparent; color: hsl(var(--ink)); font: 500 14px var(--font-body); transition: width .2s ease; }
.site-search input::placeholder { color: hsl(var(--ink-soft)); }
.site-search input:focus { width: 140px; }
.site-search button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; background: transparent; color: hsl(var(--tomato)); font-size: 22px; line-height: 1; cursor: pointer; }
.site-search button:hover { color: hsl(var(--forest-deep)); }
.menu-button { display: none; border: 0; padding: 8px; background: transparent; cursor: pointer; }
.menu-button i { display: block; width: 25px; height: 2px; margin: 5px; background: hsl(var(--forest)); transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Úvodní obrázek ---------- */
.hero { isolation: isolate; position: relative; min-height: 690px; overflow: hidden; background: hsl(var(--forest)); color: hsl(var(--white)); display: flex; align-items: center; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center; filter: saturate(.82); }
.hero-shade { z-index: -1; background: linear-gradient(90deg, hsl(var(--forest-deep) / .82) 0%, hsl(var(--forest) / .55) 46%, hsl(var(--forest) / .04) 100%); }
.hero-content { padding: 48px 0; }
.eyebrow { margin: 0 0 14px; color: hsl(var(--tomato)); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: hsl(var(--gold)); }
h1, h2, h3, h4, p { margin-top: 0; }
.hero h1 { max-width: 690px; margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(56px, 7vw, 104px); font-weight: 700; letter-spacing: -.065em; line-height: .95; }
.hero-copy { max-width: 500px; margin-bottom: 31px; color: hsl(var(--white) / .9); font-size: 17px; line-height: 1.7; }
.hero-actions, .center-action { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Tlačítka ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 49px; padding: 12px 19px; border: 1px solid transparent; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: hsl(var(--tomato)); color: hsl(var(--white)); }
.button-primary:hover { background: hsl(var(--tomato-deep)); }
.button-ghost { border-color: hsl(var(--white) / .55); color: hsl(var(--white)); }
.button-ghost:hover { background: hsl(var(--white)); color: hsl(var(--forest-deep)); }
.button-outline { border-color: hsl(var(--forest)); background: transparent; color: hsl(var(--forest-deep)); }
.button-outline:hover { background: hsl(var(--forest)); color: hsl(var(--white)); }
.arrow { font-size: 18px; line-height: .4; transition: transform .2s ease; }
a:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Rychlé odkazy ---------- */
.quick-wrap { position: relative; z-index: 2; margin-top: -45px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 15px 35px hsl(var(--forest-deep) / .14); }
.quick-grid a { display: flex; align-items: center; gap: 14px; min-height: 106px; padding: 19px; border-right: 1px solid hsl(var(--line)); background: hsl(var(--white)); color: hsl(var(--forest-deep)); text-decoration: none; }
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: hsl(var(--forest-pale)); }
.quick-grid .arrow { margin-left: auto; color: hsl(var(--tomato)); }
.quick-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: hsl(var(--forest-pale)); color: hsl(var(--forest)); font-size: 18px; }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid strong { font-size: 16px; letter-spacing: -.02em; }
.quick-grid small { margin-top: 4px; color: hsl(var(--ink-soft)); font-size: 13px; font-weight: 500; line-height: 1.35; }

/* ---------- Rozcestník ---------- */
.service-section { padding: 112px 0 100px; }
.section-heading { max-width: 570px; margin-bottom: 40px; }
.section-heading h2, .split-heading h2, .notice-intro h2 { margin-bottom: 12px; color: hsl(var(--forest-deep)); font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); letter-spacing: -.05em; line-height: 1.05; }
.section-heading > p:last-child { margin-bottom: 0; color: hsl(var(--ink-soft)); font-size: 16px; line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 350px; padding: 30px; overflow: hidden; color: hsl(var(--white)); }
.service-card::after { content: ''; position: absolute; right: -40px; bottom: -65px; width: 190px; height: 190px; border: 1px solid hsl(var(--white) / .2); border-radius: 50%; }
.service-card.green { background: hsl(var(--forest)); }
.service-card.red { background: hsl(var(--tomato)); }
.service-card.olive { background: hsl(var(--leaf)); }
.card-number { font-family: var(--font-mono); font-size: 13px; opacity: .8; }
.service-symbol { margin: 30px 0 20px; color: hsl(var(--gold)); font-size: 35px; line-height: 1; }
.service-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; text-decoration-color: hsl(var(--gold)); }
.service-card > p { max-width: 290px; margin-bottom: 20px; color: hsl(var(--white) / .9); font-size: 15px; line-height: 1.55; }
.card-links { display: grid; gap: 8px; position: relative; z-index: 1; }
.card-links a { width: max-content; max-width: 100%; color: hsl(var(--white)); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration-color: hsl(var(--gold)); text-underline-offset: 5px; }
.card-links a:hover { color: hsl(var(--gold)); }

/* ---------- Aktuality ---------- */
.news-section { padding: 87px 0 94px; background: hsl(var(--forest-pale)); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 33px; }
.split-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: hsl(var(--tomato-deep)); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: hsl(var(--line)); }
.news-card { min-height: 270px; padding: 27px; background: hsl(var(--paper)); display: flex; flex-direction: column; }
.news-card:nth-child(even) { background: hsl(var(--white)); }
.news-date { color: hsl(var(--tomato-deep)); font-family: var(--font-mono); font-size: 13px; }
.news-card h3 { color: hsl(var(--forest-deep)); font-family: var(--font-display); font-size: 20px; letter-spacing: -.03em; line-height: 1.2; }
.news-card > p:not(.news-date) { color: hsl(var(--ink-soft)); font-size: 14px; line-height: 1.55; }
.news-card > a { display: flex; align-items: center; gap: 8px; margin-top: auto; color: hsl(var(--forest-deep)); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.news-card > a:hover { color: hsl(var(--tomato-deep)); }

/* ---------- Online služby ---------- */
.platform-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 37px 0; }
.platform-links a { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 14px 16px; border: 1px solid hsl(var(--line)); color: hsl(var(--forest-deep)); text-decoration: none; }
.platform-links a:hover { background: hsl(var(--forest-pale)); }
.platform-links b { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; background: hsl(var(--tomato)); color: hsl(var(--white)); font-size: 18px; }
.platform-links span { font-size: 12px; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
.platform-links strong { font-size: 14px; }
.platform-links .arrow { margin-left: auto; color: hsl(var(--tomato)); }

/* ---------- Kalendář akcí ---------- */
.events-section { padding: 76px 0 96px; }
.centered { margin-right: auto; margin-left: auto; text-align: center; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid hsl(var(--line)); border-left: 1px solid hsl(var(--line)); }
.event { display: flex; align-items: center; gap: 17px; min-height: 112px; padding: 16px; border-right: 1px solid hsl(var(--line)); border-bottom: 1px solid hsl(var(--line)); color: hsl(var(--forest-deep)); text-decoration: none; }
a.event:hover { background: hsl(var(--forest-pale)); }
.event time { display: flex; width: 54px; flex: 0 0 54px; flex-direction: column; padding-right: 9px; border-right: 1px solid hsl(var(--line)); color: hsl(var(--tomato-deep)); font-family: var(--font-mono); }
.event time strong { font-size: 24px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.event time span { font-size: 12px; text-transform: uppercase; }
.event-text { display: flex; flex-direction: column; gap: 4px; }
.event-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.event-text small { color: hsl(var(--ink-soft)); font-size: 13px; line-height: 1.4; }
.event .arrow { margin-left: auto; color: hsl(var(--tomato)); }
.center-action { justify-content: center; margin-top: 34px; }
.empty-note { padding: 24px; border: 1px dashed hsl(var(--line)); color: hsl(var(--ink-soft)); text-align: center; }

/* ---------- Úřední deska ---------- */
.notice-section { position: relative; overflow: hidden; padding: 78px 0; background: hsl(var(--forest-deep)); color: hsl(var(--white)); }
.notice-section::after { content: 'OŘECHOV'; position: absolute; right: -8px; bottom: -60px; color: hsl(var(--white) / .04); font-family: var(--font-display); font-size: 180px; font-weight: 700; letter-spacing: -.09em; pointer-events: none; }
.notice-content { position: relative; z-index: 1; display: grid; grid-template-columns: .84fr 1.5fr; gap: 60px; }
.notice-intro h2 { color: hsl(var(--white)); }
.notice-intro > p:not(.eyebrow) { max-width: 320px; color: hsl(var(--white) / .8); font-size: 15px; line-height: 1.65; }
.notice-intro .button { margin-top: 12px; }
.notice-list { border-top: 1px solid hsl(var(--white) / .2); }
.notice-item { display: grid; grid-template-columns: 110px 1fr 170px 20px; gap: 15px; align-items: center; min-height: 102px; padding: 12px 0; border-bottom: 1px solid hsl(var(--white) / .2); color: hsl(var(--white)); text-decoration: none; }
.notice-item:hover h3 { color: hsl(var(--gold)); }
.notice-item p { margin: 0; color: hsl(var(--gold)); font-family: var(--font-mono); font-size: 13px; }
.notice-item h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.notice-item span { color: hsl(var(--white) / .72); font-size: 13px; line-height: 1.4; }
.notice-item .arrow { color: hsl(var(--gold)); }
.notice-empty { padding: 24px 0; color: hsl(var(--white) / .8); }

/* ---------- Patička ---------- */
.site-footer { padding-top: 56px; background: hsl(var(--ink)); color: hsl(var(--white) / .8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 35px; padding-bottom: 45px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: hsl(var(--white)); font-family: var(--font-display); font-size: 20px; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.footer-brand img { width: 44px; height: 50px; object-fit: contain; }
.footer-grid h2 { margin-bottom: 13px; color: hsl(var(--gold)); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid p, .footer-grid li { font-size: 14px; line-height: 1.7; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a:hover, .footer-bottom a:hover { color: hsl(var(--gold)); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; border-top: 1px solid hsl(var(--white) / .14); font-size: 13px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; cursor: pointer; }
.link-button:hover { color: hsl(var(--gold)); }

/* ---------- Podstránky ---------- */
.page-head { padding: 54px 0 46px; background: hsl(var(--forest-deep)); color: hsl(var(--white)); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border: 1px solid hsl(var(--white) / .12); border-radius: 50%; }
.page-head h1 { position: relative; z-index: 1; max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.breadcrumbs { position: relative; z-index: 1; margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.breadcrumbs li { color: hsl(var(--white) / .75); }
.breadcrumbs li + li::before { content: '›'; margin: 0 9px; color: hsl(var(--gold)); }
.breadcrumbs a { color: hsl(var(--white) / .85); text-decoration: none; }
.breadcrumbs a:hover { color: hsl(var(--gold)); text-decoration: underline; }
.breadcrumbs [aria-current] { color: hsl(var(--white)); }

.page-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding: 56px 0 90px; }
.page-body.no-aside { grid-template-columns: minmax(0, 1fr); }
.side-nav { align-self: start; position: sticky; top: 20px; border-top: 3px solid hsl(var(--tomato)); background: hsl(var(--white)); box-shadow: 0 10px 30px hsl(var(--forest-deep) / .07); }
.side-nav h2 { margin: 0; padding: 18px 20px 12px; font-family: var(--font-display); font-size: 20px; letter-spacing: -.03em; }
.side-nav h2 a { color: hsl(var(--forest-deep)); text-decoration: none; }
.side-nav ul { margin: 0; padding: 0 0 10px; list-style: none; }
.side-nav li a { display: block; padding: 9px 20px; border-left: 3px solid transparent; color: hsl(var(--ink)); font-size: 15px; line-height: 1.35; text-decoration: none; }
.side-nav li a:hover { background: hsl(var(--forest-pale)); }
.side-nav li a[aria-current] { border-left-color: hsl(var(--forest)); background: hsl(var(--forest-pale)); color: hsl(var(--forest-deep)); font-weight: 600; }
.side-nav details summary { display: none; }

.content { min-width: 0; }
.content > *:last-child { margin-bottom: 0; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4, .content-section h2 { margin: 1.6em 0 .6em; color: hsl(var(--forest-deep)); font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.2; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose h4 { font-size: 20px; }
.prose > *:first-child { margin-top: 0; }
.prose a { color: hsl(var(--forest-deep)); text-decoration-color: hsl(var(--forest) / .5); text-underline-offset: 3px; }
.prose a:hover { color: hsl(var(--tomato-deep)); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: hsl(var(--tomato)); }
.prose img { display: block; margin: 0 0 1em; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid hsl(var(--line)); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid hsl(var(--gold)); color: hsl(var(--ink-soft)); }
.prose table, .data-table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid hsl(var(--line)); text-align: left; vertical-align: top; }
.prose th, .data-table th { background: hsl(var(--forest-pale)); color: hsl(var(--forest-deep)); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.mb2 { margin-bottom: 2rem; }
.small { font-size: 14px; }

.text-with-photos { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.photo-column { display: grid; gap: 16px; }

/* podkategorie */
.subpage-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 36px; }
.subpage-buttons a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border: 1px solid hsl(var(--line)); background: hsl(var(--white)); color: hsl(var(--forest-deep)); font-weight: 600; line-height: 1.35; text-decoration: none; }
.subpage-buttons a:hover { border-color: hsl(var(--forest)); background: hsl(var(--forest-pale)); }
.subpage-buttons .arrow { margin-left: auto; color: hsl(var(--tomato)); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.sub-card { display: flex; flex-direction: column; border: 1px solid hsl(var(--line)); background: hsl(var(--white)); }
.sub-card-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: hsl(var(--forest-pale)); }
.sub-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sub-card:hover .sub-card-photo img { transform: scale(1.04); }
.sub-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.sub-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.sub-card h2 a { color: hsl(var(--forest-deep)); text-decoration: none; }
.sub-card h2 a:hover { color: hsl(var(--tomato-deep)); text-decoration: underline; }
.sub-card-text { color: hsl(var(--ink-soft)); font-size: 15px; line-height: 1.55; }
.sub-card-text p:last-child { margin-bottom: 0; }

/* galerie */
.content-section { margin-top: 48px; }
.content-section > h2 { margin-top: 0; font-size: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gallery.single-column { grid-template-columns: 1fr; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; background: hsl(var(--forest-pale)); }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.gallery a:hover img { transform: scale(1.04); opacity: .9; }
.gallery figcaption { padding: 6px 0 0; color: hsl(var(--ink-soft)); font-size: 13px; line-height: 1.4; }

/* soubory */
.file-tip { padding: 12px 16px; border-left: 3px solid hsl(var(--gold)); background: hsl(var(--cream)); font-size: 14px; }
.file-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid hsl(var(--line)); }
.file-list li { border-bottom: 1px solid hsl(var(--line)); }
.file-list a { display: flex; align-items: center; gap: 16px; padding: 14px 6px; color: hsl(var(--forest-deep)); text-decoration: none; }
.file-list a:hover { background: hsl(var(--forest-pale)); }
.file-type { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; background: hsl(var(--tomato)); color: hsl(var(--white)); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.file-name { display: flex; flex-direction: column; gap: 2px; }
.file-name strong { font-weight: 600; line-height: 1.35; }
.file-name small { color: hsl(var(--ink-soft)); font-size: 13px; }
.file-list .arrow { margin-left: auto; color: hsl(var(--tomato)); }

/* vyhledávání a formuláře */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.search-form input[type="search"], .search-form input[type="text"], .form-field input, .form-field textarea, .form-field select { flex: 1 1 260px; min-height: 49px; padding: 10px 14px; border: 1px solid hsl(var(--ink) / .3); background: hsl(var(--white)); color: hsl(var(--ink)); font: 16px var(--font-body); }
.search-form input:focus, .form-field input:focus, .form-field textarea:focus { border-color: hsl(var(--forest)); outline: 2px solid hsl(var(--forest) / .25); }
.search-summary { color: hsl(var(--ink-soft)); }
.search-results { margin: 0; padding: 0; list-style: none; border-top: 1px solid hsl(var(--line)); }
.search-results li { padding: 18px 0; border-bottom: 1px solid hsl(var(--line)); }
.search-results h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.search-results h2 a { color: hsl(var(--forest-deep)); text-decoration: none; }
.search-results h2 a:hover { color: hsl(var(--tomato-deep)); text-decoration: underline; }
.search-path { margin-bottom: 6px; color: hsl(var(--forest)); font-family: var(--font-mono); font-size: 12px; }
.search-results p { margin: 0; color: hsl(var(--ink-soft)); font-size: 15px; }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-field label { font-weight: 600; }
.form-field textarea { min-height: 160px; }

/* hlášení */
.alert { margin-bottom: 28px; padding: 16px 20px; border-left: 4px solid hsl(var(--forest)); background: hsl(var(--forest-pale)); }
.alert.error { border-left-color: hsl(var(--tomato)); background: hsl(359 86% 45% / .08); }
.alert p:last-child { margin-bottom: 0; }

/* mapa stránek */
.sitemap ul { margin: 0; padding-left: 20px; list-style: none; }
.sitemap > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; padding: 0; }
.sitemap > ul > li > a { display: block; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid hsl(var(--tomato)); color: hsl(var(--forest-deep)); font-family: var(--font-display); font-size: 19px; font-weight: 700; text-decoration: none; }
.sitemap li li { margin: 4px 0; font-size: 15px; }
.sitemap li li a { color: hsl(var(--ink)); text-decoration: none; }
.sitemap li li a:hover { color: hsl(var(--tomato-deep)); text-decoration: underline; }

/* 404 */
.not-found { max-width: 640px; padding: 80px 0 110px; }
.not-found .big-code { margin: 0 0 8px; color: hsl(var(--tomato)); font-family: var(--font-mono); font-size: 80px; line-height: 1; }
.not-found h1 { margin-bottom: 14px; color: hsl(var(--forest-deep)); font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.1; }
.not-found p { color: hsl(var(--ink-soft)); }

/* tabulka typu „stack“ z obsahu (Texy .[stack]) */
@media (max-width: 640px) {
  .prose table.stack thead { display: none; }
  .prose table.stack tr, .prose table.stack td, .prose table.stack th { display: block; }
  .prose table.stack tr { padding: 8px 0; border-bottom: 1px solid hsl(var(--line)); }
  .prose table.stack td { padding: 2px 0; border: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox { width: min(96vw, 1400px); max-width: none; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: hsl(var(--ink) / .92); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 60px); object-fit: contain; background: hsl(var(--ink)); }
.lightbox figcaption { min-height: 24px; padding-top: 10px; color: hsl(var(--white)); font-size: 15px; text-align: center; }
.lightbox button { position: fixed; display: grid; width: 52px; height: 52px; place-items: center; border: 0; border-radius: 50%; background: hsl(var(--white) / .14); color: hsl(var(--white)); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: hsl(var(--tomato)); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox .lb-next { top: 50%; right: 16px; transform: translateY(-50%); }
.lightbox .lb-counter { position: fixed; top: 28px; left: 24px; color: hsl(var(--white) / .8); font-family: var(--font-mono); font-size: 13px; }
.lightbox[data-single] .lb-prev, .lightbox[data-single] .lb-next, .lightbox[data-single] .lb-counter { display: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1020px) {
  .desktop-nav { gap: 18px; }
  .page-body { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .text-with-photos { grid-template-columns: 1fr; }
  .photo-column { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav { display: grid; border-top: 1px solid hsl(var(--line)); background: hsl(var(--paper)); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 16px 24px; border-bottom: 1px solid hsl(var(--line)); color: hsl(var(--forest-deep)); font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
  .mobile-nav .site-search { height: auto; margin: 12px 24px 16px; }
  .mobile-nav .site-search input, .mobile-nav .site-search input:focus { width: 100%; min-height: 40px; font-size: 16px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a:nth-child(2) { border-right: 0; }
  .quick-grid a:nth-child(-n+2) { border-bottom: 1px solid hsl(var(--line)); }
  .service-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: span 2; }
  .news-card { min-height: 245px; }
  .notice-content { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-links { grid-template-columns: repeat(2, 1fr); }
  .notice-item { grid-template-columns: 100px 1fr 20px; }
  .notice-item span { display: none; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .page-body { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .side-nav { position: static; order: -1; }
  .side-nav details summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; color: hsl(var(--forest-deep)); font-weight: 700; cursor: pointer; }
  .side-nav details summary::after { content: '+'; color: hsl(var(--tomato)); font-size: 22px; line-height: 1; }
  .side-nav details[open] summary::after { content: '–'; }
  .side-nav details summary::-webkit-details-marker { display: none; }
  .side-nav details h2 { display: none; }
}
@media (max-width: 560px) {
  .page-width { width: min(100% - 32px, 1180px); }
  .utility-content { justify-content: center; }
  .utility-content p { display: none; }
  .utility-links { justify-content: center; gap: 6px 16px; }
  .brand-row { height: 79px; }
  .brand img { width: 43px; height: 50px; }
  .brand strong { font-size: 24px; }
  .hero { min-height: 560px; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, hsl(var(--forest-deep) / .82), hsl(var(--forest) / .45)); }
  .hero-content { padding-top: 90px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .quick-wrap { margin-top: 0; }
  .quick-grid { width: 100%; }
  .quick-grid a { min-height: 95px; padding: 14px 16px; }
  .quick-grid strong { font-size: 14px; }
  .quick-grid small { font-size: 12px; }
  .quick-icon { display: none; }
  .service-section, .events-section { padding: 64px 0; }
  .service-grid, .news-grid, .events-grid, .card-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card:last-child { grid-column: auto; }
  .split-heading { align-items: start; flex-direction: column; }
  .news-section { padding: 64px 0; }
  .news-card { min-height: 0; }
  .platform-links { grid-template-columns: 1fr 1fr; gap: 8px; padding: 22px 0; }
  .platform-links a { min-height: 70px; padding: 11px; }
  .platform-links b { display: none; }
  .platform-links span { font-size: 11px; }
  .event { min-height: 90px; }
  .notice-section { padding: 64px 0; }
  .notice-item { grid-template-columns: 1fr 18px; gap: 4px 9px; }
  .notice-item p { grid-column: 1 / -1; }
  .notice-item h3 { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > :first-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; }
  .page-head { padding: 36px 0 32px; }
  .prose { font-size: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility-bar, .desktop-nav, .menu-button, .mobile-nav, .side-nav, .site-footer, .skip-link { display: none !important; }
  .page-head { padding: 0; background: none; color: #000; }
  .breadcrumbs li, .breadcrumbs a { color: #000; }
  .page-body { display: block; padding: 20px 0; }
}

/* ---------- Cookie lišta – barvy webu ---------- */
#cc--main, #cc_div, .cc_div { --cc-text: hsl(151 28% 16%); --cc-btn-primary-bg: hsl(146 100% 24%); --cc-btn-primary-hover-bg: hsl(152 43% 16%); --cc-btn-secondary-bg: hsl(144 33% 93%); --cc-btn-secondary-hover-bg: hsl(144 30% 86%); --cc-cookie-category-block-bg: hsl(48 42% 96%); font-family: var(--font-body); }
