/* ==========================================================================
   GOTIC — design tokeny
   Jediný zdroj pravdy pro barvy, typografii, prostor a pohyb.
   Odvozeno z loga „i“ (#009241) a ze stávajícího webu gotic.cz.
   Dokumentace: design-system/MASTER.md
   ========================================================================== */
:root {
  /* --- Zelená: hlavní barva, z loga ------------------------------------- */
  --c-green-900: #0b4f26;   /* tmavé plochy: horní lišta, patička */
  --c-green-800: #00662b;
  --c-green-700: #00702f;   /* text-safe na bílé (6,25 : 1) */
  --c-green-600: #007a36;   /* bílý text na něm (5,47 : 1) – tlačítka, navigace */
  --c-green-500: #009241;   /* barva loga – plochy a akcenty, NE pro text */
  --c-green-300: #4fc97e;   /* text a ikony na tmavě zelené / na fotce */
  --c-green-200: #8fe4b5;
  --c-green-100: #ddf0e4;
  --c-green-050: #f0f8f3;

  /* --- Modrá: nosná barva ploch, ze stávajícího webu gotic.cz ------------ */
  --c-navy-900:  #0e2038;   /* patička */
  --c-navy-800:  #122844;   /* horní informační lišta */
  --c-navy-700:  #1b3a5e;
  --c-blue-700:  #28568f;
  --c-blue-600:  #2f62a2;   /* bílý text na něm (6,20 : 1) */
  --c-blue-500:  #3873bb;   /* barva hlavičky starého webu – pruh kalendáře, odkazy */

  /* --- Červená: akcent, velmi střídmě ----------------------------------- */
  --c-red-600:   #c01f17;

  /* --- Dřevo a béžová: povrchy a text ----------------------------------- */
  --c-ink:       #2a2118;   /* nadpisy, silný text */
  --c-body:      #3b3226;   /* běžný text */
  --c-muted:     #5e5245;   /* doplňkový text (6,74 : 1 na béžové) */
  --c-line:      #ddd2bf;
  --c-line-soft: #ebe3d6;
  --c-surface:   #ffffff;
  --c-beige-100: #f6f1e8;   /* teplá plocha místo chladné šedi */
  --c-beige-050: #fbf8f2;

  /* dřevěná textura pod mřížkou voleb */
  --c-wood-800:   #4a3b2a;
  --c-wood-700:   #5a4229;
  --c-wood-600:   #6b5235;
  --c-wood-500:   #7a5f3e;
  --c-wood-400:   #8c7049;

  --c-focus-ring: #ffd24a;
  --c-focus-halo: rgba(14, 32, 56, .62);

  /* --- Typografie ------------------------------------------------------- */
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --t-h1:   clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem);
  --t-h2:   clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem);
  --t-h3:   clamp(1.1rem, 1rem + .45vw, 1.35rem);
  --t-lead: clamp(1rem, .92rem + .5vw, 1.3rem);
  --t-sm:   .875rem;
  --t-xs:   .8125rem;

  /* --- Prostor ---------------------------------------------------------- */
  --sp-section: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  --gutter:     clamp(1rem, .4rem + 2vw, 2.5rem);
  --container:  1360px;

  /* --- Tvar a stín ------------------------------------------------------ */
  --r-sm: 6px;
  --r-md: 12px;
  --sh-1: 0 2px 6px rgba(42, 33, 24, .07), 0 8px 24px rgba(42, 33, 24, .08);
  --sh-2: 0 6px 14px rgba(42, 33, 24, .12), 0 20px 48px rgba(42, 33, 24, .18);
  --sh-3: 0 10px 22px rgba(20, 14, 8, .22), 0 30px 64px rgba(20, 14, 8, .3);

  /* --- Pohyb ------------------------------------------------------------ */
  --e: cubic-bezier(.22, .61, .36, 1);
  --d-fast: 180ms;
  --d-mid:  240ms;
  --d-slow: 300ms;

  /* --- Přemapování Bootstrapu ------------------------------------------- */
  --bs-body-font-family: var(--f-sans);
  --bs-body-color: var(--c-body);
  --bs-body-bg: var(--c-surface);
  --bs-link-color-rgb: 56, 115, 187;
  --bs-link-hover-color-rgb: 40, 86, 143;
  --bs-border-color: var(--c-line);
  --bs-emphasis-color: var(--c-ink);
}

/* Lokální písmo – žádná externí závislost */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
/* ==========================================================================
   GOTIC — site.css
   Komponenty. Tokeny jsou v assets/css/tokens.css, grid a utility z Bootstrapu.

   Obsah:
     1. Base & typografie
     2. Layout
     3. Sticky hlavička (informační lišta + hlavní nabídka)
     4. Offcanvas
     5. Fotobanner
     6. Devět rychlých voleb na dřevěném podkladu
     7. Pruh Kalendář akcí
     8. Dolní vodorovná nabídka
     9. Hlavní partneři
    10. Přístupnost & pohyb
   ========================================================================== */

/* ------------------------------------------------- 1. BASE & TYPOGRAFIE --- */
body {
  font-family: var(--f-sans);
  color: var(--c-body);
  background: var(--c-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--f-sans); font-weight: 800; color: var(--c-ink);
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--c-blue-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-blue-700); }

/* ------------------------------------------------------------ 2. LAYOUT --- */
.shell { width: min(var(--container), 100% - (2 * var(--gutter))); margin-inline: auto; }

/* --------------------------------------------------- 3. STICKY HLAVIČKA --- */
/* Zadání: „Oba tyto pruhy s nabídkami ať při scrolování zůstanou stále
   přístupné.“ Lepí se proto celý blok, ne jen navigace. */
html { scroll-padding-top: 9.5rem; }   /* kotvy (#kontakt) a focus nezůstanou pod sticky hlavičkou */
.stickyhead {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow var(--d-mid) var(--e);
}
.stickyhead.is-stuck { box-shadow: 0 8px 24px rgba(42, 33, 24, .16); }

