/* Náhledy */
.design-preview {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid #c6c4af;
  border-radius: 6px;
  background: var(--paper);
  font-size: 13px;
}

.design-preview a {
  padding: 8px;
  color: var(--olive);
}

.design-preview a[aria-current] { font-weight: bold; }

@media print {
  .design-preview { display: none; }
}

@font-face {
  font-family: "EB Garamond SC";
  src: url("../fonts/EBGaramondSC12-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4e9;
  --olive: #485321;
  --red: #99150f;
  --ink: #373327;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

img {
  display: block;
  max-width: 100%;
}

p { margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

.page {
  --intro-top: clamp(36px, 4.5vw, 70px);
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background: #dedec9;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #f6efdb 0%, #f6efdb 20%, #f6efdbeb 30%, #f6efdb99 43%, #f6efdb00 65%), url("../img/aktualni.jpeg") calc(50% + 18vw) 58% / cover no-repeat;
  background-color: #f6efdb;
}

.intro {
  width: 82%;
  margin: auto;
  padding-top: var(--intro-top);
}

.identity {
  display: block;
  width: clamp(145px, 15vw, 220px);
  margin-left: 16px;
}

.identity img {
  width: 100%;
  height: auto;
}

h1 {
  color: var(--olive);
  text-shadow: 0 2px 18px #fff9e9, 0 0 40px #fff9e9b3;
  font-family: "EB Garamond SC", Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 6.6vw, 96px);
  line-height: .9;
  margin: 54px 0 25px;
  letter-spacing: .015em;
}

h1 span { display: block; }

h1 span:last-child { color: var(--red); }

.location-card {
  position: absolute;
  --map-inset: clamp(20px, 2vw, 40px);
  top: var(--intro-top);
  right: var(--map-inset);
  width: clamp(280px, 25vw, 360px);
  overflow: hidden;
  border: 1px solid #fff9e9b3;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 40px #292b2533;
}

.location-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: var(--red);
}

.location-heading svg { flex-shrink: 0; }
.location-heading > svg:first-child { width: 20px; height: 20px; }

.location-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.location-card iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  background: #e5e4d7;
}

.directions-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 12px 20px;
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
}

.directions-link:hover { background: #eee7d8; }

.directions-link:focus-visible { outline-offset: -5px; }

.directions-link span {
  font-family: sans-serif;
  font-size: 22px;
}

.when {
  color: var(--olive);
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: .2em;
}

.when::before {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-bottom: 24px;
  background: #8e8c61;
}

.when strong {
  display: block;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: .025em;
  color: var(--red);
  margin-top: 7px;
}

.page::after,
.sypka-section::after {
  pointer-events: none;
}

#fotografie { scroll-margin-top: 20px; }

.page::after,
.sypka-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 42px;
  background: var(--paper);
  clip-path: polygon(0 28%, 3% 53%, 6% 49%, 9% 69%, 13% 62%, 17% 78%, 22% 70%, 27% 80%, 31% 71%, 36% 83%, 41% 78%, 46% 95%, 51% 88%, 55% 91%, 59% 76%, 63% 84%, 68% 67%, 72% 73%, 77% 51%, 82% 60%, 87% 46%, 91% 49%, 95% 25%, 98% 20%, 100% 0, 100% 100%, 0 100%);
}

.sypka-section {
  position: relative;
  isolation: isolate;
  padding: 30px 24px 58px;
  background: var(--paper);
}

.invitation {
  text-align: center;
  max-width: 760px;
  margin: auto;
}

.invitation-heading { margin: 0 auto 26px; }

.invitation-heading img { width: 100%; }

.description {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
}

.description span { display: block; }

.offer {
  font-size: clamp(24px, 2.4vw, 33px);
  color: var(--olive);
  margin: 26px 0 12px;
}

.respect {
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.5;
}

.welcome {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
  font-style: italic;
  color: #6b6558;
}

.welcome::before {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: #9c9c7b;
  margin: 0 auto 20px;
}

.welcome strong { font-weight: 400; }

.sypka-section::after {
  background: #eee7d8;
  height: 5px;
  clip-path: polygon(0 40%, 18% 20%, 38% 45%, 60% 25%, 82% 40%, 100% 20%, 100% 100%, 0 100%);
}

