/** @format */

.hero {
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: var(--py-section);
  margin-bottom: 50px;
}

.hero-background {
  z-index: -1;
  width: 100%;
  content: '';
  position: absolute;
  top: -70px;
  right: -100px;
}

.hero h2 {
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 52px;
}

.hero h1 {
  font-size: var(--font-size-h3);
}

.hero-inner {
  width: 100%;
}

.hero-content {
  width: 100%;
  text-align: center;
}

.hero-image {
  position: relative;
  width: calc(100% + 220px);
  margin-right: -670px;
  padding-top: 40px;
  padding-bottom: 30px;
}

.hero-pagination {
  justify-content: center;
  width: 100%;
  display: none;
  margin-top: 70px;
}

.hero-pagination .swiper-pagination-bullet {
  border-radius: var(--border-radius-base);
  cursor: pointer;
  text-indent: -9999px;
  display: block;
  width: 19px;
  height: 7px;
  background: #eee;
  padding: 0;
  border: 0;
  margin: 0 3px;
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #000;
}

.hero-slide.swiper-slide {
  display: flex;
  align-items: center;
}

.hero-slide img {
  border-radius: var(--border-radius-base);
  border: 3px solid var(--color-white);
}

.hero-slider .swiper-slide {
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-slide-mobile {
  position: relative;
  margin-right: -12%;
}

.hero-slide-mobile img {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
}

.hero-slide-desktop img {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

#hero-autoplay-toggle {
  display: none;
  position: absolute;
  bottom: -7px;
  left: calc(50% + 44px);
  background: none;
  border: none;
  cursor: pointer;
}

#hero-autoplay-toggle.active {
  bottom: -5px;
}

#hero-autoplay-toggle .hero-autoplay-play,
#hero-autoplay-toggle.active .hero-autoplay-pause {
  display: none;
}

#hero-autoplay-toggle .hero-autoplay-pause,
#hero-autoplay-toggle.active .hero-autoplay-play {
  display: block;
}

@media only screen and (min-width: 768px) {
  .hero + .usp-service:before {
    pointer-events: none;
    height: 300px;
    width: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  }

  .hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 445px;
    text-align: left;
  }

  .hero-image {
    order: 1;
    width: calc(100% + 120px);
    margin-right: -580px;
  }

  .hero-slide {
    max-width: clamp(880px, 90%, 1050px);
  }

  .hero-slide img {
    border-radius: 20px;
    border-width: 6px;
  }

  .hero-slide-mobile img {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    max-width: 80%;
  }

  .hero-slide-desktop img {
    box-shadow: 0 0 99px rgba(0, 0, 0, 0.76);
    max-width: 80%;
  }

  .hero-pagination {
    display: flex;
  }

  #hero-autoplay-toggle {
    display: block;
  }
}

@media only screen and (min-width: 1025px) {
  .hero-background {
    width: 1250px;
    right: -200px;
    top: -230px;
  }

  .hero-content {
    width: 470px;
  }

  .hero-image {
    width: 100%;
    margin-right: -500px;
  }

  .hero h2 {
    font-size: 70px;
    line-height: 1;
  }

  .hero-top {
    margin-bottom: 80px;
  }

  .hero-slide {
    max-width: 900px;
  }
}

@media only screen and (min-width: 1280px) {
  .hero-background {
    width: 1450px;
    right: 50%;
    margin-right: -1000px;
    top: -230px;
  }
}

@media only screen and (min-width: 1440px) {
  .hero-slide {
    max-width: none;
  }

  .hero-background {
    width: 1750px;
    right: 50%;
    margin-right: -1250px;
    top: -300px;
    left: auto;
  }
}