.topbar { background: var(--c-navy-800); color: #dbe6f2; font-size: var(--t-xs); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }

.lang {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .5rem; min-height: 40px;
  font-weight: 700; letter-spacing: .04em; color: #c3d3e6;
  border-radius: var(--r-sm); text-decoration: none;
  transition: background-color var(--d-fast) var(--e), color var(--d-fast) var(--e);
}
.lang svg { width: 20px; height: 14px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lang:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang[aria-current="true"] { background: var(--c-green-600); color: #fff; }

.topbar__sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .22); margin-inline: .5rem; }

.searchbox { display: flex; align-items: center; }
.searchbox__field {
  height: 32px; width: 180px; max-width: 42vw;
  border: 1px solid rgba(255, 255, 255, .3); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; padding: 0 .6rem;
}
.searchbox__field::placeholder { color: rgba(255, 255, 255, .68); }
.searchbox__field:focus { outline: 0; background: #fff; color: var(--c-ink); border-color: var(--c-green-500); }
.searchbox__btn {
  height: 32px; min-width: 36px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  transition: background-color var(--d-fast) var(--e), color var(--d-fast) var(--e);
}
.searchbox__btn:hover { background: var(--c-green-500); border-color: var(--c-green-500); }

.topbar__link {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .45rem .55rem;
  color: #dbe6f2; text-decoration: none; border-radius: var(--r-sm); white-space: nowrap;
  transition: background-color var(--d-fast) var(--e), color var(--d-fast) var(--e);
}
.topbar__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.topbar__link i { font-size: 1rem; color: #fff; transition: color var(--d-fast) var(--e); }
.topbar__link:hover i, .topbar__link:focus-visible i { color: var(--c-green-300); }

/* Vpravo podle zadání: Facebook, dva telefony, Kontakty, Otevírací doba.
   Pod 1200 px se pět položek s textem nevejde na jeden řádek – zůstanou ikony;
   text je dál názvem odkazu pro čtečky (skrytý jen vizuálně). */
@media (max-width: 1199px) {
  .topbar__link .t-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .topbar__link { padding-inline: .45rem; min-width: 40px; justify-content: center; }
}
@media (max-width: 575px) {
  .searchbox, .topbar__sep { display: none; }
  .topbar__inner { gap: .2rem; flex-wrap: nowrap; }
  .lang { padding: .45rem .3rem; gap: .3rem; }
  .lang svg { width: 18px; height: 12px; }
  /* vlajky + 5 ikon se musí vejít na jeden řádek i na 360 px – zkratka jazyka
     zůstane jen pro čtečky (odkaz má aria-label) */
  .lang { min-width: 34px; justify-content: center; }
  .lang span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar__link { min-width: 36px; padding-inline: .35rem; }
}

/* ---- hlavní nabídka ---- */
.masthead { background: var(--c-surface); border-bottom: 3px solid var(--c-green-500); }
.masthead__inner {
  display: flex; align-items: center;
  gap: clamp(.75rem, .2rem + 1.4vw, 1.75rem);
  min-height: 104px;
}
.brand { display: inline-flex; align-items: center; gap: 1rem; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 76px; height: 76px; border-radius: var(--r-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-size: 1.3125rem; font-weight: 800; color: var(--c-ink);
  text-transform: uppercase; letter-spacing: .03em;
}
.brand__text small { font-size: .96875rem; color: var(--c-muted); }

.mainnav { margin-left: auto; }
.mainnav__list { display: flex; align-items: center; gap: clamp(.15rem, -.3rem + 1.1vw, .9rem); list-style: none; margin: 0; padding: 0; }
.mainnav__link {
  position: relative; display: flex; align-items: center;
  min-height: 48px; padding: .5rem .4rem;
  font-size: 1rem; font-weight: 800; color: var(--c-ink);
  text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: color var(--d-fast) var(--e);
}
.mainnav__link::after {
  content: ""; position: absolute; left: .4rem; right: .4rem; bottom: 12px;
  height: 3px; background: var(--c-green-500);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--d-mid) var(--e);
}
.mainnav__link:hover, .mainnav__link:focus-visible { color: var(--c-green-700); }
.mainnav__link:hover::after, .mainnav__link:focus-visible::after { transform: scaleX(1); }
.mainnav__link[aria-current="page"] { color: var(--c-green-700); }
.mainnav__link[aria-current="page"]::after { transform: scaleX(1); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: 0 0 auto;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-green-800);
  font-size: 1.35rem; line-height: 1; cursor: pointer; text-decoration: none;
  transition: background-color var(--d-fast) var(--e), color var(--d-fast) var(--e),
              border-color var(--d-fast) var(--e), transform var(--d-fast) var(--e);
}
.iconbtn:hover { background: var(--c-green-050); border-color: var(--c-green-500); transform: translateY(-1px); }
.iconbtn--menu { background: var(--c-green-600); border-color: var(--c-green-600); color: #fff; margin-left: .25rem; }
.iconbtn--menu:hover { background: var(--c-green-800); border-color: var(--c-green-800); color: #fff; }

/* ---- podnabídky v hlavní nabídce (Bootstrap dropdown) ---- */
.mainnav__item { position: relative; }
.mainnav__toggle {
  gap: .35rem; border: 0; background: none; font: inherit;
  font-size: 1rem; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: var(--c-ink); cursor: pointer;
}
.mainnav__toggle i { font-size: .72em; transition: transform var(--d-fast) var(--e); }
.mainnav__item.show .mainnav__toggle { color: var(--c-green-700); }
.mainnav__item.show .mainnav__toggle i { transform: rotate(180deg); }
.mainnav__item.show .mainnav__toggle::after { transform: scaleX(1); }

.mainnav__item--split { display: flex; align-items: center; }
.mainnav__item--split > .mainnav__link:first-child { padding-right: .15rem; }
.mainnav__toggle--split { padding: .5rem .45rem .5rem .1rem; min-width: 0; justify-content: center; }
.mainnav__toggle--split::after { display: none; }
.mainnav__item--split.show > .mainnav__link:first-child { color: var(--c-green-700); }
.sitemenu__split { display: flex; align-items: stretch; }
.sitemenu__split .sitemenu__link { flex: 1 1 auto; }
.sitemenu__toggle--split {
  flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-left: 1px solid var(--c-line-soft); color: var(--c-green-700); cursor: pointer;
}
.sitemenu__toggle--split:hover, .sitemenu__toggle--split:focus-visible { background: var(--c-green-050); }
.subnav {
  min-width: 17.5rem; padding: .4rem; margin-top: .35rem;
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-surface); box-shadow: var(--sh-2);
}
.subnav__link {
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  min-height: 44px; padding: .55rem .75rem; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 700; color: var(--c-ink);
  text-decoration: none; white-space: normal;
}
.subnav__link i { flex: 0 0 auto; font-size: .85rem; color: var(--c-green-500); }
.subnav__link:hover, .subnav__link:focus-visible {
  background: var(--c-green-050); color: var(--c-green-700);
}

/* Šest verzálkových položek potřebuje víc místa než pět na sesterském webu. */
@media (max-width: 1399px) { .mainnav { display: none; } .iconbtn--menu { margin-left: auto; } }
/* Anglické a polské názvy jsou delší – vodorovná navigace se vejde až od větší šířky. */
@media (max-width: 1559.98px) { html[lang^="en"] .mainnav { display: none; } html[lang^="en"] .iconbtn--menu { margin-left: auto; } }
@media (max-width: 1799.98px) { html[lang^="pl"] .mainnav { display: none; } html[lang^="pl"] .iconbtn--menu { margin-left: auto; } }
@media (max-width: 767.98px) {
  .masthead__inner { min-height: 84px; }
  .brand img { width: 62px; height: 62px; }
}
@media (max-width: 575px) {
  .masthead__inner { min-height: 72px; gap: .5rem; }
  .brand img { width: 50px; height: 50px; }
  .brand__text strong { font-size: 1rem; }
  .brand__text small { display: none; }
}

/* ----------------------------------------------------------- 4. MENU --- */
.sitemenu { width: min(430px, 92vw); background: var(--c-surface); }
.sitemenu__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--c-line-soft);
}
.sitemenu__title { font-size: 1.3rem; font-weight: 800; color: var(--c-ink); margin: 0; }
.sitemenu__body { padding: .5rem var(--gutter) 2rem; overflow-y: auto; }
.sitemenu__list { list-style: none; margin: 0; padding: 0; }
.sitemenu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 54px; padding: .8rem .25rem;
  border-bottom: 1px solid var(--c-line-soft);
  font-weight: 700; color: var(--c-ink); text-decoration: none;
  transition: color var(--d-fast) var(--e), padding-left var(--d-fast) var(--e);
}
.sitemenu__link i { color: var(--c-green-500); font-size: 1.05rem; transition: transform var(--d-fast) var(--e); }
.sitemenu__link:hover, .sitemenu__link:focus-visible { color: var(--c-green-700); padding-left: .6rem; }
.sitemenu__link:hover i { transform: translateX(3px); }
.sitemenu__foot {
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line-soft);
  font-size: var(--t-sm); color: var(--c-muted);
}
.sitemenu__foot a { font-weight: 700; }

/* ---- rozbalovací skupiny v hamburger menu (Bootstrap collapse) ---- */
.sitemenu__toggle {
  width: 100%; border: 0; border-bottom: 1px solid var(--c-line-soft);
  background: none; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.sitemenu__toggle i { transition: transform var(--d-mid) var(--e); }
.sitemenu__toggle[aria-expanded="true"] { color: var(--c-green-700); }
.sitemenu__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.subnav--mobile {
  list-style: none; margin: .25rem 0 .75rem;
  padding: .25rem 0 .25rem .85rem;
  border-left: 3px solid var(--c-green-100); box-shadow: none;
  min-width: 0; border-radius: 0; background: none;
}
.sitemenu__subtitle {
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted); margin: 1.75rem 0 .35rem;
}

/* ------------------------------------------------------- 5. FOTOBANNER --- */
/* Veselá barevná fotografie bez ztmavení a bez nápisů (požadavek klienta 7. 10. 2026).
   Dlaždice leží až pod ní. Nadpis a texty banneru jsou jen pro čtečky a vyhledávače. */
.hero { position: relative; isolation: isolate; background: var(--c-beige-100); overflow: hidden;
        aspect-ratio: 7 / 3; max-width: 1920px; margin-inline: auto; }   /* celá dřevěnka, nejvýš Full HD */
@media (max-width: 767.98px) { .hero { aspect-ratio: 3 / 2; } }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item, .hero picture { height: 100%; display: block; }
.hero .carousel-item { transition-duration: .9s; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 47%); display: block; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; min-width: 48px; opacity: .85; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { filter: drop-shadow(0 0 5px rgba(0, 0, 0, .7)); }
.hero .carousel-indicators { margin-bottom: .6rem; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 6px; border-radius: 3px; border: 0; box-shadow: 0 0 4px rgba(0, 0, 0, .5); }

