h4.msh-menu-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

h4.msh-menu-title a::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

h4.msh-menu-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.msh-page-hero {
  position: relative;
  overflow: visible;
}

.msh-page-hero > .brxe-heading,
.msh-page-hero > .brxe-text {
  max-width: 36rem;
}

.msh-page-hero > .brxe-text {
  margin-top: 6px;
}

.msh-page-hero > .msh-page-back {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 16px;
  height: 36px;
  margin: 0;
  padding: 0 16px 0 12px !important;
  background: var(--barva-8) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none;
  font-weight: 500 !important;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transform: translateX(-36px);
  clip-path: inset(0 calc(100% - 36px) 0 0);
  transition: transform 0.35s ease, clip-path 0.35s ease;
}

.msh-page-hero > .msh-page-back i {
  color: #fff;
  font-size: 20px;
}

.msh-page-hero > .msh-page-back:hover,
.msh-page-hero > .msh-page-back:focus-visible {
  transform: translateX(calc(-100% - 4px));
  clip-path: inset(0 0 0 0);
  background: var(--barva-8) !important;
  color: #fff !important;
}

@media (min-width: 801px) {
  body.page-id-61 .msh-page-hero,
  body.page-id-2617 .msh-page-hero,
  body.page-id-2655 .msh-page-hero,
  body.page-id-63 .msh-page-hero,
  body.page-id-69 .msh-page-hero,
  body.page-id-2528 .msh-page-hero,
  body.page-id-2708 .msh-page-hero,
  body.page-id-2623 .msh-page-hero,
  body.page-id-65 .msh-page-hero,
  body.single-trida .msh-page-hero,
  body.page-id-2615 .msh-page-hero,
  body.page-id-2621 .msh-page-hero,
  body.page-id-73 .msh-page-hero,
  body.page-id-3704 .msh-page-hero,
  body.page-id-67 .msh-page-hero,
  body.page-id-71 .msh-page-hero,
  body.page-id-2526 .msh-page-hero,
  body.single-aktualita .msh-page-hero,
  body.single-specialni-ucebny .msh-page-hero,
  body.page-id-3723 .msh-page-hero,
  body.page-id-2733 .msh-page-hero,
  body.page-id-2730 .msh-page-hero,
  body.page-id-3 .msh-page-hero,
  body.page-id-3099 .msh-page-hero {
    background-repeat: no-repeat;
    background-position: right 40px center;
    background-size: 150px auto;
  }

  body.page-id-61 .msh-page-hero,
  body.page-id-2617 .msh-page-hero,
  body.page-id-2655 .msh-page-hero {
    background-image: url("hero-budova.svg?v=1");
  }

  body.page-id-63 .msh-page-hero {
    background-image: url("hero-zapis.svg?v=1");
  }

  body.page-id-69 .msh-page-hero {
    background-image: url("hero-dokumenty.svg?v=2");
  }

  body.page-id-2528 .msh-page-hero {
    background-image: url("hero-deti.svg?v=1");
    background-size: 190px auto;
  }

  body.page-id-2708 .msh-page-hero {
    background-image: url("hero-strom.svg?v=2");
  }

  body.page-id-2623 .msh-page-hero {
    background-image: url("hero-osoba.svg?v=1");
  }

  body.page-id-65 .msh-page-hero,
  body.single-trida .msh-page-hero {
    background-image: url("hero-dvere.svg?v=1");
  }

  body.page-id-2615 .msh-page-hero {
    background-image: url("hero-hodiny.svg?v=1");
  }

  body.page-id-2621 .msh-page-hero {
    background-image: url("hero-kniha.svg?v=1");
  }

  body.page-id-73 .msh-page-hero {
    background-image: url("hero-telefon.svg?v=1");
  }

  body.page-id-3704 .msh-page-hero {
    background-image: url("hero-jablko.svg?v=1");
  }

  body.page-id-67 .msh-page-hero {
    background-image: url("hero-vlajka.svg?v=1");
  }

  body.page-id-71 .msh-page-hero {
    background-image: url("hero-srdce.svg?v=1");
  }

  body.page-id-2526 .msh-page-hero,
  body.single-aktualita .msh-page-hero {
    background-image: url("hero-zvonek.svg?v=1");
  }

  body.single-specialni-ucebny .msh-page-hero {
    background-image: url("hero-tabule.svg?v=1");
  }

  body.page-id-3723 .msh-page-hero {
    background-image: url("hero-dum.svg?v=1");
  }

  body.page-id-2733 .msh-page-hero,
  body.page-id-2730 .msh-page-hero,
  body.page-id-3 .msh-page-hero {
    background-image: url("hero-stit.svg?v=1");
  }

  body.page-id-3099 .msh-page-hero {
    background-image: url("hero-lupa.svg?v=1");
  }
}

.msh-letaky {
  display: grid;
  gap: 18px;
  margin: 0;
}

@media (min-width: 801px) {
  .msh-letaky--vice {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .msh-letaky--vice .msh-letak-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.msh-letak-link {
  display: block;
  border-radius: 24px;
  overflow: hidden;
}

.msh-letak {
  display: block;
  width: 100%;
  height: auto;
}

#brxe-sfvshc:not(:has(.msh-letak)) {
  display: none;
}

.msh-letak-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.msh-letak-lightbox[hidden] {
  display: none;
}

.msh-letak-lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border-radius: 24px;
  background: #fff;
}

.msh-letak-lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#brxe-zgsnjj a {
  pointer-events: none;
  cursor: default;
}

.msh-uvod-gal {
  position: relative;
  margin-top: var(--space-m);
  padding: var(--space-s);
  background: var(--barva-5);
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 24px;
}

.msh-uvod-gal__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 16px;
}

.msh-uvod-gal__track::-webkit-scrollbar {
  display: none;
}

.msh-uvod-gal__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.msh-uvod-gal__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 528;
  object-fit: cover;
}

.msh-uvod-gal__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--barva-8);
  box-shadow: 0 4px 12px rgba(47, 111, 174, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.msh-uvod-gal__btn--prev {
  left: 18px;
}

.msh-uvod-gal__btn--next {
  right: 18px;
}

.msh-uvod-gal__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.msh-uvod-gal__btn--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.msh-uvod-gal__btn--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}
