/* agir-as.cz – veřejný web. Sjednoceno s agir-steel.cz: zelená #5bc046, tmavá #1d1d1b, Roboto, šedé #f8f8f8 / #d6d6d6 / #646464. */

/* --- Písmo: Roboto (variabilní), vlastní soubory, bez Google Fonts --- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #5bc046;        /* značková zelená: pozadí, linky, tlačítka s tmavým textem */
  --green-text: #2f7d20;   /* tmavší zelená pro text a pozadí s bílým textem (kontrast 5:1) */
  --dark: #1d1d1b;
  --bg: #f8f8f8;
  --line: #d6d6d6;
  --muted: #646464;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 5px 20px rgba(29, 29, 27, 0.10);
  --container: 1200px;
  --pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; box-shadow: 0 0 0 5px var(--green); border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--green); color: var(--dark); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* --- Oznámení (pruh nahoře; zelená s tmavým textem, kontrast 7:1) --- */
.notice-bar { background: var(--green); color: var(--dark); font-size: 0.95rem; line-height: 1.4; }
.notice-inner { display: flex; align-items: flex-start; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.notice-text { margin: 0; flex: 1 1 auto; min-width: 0; font-weight: 500; }
.notice-link { color: var(--dark); font-weight: 700; }
.notice-link:hover { color: var(--dark); text-decoration-thickness: 3px; }
.notice-close { display: none; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -10px -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dark); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.notice-js .notice-close { display: inline-flex; }
.notice-close:hover { background: var(--dark); color: #fff; }
.notice-closed .notice-bar { display: none; }

/* --- Horní lišta --- */
.topbar { background: var(--dark); color: #fff; font-size: 0.875rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--green); text-decoration: underline; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.topbar .sister { font-weight: 500; }
.topbar .sister::after { content: " \2192"; color: var(--green); }

/* --- Hlavička a menu --- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo img { display: block; width: 150px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; width: 44px; height: 44px; right: var(--pad); top: 16px; margin: 0; cursor: pointer; z-index: 3; }
.nav-burger { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; flex: 0 0 auto; border-radius: var(--radius); }
.nav-burger .bars, .nav-burger .bars::before, .nav-burger .bars::after { position: absolute; left: 9px; right: 9px; height: 3px; background: var(--dark); border-radius: 2px; content: ""; transition: transform 0.2s, opacity 0.2s; }
.nav-burger .bars { top: 20px; }
.nav-burger .bars::before { left: 0; right: 0; top: -9px; }
.nav-burger .bars::after { left: 0; right: 0; top: 9px; }
.nav-toggle:checked + .nav-burger .bars { background: transparent; }
.nav-toggle:checked + .nav-burger .bars::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked + .nav-burger .bars::after { transform: translateY(-9px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--dark); outline-offset: 2px; box-shadow: 0 0 0 5px var(--green); }

.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--green); box-shadow: var(--shadow); }
.nav-toggle:checked ~ .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px var(--pad); color: var(--dark); text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 0.95rem; border-top: 1px solid var(--line); }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green-text); }
.main-nav .is-current > a { color: var(--green-text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.main-nav .submenu a { padding-left: calc(var(--pad) + 22px); text-transform: none; font-weight: 400; font-size: 0.95rem; background: var(--bg); }
.main-nav .submenu .is-current > a { font-weight: 500; }

@media (min-width: 992px) {
  .header-inner { min-height: 92px; }
  .logo img { width: 175px; }
  .nav-toggle, .nav-burger { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .main-nav > ul { display: flex; align-items: center; gap: 4px; }
  .main-nav > ul > li { position: relative; }
  .main-nav a { border: 0; padding: 10px 14px; font-size: 0.95rem; }
  .main-nav > ul > li > a { border-radius: var(--radius); }
  .main-nav .is-current > a { text-underline-offset: 8px; }
  .main-nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .main-nav .submenu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--green-text); box-shadow: var(--shadow); padding: 6px 0; border-radius: 0 0 var(--radius) var(--radius); }
  .main-nav .has-sub:hover > .submenu, .main-nav .has-sub:focus-within > .submenu { display: block; }
  .main-nav .submenu a { padding: 9px 18px; color: #fff; background: none; text-transform: none; font-weight: 400; }
  .main-nav .submenu a:hover, .main-nav .submenu a:focus-visible { background: var(--dark); color: #fff; }
  .main-nav .submenu .is-current > a { font-weight: 700; text-decoration: none; }
}

/* --- Záhlaví stránky --- */
.page-head { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -40px; top: -20px; bottom: -20px; width: 38%; max-width: 420px; background: var(--green); transform: skewX(-18deg); opacity: 0.95; }
.page-head::after { content: ""; position: absolute; right: 17%; top: 0; bottom: 0; width: 22px; background: var(--dark); transform: skewX(-18deg); opacity: 0.55; }
.page-head .container { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 32px; }
.page-head h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.15; font-weight: 700; text-transform: uppercase; max-width: 22ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 2px 8px; font-size: 0.85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--green); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--green); }
.breadcrumb [aria-current] { color: var(--line); }