/* ------------------------- 6. DEVĚT RYCHLÝCH VOLEB NA SVĚTLÉM DŘEVĚ --- */
/* Světlá fotografie dřeva překrytá béžovým závojem, aby nebyla dominantní. */
.quickzone {
  padding-block: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  background-color: var(--c-beige-050);
  background-image:
    linear-gradient(0deg, rgba(251, 248, 242, .6), rgba(251, 248, 242, .6)),
    image-set(url("../images/texture/drevo-svetle-1600.webp") type("image/webp"),
              url("../images/texture/drevo-svetle-1600.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--c-line-soft);
}
.quick {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.65rem, .3rem + .9vw, 1.1rem);
  grid-auto-rows: 1fr;
}
/* 3 × 3; pořadí v DOM je po řádcích, sloupce odpovídají zadání */
@media (min-width: 768px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick > li { grid-column: span 2; }
  .quick > li:nth-child(9) { grid-column: 2 / span 2; }
}

.qt { display: flex; }
.qt__link {
  display: flex; flex-direction: column; width: 100%;
  background: var(--c-wood-800);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  overflow: hidden; color: var(--c-ink); text-decoration: none;
  transition: transform var(--d-mid) var(--e), box-shadow var(--d-mid) var(--e);
}
.qt__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-wood-700); }
.qt__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--d-slow) var(--e); }
.qt__body { display: flex; align-items: flex-end; flex: 1 1 auto; }
.qt__label {
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  line-height: 1.25; hyphens: auto;
}
.qt__link:hover, .qt__link:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }
.qt__link:hover .qt__media img, .qt__link:focus-visible .qt__media img { transform: scale(1.06); }

/* Od 768 px popisek přímo na fotografii, bez piktogramu (požadavek zadání). */
@media (min-width: 768px) {
  .qt__link { position: relative; }
  .qt__body {
    position: absolute; inset: auto 0 0 0;
    padding: 2.75rem 1.15rem 1.1rem;
    background: linear-gradient(0deg,
      rgba(14, 9, 4, .93) 0%, rgba(14, 9, 4, .78) 42%,
      rgba(14, 9, 4, .3) 76%, rgba(14, 9, 4, 0) 100%);
  }
  .qt__label { color: #fff; font-size: clamp(.95rem, .8rem + .4vw, 1.2rem); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }

  /* Dlaždice s logem místo fotografie (Region Card): popisek stejný jako
     u ostatních, jen logo se středí do plochy nad ním (jako na opevneni-sance). */
  .qt--logo .qt__media { padding-bottom: 3.5rem; }
}
.qt--logo .qt__media { background: #fff; }
.qt--logo .qt__media::after { content: none; }
@media (max-width: 767.98px) {
  .qt__link { background: var(--c-surface); }
  .qt__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(14, 9, 4, .28), rgba(14, 9, 4, 0) 60%);
  }
  .qt__body { padding: .7rem .75rem .85rem; border-top: 3px solid var(--c-green-500); }
  .qt__label { color: var(--c-ink); font-size: .8125rem; }
}

/* --------------------------------------------- 7. PRUH KALENDÁŘ AKCÍ --- */
.calbar { background: var(--c-blue-600); transition: background-color var(--d-mid) var(--e); }
.calbar:hover, .calbar:focus-within { background: var(--c-blue-700); }
.calbar__inner {
  display: flex; align-items: center; gap: clamp(.85rem, .5rem + 1vw, 1.5rem);
  min-height: 86px; padding-block: 1rem;
  color: #fff; text-decoration: none;
  transition: color var(--d-fast) var(--e);
}
.calbar__inner:hover, .calbar__inner:focus-visible { color: #fff; }   /* globální a:hover je modrý jako pozadí */
.calbar__icon { font-size: 2rem; flex: 0 0 auto; color: #fff; transition: transform var(--d-fast) var(--e); }
.calbar__inner:hover .calbar__icon, .calbar__inner:focus-visible .calbar__icon { transform: scale(1.1); }
.calbar__text { display: flex; flex-direction: column; }
.calbar__title { font-size: clamp(1.1rem, .95rem + .5vw, 1.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.calbar__note { font-size: var(--t-sm); color: rgba(255, 255, 255, .88); }
.calbar__cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; white-space: nowrap;
  border-bottom: 2px solid rgba(255, 255, 255, .45);
  transition: border-color var(--d-fast) var(--e), transform var(--d-fast) var(--e);
}
.calbar__inner:hover .calbar__cta, .calbar__inner:focus-visible .calbar__cta {
  border-bottom-color: #fff; transform: translateX(3px);
}
/* Mobil: ikona a text zůstávají vedle sebe, odkaz je pod nimi zarovnaný s textem. */
@media (max-width: 767.98px) {
  .calbar__inner { flex-wrap: wrap; row-gap: .5rem; }
  /* text zabere zbytek řádku vedle ikony, odkaz se tím zalomí pod něj */
  .calbar__text { flex: 1 1 calc(100% - 4rem); min-width: 0; }
  .calbar__cta { margin-left: calc(2rem + clamp(.85rem, .5rem + 1vw, 1.5rem)); }
}

/* ------------------------------------- 8. DOLNÍ VODOROVNÁ NABÍDKA ------- */
/* Patička má tři části v pořadí DOM i na stránce: tmavá dolní vodorovná
   nabídka, světlí partneři (sekce 9, „úplně dole“) a světlá lišta s copyrightem. */
.contactzone { background: var(--c-navy-900); color: #bccee3; padding-block: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); }
/* Dolní vodorovná nabídka přesně podle zadání (bod D, vzor louny.eu):
   kontakt GOTIC s IČ a logem | naše pobočky | výřez z mapy | úplně vpravo
   certifikát. Sloupce jsou stejně vysoké – mapa se roztáhne na výšku řádku. */
.sitefoot__grid {
  display: grid;
  column-gap: clamp(2rem, 1rem + 2.8vw, 4rem);
  row-gap: clamp(2rem, 1.25rem + 2vw, 3rem);
  grid-template-columns: 1fr 1.24fr 1.05fr 1.1fr;   /* certifikát svou výškou dorovná sloupce */
  grid-template-areas: "contact branches map cert";
  align-items: stretch;
}
.fcol { display: flex; flex-direction: column; min-width: 0; }
.fcol--contact  { grid-area: contact; }
.fcol--branches { grid-area: branches; }
.fcol--map      { grid-area: map; }
.fcol--cert     { grid-area: cert; }
.contactzone a { color: #d7e2f0; }
.contactzone a:hover, .contactzone a:focus-visible { color: var(--c-green-300); }
.fcol__title {
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #9fb5cf; margin: 0 0 1.1rem;
}
.fcol__address { font-style: normal; font-size: .9375rem; line-height: 1.6; color: #bccee3; margin: 0 0 .5rem; }
.fcol__address strong { display: block; font-size: 1rem; color: #fff; margin-bottom: .25rem; }
.fcol__ico { font-size: .9375rem; color: #9fb5cf; margin: 0 0 .5rem; }

.flist { list-style: none; margin: 0; padding: 0; }
.flist a {
  display: flex; align-items: center; gap: .7rem;
  min-height: 44px; font-size: .9375rem; font-weight: 700; color: #fff; text-decoration: none;
  transition: color var(--d-fast) var(--e);
}
.flist i { flex: 0 0 1.2rem; font-size: 1rem; color: var(--c-green-300); transition: color var(--d-fast) var(--e); }
.flist span { border-bottom: 1px solid transparent; transition: border-color var(--d-fast) var(--e); }
.flist a:hover, .flist a:focus-visible { color: var(--c-green-300); }
.flist a:hover i { color: #fff; }
.flist a:hover span { border-bottom-color: currentColor; }

.branches { list-style: none; margin: 0; padding: 0; }
.branches li {
  padding: .9rem 0; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem; line-height: 1.55;
}
.branches li:first-child { border-top: 0; padding-top: 0; }
.branches b { display: block; color: #fff; font-size: 1rem; margin-bottom: .2rem; }
/* každá pobočka: název / adresa / telefony / web – vždy na vlastním řádku */
.branches span { display: block; }
.branches a { display: inline-block; min-height: 32px; margin-right: .75rem; font-weight: 700; text-decoration: none; }
.branches a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fmap { display: flex; flex-direction: column; flex: 1 1 auto; text-decoration: none; }
.fmap picture { display: block; position: relative; aspect-ratio: 76 / 50; }
.fmap__img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 65% 30%;   /* značka IC zůstane ve výřezu */
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .22);
  transition: border-color var(--d-fast) var(--e), transform var(--d-fast) var(--e);
}
/* Vedle ostatních sloupců se mapa roztáhne na výšku řádku. */
@media (min-width: 768px) { .fmap picture { aspect-ratio: 1 / 1; flex: 0 0 auto; } }
.fmap { align-self: flex-start; width: 100%; max-width: 240px; }
.fmap__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; font-weight: 700; color: #d7e2f0; font-size: .9375rem;
}
.fmap:hover .fmap__img, .fmap:focus-visible .fmap__img {
  border-color: var(--c-green-300); transform: translateY(-2px);
}
.fmap:hover .fmap__cta { color: var(--c-green-300); }

/* Logo GOTIC v prvním sloupci pod kontaktem (zadání bod D). Je to jednobarevná
   kresba – na tmavém pásu se vykreslí bíle. Sedí na spodní hraně sloupce. */
.fgotic { display: block; align-self: flex-start; width: auto; height: 150px; margin-top: 1.25rem; box-sizing: content-box;
          padding: .6rem .9rem; background: var(--c-beige-050); border-radius: var(--r-sm); }   /* hnědé logo v původních barvách na světlé desce */
.fcz { display: block; align-self: flex-start; width: 100%; max-width: 260px; height: auto; margin-top: 1.25rem; }

.fcertlink { display: block; align-self: flex-start; width: 100%; max-width: 200px;   /* mapa 240 + odkaz 44 = výška certifikátu */
            
             text-decoration: none; transition: transform var(--d-fast) var(--e); }
.fcertlink:hover, .fcertlink:focus-visible { transform: translateY(-2px); }
.fcert {
  display: block; width: 100%; height: auto;
  background: #fff; border-radius: var(--r-sm); padding: .3rem;
  box-shadow: var(--sh-2);
}

/* ---- spodní lišta – poslední řádek stránky, světlá jako partneři nad ní ---- */
.sitefoot__bar {
  background: var(--c-beige-100);
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-muted);
}
.sitefoot__barinner {
  padding-block: .9rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between; font-size: var(--t-xs);
}
.sitefoot__barinner nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.sitefoot__barinner a { min-height: 44px; display: inline-flex; align-items: center; color: var(--c-blue-700); }
.sitefoot__barinner a:hover, .sitefoot__barinner a:focus-visible { color: var(--c-navy-800); }

/* Tablet a malý notebook: kontakt | pobočky, pod nimi mapa | certifikát */
@media (max-width: 1199.98px) {
  .sitefoot__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "contact branches" "map cert";
  }
}
@media (max-width: 767.98px) {
  .sitefoot__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "contact" "branches" "map" "cert";
  }
}

/* -------------------------------------------------- 9. HLAVNÍ PARTNEŘI --- */
/* Světlá část patičky pod kontaktem. Barevná loga na čistě bílém podkladu
   – požadavek na uznání publicity. */
.partners {
  background: var(--c-surface);
  padding-block: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
}
.partners__title {
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-green-700);
  text-align: center; margin: 0 0 clamp(1.25rem, .75rem + 1.5vw, 2rem);
}
.partners__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, .5rem + 2vw, 2.75rem);
}
.partner {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 64px; padding: .5rem .75rem; border-radius: var(--r-sm);
  transition: transform var(--d-mid) var(--e);
}
.partner img { display: block; width: auto; height: auto; max-height: clamp(42px, 2.1rem + 1.5vw, 62px); max-width: clamp(120px, 7rem + 4vw, 180px); }
.partner:hover, .partner:focus-visible { transform: translateY(-2px); }
.funding {
  max-width: 62rem; margin: clamp(1.5rem, 1rem + 2vw, 2.25rem) auto 0;
  padding-top: 1.35rem; border-top: 1px solid var(--c-line);
  text-align: center; font-size: var(--t-sm); color: var(--c-muted);
}
.funding p { margin: 0 auto; max-width: none; text-wrap: balance; }

/* --------------------------------------------- 10. PŘÍSTUPNOST & POHYB --- */
.skiplink {
  position: fixed; left: 1rem; top: -100px; z-index: 1100;
  background: #fff; color: var(--c-green-900);
  padding: .8rem 1.2rem; font-weight: 800; border-radius: var(--r-sm);
  box-shadow: var(--sh-2); text-decoration: none;
  transition: top var(--d-fast) var(--e);
}
.skiplink:focus { top: 1rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--c-focus-halo);
  border-radius: var(--r-sm);
}
.hero :where(a, button):focus-visible,
.quickzone :where(a, button):focus-visible { box-shadow: 0 0 0 6px rgba(255, 255, 255, .8); }