.gallery-section {
  padding: 30px 5.4% 22px;
  background: radial-gradient(ellipse at 70% 40%, #faf7ef, transparent 75%), #eee7d8;
}

.gallery-item {
  display: block;
  grid-column: span 3;
  aspect-ratio: 1.55;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px #342d2626;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.02); }
}

.lightbox {
  border: 0;
  padding: 50px 70px;
  background: #24231ff5;
  color: #fff;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
}

.lightbox::backdrop { background: #24231f; }

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox figure {
  margin: 0;
  max-width: 1200px;
}

.lightbox-image {
  max-height: 80dvh;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox figcaption {
  text-align: center;
  font-size: 14px;
  margin-top: 18px;
  color: #ddd8cd;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(247, 243, 234, 0.22);
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.04);
  color: #f7f3ea;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox button:hover {
  background: rgba(247, 243, 234, 0.14);
  border-color: rgba(247, 243, 234, 0.55);
}

.lightbox button:focus-visible {
  outline: 2px solid #f7f3ea;
  outline-offset: 4px;
}

.lightbox button svg { pointer-events: none; }

.lightbox-close {
  right: 20px;
  top: 15px;
}

.lightbox-nav { top: calc(50% - 26px); }

.lightbox-prev { left: 15px; }

.lightbox-next { right: 15px; }

body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .intro { width: 88%; }

  .location-card { width: 290px; }

  .location-heading {
    padding: 14px;
    gap: 8px;
  }

  .location-title { font-size: 16px; }
}

@media (max-width: 760px) {
  .page {
    height: auto;
    min-height: 0;
    padding: 24px 20px 38px;
    background: var(--paper);
    z-index: 1;
  }

  .page::before {
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, #f7f4e9 0%, #f7f4e9f5 45%, #f7f4e9d9 72%, #f7f4e980 100%), url("../img/aktualni.jpeg") center bottom / cover no-repeat;
  }

  .intro {
    display: grid;
    grid-template-columns: clamp(72px, 22vw, 92px) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    width: min(100%, 440px);
    padding: 0;
    margin: 0 auto;
  }

  .intro .identity { width: 100%; margin: 0; }
  .intro h1 { margin: 0; font-size: clamp(30px, 8vw, 42px); line-height: 1.05; }
  .intro .intro-schedule { grid-column: 1 / -1; margin-top: 28px; }
  .intro .intro-links { grid-column: 1 / -1; margin-top: 28px; }
  .intro .schedule-link { width: 100%; margin-top: 24px; min-height: 50px; }

  .identity {
    width: clamp(185px, 50vw, 220px);
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(44px, 12vw, 64px);
    line-height: .98;
    margin: 24px 0 20px;
  }

  .when {
    font-size: 18px;
    letter-spacing: .16em;
  }

  .when::before {
    width: 42px;
    margin-bottom: 16px;
  }

  .when strong {
    font-size: clamp(34px, 9vw, 44px);
    margin-top: 4px;
    white-space: nowrap;
  }

  .location-card {
    position: relative;
    inset: auto;
    width: min(100%, 440px);
    margin: 48px auto 0;
    border-radius: 8px;
    box-shadow: 0 6px 22px #292b2526;
  }

  .location-heading {
    padding: 12px 14px;
    gap: 9px;
  }

  .location-title { margin: 0; font-size: 16px; }

  .location-heading svg {
    width: 21px;
    height: 21px;
  }

  .location-card iframe { height: 175px; }

  .directions-link {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .page::after { height: 22px; }

  .sypka-section { padding: 28px 22px 38px; }

  .invitation { max-width: 440px; }

  .description {
    font-size: 18px;
    line-height: 1.55;
  }

  .description span {
    margin-top: 5px;
    text-wrap: pretty;
  }

  .offer {
    font-size: 23px;
    margin: 20px 0 10px;
    text-wrap: balance;
  }

  .respect {
    font-size: 17px;
    line-height: 1.5;
    text-wrap: balance;
  }

  .welcome {
    font-size: 17px;
    margin-top: 20px;
  }

  .welcome::before {
    margin-bottom: 16px;
    width: 42px;
  }

  .gallery-section { padding: 14px 14px 20px; }

  .gallery-item {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    background: #e5dfd1;
    color: var(--ink);
  }

  .lightbox { padding: 64px 12px 100px; }

  .lightbox-nav {
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  .lightbox-prev { left: calc(50% - 60px); }

  .lightbox-next { right: calc(50% - 60px); }

  .lightbox-image { max-height: calc(100dvh - 210px); }

  .lightbox figcaption {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 12px;
  }
}

@media (min-width: 761px) {
  .intro h1,
  .intro .when {
    margin-left: 36px;
  }

  .page { --intro-top: min(42px, 3svh); }

  .identity { width: min(clamp(145px, 15vw, 220px), 16svh); }

  h1 {
    font-size: min(clamp(56px, 6.6vw, 96px), 8.5svh);
    margin-top: min(32px, 3svh);
    margin-bottom: min(18px, 2svh);
  }

  .when::before { margin-bottom: min(18px, 1.5svh); }

  .when strong { font-size: min(clamp(38px, 4.4vw, 64px), 8svh); }

  .location-card iframe { height: min(220px, 30svh); }
}

.location-heading {
  cursor: pointer;
  list-style: none;
  min-height: 64px;
}

.location-heading::-webkit-details-marker { display: none; }

.location-heading:hover { background: #eee7d8; }

.location-heading:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -4px;
  border-radius: 8px;
}

.location-title { flex: 1; }

.location-chevron { transition: transform .2s ease; }

.location-card[open] .location-chevron { transform: rotate(180deg); }

.map-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.map-links .directions-link {
  gap: 8px;
  padding: 12px;
  font-size: 14px;
}

.map-links .directions-link+.directions-link { border-left: 1px solid #ded8c8; }

@media (max-width: 760px) {
  .intro {
    position: relative;
    background: transparent;
  }

  .location-card { overflow: hidden; }

  .location-heading { border-radius: 8px; }

  .location-card[open] .location-heading { border-radius: 8px 8px 0 0; }

  .location-panel {
    position: static;
    background: var(--paper);
  }
}

@keyframes scene-arrive {
  from { opacity: 0; }

  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .page::before { animation: scene-arrive .6s ease-out; }

  .intro h1,
  .when {
    animation: scene-arrive .45s ease-out;
  }
}

/* Odsazení hlavních sekcí */

.sypka-section { padding-top: 6px; }

.gallery-section {
  padding-top: 20px;
  padding-bottom: 28px;
}

@media (max-width: 760px) {
  .gallery-section {
    padding-top: 14px;
    padding-bottom: 20px;
  }
}

/* Fotografie rekonstrukce a podpora */

.progress-inner,
.support-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.progress-section {
  padding-top: 48px;
  padding-bottom: 60px;
}

.eyebrow {
  color: var(--olive);
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 16px;
  letter-spacing: .12em;
}

.progress-heading {
  max-width: 780px;
  margin: 0 0 42px;
}

.progress-heading h2,
.support-story h2 {
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: clamp(34px, 3.4vw, 48px);
  color: var(--olive);
  font-weight: 400;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.progress-heading > p:last-child { color: #655f51; }

.current-granary {
  margin: 1em 0 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}

.current-granary .gallery-item {
  grid-column: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.current-granary img { object-fit: contain; }

.current-granary figcaption {
  padding: clamp(24px, 4vw, 54px);
  align-self: center;
}

.current-granary h3 {
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  margin: 16px 0;
  color: var(--red);
}

.current-granary figcaption > p {
  font-size: 18px;
  line-height: 1.6;
}

.gallery-chapter { display: flow-root; }

.gallery-chapter + .gallery-chapter { margin-top: 64px; }

.chapter-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.chapter-number {
  color: var(--red);
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
}

.chapter-heading h3 {
  scroll-margin-top: 26px;
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--olive);
  margin: 0;
}

.progress-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 11px;
}

.progress-gallery .gallery-item {
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}

.progress-gallery .gallery-item:nth-child(-n+2) {
  grid-column: span 6;
  aspect-ratio: 2;
}

.progress-gallery .portrait-photo img {
  object-fit: contain;
  background: #e0d8c7;
}

.support-section {
  padding: 80px 5.4% 25px;
  background: var(--paper);
}

.support-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.support-story > p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.7;
  margin-top: 18px;
}

.support-story .support-thanks {
  font-style: italic;
  color: var(--olive);
}

.donation-card {
  padding: 24px 0 0;
  border: 0;
  border-top: 2px solid var(--red);
  background: transparent;
}

.donation-card h3 {
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--red);
  margin: 0 0 16px;
}

.donation-card p { line-height: 1.6; }

.donation-card dl { margin: 26px 0 20px; }

.donation-card dt {
  color: #655f51;
  font-size: 14px;
  margin: 16px 0 6px;
}

.donation-card dd { margin: 0; }

.account-number {
  color: var(--red);
  font-size: clamp(23px, 2.5vw, 32px);
}

.iban {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.account-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.copy-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  color: var(--olive);
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 8px 4px;
  cursor: pointer;
  min-height: 44px;
}

.copy-account[hidden] { display: none; }

.copy-account svg { flex-shrink: 0; }

.copy-account:hover {
  color: var(--red);
  background: #eee7d866;
}

.copy-status {
  font-size: 14px;
  color: var(--olive);
}

.copy-status:not(:empty) { margin-top: 8px; }

.donation-note {
  font-size: 15px;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .progress-section {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .progress-heading { padding: 0 6px; }

  .current-granary,
  .support-inner {
    grid-template-columns: 1fr;
  }

  .current-granary figcaption { padding: 23px; }

  .current-granary h3 { margin: 10px 0; }

  .current-granary figcaption > p { font-size: 17px; }

  .chapter-heading { gap: 12px; }

  .chapter-heading h3 { font-size: 27px; }

  .progress-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .progress-gallery .gallery-item {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .progress-gallery .gallery-item:nth-child(-n+2) {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }

  .support-section { padding: 49px 20px 22px; }

  .support-story > p:not(.eyebrow) { font-size: 18px; }
}

.progress-heading > p:last-child {
  font-size: 20px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .progress-heading > p:last-child { font-size: 18px; }

  .donation-card { padding-top: 22px; }
}

.donation-qr { margin-top: 28px; }

.donation-qr h4 {
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--olive);
  margin: 0;
}

.donation-qr > p {
  font-size: 15px;
  color: #655f51;
}

.qr-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.qr-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--red);
  text-decoration: none;
}

.qr-option img {
  width: 100%;
  height: auto;
}

@media (max-width: 420px) {
  .qr-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .qr-option:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 12px) / 2);
    justify-self: center;
  }
}

