/* ============================================================
   KČT Šumperk – Veřejný web
   Mobile-first, zelená + bílá příroda/turistika
   ============================================================ */

/* ── CSS proměnné ─────────────────────────────────────────── */
:root {
  --green-dark:   #2d6a4f;
  --green-mid:    #40916c;
  --green-light:  #d8f3dc;
  --green-xlight: #f0faf3;
  --white:        #ffffff;
  --text:         #1b1b1b;
  --text-muted:   #6b7280;
  --border:       #b7d8c4;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --radius:       10px;
  --radius-sm:    6px;
  --font:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --container:    1140px;
  --transition:   .2s ease;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #f8faf9;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.site-main {
  flex: 1;
}

.site-main > .container {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 32px 28px;
  min-height: 100%;
}

/* ── Header & navigace ────────────────────────────────────── */
.site-header {
  background: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.site-logo:hover {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
}
.site-logo img { width: 44px; height: 44px; border-radius: 6px; }
.logo-fallback {
  width: 44px; height: 44px;
  background: var(--green-mid);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.logo-text strong { display: block; font-size: .95rem; line-height: 1.2; }
.logo-text small  { display: block; font-size: .72rem; opacity: .8; }

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Nav */
.site-nav { display: none; }
.site-nav.open { display: block; }

.nav-links {
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--green-dark);
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.nav-links li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,.88);
  font-size: .93rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}