/* kotva nesmí zůstat pod lepivou hlavičkou */
[id] { scroll-margin-top: 150px; }

.toast-stub {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1090;
  max-width: min(26rem, calc(100vw - 2.5rem));
  background: var(--c-green-900); color: #fff;
  padding: .9rem 1.15rem; border-radius: var(--r-sm); box-shadow: var(--sh-3);
  font-size: var(--t-sm);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--d-mid) var(--e), transform var(--d-mid) var(--e);
}
.toast-stub.is-visible { opacity: 1; transform: none; }
@media (max-width: 575.98px) { .toast-stub { left: 1rem; right: 1rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Joomla – obsah komponenty na podstránkách (do návrhu podstránek jen odsazení) */
.pagebody { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); min-height: 40vh; }

/* Tlačítka komponent Joomly na podstránkách (např. výsledky hledání) v barvách webu */
.pagebody .btn-primary {
  --bs-btn-bg: var(--c-green-800); --bs-btn-border-color: var(--c-green-800);
  --bs-btn-hover-bg: var(--c-green-900); --bs-btn-hover-border-color: var(--c-green-900);
  --bs-btn-active-bg: var(--c-green-900); --bs-btn-active-border-color: var(--c-green-900);
}

/* ---- Souhlas s cookies (vanilla-cookieconsent) v barvách webu ---- */
.sitefoot__link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; display: inline-flex; align-items: center; color: var(--c-blue-700); }
.sitefoot__link:hover, .sitefoot__link:focus-visible { color: var(--c-navy-800); }
#cc-main {
  --cc-font-family: var(--f-sans);
  --cc-bg: #fff;
  --cc-primary-color: var(--c-ink);
  --cc-secondary-color: var(--c-muted);
  --cc-link-color: var(--c-green-700);
  --cc-modal-border-radius: var(--r-md);
  --cc-btn-border-radius: 10px;
  --cc-btn-primary-bg: var(--c-green-800);
  --cc-btn-primary-border-color: var(--c-green-800);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: var(--c-green-900);
  --cc-btn-primary-hover-border-color: var(--c-green-900);
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-secondary-bg: var(--c-green-050);
  --cc-btn-secondary-border-color: var(--c-green-200);
  --cc-btn-secondary-color: var(--c-green-900);
  --cc-btn-secondary-hover-bg: var(--c-green-100);
  --cc-btn-secondary-hover-border-color: var(--c-green-500);
  --cc-btn-secondary-hover-color: var(--c-green-900);
  --cc-toggle-on-bg: var(--c-green-700);
  --cc-separator-border-color: var(--c-line-soft);
  --cc-footer-bg: var(--c-beige-100);
  --cc-footer-border-color: var(--c-line-soft);
  --cc-cookie-category-block-bg: var(--c-green-050);
  --cc-cookie-category-block-border: var(--c-green-100);
  --cc-cookie-category-block-hover-bg: var(--c-green-100);
  --cc-cookie-category-block-hover-border: var(--c-green-200);
  --cc-overlay-bg: rgba(14, 32, 56, .55);
}
#cc-main .cm__title, #cc-main .pm__title { font-weight: 800; }

/* Blog kategorie jako dlaždice (html/com_content/category/blog.php) – stejné jako rychlé volby. */
.quick--blog { margin-block: 1.5rem 0; }
/* Dlaždice bez fotografie: logo webu na bílém, celé (ne oříznuté) */
.quick--blog .qt--logo .qt__media img { object-fit: contain; padding: 1rem 30% 3.4rem; }
@media (max-width: 767.98px) {
  .quick--blog > li:last-child:nth-child(odd) { grid-column: 2 / span 2; }  /* lichá dlaždice na střed */
}

/* Odkazová karta v textu článku (odstavec tvořený jen odkazem, viz html/com_content/article/default.php) */
.promo {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line); border-left: 4px solid var(--c-green-500);
  border-radius: var(--r-sm); box-shadow: var(--sh-1);
  color: var(--c-ink); text-decoration: none;
  transition: transform var(--d-mid) var(--e), box-shadow var(--d-mid) var(--e), color var(--d-mid) var(--e);
}
.promo > i { font-size: 1.75rem; color: var(--c-green-700); flex: 0 0 auto; }
.promo__title { display: block; font-weight: 800; line-height: 1.3; }
.promo__go { margin-left: auto; font-size: 1.1rem; color: var(--c-green-600); transition: transform var(--d-fast) var(--e); }
.promo:hover, .promo:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--c-green-800); }
.promo:hover .promo__go { transform: translateX(4px); }

