.home-slider {
  --home-slider-height: 70vh;
  position: relative;
  width: 100%;
  height: var(--home-slider-height);
  min-height: 360px;
  overflow: hidden;
  background: #111;
}

.home-slider__slides,
.home-slider__slide {
  position: absolute;
  inset: 0;
}

.home-slider__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-slider__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.home-slider__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-slider__dot:hover,
.home-slider__dot:focus-visible,
.home-slider__dot.is-active {
  background: #fff;
  transform: scale(1.08);
}

.home-slider__dot:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .home-slider {
    min-height: 320px;
  }

  .home-slider__nav {
    right: 12px;
    gap: 8px;
  }

  .home-slider__dot {
    width: 12px;
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider__slide,
  .home-slider__dot {
    transition: none;
  }
}