/* Odsazení pozvánky a fotografií */

.sypka-section { padding-bottom: 22px; }

.invitation-heading {
  width: clamp(145px, 12vw, 180px);
  margin-bottom: 18px;
}

.offer {
  margin-top: 18px;
  margin-bottom: 10px;
}

.welcome { margin-top: 18px; }

.welcome::before { margin-bottom: 14px; }

@media (max-width: 760px) {
  .sypka-section {
    padding-top: 6px;
    padding-bottom: 20px;
  }

  .invitation-heading {
    width: 130px;
    margin-bottom: 16px;
  }

  .gallery-chapter + .gallery-chapter { margin-top: 48px; }
}

.gallery-chapter[aria-labelledby="chapter-03"] { margin-top: 80px; }

@media (max-width: 760px) {
  .gallery-chapter[aria-labelledby="chapter-03"] { margin-top: 60px; }
}

/* QR platby */

.qr-options { gap: 16px; }

.qr-option {
  font: inherit;
  cursor: pointer;
  min-width: 0;
  padding: 14px 8px 12px;
  background: #eee7d866;
  border: 1px solid #d8ceba;
  border-radius: 7px;
  gap: 12px;
}

.qr-option img { max-width: 128px; }

.qr-option span {
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: 22px;
}

.qr-option:hover { background: #e9e0cf; }

.qr-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 30px 24px 24px;
  border: 1px solid #d8ceba;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.qr-dialog::backdrop { background: #24231fc9; }

.qr-dialog h2 {
  font-family: "EB Garamond SC", Georgia, serif;
  font-weight: 400;
  color: var(--red);
  font-size: 30px;
  margin: 12px 0 20px;
}

.qr-large {
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto 18px;
}

.qr-dialog > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.5;
}