/* ---- Prezentační stránka s externím obsahem (html/com_content/article/default.php, js/embed.js) ---- */
.extpage__intro { max-width: 62ch; margin-bottom: 1.5rem; }
.extpage__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn-site {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .65rem 1.4rem;
  border: 2px solid var(--c-green-800); border-radius: 10px;
  font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background var(--d-fast) var(--e), color var(--d-fast) var(--e), border-color var(--d-fast) var(--e);
}
.btn-site--primary { background: var(--c-green-800); color: #fff; }
.btn-site--primary:hover, .btn-site--primary:focus-visible { background: var(--c-green-900); border-color: var(--c-green-900); color: #fff; }
.btn-site--secondary { background: #fff; color: var(--c-green-800); }
.btn-site--secondary:hover, .btn-site--secondary:focus-visible { background: var(--c-green-050); color: var(--c-green-900); }
@media (max-width: 575.98px) { .btn-site { width: 100%; } }   /* tlačítka na celou šířku, nic nepřeteče */

.extpage__frame {
  position: relative; margin-top: 1.5rem; width: 100%; max-width: 100%;
  min-height: 20rem; aspect-ratio: 16 / 10; max-height: 85vh;
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden;
  background: var(--c-green-050);
}
.extpage__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.extpage__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1.5rem; text-align: center; color: var(--c-muted);
}
.extpage__placeholder[hidden] { display: none; }
.extpage__placeholder i { font-size: 2.75rem; color: var(--c-green-600); }
.extpage__placeholder p { margin: 0; max-width: 46ch; }
@media (max-width: 767.98px) { .extpage__frame { aspect-ratio: auto; height: 75vh; min-height: 22rem; } }

/* ---- Obsahové stránky (html/com_content/article/default.php): čitelný text, karty, značka partnera ---- */
.article__header { margin-bottom: 1.75rem; }
.article__eyebrow {
  display: inline-block; margin-bottom: .6rem;
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-green-700); text-decoration: none;
}
.article__eyebrow:hover, .article__eyebrow:focus-visible { color: var(--c-green-900); }
.article h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin: 0; }   /* menší než H1 homepage */
.article__body { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; }
.article--cards .article__body { max-width: 60rem; }
.article__body h2 { font-size: var(--t-h2); margin: 2.25rem 0 .75rem; }
.article__body h3 { font-size: var(--t-h3); margin: 1.75rem 0 .5rem; }
.article__body > :first-child { margin-top: 0; }
.article__body ul, .article__body ol { padding-left: 1.4rem; }
.article__body li + li { margin-top: .35rem; }
.article__figure { margin: 0 0 1.75rem; max-width: 72ch; }
.textcard { border-color: var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.textcard .card-body { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.textcard h2 { margin-top: 0; }
.textcard .card-body > :last-child { margin-bottom: 0; }
.brandblock {
  display: flex; justify-content: center; margin: 0 0 1.75rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  max-width: 72ch; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.brandblock img { max-width: min(100%, 420px); max-height: 110px; width: auto; height: auto; object-fit: contain; }
.promo--link { min-width: 0; }
.promo--link .promo__title { overflow-wrap: anywhere; }
.promo__meta { display: block; margin-top: .15rem; font-size: var(--t-xs); font-weight: 600; color: var(--c-muted); }
.partners__row--page { justify-content: flex-start; margin-block: 1.5rem 2rem; }

/* Hledané slovo se nezvýrazňuje (Joomla ho jinak značí žlutě) */
mark, .mark, .highlight, .highlight-term { background: none; color: inherit; padding: 0; }

/* Nadpis stránky (článek, rozcestník, výsledky hledání) menší než nadpis úvodní stránky; štítek nad ním je odkaz zpět na sekci */
.pagebody h1, .article h1 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.2; }
.article__eyebrow { font-size: var(--t-sm); letter-spacing: .08em; text-decoration: underline; text-underline-offset: .25em; }
.article__eyebrow::before { content: "\2039\00a0"; font-weight: 800; }

/* Přehled bez fotografií (Projekty, Rozpočet, dokumenty): čistý seznam odkazů (html/com_content/category/blog.php) */
.linklist { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 60rem; border-top: 1px solid var(--c-line-soft); }
.linklist__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: .7rem .5rem; border-bottom: 1px solid var(--c-line-soft);
  font-weight: 700; line-height: 1.35; color: var(--c-ink); text-decoration: none;
  transition: color var(--d-fast) var(--e), background-color var(--d-fast) var(--e);
}
.linklist__link i { flex: 0 0 auto; color: var(--c-green-500); }
.linklist__link:hover, .linklist__link:focus-visible { color: var(--c-green-700); background: var(--c-green-050); }
span.partner:hover { transform: none; }   /* logo bez odkazu se nezvedá */

/* Řada log v článku: na celou šířku stránky (text zůstává v čitelném sloupci), loga mají kolem sebe volný prostor */
.article__body { max-width: none; }
.article__body > * { max-width: 72ch; }
.article--cards .article__body > * { max-width: 60rem; }
.article__body > .partners__row { max-width: none; }
.partners__row--page { justify-content: flex-start; gap: 1.5rem 2rem; margin-block: 1.75rem 2.25rem; }
.partners__row--page .partner { padding: 1rem 1.25rem; min-height: 88px; }
.partners__row--page .partner img { max-height: 58px; max-width: 170px; }
@media (max-width: 575.98px) {   /* telefon: loga menší, aby se vešla aspoň dvě vedle sebe */
  .partners__row--page { gap: .75rem 1rem; }
  .partners__row--page .partner { padding: .6rem .75rem; min-height: 64px; }
  .partners__row--page .partner img { max-height: 44px; max-width: 118px; }
}

/* Obsah článků přes celou šířku kontejneru (dřív zúžený na ~70 znaků, text působil useknutě) */
.pagebody p, .article__body, .article__body > *, .article--cards .article__body, .article__figure, .brandblock,
.extpage__intro { max-width: none; }
.article__body { overflow-wrap: break-word; }

/* ---- Obrázky v textu článku (nastavené v editoru) --------------------------------------------------------------
   Editor nastaví šířku atributem width (zachová se v goticClean). Ta je jen horní mez: obrázek se nikdy nezvětší nad
   své nastavení ani nad šířku obsahu (max-width) a výška vždy sleduje poměr stran (height: auto).
   Pravidla platí výhradně pro obsah článku (.article__body), ne globálně. */
.article__body img.article__img { max-width: 100%; height: auto; vertical-align: middle; }
.article__body p > img.article__img, .article__body figure { margin-block: .5rem; }
.article__body figure { margin-inline: 0; max-width: 100%; }
.article__body figure img.article__img { display: block; }
.article__body figcaption { margin-top: .5rem; font-size: var(--t-sm); line-height: 1.5; color: var(--c-muted); }
.article__body::after { content: ""; display: table; clear: both; }   /* obtékání nepřeteče do patičky */
.article__body h2, .article__body h3 { clear: both; }
.article__body img.article__img--center, .article__body figure.article__fig--center { display: block; margin-inline: auto; }
.article__body img.article__img--left, .article__body figure.article__fig--left {
  float: left; margin: .35rem 1.5rem 1rem 0; max-width: min(50%, 100%);
}
.article__body img.article__img--right, .article__body figure.article__fig--right {
  float: right; margin: .35rem 0 1rem 1.5rem; max-width: min(50%, 100%);
}
.article__body figure.article__fig--left img.article__img, .article__body figure.article__fig--right img.article__img { max-width: 100%; }
@media (max-width: 575.98px) {   /* telefon: obtékání se vypne, obrázek je na celou šířku textu (nejvýš na svou velikost) */
  .article__body img.article__img--left, .article__body img.article__img--right,
  .article__body figure.article__fig--left, .article__body figure.article__fig--right {
    float: none; display: block; margin: 1rem 0; max-width: 100%;
  }
}

/* ---- Fotogalerie článku (pole „Fotogalerie“, html/gotic-gallery.php) ----------------------------------------- */
.gallery { margin-top: clamp(2.25rem, 1.5rem + 3vw, 4rem); clear: both; }
.gallery__title { font-size: var(--t-h2); margin: 0 0 1.1rem; }
.gallery__grid { margin-bottom: 0; }
.gallery__item {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--r-md); background: var(--c-beige-100); box-shadow: var(--sh-1);
  transition: box-shadow var(--d-mid) var(--e), transform var(--d-mid) var(--e);
}
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--e); }
.gallery__item:hover, .gallery__item:focus-visible { box-shadow: var(--sh-2); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 3px; }
.gallery__caption {
  margin: .45rem 0 0; font-size: var(--t-sm); line-height: 1.4; color: var(--c-muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ---- Lightbox galerie (Bootstrap Modal + Carousel, js/gallery.js) ---------------------------------------------- */
.gallery-lightbox .modal-dialog { margin: 0; }
.gallery-lightbox .modal-content {
  display: flex; flex-direction: column; border: 0; border-radius: 0;
  background: #07101c; color: #fff;
}
.gallery-lightbox__close {
  position: absolute; top: .75rem; right: .75rem; z-index: 5; width: 2.75rem; height: 2.75rem; padding: 0;
  border-radius: 50%; background-color: rgba(255, 255, 255, .12); background-size: 1rem; opacity: 1;
}
.gallery-lightbox__close:hover { background-color: rgba(255, 255, 255, .24); }
.gallery-lightbox__close:focus-visible, .gallery-lightbox .carousel-control-prev:focus-visible, .gallery-lightbox .carousel-control-next:focus-visible {
  outline: 3px solid var(--c-focus-ring); outline-offset: 2px;
}
.gallery-lightbox__carousel { flex: 1 1 auto; min-height: 0; }
.gallery-lightbox .carousel-inner, .gallery-lightbox .carousel-item { height: 100%; }
.gallery-lightbox .carousel-item.active, .gallery-lightbox .carousel-item-next, .gallery-lightbox .carousel-item-prev { display: flex; }
.gallery-lightbox__figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;
  margin: 0; padding: 3.5rem 4.25rem 1rem;
}
.gallery-lightbox__img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem);
  min-height: 0; object-fit: contain;
}
.gallery-lightbox__caption { max-width: 60rem; margin-top: .9rem; font-size: 1rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; max-height: 5.5rem; overflow-y: auto; }
.gallery-lightbox .carousel-control-prev, .gallery-lightbox .carousel-control-next {
  width: 3.25rem; height: 3.25rem; top: 50%; bottom: auto; margin-top: -1.625rem; opacity: 1; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.gallery-lightbox .carousel-control-prev { left: .75rem; }
.gallery-lightbox .carousel-control-next { right: .75rem; }
.gallery-lightbox .carousel-control-prev:hover, .gallery-lightbox .carousel-control-next:hover { background: rgba(255, 255, 255, .24); }
.gallery-lightbox__count { width: 100%; margin: 0; padding: 0 1rem .75rem; text-align: center; font-size: var(--t-sm); color: rgba(255, 255, 255, .8); }
@media (max-width: 575.98px) {
  .gallery-lightbox__figure { padding: 3.5rem .5rem .5rem; }
  .gallery-lightbox__img { max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
  .gallery-lightbox .carousel-control-prev, .gallery-lightbox .carousel-control-next { top: auto; bottom: 3.25rem; margin-top: 0; width: 3rem; height: 3rem; }
}

/* ---- Kalendář akcí na homepage (moduly JEvents, layouty gotic v html/mod_jevents_cal a html/mod_jevents_latest) ------------ */
/* Vertikální rytmus: předchozí sekce (.quickzone) má vlastní padding dole (28–48 px), proto nahoře jen malá rezerva; dole je tmavá patička, proto plný odstup. */
.gevents { padding-block: clamp(.5rem, .25rem + .8vw, 1rem) clamp(2rem, 1.2rem + 2.4vw, 3.5rem); background: var(--c-beige-050); }
.gevents__panel {
  --gevents-gap: 1rem;
  position: relative; overflow: hidden; color: #fff; border-radius: clamp(1.25rem, .8rem + 2vw, 2rem); box-shadow: var(--sh-2);
  padding: clamp(1.25rem, .8rem + 2.2vw, 2.5rem);
  background:
    linear-gradient(105deg, rgba(14, 32, 56, .9) 0%, rgba(18, 40, 68, .84) 55%, rgba(11, 79, 38, .78) 100%),
    var(--gevents-bg, none) center / cover no-repeat;
  background-color: var(--c-navy-900);
}
.gevents__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.gevents__heading { margin: 0; color: #fff; font-size: var(--t-h2); line-height: 1.15; }
.gevents__all { white-space: nowrap; }
.gevents__list, .gevents__cal { min-width: 0; }
.gevents__empty { margin: 0; padding: 1.25rem 1.5rem; border: 1px dashed rgba(255, 255, 255, .4); border-radius: var(--r-md); color: rgba(255, 255, 255, .92); }

/* mini kalendář */
.gcal { padding: 1rem; border-radius: var(--r-md); background: rgba(8, 20, 36, .55); border: 1px solid rgba(255, 255, 255, .16); }
.gcal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.gcal__title { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; text-align: center; flex: 1 1 auto; }
.gcal__nav {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem;
  transition: background-color var(--d-fast) var(--e);
}
.gcal__nav:hover { background: rgba(255, 255, 255, .26); }
.gcal__nav--off { background: none; }
.gcal__table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 .15rem; text-align: center; }
.gcal__table th { padding: .3rem 0; font-size: var(--t-xs); font-weight: 700; color: rgba(255, 255, 255, .78); text-transform: none; }
.gcal__day { padding: 0; height: 2.75rem; vertical-align: middle; }
.gcal__day--out { color: rgba(255, 255, 255, .35); font-size: var(--t-sm); }
.gcal__num, .gcal__link { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: .95rem; color: #fff; }
.gcal__link { text-decoration: none; font-weight: 800; transition: background-color var(--d-fast) var(--e); }
.gcal__link:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.gcal__dot { position: absolute; bottom: .3rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c-green-300); box-shadow: 0 0 0 2px rgba(8, 20, 36, .55); }
.gcal__day.is-today .gcal__num, .gcal__day.is-today .gcal__link { background: var(--c-green-600); box-shadow: 0 0 0 2px #fff inset; font-weight: 800; }
.gcal__day.is-today .gcal__dot { background: #fff; box-shadow: none; }
.gcal__link:focus-visible, .gcal__nav:focus-visible, .gevents-carousel__btn:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }

/* karusel karet */
.gevents-carousel { position: relative; }
.gevents-carousel__track {
  --cards: 1.35; --gap: 1rem; display: flex; gap: var(--gap); margin: 0; padding: .25rem .25rem 1rem; list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent;
}
@media (min-width: 576px) { .gevents-carousel__track { --cards: 2.4; } }
@media (min-width: 1200px) { .gevents-carousel__track { --cards: 3.4; } }
.gevents-carousel__slide { flex: 0 0 calc((100% - (var(--cards) - 1) * var(--gap)) / var(--cards)); min-width: 0; scroll-snap-align: start; }
.gevents-carousel.has-more::after {   /* přechod na pravém okraji = obsah pokračuje */
  content: ""; position: absolute; top: 0; right: 0; bottom: 3.9rem; width: 3.5rem; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 32, 56, 0), rgba(14, 32, 56, .55));
}
.gevents-carousel__controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .15rem; }
.gevents-carousel.is-static .gevents-carousel__controls { display: none; }
.gevents-carousel__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--c-navy-800); font-size: 1.15rem; box-shadow: var(--sh-1); transition: background-color var(--d-fast) var(--e), opacity var(--d-fast) var(--e);
}
.gevents-carousel__btn:hover:not(:disabled) { background: var(--c-green-100); }
.gevents-carousel__btn:disabled { opacity: .4; }

