.hero {
  isolation: isolate;
  overflow: hidden;
  background: #0a111c !important;
}

.hero-slider-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 7s ease;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.82) 0%, rgba(5, 9, 16, 0.56) 43%, rgba(5, 9, 16, 0.12) 78%, rgba(5, 9, 16, 0.04) 100%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.03) 52%, rgba(4, 8, 15, 0.62) 100%);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide--city {
  background-image: url("banner-city.png");
  background-position: center 49%;
}

.hero-slide--garage {
  background-image: url("banner.png");
  background-position: center 52%;
}

.hero-slider-controls {
  position: absolute;
  z-index: 4;
  right: max(22px, calc((100vw - var(--shell)) / 2));
  bottom: 174px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-slider-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  font: 400 24px/1 Arial, sans-serif;
  background: rgba(8, 13, 22, 0.18);
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
  color: #101722;
  background: #fff;
  transform: translateY(-2px);
  outline: none;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.22);
  backdrop-filter: blur(7px);
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width 200ms ease, border-radius 200ms ease, background-color 200ms ease;
}

.hero-slider-dot.is-active {
  width: 27px;
  border-radius: 999px;
  background: #fff;
}

.hero-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .hero-slide--city {
    background-position: 43% center;
  }

  .hero-slide--garage {
    background-position: 52% center;
  }

  .hero-slider-controls {
    right: 22px;
  }
}

@media (max-width: 620px) {
  .hero-slide--city {
    background-position: 38% center;
  }

  .hero-slide--garage {
    background-position: 50% center;
  }

  .hero-slider-controls {
    right: 14px;
    bottom: 142px;
    gap: 8px;
  }

  .hero-slider-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slider-arrow,
  .hero-slider-dot {
    transition: none;
  }
}