.qr-close {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 30px;
  cursor: pointer;
}

.qr-download {
  display: inline-block;
  padding: 12px 18px;
  margin-top: 16px;
  background: var(--olive);
  color: var(--paper);
  border-radius: 3px;
  text-decoration: none;
}

.qr-option img,
.qr-large {
  border-radius: 6px;
}

/* Úvod a otevírací doba */

.intro-schedule { width: 100%; max-width: 460px; }

/* Časová osa setkání */
.meeting-timeline {
  --timeline-axis: 8px;
  --timeline-indent: 34px;
  position: relative;
  margin-top: 12px;
}

.meeting-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--timeline-axis) - 1px);
  width: 2px;
  background: #aeb596;
}

.meeting-item { position: relative; padding-left: var(--timeline-indent); }
.meeting-label {
  margin-bottom: 7px;
  color: var(--olive);
  font: 400 15px/1.25 'EB Garamond SC', Georgia, serif;
  letter-spacing: .07em;
}

.meeting-date { position: relative; }
.meeting-date::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(var(--timeline-axis) - var(--timeline-indent));
  transform: translateX(-50%);
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--paper);
}

.meeting-weekday {
  display: block;
  margin-bottom: 5px;
  color: var(--olive);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.meeting-date strong {
  display: block;
  color: var(--olive);
  font-family: 'EB Garamond SC', Georgia, serif;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}
.meeting-item-nearest .meeting-date strong { color: var(--red); }
.meeting-item-nearest .meeting-date::before { border-color: var(--red); background: var(--red); }

.meeting-hours {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.meeting-hours svg { flex-shrink: 0; }
.meeting-hours > span { white-space: nowrap; }
.meeting-note { margin-top: 7px; color: var(--ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.meeting-item + .meeting-item { margin-top: 18px; padding-top: 18px; }
.meeting-item + .meeting-item::after { content: ""; position: absolute; top: 0; left: 34px; right: 0; height: 1px; background: #aeb596; }

@keyframes timeline-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes timeline-item-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .meeting-timeline::before { transform-origin: top; animation: timeline-grow .55s ease-out both; }
  .meeting-item { animation: timeline-item-arrive .42s ease-out .12s both; }
  .meeting-item + .meeting-item { animation-delay: .28s; }
}

@media (min-width: 761px) and (max-height: 950px) {
  .intro h1 { margin-top: min(24px, 2svh); }
  .meeting-label { margin-bottom: 5px; font-size: 14px; }
  .meeting-weekday { margin-bottom: 3px; }
  .meeting-date strong { font-size: 27px; }
  .meeting-hours { margin-top: 6px; font-size: 19px; }
  .meeting-note { margin-top: 5px; font-size: 14px; line-height: 1.35; }
  .meeting-item + .meeting-item { margin-top: 12px; padding-top: 12px; }
}

@media (max-width: 760px) {
  .meeting-item { --timeline-indent: 30px; }
  .meeting-date::before { top: 29px; }
  .meeting-date strong { font-size: clamp(24px, 6.5vw, 30px); }
  .meeting-hours { font-size: 20px; }
  .meeting-item + .meeting-item::after { left: 30px; }
}

.schedule-link,
.intro-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #aeb596;
  border-radius: 5px;
  color: var(--olive);
  background: #f7f4e9ed;
  text-decoration: none;
  box-shadow: 0 2px 5px #3733270d;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.schedule-link {
  margin-top: 18px;
  border-color: var(--olive);
  background: var(--olive);
  color: var(--paper);
  font-size: 16px;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 30px;
}

.intro-links a { font-size: 15px; }

.schedule-link:hover {
  border-color: #343f13;
  background: #343f13;
  color: var(--paper);
  box-shadow: 0 3px 10px #37332722;
}

.intro-links a:hover {
  border-color: #7d895c;
  background: #e8eadc;
  color: var(--olive);
  box-shadow: 0 3px 10px #37332718;
}

.schedule-link svg,
.intro-links svg {
  flex-shrink: 0;
}

.intro-action-arrow {
  margin-left: 4px;
  opacity: .75;
}

/* Termíny a společné nadpisy */

.dates,
.branches-inner {
  max-width: 1100px;
  margin-inline: auto;
}

.dates {
  padding: 52px 0 24px;
  scroll-margin-top: 24px;
}

.dates-heading {
  text-align: center;
  margin-bottom: 28px;
}

.dates-heading h2,
.branches-heading h2 {
  margin: 8px 0 14px;
  color: var(--olive);
  font-family: "EB Garamond SC", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
}

.dates-heading > p:last-child,
.branches-heading > p:last-child {
  font-size: 18px;
  line-height: 1.6;
}

.date-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.date-card {
  padding: 24px 28px;
  background: #eee7d866;
  border: 1px solid #d8ceba;
  border-left: 4px solid #b3ad92;
  border-radius: 4px;
}

.date-card-next {
  background: #e8eadc;
  border-color: #b0b598;
  border-left-color: var(--olive);
}

.date-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.date-heading h3 {
  margin: 0;
  color: var(--olive);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 30px);
}

.date-badge {
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--olive);
  color: var(--paper);
  font-size: 13px;
}

.date-hours {
  margin-top: 12px;
  color: var(--red);
  font-size: 22px;
}

.date-hours > span {
  display: inline-block;
  color: var(--ink);
  font-size: 16px;
  margin-right: 18px;
}

.date-note {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 17px;
  overflow-wrap: anywhere;
}

/* Pobočky – tabulka a kontakty */

.branches-section {
  padding: 58px 5.4% 64px;
  background: #e9e8da;
  scroll-margin-top: 0;
}

.branches-heading {
  max-width: 660px;
  margin-bottom: 30px;
}

.branches-table-wrap { overflow-x: auto; }

.branches-table-wrap:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.branches-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

.branches-table caption {
  text-align: left;
  color: #655f51;
  font-size: 14px;
  margin-bottom: 14px;
}

.branches-table th,
.branches-table td {
  padding: 22px 18px;
  vertical-align: top;
  border-bottom: 1px solid #c6c4af;
  overflow-wrap: normal;
}

.branches-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--olive);
  font-size: 15px;
  border-top: 2px solid var(--olive);
}