.nav-links li a.active { font-weight: 600; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav-burger { display: none; }
  .site-nav { display: block; }
  .nav-links {
    position: static;
    display: flex;
    padding: 0;
    border: none;
    background: none;
    gap: 2px;
  }
  .nav-links li a { padding: 8px 14px; border-radius: var(--radius-sm); }
}

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  padding: 36px 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline:hover {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}
.btn-sm { padding: 6px 13px; font-size: .83rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Alert ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: .9rem;
  border-left: 4px solid transparent;
}
.alert-success { background: var(--green-light); border-color: var(--green-mid); color: #1b4332; }
.alert-danger   { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.alert-warning  { background: #fef9c3; border-color: #eab308; color: #713f12; }
.alert-info     { background: #dbeafe; border-color: #3b82f6; color: #1e3a8a; }

/* ── Cards (aktuality) ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card-grid--list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-image { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-image img { transform: scale(1.04); }

.card-body { padding: 18px; }
.card-date { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green-dark); text-decoration: none; }
.card-excerpt { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }

/* Řádkový layout aktualit na úvodní stránce */
.card--news {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.card--news .card-image {
  flex: 0 0 240px;
  aspect-ratio: unset;
  min-height: 160px;
}
.card--news .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card--news .card-excerpt { flex: 1; }
.card--news .card-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-read-more {
  align-self: flex-end;
  font-size: .85rem;
  color: var(--green-dark);
  font-weight: 500;
}
.card-read-more:hover { text-decoration: underline; color: var(--green-dark); }
.card--news .attachment-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card--news .attachment-list-inline li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  transition: background var(--transition);
}
.card--news .attachment-list-inline li a:hover {
  background: var(--green-xlight);
  text-decoration: none;
}
@media (max-width: 580px) {
  .card--news { flex-direction: column; }
  .card--news .card-image { flex: unset; min-height: unset; aspect-ratio: 16/9; }
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--green-mid);
  font-size: .88rem;
  text-decoration: none;
  transition: background var(--transition);
}
.pagination-btn:hover { background: var(--green-light); text-decoration: none; }
.pagination-btn.active {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

/* ── Article detail ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green-mid); }

.article-detail { max-width: 780px; margin-inline: auto; }
.article-header { margin-bottom: 24px; }
.article-date { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: 8px; }
.article-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--green-dark); line-height: 1.3; }

.article-hero-image {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero-image img { width: 100%; max-height: 500px; object-fit: cover; }

.article-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Přílohy */
.article-attachments {
  background: var(--green-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 32px;
}
.article-attachments h3 { font-size: 1rem; margin-bottom: 12px; color: var(--green-dark); }
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .88rem;
  transition: background var(--transition);
  text-decoration: none;
}
.attachment-link:hover { background: var(--green-light); text-decoration: none; }
.attachment-size { color: var(--text-muted); margin-left: auto; }

/* ── WYSIWYG obsah ────────────────────────────────────────── */
.wysiwyg { line-height: 1.75; }
.wysiwyg h1,.wysiwyg h2,.wysiwyg h3 { color: var(--green-dark); margin: 1.2em 0 .5em; line-height: 1.3; }
.wysiwyg h2 { font-size: 1.4rem; }
.wysiwyg h3 { font-size: 1.15rem; }
.wysiwyg p  { margin-bottom: 1em; }
.wysiwyg ul,.wysiwyg ol { padding-left: 1.5em; margin-bottom: 1em; }
.wysiwyg li { margin-bottom: .4em; }
.wysiwyg a  { color: var(--green-mid); }
.wysiwyg img { border-radius: var(--radius-sm); margin-block: 1em; }
.wysiwyg table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.wysiwyg th, .wysiwyg td { border: 1px solid var(--border); padding: 8px 12px; }
.wysiwyg th { background: var(--green-light); }

/* ── Rozhledna ────────────────────────────────────────────── */
.rozhledna-stav-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius);
  border: 2px solid;
  margin-bottom: 32px;
}
.rozhledna-stav-box--otevreno {
  background: #d1fae5;
  border-color: #34d399;
  color: #065f46;
}
.rozhledna-stav-box--zavreno {
  background: #fee2e2;
  border-color: #f87171;
  color: #7f1d1d;
}
.rozhledna-stav-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.rozhledna-stav-box strong { display: block; font-size: 1.05rem; }
.rozhledna-stav-cas { display: block; font-size: .8rem; margin-top: 3px; opacity: .75; }
a.rozhledna-stav-box--link {
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s, box-shadow .15s;
}
a.rozhledna-stav-box--link:hover {
  filter: brightness(.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.rozhledna-stav-arrow { margin-left: auto; font-size: 1.6rem; line-height: 1; opacity: .6; }

/* Provozní doba – strukturovaný přehled
   3 sloupce: [název měsíce 90px] [dny max-content] [časy auto]
   Subgrid zajistí, že max-content se počítá přes VŠECHNY měsíce najednou. */
.provozni-doba-prehled {
  display: grid;
  grid-template-columns: 90px max-content auto;
}
.provozni-doba-mesic {
  grid-column: 1 / -1;           /* zabere všechny 3 sloupce */
  display: grid;
  grid-template-columns: subgrid; /* zdědí 90px | max-content | auto */
  align-items: start;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.provozni-doba-mesic:last-child { border-bottom: none; }
.provozni-doba-mesic[hidden] { display: none; }
.provozni-doba-mesic--aktualni .provozni-doba-mesic-nazev { color: #16a34a; font-weight: 800; }
.provozni-doba-mesic-nazev { font-weight: 600; font-size: .9rem; }
.provozni-doba-radky {
  grid-column: span 2;           /* zabere sloupce 2+3 (dny + časy) */
  display: grid;
  grid-template-columns: subgrid; /* zdědí max-content | auto */
  row-gap: 2px;
  align-items: baseline;
}
.provozni-doba-radek { display: contents; }
.provozni-doba-dny { font-size: .88rem; }
.provozni-doba-radek--mimoradny .provozni-doba-dny,
.provozni-doba-radek--mimoradny .provozni-doba-cas { color: #1d4ed8; font-size: .83rem; }
.provozni-doba-radek--mimoradny em { font-style: normal; opacity: .75; }
.provozni-doba-cas { white-space: nowrap; font-weight: 600; font-size: .85rem; }
.provozni-doba-toggle {
  margin-top: 10px;
  text-align: center;
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-mid);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--green-dark); }

.rozhledna-foto {
  margin-bottom: 28px;
}
.rozhledna-foto .rozhledna-img {
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rozhledna-doba {
  margin-bottom: 32px;
}
.info-box {
  background: var(--green-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.info-box--green h2 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 12px; }
.oteviracidoba p { margin-bottom: 4px; font-size: .93rem; }
.rozhledna-info { margin-bottom: 40px; }

/* ── Fotogalerie přehled ──────────────────────────────────── */
.gallery-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }

.gallery-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-light);
}
.gallery-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-card:hover .gallery-card-thumb img { transform: scale(1.06); }
.gallery-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--green-mid);
}
.gallery-card-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 20px;
}
.gallery-card-info { padding: 14px; }
.gallery-card-date { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.gallery-card-title { font-size: .97rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.gallery-card-anotace { font-size: .83rem; color: var(--text-muted); margin-bottom: 6px; }
.gallery-card-akce-tag { font-size: .78rem; color: var(--green-mid); }

/* ── Fotogalerie detail (lightbox grid) ───────────────────── */
.gallery-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.gallery-date { display: block; font-size: .83rem; color: var(--text-muted); margin-bottom: 4px; }
.gallery-detail-header h1 { font-size: 1.7rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.gallery-anotace { color: var(--text-muted); margin-bottom: 8px; }
.gallery-akce-link { font-size: .88rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 540px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-thumb {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--green-light);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .75rem;
  padding: 20px 8px 6px;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-thumb:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-count { font-size: .83rem; color: var(--text-muted); text-align: right; }

/* ── Archív akcí ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-label { font-size: .83rem; color: var(--text-muted); margin-right: 4px; }
.filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--green-mid);
  font-size: .83rem;
  text-decoration: none;
  transition: background var(--transition);
}
.filter-btn:hover { background: var(--green-light); text-decoration: none; }
.filter-btn.active { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }

.akce-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }

.akce-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.akce-item:first-child { border-top: 1px solid var(--border); }

.akce-date-col { flex-shrink: 0; }
.akce-date-box {
  width: 64px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.akce-day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.akce-month { font-size: .75rem; text-transform: uppercase; opacity: .85; }
.akce-year  { font-size: .7rem; opacity: .7; margin-top: 2px; }

.akce-content { flex: 1; min-width: 0; }
.akce-title { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.akce-popis { font-size: .9rem; }

.akce-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--green-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--green-mid);
  font-size: .85rem;
  text-decoration: none;
  transition: background var(--transition);
}
.akce-gallery-link:hover { background: var(--green-light); text-decoration: none; }
.akce-gallery-link img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }

/* ── Kontakty ─────────────────────────────────────────────── */
.kontakty-organizace { margin-bottom: 32px; }
.kontakty-udaje {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.kontakty-udaje dt { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.kontakty-udaje dd { margin: 0; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 500px)  { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .contacts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .contacts-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); }

.contact-photo { margin-bottom: 14px; }
.contact-photo img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  border: 3px solid var(--green-light);
}
.contact-photo-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--green-light);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.contact-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.contact-role { font-size: .83rem; color: var(--green-mid); font-weight: 500; margin-bottom: 10px; }
.contact-details { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; }
.contact-details li { display: flex; align-items: center; justify-content: center; gap: 6px; }
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--green-mid); }
.contact-icon { font-size: 1em; }
.contact-extra { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 16px 24px;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 10px; }
.footer-col p, .footer-col li { font-size: .85rem; margin-bottom: 5px; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 14px 16px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

/* ── Carousel ─────────────────────────────────────────────── */
.carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: transparent;
}
@media (min-width: 600px)  { .carousel { height: 220px; } }
@media (min-width: 1000px) { .carousel { height: 260px; } }

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(100% / 3);
  height: 100%;
  padding: 0 3px;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.38);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ── 404 ──────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 80px 20px;
}
.not-found h1 { font-size: 5rem; color: var(--green-light); font-weight: 900; }
.not-found p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Statické stránky ─────────────────────────────────────── */
.stranka-obsah { max-width: 860px; margin: 32px auto; }
.soubory-list { list-style: none; padding: 0; }
.soubory-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.soubory-list li:last-child { border-bottom: none; }
.soubory-list a { color: var(--green-mid); font-weight: 500; }
