/* Only the small behaviors that depended on the original scripts. The
 * document structure, typography and general layout come from the source CSS. */
.forseo-visual [hidden] { display: none !important; }

.forseo-visual .root-item-li-new:focus-within .block-view-menu-sub {
  opacity: 1;
  z-index: 1;
  transform: scaleY(1);
}

.forseo-visual .accordion i.fa-chevron-down:empty::before {
  content: "";
  display: inline-block;
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 .12em .12em 0;
  transform: translateY(-.2em) rotate(45deg);
}

.forseo-visual .block-questions-label[role="button"],
.forseo-visual [data-popup-target][role="button"] { cursor: pointer; }

.forseo-visual .overlay.forseo-overlay-open {
  display: block !important;
  cursor: pointer;
}

.forseo-visual .overlay.forseo-image-overlay-open {
  inset: 0;
  opacity: .6 !important;
}

.forseo-visual .popup-wrap.forseo-popup-wrap-open {
  display: grid !important;
  position: fixed !important;
  inset: 0;
  padding: 20px;
  overflow: auto;
  box-sizing: border-box;
  place-items: center;
  background: rgba(0,0,0,.38);
}

.forseo-visual .popup.forseo-popup-open {
  display: block !important;
  width: 100%;
  top: auto;
  margin-block: 0;
}

.forseo-visual .popup.image-popup.forseo-popup-open {
  position: fixed;
  inset: 5% 5% auto;
  z-index: 10000000;
  width: auto;
  max-height: 90vh;
}

.forseo-visual .popup.image-popup.forseo-popup-open img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] {
  --forseo-owl-cols: 1;
}

@media (min-width: 769px) {
  .forseo-visual .owl-carousel[data-forseo-carousel-kind="keyses-slider"],
  .forseo-visual .owl-carousel[data-forseo-carousel-kind="strides-slider"] {
    --forseo-owl-cols: 3;
  }

  .forseo-visual .owl-carousel[data-forseo-carousel-kind="clients-slider"] {
    --forseo-owl-cols: 4;
  }

  .forseo-visual .owl-carousel[data-forseo-carousel-kind="keyses-slider"] > .owl-dots {
    display: none;
  }
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] > .owl-stage-outer {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] > .owl-stage-outer::-webkit-scrollbar,
.forseo-visual [data-forseo-carousel="swiper"] > .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] .owl-stage {
  display: flex;
  align-items: stretch;
  gap: 20px;
  transform: none !important;
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] .owl-item {
  flex: 0 0 calc((100% - (var(--forseo-owl-cols) - 1) * 20px) / var(--forseo-owl-cols));
  min-width: 0;
  float: none;
  scroll-snap-align: start;
}

/* The source typing animation is replaced by the native carousel. */
.forseo-visual .owl-carousel[data-forseo-carousel="owl"] .ticker-swipe {
  display: none;
}

.forseo-visual .owl-carousel[data-forseo-carousel="owl"] .owl-stage::after {
  content: none;
}

.forseo-visual .owl-item img.forseo-media-ready {
  opacity: 1;
}

.forseo-visual [data-forseo-carousel="swiper"] > .swiper-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.forseo-visual [data-forseo-carousel="swiper"] .swiper-slide {
  scroll-snap-align: start;
}

@media (min-width: 769px) {
  .forseo-visual .mySwiper[data-forseo-carousel="swiper"] .swiper-slide {
    width: 12.5%;
  }
}

/* The original marketing page deferred these sections by script. */
.forseo-visual.forseo-sections-revealed .block-main-green,
.forseo-visual.forseo-sections-revealed .block.block-up,
.forseo-visual.forseo-sections-revealed .block.block-strides,
.forseo-visual.forseo-sections-revealed .block.block-reviews,
.forseo-visual.forseo-sections-revealed .block.block-footer,
.forseo-visual.forseo-sections-revealed .adv-home-block {
  display: block;
}

/* These source rules use Bitrix field names. WP uses namespaced values. */
.forseo-visual .form-new-mag form[data-forseo-form] :is(
  input[name="fields[form_text_2]"],
  input[name="fields[form_text_3]"],
  button[type="submit"]
) {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 45px;
  margin: 0 auto 19px;
  box-sizing: border-box;
}

.forseo-visual body.en .top-menu.forseo-menu-open {
  display: block;
}

.forseo-visual body.en .rev-slider.forseo-en-slider ul {
  display: flow-root;
}

.forseo-visual body.en .rev-slider.forseo-en-slider li {
  width: 100%;
}

.forseo-visual body.en .questions.forseo-question-open .questions-block {
  left: -100%;
}

.forseo-visual body.en .questions.forseo-question-open .form-block {
  left: 0;
}