.branches-table tbody th {
  color: var(--olive);
  font-size: 21px;
  font-weight: 400;
}

.branches-table a {
  color: var(--olive);
  text-underline-offset: 4px;
}

.branch-detail {
  display: block;
  margin-top: 7px;
  color: #655f51;
  font-size: 15px;
  font-weight: 400;
}

/* Responzivní úpravy úvodu, termínů a tabulky */

@media (min-width: 761px) {
  .page {
    height: 100svh;
    min-height: 0;
    padding-bottom: 24px;
  }

  .intro-schedule,
  .intro-links {
    margin-left: 36px;
  }

  .intro .intro-schedule .when { margin-left: 0; }

  .intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: calc(92svh - 24px);
  }

  .intro-schedule {
    max-width: min(460px, 47vw);
    margin-top: auto;
  }

  .intro-schedule-default { margin-top: min(80px, 8svh); }

  .schedule-link,
  .intro-links a {
    min-height: min(48px, 8svh);
    padding-block: min(12px, 1.5svh);
  }

  .schedule-link,
  .intro-links {
    margin-top: min(34px, 3.5svh);
  }

  .intro-links {
    margin-bottom: clamp(32px, 5svh, 64px);
    padding-bottom: 0;
  }

}

/* Nízká okna */
@media (min-width: 761px) and (max-height: 740px) {
  .intro {
    display: grid;
    min-height: 0;
    grid-template-columns: min(110px, 16svh) 1fr;
    align-items: center;
    gap: 10px 24px;
  }

  .intro .identity { width: 100%; margin: 0; }
  .intro h1 { margin: 0; }

  .intro-schedule,
  .intro-links {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .intro-schedule { margin-top: 0; }
  .intro-schedule-default { margin-top: 0; }
  .schedule-link { margin-top: min(18px, 2svh); }
  .intro-links { margin-block: 0; }
}

@media (max-width: 760px) {
  .intro-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    padding-bottom: 0;
  }

  .intro-links a {
    gap: 7px;
    min-width: 0;
    padding: 10px 8px;
    font-size: clamp(13px, 3.5vw, 14px);
  }

  .intro-links a:last-child { grid-column: 1 / -1; }
  .intro-links .intro-action-arrow { display: none; }

  .location-card { margin-top: 32px; }

  .dates { padding-top: 38px; }

  .date-card { padding: 20px 18px; }

  .date-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .date-hours > span {
    display: block;
    margin-bottom: 4px;
  }

  .branches-section { padding: 38px 20px 42px; }

  .branches-table th,
  .branches-table td {
    padding: 18px 12px;
  }
}

/* Odkazy na mapy a stav pobočky */

.branch-status {
  margin-top: 8px;
  font: 14px Georgia, serif;
}

/* Interaktivní mapa poboček */

.network-map-section {
  margin-bottom: 38px;
  border: 1px solid #c6c4af;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}

.network-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
}

.network-map-heading h3 {
  margin: 0 0 8px;
  font: 400 28px "EB Garamond SC", Georgia, serif;
  color: var(--olive);
}

.network-map-heading p {
  font-size: 16px;
  line-height: 1.5;
}

.network-map-reset {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b0b598;
  border-radius: 4px;
  color: var(--olive);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.network-map-reset:hover { background: #e8eadc; }

.network-map {
  height: 480px;
  background: #e2e2d6;
  isolation: isolate;
  font-family: Georgia, serif;
}

.network-map-fallback {
  padding: 32px;
  line-height: 1.6;
}

.network-map-footer { padding: 18px 24px; }

.network-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
  font-size: 14px;
}

.network-map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--status-legend, var(--red));
  border-radius: 50%;
  background: var(--status-legend, var(--red));
  flex-shrink: 0;
}