/* --- Obsahová karta --- */
.content-wrap { padding-top: 28px; padding-bottom: 56px; }
.content-wrap.narrow { max-width: calc(960px + 2 * var(--pad)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(29, 29, 27, 0.08); padding: 24px var(--pad); overflow: hidden; }
.card + .card, .card + .section, .section + .card, .tiles + .card { margin-top: 28px; }
.hero { margin: -24px calc(var(--pad) * -1) 24px; line-height: 0; background: var(--line); }
.hero img { width: 100%; height: clamp(120px, 26vw, 260px); object-fit: cover; display: block; }
@media (min-width: 768px) {
  .card { padding: 40px 48px; }
  .hero { margin: -40px -48px 32px; }
}

/* --- Obsah z editoru --- */
.prose { max-width: 78ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { color: var(--green-text); font-size: 1.55rem; line-height: 1.25; margin: 1.9em 0 0.6em; }
.prose h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.6em 0 0.5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
/* Odkaz v nadpisu (např. „(detailní info zde)“) je menší než nadpis, aby vynikl samotný nadpis. */
.prose :is(h2, h3, h4) a { font-size: 0.62em; font-weight: 400; white-space: nowrap; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose ul { list-style: none; padding-left: 1.3em; }
.prose ul > li { position: relative; margin: 0.25em 0; }
.prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: 0.7em; width: 0.5em; height: 0.2em; background: var(--green); }
.prose ol > li { margin: 0.3em 0; padding-left: 0.2em; }
.prose ol > li::marker { color: var(--green-text); font-weight: 700; }
.prose .lead { font-size: 1.2rem; line-height: 1.55; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.prose img { border-radius: 2px; }
.prose blockquote { margin: 1.2em 0; padding: 0.4em 1.2em; border-left: 4px solid var(--green); color: var(--muted); }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose .ta-left { text-align: left; }
.prose .callout { background: var(--bg); border-left: 5px solid var(--green); padding: 16px 20px; margin: 1.6em 0; border-radius: 0 var(--radius) var(--radius) 0; }
.prose .callout p { margin: 0 0 0.6em; }
.prose .callout p:last-child { margin: 0; }
.prose .btn, .btn { display: inline-block; background: var(--green); color: var(--dark); font-weight: 700; text-decoration: none; text-transform: uppercase; padding: 11px 22px; border-radius: 3px; border: 2px solid var(--green); transition: background 0.2s, color 0.2s; cursor: pointer; font-size: 0.95rem; font-family: inherit; line-height: 1.3; }
.prose .btn:hover, .btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-outline, .prose .btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.prose .img-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin: 1.6em 0; }
.prose .img-row img { flex: 0 1 auto; max-height: 230px; width: auto; max-width: 100%; }
.prose .split { display: grid; gap: 20px; margin: 1.4em 0; align-items: start; }
.prose .split__media img { display: block; margin: 0 auto; }
.prose .split__media img + img { margin-top: 16px; }
.prose .split__text > :first-child { margin-top: 0; }
@media (min-width: 768px) {
  .prose .split { grid-template-columns: 1fr minmax(180px, 34%); gap: 32px; }
}
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; min-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }
.prose .small-print { font-size: 0.875rem; color: var(--muted); }

/* --- Úvodní stránka --- */
.home-hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
/* Sklon zeleného pole = sklon zkosených obrázků (hrana obrázku stoupá o ~0,21 na jednotku výšky, tj. 12°). */
.home-hero::before { content: ""; position: absolute; right: -60px; top: -30px; bottom: -30px; width: 46%; background: var(--green); transform: skewX(-12deg); }
.home-hero .container { position: relative; z-index: 1; display: grid; gap: 24px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.home-hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.1; font-weight: 700; text-transform: uppercase; }
.home-hero p { margin: 0 0 22px; font-size: 1.15rem; max-width: 46ch; }
.home-hero p + p { margin-top: -10px; font-size: 1rem; color: var(--line); }
.home-hero .hero-image { text-align: center; }
.home-hero .hero-image img { max-height: 320px; width: auto; max-width: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
@media (max-width: 767px) {
  /* Na mobilu je text přes celou šířku, zelené pole proto jen za obrázkem (bílý text na zelené by se špatně četl). */
  .home-hero::before { display: none; }
  .home-hero .hero-image { position: relative; }
  .home-hero .hero-image::before { content: ""; position: absolute; z-index: -1; left: 30%; right: -60px; top: -28px; bottom: -64px; background: var(--green); transform: skewX(-12deg); }
}
@media (min-width: 768px) {
  .home-hero .container { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; padding-bottom: 64px; }
}
.home-hero .btn { margin: 0 8px 8px 0; }
.home-hero .btn-outline { color: #fff; border-color: #fff; }
.home-hero .btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }

.tiles { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--white); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(29, 29, 27, 0.08); height: 100%; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile a { display: flex; flex-direction: column; height: 100%; padding: 22px; color: var(--dark); text-decoration: none; }
.tile h2, .tile h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--green-text); text-transform: uppercase; }
.tile p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.tile .more { font-weight: 700; color: var(--dark); }
.tile .more::after { content: " \2192"; color: var(--green-text); }
.tile img { width: calc(100% + 44px); margin: -22px -22px 16px; max-width: none; height: 130px; object-fit: cover; }
.section { margin-top: 28px; }
.section-title { font-size: 1.4rem; margin: 0 0 16px; text-transform: uppercase; }
.section-title.spaced { margin-top: 2em; }