/* karta akce */
.gevent {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--c-ink);
  background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-1);
  transition: transform var(--d-mid) var(--e), box-shadow var(--d-mid) var(--e);
}
.gevent:hover, .gevent:focus-within { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gevent__media { aspect-ratio: 4 / 3; background: var(--c-beige-100); overflow: hidden; }
.gevent__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gevent__fallback {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3rem; color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, var(--c-green-700), var(--c-navy-700));
}
.gevent__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.gevent__cat { margin: 0; font-size: var(--t-xs); font-weight: 700; color: var(--c-muted); }
.gevent__when { margin: 0; font-size: var(--t-sm); font-weight: 800; color: var(--c-green-700); line-height: 1.4; }
.gevent__time { font-weight: 700; }
.gevent__title { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.gevent__title a { color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.gevent__title a:hover { color: var(--c-green-700); }
.gevent__title a:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }
.gevent:has(.gevent__title a:focus-visible) { outline: 3px solid var(--c-focus-ring); outline-offset: 3px; }
.gevent:has(.gevent__title a:focus-visible) .gevent__title a:focus-visible { outline: 0; }
@media (max-width: 575.98px) { .gevents__all { width: 100%; justify-content: center; } }

/* Stránky komponenty JEvents (Všechny akce, den): široká tabulka měsíce se na telefonu posouvá uvnitř bloku, ne celá stránka */
.pagebody #jevents_body { overflow-x: auto; max-width: 100%; }

/* ==== Stránky komponenty JEvents (/kalendar-akci, výpisy, hledání, detail akce) ve vzhledu GOTIC =====================
   Overrides: html/com_jevents/* (záhlaví, navigace, měsíční mřížka, detail, řádek výpisu). Zbytek je scoped CSS nad markupem JEvents.
   Používá tokeny GOTIC (zelená, navy, béžová, radius, stíny) a Bootstrap 5.3.8; barvy a písma z JEvents (inline styly) se přebíjejí. */
#jevents { color: var(--c-body); }
#jevents a { color: var(--c-green-700); }
#jevents a:hover { color: var(--c-green-900); }
.gjev-title { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.2; color: var(--c-ink); }
.gjev-month { margin: 0 0 1rem; font-size: var(--t-h2); font-weight: 800; line-height: 1.15; color: var(--c-green-700); }
#jevents .jev_clear { clear: both; }

/* tlačítka */
.gjev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: .45rem 1rem;
  font-weight: 700; font-size: .95rem; line-height: 1.2; color: var(--c-navy-800) !important; text-decoration: none; cursor: pointer;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  transition: background-color var(--d-fast) var(--e), border-color var(--d-fast) var(--e), color var(--d-fast) var(--e);
}
.gjev-btn:hover { background: var(--c-green-050); border-color: var(--c-green-500); color: var(--c-green-800) !important; }
.gjev-btn:focus-visible, .gjev-jump summary:focus-visible, #jevents .gjev-cal a:focus-visible, #jevents .ev_link_row:focus-visible,
#jevents input:focus-visible, #jevents select:focus-visible, #jevents .jev_header2 a:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }
.gjev-btn.active, .gjev-btn--primary { background: var(--c-green-600); border-color: var(--c-green-600); color: #fff !important; }
.gjev-btn.active:hover, .gjev-btn--primary:hover { background: var(--c-green-800); border-color: var(--c-green-800); color: #fff !important; }
.gjev-btn--ghost { background: transparent; }

/* navigace pohledů */
.gjev-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.gjev-nav__views .btn-group { flex-wrap: wrap; }
.gjev-nav__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.gjev-jump { position: relative; }
.gjev-jump summary { list-style: none; }
.gjev-jump summary::-webkit-details-marker { display: none; }
.gjev-jump__form {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding: .85rem; min-width: min(22rem, calc(100vw - 2rem)); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-2);
}
.gjev-jump__form .form-select { width: auto; min-height: 2.75rem; flex: 1 1 8rem; }
.gjev-monthnav { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }

/* měsíční mřížka */
.gjev-calwrap { overflow-x: auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.gjev-cal { width: 100%; min-width: 44rem; table-layout: fixed; border-collapse: collapse; background: #fff; }
.gjev-cal th { padding: .7rem .5rem; text-align: center; font-size: var(--t-sm); font-weight: 800; color: #fff; background: var(--c-navy-800); }
.gjev-cal td { height: 6.5rem; padding: .35rem .4rem; vertical-align: top; border: 1px solid var(--c-line-soft); background: #fff; }
.gjev-cal td.gjev-weekend { background: var(--c-beige-050); }
.gjev-cal td.cal_daysoutofmonth { color: var(--c-muted); background: var(--c-beige-100); opacity: .8; }
.gjev-cal .cal_daylink { display: inline-block; text-decoration: none; }
.gjev-cal .listview { display: none; }
.gjev-daynum { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: 1rem; font-weight: 700; color: var(--c-ink); }
.gjev-cal .cal_daylink:hover .gjev-daynum { background: var(--c-green-100); }
.gjev-cal td.is-today { background: var(--c-green-050); box-shadow: inset 0 0 0 2px var(--c-green-600); }
.gjev-cal td.is-today .gjev-daynum { background: var(--c-green-600); color: #fff; }
.gjev-cal td.has-events .gjev-daynum { text-decoration: underline; text-decoration-color: var(--c-green-500); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.gjev-cal .event_div_1, .gjev-cal .event_div_2 { margin-top: .25rem; }
.gjev-cal .month_cell_st {
  width: auto !important; padding: .2rem .45rem !important; font-size: .8125rem; line-height: 1.3;
  background: var(--c-green-050) !important; color: var(--c-ink) !important; border: 0 !important; border-left: 3px solid var(--c-green-600) !important; border-radius: 4px;
}
.gjev-cal .cal_titlelink { color: var(--c-navy-800) !important; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.gjev-cal .cal_titlelink:hover { text-decoration: underline; }
.gjev-empty { margin: 1rem 0 0; padding: 1rem 1.25rem; background: var(--c-beige-100); border: 1px dashed var(--c-line); border-radius: var(--r-md); color: var(--c-muted); }
@media (max-width: 767.98px) {   /* telefon / malý tablet: měsíc jako seznam dnů s akcemi (agenda), bez nacpané mřížky */
  .gjev-calwrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .gjev-cal, .gjev-cal tbody, .gjev-cal tr, .gjev-cal td { display: block; width: auto; min-width: 0; }
  .gjev-cal thead, .gjev-cal td.cal_daysoutofmonth, .gjev-cal td.cal_daysnoevents:not(.is-today) { display: none; }
  .gjev-cal td { height: auto; margin-bottom: .6rem; padding: .75rem .9rem; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
  .gjev-cal .calview { display: none; }
  .gjev-cal .listview { display: inline; font-weight: 800; color: var(--c-green-700); }
  .gjev-cal .gjev-daynum { height: auto; padding: 0; }
}

/* výpisy (den, týden, rok, kategorie, rozsah, výsledky hledání) */
#jevents .jev_toprow { margin-bottom: 1rem; }
#jevents .jev_header2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
#jevents .jev_header2 .currentmonth { order: 0; flex: 1 1 100%; text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }
#jevents .jev_header2 .previousmonth, #jevents .jev_header2 .nextmonth { float: none; width: auto; }
#jevents .jev_header2 .previousmonth { order: 1; }
#jevents .jev_header2 .nextmonth { order: 2; margin-left: auto; }
#jevents .jev_header2 .previousmonth a, #jevents .jev_header2 .nextmonth a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 1rem; font-weight: 700; text-decoration: none;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
#jevents .jev_header2 .previousmonth a:hover, #jevents .jev_header2 .nextmonth a:hover { background: var(--c-green-050); border-color: var(--c-green-500); }
#jev_maincal.jev_listview { margin: 0; }
#jevents .jev_daysnames { margin: 1.25rem 0 .5rem; padding: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; color: var(--c-green-700); border-bottom: 2px solid var(--c-green-100); background: none; text-transform: none; }
#jevents a.ev_link_weekday { text-decoration: none; display: block; }
#jevents .jev_listrow { background: none; padding: 0; }
#jevents .ev_ul { list-style: none; margin: 0 0 1rem; padding: 0; }
#jevents .ev_td_li {
  margin: 0 0 .5rem; padding: .75rem 1rem; list-style: none; background: #fff; border: 1px solid var(--c-line) !important; border-left: 4px solid var(--c-green-600) !important; border-radius: var(--r-sm);
}
.gjev-row { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; }
.gjev-row__when { min-width: 7.5rem; font-weight: 800; color: var(--c-green-700); }
.gjev-row__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; flex: 1 1 14rem; }
.gjev-row__main a { font-weight: 800; color: var(--c-navy-800); text-decoration: none; overflow-wrap: anywhere; }
.gjev-row__main a:hover { color: var(--c-green-700); text-decoration: underline; }
.gjev-row__cat { font-size: var(--t-sm); color: var(--c-muted); }
#jevents .list_no_e { padding: 1rem 1.25rem; background: var(--c-beige-100); border: 1px dashed var(--c-line); border-radius: var(--r-md); color: var(--c-muted); }

/* formuláře (hledání, filtr kategorií) */
#jevents input.inputbox, #jevents input[type="text"], #jevents select {
  min-height: 2.75rem; padding: .4rem .75rem; font-size: 1rem; color: var(--c-ink); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
#jevents input[type="checkbox"] { width: 1.25rem; height: 1.25rem; vertical-align: middle; accent-color: var(--c-green-600); }
#jevents input.button, #jevents button[type="submit"]:not(.gjev-btn) {
  min-height: 2.75rem; padding: .45rem 1.25rem; font-weight: 700; color: #fff; background: var(--c-green-600); border: 1px solid var(--c-green-600); border-radius: var(--r-sm); cursor: pointer;
}
#jevents input.button:hover { background: var(--c-green-800); }
#jevents .jev_pagination { margin: 1rem 0; }
#jevents .jev_pagination label { margin: 0 .5rem; }

/* detail akce */
.gjev-detail { max-width: 60rem; }
.gjev-back { margin: 0 0 1.25rem; }
.gjev-detail__title { margin: 0 0 1.25rem; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.2; overflow-wrap: anywhere; color: var(--c-ink); }
.gjev-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.75rem; padding: 0; }
.gjev-meta__item { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-green-600); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.gjev-meta dt { display: inline-flex; margin: 0; font-size: 1.2rem; color: var(--c-green-700); }
.gjev-meta dd { margin: 0; font-weight: 800; color: var(--c-ink); }
.gjev-figure { margin: 0 0 1.75rem; }
.gjev-figure img { width: auto; height: auto; max-width: 100%; max-height: 32rem; }   /* bez deformace: poměr stran zachován */
.gjev-section { margin: 0 0 1.75rem; }
.gjev-section h2 { margin: 0 0 .6rem; font-size: var(--t-h3); }
.gjev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
@media print { .gjev-actions, .gjev-nav, .gjev-back, .calbar, .gjev-monthnav { display: none !important; } }

/* ---- Přebití výchozího CSS JEvents (jeho pravidla mají selektory s #jevents_body, proto zde stejný základ) ---------------- */
#jevents_body { width: auto !important; padding: 0; background: transparent; border: 0; border-radius: 0; }
#jevents_body .contentpaneopen div, #jevents_body .contentpaneopen p { line-height: inherit; }
#jevents_body .cal_table.gjev-cal { width: 100%; margin: 0; padding: 0; border: 0; background: #fff; }
#jevents_body .gjev-cal td.cal_today, #jevents_body .gjev-cal td.cal_daysnoevents, #jevents_body .gjev-cal td.cal_dayshasevents, #jevents_body .gjev-cal td.cal_daysoutofmonth {
  width: auto; height: 6.5rem; padding: .35rem .4rem; vertical-align: top; border: 1px solid var(--c-line-soft);
}
#jevents_body .gjev-cal td.cal_daysoutofmonth { background: var(--c-beige-100); }
#jevents_body .gjev-cal td.gjev-weekend { background: var(--c-beige-050); }
#jevents_body .gjev-cal td.cal_daysoutofmonth.gjev-weekend { background: var(--c-beige-100); }
#jevents_body .gjev-cal td.is-today { background: var(--c-green-050); box-shadow: inset 0 0 0 2px var(--c-green-600); }
#jevents_body a.cal_daylink, #jevents_body .cal_today a.cal_daylink, #jevents_body a.cal_daylink:link, #jevents_body a.cal_daylink:visited {
  display: inline-block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; width: auto; color: var(--c-ink); text-decoration: none;
}
#jevents_body .cal_today a.cal_daylink:hover, #jevents_body a.cal_daylink:hover { background: none; border: 0; padding: 0; width: auto; color: var(--c-green-800); }
#jevents_body .gjev-cal .month_cell_st {
  padding: .2rem .45rem; background: var(--c-green-050) !important; color: var(--c-ink) !important; border: 0 !important; border-left: 3px solid var(--c-green-600) !important; border-radius: 4px;
}
#jevents_body a.cal_titlelink:link, #jevents_body a.cal_titlelink:visited, #jevents_body a.cal_titlelink:hover { color: var(--c-navy-800); font-weight: 700; text-decoration: none; }
#jevents_body a.cal_titlelink:hover { text-decoration: underline; }
#jevents_body div.event_legend_container { margin-top: 1rem; }
#jevents_body div.event_legend_item { float: none; display: inline-block; margin: 0 1rem .4rem 0; font-size: var(--t-sm); }
#jevents_body div.event_legend_name { border-left-width: 6px; color: var(--c-body); }
@media (max-width: 767.98px) {
  #jevents_body .gjev-cal td.cal_today, #jevents_body .gjev-cal td.cal_daysnoevents, #jevents_body .gjev-cal td.cal_dayshasevents {
    height: auto; margin-bottom: .6rem; padding: .75rem .9rem; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1);
  }
  #jevents_body .gjev-cal td.is-today { box-shadow: inset 0 0 0 2px var(--c-green-600), var(--sh-1); }
  #jevents_body .gjev-cal .listview { display: inline; }
  #jevents_body .gjev-cal .calview { display: none; }
}
/* předchozí / následující období */
#jevents_body .jev_toprow div.previousmonth, #jevents_body .jev_toprow div.nextmonth, #jevents_body .jev_toprow div.currentmonth {
  float: none; width: auto; height: auto; margin: 0; padding: 0; background: none; border: 0; text-align: inherit;
}
#jevents_body .jev_toprow div.previousmonth a, #jevents_body .jev_toprow div.nextmonth a {
  display: inline-flex; align-items: center; width: auto; height: auto; min-height: 2.75rem; margin: 0; padding: .45rem 1rem; float: none;
  font-size: .95rem; font-weight: 700; color: var(--c-navy-800); text-decoration: none; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