#network-map-note,
.network-map-status {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.6;
  color: #655f51;
}

.network-map-status:not(:empty) {
  margin-top: 10px;
  color: var(--red);
}

.network-pin {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.network-pin-dot {
  width: var(--status-marker-size, 24px);
  height: var(--status-marker-size, 24px);
  border: 3px solid #fffdf7;
  border-radius: 50%;
  background: var(--status-map, var(--red));
  box-shadow: 0 2px 7px #37332755;
}

.network-pin-cluster span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fffdf7;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf7;
  box-shadow: 0 2px 7px #37332755;
  font: bold 17px Georgia, serif;
}

.network-pin:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

.network-map .leaflet-tooltip {
  font: 14px Georgia, serif;
  padding: 8px 12px;
  border-color: #d8ceba;
  background: var(--paper);
  color: var(--olive);
}

.network-map .leaflet-popup-content-wrapper,
.network-map .leaflet-popup-tip {
  background: var(--paper);
  color: var(--ink);
}

.branch-popup h4 {
  margin: 0 0 12px;
  font: 400 24px "EB Garamond SC", Georgia, serif;
  color: var(--olive);
}

.network-map .branch-popup p {
  margin: 10px 0;
  font: 15px/1.5 Georgia, serif;
}

.network-map .branch-popup .branch-popup-precision {
  font-size: 13px;
  color: #655f51;
}

.branch-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font: 15px Georgia, serif;
}

.network-map .branch-popup a {
  color: var(--red);
  text-underline-offset: 3px;
}

.branches-table tr[id] { scroll-margin-top: 24px; }