/* --- Podstránky (karty pod textem) --- */
.subpages { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .subpages { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.subpages a { display: block; height: 100%; background: var(--green-text); color: #fff; text-decoration: none; padding: 18px 20px; border-radius: var(--radius); font-weight: 700; text-transform: uppercase; transition: background 0.2s; }
.subpages a:hover { background: var(--dark); color: #fff; }
.subpages a::after { content: " \2192"; }

/* --- Aktuální nabídka --- */
.offer-group + .offer-group { margin-top: 44px; padding-top: 12px; border-top: 2px solid var(--line); }
.offer-group > h2 { color: var(--green-text); font-size: 1.6rem; margin: 0 0 12px; }
.offer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 20px 0 0; padding: 0; list-style: none; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.offer-media { position: relative; background: var(--bg); }
.offer-media a { display: block; line-height: 0; }
.offer-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.offer-media .more-photos { position: absolute; right: 8px; bottom: 8px; background: rgba(29, 29, 27, 0.85); color: #fff; font-size: 0.8rem; padding: 3px 10px; border-radius: 12px; line-height: 1.4; }
.offer-extra { display: none; }
.offer-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.offer-body .prose { font-size: 0.97rem; }
.offer-body .price { margin: auto 0 0; padding-top: 12px; font-weight: 700; color: var(--green-text); }
.offer-body .prose + .price { margin-top: 12px; }
.offer.is-soldout .offer-media img { filter: grayscale(1); opacity: 0.6; }
.offer-ribbon { position: absolute; left: 0; top: 14px; z-index: 1; background: var(--dark); color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 14px 5px 12px; line-height: 1.3; }
.soldout-tag { display: inline-block; align-self: flex-start; margin: 0 0 8px; background: var(--dark); color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 3px; line-height: 1.4; }
.offer.is-soldout .offer-body h3 { color: var(--muted); }

/* --- Ke stažení --- */
.dl-group + .dl-group { margin-top: 34px; }
.dl-group > h2 { color: var(--green-text); font-size: 1.35rem; margin: 0 0 12px; line-height: 1.3; }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.files li { border-bottom: 1px solid var(--line); }
.files .file { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; padding: 12px 6px; color: var(--dark); text-decoration: none; }
a.file:hover { background: var(--bg); }
a.file:hover .file-title { text-decoration: underline; color: var(--green-text); }
.file-icon { grid-row: span 2; width: 44px; height: 52px; background: var(--green-text); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; border-radius: 3px; clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.file.is-missing .file-icon { background: var(--line); color: var(--muted); }
.file-title { font-weight: 500; line-height: 1.35; }
.file-meta { color: var(--muted); font-size: 0.875rem; }

/* --- Volná místa --- */
.job + .job { margin-top: 34px; padding-top: 28px; border-top: 2px solid var(--line); }
.job > h2 { color: var(--green-text); font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
.job-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0 0 16px; padding: 12px 16px; background: var(--bg); border-left: 5px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.job-facts dt { font-weight: 700; }
.job-facts dd { margin: 0; }
.job-contact { margin: 16px 0 0; }
@media (max-width: 420px) { .job-facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .job-facts dd { margin-bottom: 8px; } .job-facts dd:last-child { margin-bottom: 0; } }

/* --- Kontakty --- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.box { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); padding: 22px 24px; }
.box.box-green { background: var(--green-text); border-color: var(--green-text); color: #fff; }
.box.box-green a { color: #fff; }
.box.box-green a:hover { color: var(--green); }
.box h2, .box h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.3; color: var(--green-text); }
.box.box-green h2 { color: #fff; }
.box p { margin: 0 0 0.8em; }
.box p:last-child { margin-bottom: 0; }
.box dl { margin: 0; }
.box dt { font-weight: 700; margin-top: 8px; }
.box dd { margin: 0; }
.box .role { font-weight: 700; display: block; }
.box .legal { color: var(--muted); font-size: 0.9rem; }
.hours-day { font-weight: 700; margin: 8px 0 0; }
.hours-time { font-size: 1.35rem; font-weight: 700; margin: 0; }
.contact-people { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 20px; }

/* --- Mapa na stránce Kontakty (Leaflet + dlaždice Mapy.com; Leaflet se načítá jen s mapou) --- */
.map-box { margin-top: 20px; padding: 18px 14px; }
@media (min-width: 768px) { .map-box { padding: 22px 24px; } }
.map-canvas { position: relative; z-index: 0; isolation: isolate; height: 280px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #e9ece8; }
@media (min-width: 768px) { .map-canvas { height: 360px; } }
.map-canvas.leaflet-container { font-family: inherit; font-size: 0.8125rem; }
.map-canvas .leaflet-popup-content { font-size: 0.9375rem; line-height: 1.4; margin: 12px 16px; }
.box .map-fallback { margin: 0; padding: 16px; color: var(--muted); }
.box .map-link { margin: 12px 0 0; }
.box .map-note { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.map-logo a { display: block; line-height: 0; text-decoration: none; }
.map-logo img { display: block; height: 22px; width: auto; max-width: none; }

/* --- Patička --- */
.site-footer { background: var(--dark); color: #fff; margin-top: 0; border-top: 6px solid var(--green); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green); }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1rem; text-transform: uppercase; color: var(--green); margin: 0 0 12px; letter-spacing: 0.04em; }
.footer-grid p { margin: 0 0 0.5em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 4px 0; }
.footer-logo img { width: 150px; height: auto; display: block; margin-bottom: 14px; }
.footer-small { color: var(--line); font-size: 0.875rem; }
.footer-bottom { border-top: 1px solid #3a3a37; }
.footer-bottom .nb { white-space: nowrap; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 16px; font-size: 0.875rem; color: var(--line); }

/* --- 404 --- */
.not-found { text-align: center; padding: 20px 0; }
.not-found .big { font-size: clamp(4rem, 18vw, 8rem); font-weight: 700; color: var(--green); line-height: 1; margin: 0; }

/* --- Lightbox (nativní <dialog>) --- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; background: #000; }
.lightbox figcaption { margin-top: 10px; text-align: center; font-size: 0.95rem; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lb-btn { position: absolute; background: var(--dark); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.lb-btn:hover { background: var(--green); color: var(--dark); border-color: var(--green); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) { .lightbox-inner { padding: 56px 8px; } .lb-prev { left: 4px; top: auto; bottom: 8px; transform: none; } .lb-next { right: 4px; top: auto; bottom: 8px; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .notice-bar, .topbar, .site-header, .site-footer, .breadcrumb, .skip-link { display: none !important; }
  body { background: #fff; }
  .page-head { background: none; color: #000; }
  .page-head::before, .page-head::after { display: none; }
  .card { box-shadow: none; padding: 0; }
  .map-canvas { display: none !important; }
}