#jevents_body .jev_toprow div.previousmonth a::before, #jevents_body .jev_toprow div.previousmonth a::after,
#jevents_body .jev_toprow div.nextmonth a::before, #jevents_body .jev_toprow div.nextmonth a::after { display: none; content: none; }
#jevents_body .jev_toprow div.previousmonth a:hover, #jevents_body .jev_toprow div.nextmonth a:hover { color: var(--c-green-800); background: var(--c-green-050); border-color: var(--c-green-500); }
#jevents_body .jev_toprow div.currentmonth { flex: 1 1 100%; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); text-align: center; }
/* výpisy */
#jevents_body #jev_maincal.jev_listview { background: none; border: 0; }
#jevents_body #jev_maincal.jev_listview .jev_daysnames, #jevents_body .jev_daysnames {
  width: auto; margin: 1.25rem 0 .5rem; padding: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; color: var(--c-green-700); text-align: left; background: none; border: 0; border-bottom: 2px solid var(--c-green-100);
}
#jevents_body ul.ev_ul li.ev_td_li {
  margin: 0 0 .5rem; padding: .75rem 1rem; background: #fff; border: 1px solid var(--c-line) !important; border-left: 4px solid var(--c-green-600) !important; border-radius: var(--r-sm);
}
#jevents_body .jev_listrow { background: none; border: 0; padding: 0; }
#jevents_body div.list_no_e { padding: 1rem 1.25rem; font-weight: 400; background: var(--c-beige-100); border: 1px dashed var(--c-line); border-radius: var(--r-md); color: var(--c-muted); }
#jevents_body .gjev-row__main a.ev_link_row, #jevents_body a.ev_link_row { font-weight: 800; color: var(--c-navy-800); }
/* navigace */
#jevents_body div.new-navigation { display: none; }
#jevents_body .jev_toprow { display: flow-root; margin-bottom: 1.25rem; }
#jevents_body .jev_toprow div.previousmonth::before, #jevents_body .jev_toprow div.previousmonth::after,
#jevents_body .jev_toprow div.nextmonth::before, #jevents_body .jev_toprow div.nextmonth::after { display: none; content: none; }
#jevents_body .gjev-cal tr.cal_cell_rows { height: auto; }
@media (max-width: 767.98px) {
  #jevents_body .gjev-cal tr.cal_cell_rows { display: block; height: auto; }
  #jevents_body .gjev-cal .event_div_1, #jevents_body .gjev-cal .event_div_2 { float: none; width: auto; clear: both; }
}
@media (max-width: 767.98px) {
  #jevents #jevents_body .gjev-cal .cal_daylink .listview { display: inline; font-weight: 800; color: var(--c-green-700); }
  #jevents #jevents_body .gjev-cal .cal_daylink .calview { display: none; }
}
#jevents_body .jev_pagination { text-align: left; }
#jevents_body .jev_pagination form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
#jevents_body .jev_pagination form br { display: none; }
#jevents_body a.cal_daylink, #jevents_body .cal_today a.cal_daylink, #jevents_body a.cal_daylink:link, #jevents_body a.cal_daylink:visited { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; margin: -.4rem 0 -.2rem -.4rem; padding-left: .4rem; }
#jevents_body .gjev-row__main a.ev_link_row { display: inline-flex; align-items: center; min-height: 2.75rem; }
#jevents_body .gjev-row { align-items: center; }