.branches-table tr:target { background: #f7f4e9; }

@media (max-width: 760px) {
  .network-map-heading { padding: 20px 16px; }

  .network-map-heading h3 { font-size: 25px; }

  .network-map { height: 320px; }

  .network-map-footer { padding: 16px; }

  .network-map-legend { gap: 12px 16px; }
}

/* Doplňující vzhled řádků, akcí a stavů poboček */

.branches-table tbody tr { background: #f7f4e952; }

.branches-table tbody tr:nth-child(even) { background: #f7f4e925; }

.branches-table tbody tr:hover { background: #f7f4e99c; }

.branches-table th,
.branches-table td {
  padding-top: 18px;
  padding-bottom: 18px;
}

.branch-action,
.network-map .branch-popup a.branch-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c9cbb8;
  border-radius: 5px;
  background: #f7f4e9;
  color: var(--olive);
  font: 14px/1.4 Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.branch-action-icon {
  flex-shrink: 0;
}

.branch-action:hover,
.network-map .branch-popup a.branch-action:hover {
  background: #e1e5cf;
  border-color: #8e9870;
  color: var(--olive);
}

.branch-action-facebook,
.network-map .branch-popup a.branch-action-facebook {
  border-color: #b9c7ce;
  color: #345d72;
  background: #edf2f2;
}

.branch-action-facebook:hover,
.network-map .branch-popup a.branch-action-facebook:hover {
  border-color: #809da9;
  color: #274e63;
  background: #dfe9ed;
}

.branch-status {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 0;
  border-radius: 20px;
  padding: 5px 10px;
  color: var(--status-text, #99150f);
  background: var(--status-bg, #f5e2dc);
  font-size: 13px;
  line-height: 1.4;
}

.branch-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--status-map, var(--red));
}

/* Stavy poboček */
.status-main {
  --status-text: #34511e;
  --status-bg: #e1e8d5;
  --status-legend: #485321;
  --status-map: #485321;
  --status-marker-size: 28px;
}

.status-operating {
  --status-text: #28533b;
  --status-bg: #e0ece2;
  --status-legend: #39724d;
  --status-map: #39724d;
}

.status-prepared {
  --status-text: #78551b;
  --status-bg: #eee2c8;
  --status-legend: #a87824;
  --status-map: #a87824;
}

.status-unknown {
  --status-text: #99150f;
  --status-bg: #f5e2dc;
  --status-legend: #99150f;
  --status-map: #99150f;
}

/* Responzivní zobrazení poboček v kartách */

@media (max-width: 1199px) {
  .branches-table-wrap { overflow: visible; }

  .branches-table { display: block; }

  .branches-table caption {
    display: block;
    margin-bottom: 18px;
  }

  .branches-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .branches-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .branches-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 20px 16px;
    padding: 24px;
    border: 1px solid #c6c4af;
    border-radius: 6px;
    background: #f7f4e9;
  }

  .branches-table tbody tr:nth-child(even) { background: #f7f4e9; }

  .branches-table tbody th,
  .branches-table tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .branches-table tbody th {
    grid-column: 1 / -1;
    padding-bottom: 18px;
    border-bottom: 1px solid #d8d6c5;
    font-size: 24px;
    line-height: 1.3;
  }

  .branches-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    color: #655f51;
    font-size: 13px;
  }

  .branches-table .branch-detail { margin-top: 5px; }

  .branches-table .branch-action {
    max-width: 100%;
    padding-inline: 10px;
  }
}

@media (min-width: 1200px) {
  .branches-table tbody th { width: 27%; font-size: 20px; }
  .branches-table tbody td:nth-child(2) { width: 19%; }
  .branches-table tbody td:nth-child(3) { width: 34%; }
  .branches-table tbody td:nth-child(4) { width: 20%; }

  .branches-table th,
  .branches-table td { padding-inline: 14px; }

  .branches-table .branch-action { min-height: 36px; padding: 7px 10px; font-size: 13px; }
}

@media (min-width: 900px) and (max-width: 1050px) {
  .branches-table tbody tr {
    padding: 20px 16px;
    gap: 20px 12px;
  }
}

@media (max-width: 899px) {
  .branches-table tbody { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 519px) {
  .branches-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    gap: 20px;
  }

  .branches-table tbody th { grid-column: auto; }

}

@media (min-width: 761px) and (max-height: 600px) {
  .intro-schedule { width: 100%; max-width: none; }
  .meeting-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .meeting-timeline::before { display: none; }
  .meeting-item { --timeline-axis: -1px; --timeline-indent: 20px; border-left: 2px solid #aeb596; }
  .meeting-item + .meeting-item { margin: 0; padding-top: 0; }
  .meeting-item + .meeting-item::after { display: none; }
  .meeting-date strong { font-size: 25px; }
}

/* Termíny a seznam vidlákoven */

.event-weekday {
  display: block;
  margin-bottom: 4px;
  color: var(--olive);
  font: 400 14px/1.35 Georgia, serif;
  letter-spacing: 0;
}

.branch-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.branch-contacts .branch-action { max-width: 100%; }

.branch-action-email,
.network-map .branch-popup a.branch-action-email {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.branch-action-email span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.network-pin-selected .network-pin-dot {
  outline: 3px solid #fffdf7;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--status-map, var(--red)), 0 3px 12px #37332766;
}

.branches-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.branches-search-title { color: var(--olive); font: 400 28px/1.2 'EB Garamond SC', Georgia, serif; }
.branches-filters { display: flex; align-items: center; gap: 12px; min-width: 0; }
.branches-filter-slot:empty { display: none; }
.branches-search { position: relative; flex: 1; min-width: 0; }
.branches-search svg { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--olive); pointer-events: none; }

.branches-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #aeb596;
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
  font: 16px Georgia, serif;
}

.branches-search input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.branches-search input::placeholder { color: #655f51; }

.branches-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.branches-results {
  color: #655f51;
  font-size: 14px;
}

.branches-show-all {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--olive);
  border-radius: 5px;
  color: var(--paper);
  background: var(--olive);
  font: 16px Georgia, serif;
  cursor: pointer;
}

.branches-show-all:hover { background: #343f13; }

.branches-empty {
  padding: 28px 20px;
  border: 1px solid #c6c4af;
  border-radius: 6px;
  background: var(--paper);
  line-height: 1.6;
}

.branches-tools[hidden],
.branches-list-footer[hidden],
.branches-show-all[hidden],
.branches-empty[hidden],
.branches-table[hidden],
.branches-table tr[hidden] {
  display: none;
}

@media (min-width: 761px) and (max-height: 480px) {
  .intro-schedule {
    width: 100%;
    max-width: none;
  }

}

@media (max-width: 760px) {
  .branches-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .branches-search-title { font-size: 26px; }

  .branches-show-all { width: 100%; }

  .branch-map-link { white-space: normal; }
}

/* Datové zdroje */
.dates-data-source { max-width: 1100px; margin-inline: auto; }

.data-source {
  margin-top: 18px;
  color: #655f51;
  font-size: 12px;
  text-align: right;
}

.data-source summary { list-style-position: inside; cursor: pointer; }
.data-source summary:hover { color: var(--olive); }
.data-source summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.data-source-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #c6c4af;
  border-radius: 4px;
  background: var(--paper);
  font-size: 14px;
  text-align: left;
}

.data-source-body a { flex: 1 1 260px; min-width: 0; color: var(--olive); overflow-wrap: anywhere; text-underline-offset: 3px; }
.copy-source { min-height: 40px; padding: 8px 12px; border: 1px solid #aeb596; border-radius: 4px; background: transparent; color: var(--olive); font: inherit; cursor: pointer; }
.copy-source:hover { background: #e8eadc; }
.copy-source[hidden] { display: none; }
.copy-source-status { flex-basis: 100%; line-height: 1.5; }
.copy-source-status:empty { display: none; }

/* Mobilní rozložení */
@media (max-width: 760px) {
  .sypka-section { padding: 32px 20px 36px; }
  .invitation-heading { width: 115px; }
  .description { font-size: 19px; }
  .offer { margin-block: 18px 10px; }
  .dates { padding-top: 32px; }
  .dates-heading { text-align: left; margin-bottom: 20px; }
  .dates-heading h2 { font-size: 34px; }
  .dates-heading > p:last-child { font-size: 16px; }
  .date-card { padding: 18px; border-left-width: 3px; }
  .date-heading { flex-direction: row; justify-content: space-between; gap: 10px; }
  .date-heading h3 { font-size: 25px; }
  .date-badge { font-size: 11px; }
  .date-hours { margin-top: 10px; }

  .branches-section { padding: 36px 16px 40px; background: #e3e6d5; }
  .branches-heading { margin-bottom: 24px; }
  .branches-heading h2 { font-size: 38px; }
  .branches-heading h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; background: var(--red); }
  .branches-heading > p:last-child { font-size: 16px; }
  .network-map-section { margin-bottom: 28px; box-shadow: 0 3px 12px #3733270a; }
  .network-map-heading h3 { font-size: 24px; }
  .network-map-heading p { font-size: 14px; }
  .network-map { height: 280px; }
  .network-map-legend { gap: 10px 16px; font-size: 13px; }
  .branches-table caption { font-size: 13px; }
  .branches-table tbody { gap: 12px; }
  .branches-table tbody tr,
  .branches-table tbody tr:nth-child(even) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 18px 16px;
    border: 1px solid #c8cbb9;
    border-left: 3px solid var(--status-map, #aeb596);
    background: #faf7ee;
    box-shadow: 0 2px 6px #37332706;
  }
  .branches-table tbody th { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; font-size: 22px; }
  .branches-table .branch-status { margin-top: 6px; font-size: 12px; }
  .branches-table td[data-label="Místo"] { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .branches-table td[data-label="Místo"]::before { margin: 0; }
  .branches-table td[data-label="Místo"] .branch-detail { flex-basis: 100%; margin: 0; }
  .branches-table td::before { margin-bottom: 6px; font-size: 12px; }
  .branches-table .branch-action { min-height: 44px; gap: 6px; padding: 8px; font-size: 13px; white-space: normal; }
  .branches-table .branch-map-link { width: 100%; justify-content: center; }

  .progress-section { padding: 36px 16px 40px; background: var(--paper); }
  .progress-heading { padding: 0; margin-bottom: 28px; }
  .progress-heading h2 { max-width: 300px; font-size: 36px; }
  .progress-heading > p:last-child { font-size: 16px; line-height: 1.6; }
  .chapter-heading { align-items: center; margin-bottom: 16px; }
  .chapter-number { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #e5e8d8; font-size: 21px; }
  .chapter-heading h3 { font-size: 25px; }
  .gallery-chapter + .gallery-chapter { margin-top: 36px; }
  .progress-gallery { gap: 8px; }
  .progress-gallery .gallery-item:nth-child(n) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .progress-gallery .gallery-item:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .progress-gallery.two-photos .gallery-item:nth-child(n) { grid-column: span 1; aspect-ratio: 1.1; }
  .current-granary { margin-top: 16px; border-top: 3px solid var(--olive); background: #e5e8d8; }
  .current-granary figcaption { padding: 20px; }
  .current-granary h3 { margin-top: 0; font-size: 27px; }
  .current-granary figcaption > p { font-size: 16px; }

  .support-section { padding: 0; background: var(--olive); color: var(--paper); }
  .support-inner { max-width: none; gap: 0; }
  .support-story { padding: 38px 20px; }
  .support-story h2 { margin-top: 0; color: var(--paper); font-size: 38px; }
  .support-story > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
  .support-story .support-thanks { color: #e5e8d8; }
  .donation-card { margin: 0; padding: 32px 20px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); }
  .donation-card h3 { font-size: 28px; }
  .account-number { font-size: 25px; }
}

/* Chybové stránky */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 0 0, #eee7d8, transparent 60%), var(--paper);
}

.error-header,
.error-layout,
.error-footer {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  color: var(--olive);
  font: 24px 'EB Garamond SC', Georgia, serif;
}

.error-header img { display: block; width: 110px; height: auto; }
.error-header a { flex-shrink: 0; }

.error-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: 24px 48px;
}

.error-content h1 {
  margin: 16px 0 24px;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: none;
}

.error-description { font-size: 21px; line-height: 1.6; }
.error-help { margin-top: 16px; color: #655f51; font-size: 16px; line-height: 1.7; }

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 30px;
}

.error-actions .schedule-link { margin: 0; }
.error-retry { color: var(--olive); text-underline-offset: 5px; }
.error-retry span { display: inline-block; margin-left: 6px; }

.error-scene {
  min-width: 0;
  min-height: 420px;
  aspect-ratio: 1 / 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: 46% 46% 6px 6px;
  background: linear-gradient(180deg, #202615d9, #20261599 35%, transparent 65%, #373327a6), url('../img/aktualni.jpeg') center / cover;
}

.error-code {
  color: #fffdf7;
  font: 400 clamp(100px, 13vw, 190px)/1 'EB Garamond SC', Georgia, serif;
  text-shadow: 0 2px 8px #20261580;
}
.error-scene-caption { color: #fffdf7; font-size: 16px; text-align: center; }
.error-footer { padding-block: 24px; border-top: 1px solid #d8ceba; color: #655f51; font-size: 14px; }

@media (max-width: 760px) {
  .error-header,
  .error-layout,
  .error-footer { width: calc(100% - 40px); }

  .error-header { padding-block: 24px; font-size: 20px; }
  .error-header img { width: 80px; }
  .error-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 12px 32px; }
  .error-content h1 { font-size: clamp(40px, 9vw, 60px); }
  .error-description { font-size: 19px; }
  .error-actions { margin-top: 24px; }
  .error-scene { min-height: 0; aspect-ratio: 1.4; border-radius: 120px 120px 6px 6px; }
  .error-code { font-size: 100px; }
}

svg.leaflet-attribution-flag {display: none !important;}

/* E-mail má v kontaktech vlastní řádek. */
.branch-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
}
.branch-contacts > * {
  min-width: 0;
}
.branch-contacts .branch-action-email {
  grid-column: 1 / -1;
  justify-self: start;
}
