/*
 * Script-free compatibility layer
 * Keeps the existing visual design usable without JavaScript.
 */

html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

/* Elements that were previously revealed or removed by JavaScript. */
.preloader,
.ie-panel,
.snackbars,
.swiper-pagination,
.swiper-navigation,
.rd-navbar-toggle,
.rd-navbar-content__toggle {
  display: none !important;
}

.wow,
[data-caption-animate] {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

/* Static, responsive header and navigation. */
.rd-navbar,
.rd-navbar-wrap {
  display: block !important;
}

.rd-navbar {
  background: #fff;
}

.rd-navbar-aside,
.rd-navbar-main {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
}

.rd-navbar-aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
}

.rd-navbar-panel,
.rd-navbar-content-outer,
.rd-navbar-content,
.rd-navbar-nav-wrap {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.rd-navbar-brand img {
  width: 150px;
  height: auto;
}

.rd-navbar-content {
  font-size: 14px;
  line-height: 1.45;
}

.rd-navbar-main-outer {
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.rd-navbar-nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rd-navbar-nav > li,
.rd-navbar-nav > li + li {
  margin: 0 !important;
}

.rd-navbar-nav > li > a {
  display: block;
  padding: 20px 24px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* The former JavaScript slider becomes a single, stable hero image. */
.swiper-container,
.swiper-wrapper {
  overflow: hidden !important;
  width: 100% !important;
}

.swiper-wrapper {
  display: block !important;
  height: auto !important;
  transform: none !important;
}

.swiper-slide {
  display: none !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.swiper-slide:first-child {
  display: flex !important;
}

.slide-inner {
  width: 100%;
  background-position: center;
  background-size: cover;
}

/* Former carousels are now accessible responsive grids. */
.owl-carousel,
.owl-carousel.owl-loaded {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.owl-carousel > * {
  width: 100% !important;
  min-width: 0;
}

.owl-carousel .thumb-janez,
.owl-carousel .thumb-janez__image-wrap,
.owl-carousel .thumb-janez__image-wrap img {
  height: 100%;
}

.owl-carousel .thumb-janez__image-wrap img {
  width: 100%;
  object-fit: cover;
}

/* A lightbox is no longer needed: the video link opens normally. */
.link-video {
  pointer-events: auto;
}

@media (max-width: 991px) {
  .rd-navbar-aside {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .rd-navbar-content-outer {
    display: none !important;
  }

  .rd-navbar-nav > li > a {
    padding: 15px 16px !important;
  }

  .owl-carousel,
  .owl-carousel.owl-loaded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .rd-navbar-aside,
  .rd-navbar-main {
    width: min(100% - 24px, 1170px);
  }

  .rd-navbar-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-navbar-nav > li > a {
    padding: 12px 8px !important;
    text-align: center;
  }

  .owl-carousel,
  .owl-carousel.owl-loaded {
    grid-template-columns: 1fr;
  }
}

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