/* ---- Navigační hierarchie JEvents: A přepínač pohledů (.gjev-nav) → B období (.currentmonth) → C předchozí / další (grid, bez float a absolutního umístění) */
#jevents_body .jev_toprow { display: block; margin: 0 0 1.25rem; clear: both; }
#jevents_body .jev_toprow .jev_header2 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "title title" "prev next"; gap: .75rem 1rem; align-items: center; height: auto !important;
}
#jevents_body .jev_toprow div.currentmonth {
  grid-area: title; float: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; line-height: 1.2; text-align: center !important;
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); font-weight: 800; color: var(--c-ink) !important; background: none;
}
#jevents_body .jev_toprow div.previousmonth { grid-area: prev; justify-self: start; }
#jevents_body .jev_toprow div.nextmonth { grid-area: next; justify-self: end; }
#jevents_body .jev_toprow div.previousmonth, #jevents_body .jev_toprow div.nextmonth { float: none; width: auto; height: auto !important; min-height: 0; line-height: 1.2; text-align: inherit !important; }
#jevents_body .jev_toprow div.previousmonth:empty, #jevents_body .jev_toprow div.nextmonth:empty { display: none; }
#jevents_body .jev_toprow .currentmonth .gjev-month { margin: 0; }
#jevents_body #jev_maincal .jev_daysnames, #jevents_body #jev_maincal.jev_listview .jev_daysnames { float: none; width: auto; max-width: none; height: auto; line-height: 1.3; }
#jevents_body #jev_maincal .jev_daysnames::first-letter { text-transform: uppercase; }
#jevents_body #jev_maincal { clear: both; }
@media (max-width: 479.98px) { #jevents_body .jev_toprow div.previousmonth a, #jevents_body .jev_toprow div.nextmonth a { padding-inline: .75rem; } }
#jevents_body .jev_toprow div.previousmonth a, #jevents_body .jev_toprow div.nextmonth a { background-image: none !important; background-color: #fff !important; }
#jevents_body .jev_toprow div.previousmonth a:hover, #jevents_body .jev_toprow div.nextmonth a:hover { background-color: var(--c-green-050) !important; }
