.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  background-image:
    linear-gradient(90deg, rgba(8, 14, 21, .92) 0%, rgba(8, 14, 21, .55) 38%, rgba(8, 14, 21, .08) 72%),
    var(--slide-image);
  background-size: cover;
  background-position: center;
  transition: opacity .9s ease, transform 5.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dots button.is-active {
  width: 42px;
  background: var(--orange);
}

.hero-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 700px) {
  .hero-slide {
    background-position: 58% center;
  }

  .hero-slide:nth-child(2),
  .hero-slide:nth-child(3) {
    background-position: center;
  }

  .hero-dots {
    left: 15px;
    bottom: 18px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: none;
    transition: opacity .2s linear;
  }
}
