:root {
  --home-slider-bg: #000;
  --home-slider-accent: #5f24d6;
}

.home-slider {
  background: var(--home-slider-bg);
  position: relative;
  z-index: 1;
  margin-top: -10%;
}

.home-slider__band {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  display: block;
  margin-top: -7vw;
}

.home-slider__inner {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.home-slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-slider__viewport::-webkit-scrollbar {
  display: none;
}

.home-slider__track {
  display: flex;
  gap: 0;
}

.home-slider__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.home-slider__link {
  display: block;
}

.home-slider__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(12px, 2vw, 18px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
  background: #111;
}

.home-slider__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(40px, 5vw, 54px);
  height: clamp(40px, 5vw, 54px);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-slider__control:hover,
.home-slider__control:focus-visible {
  transform: translateY(-50%) scale(1.05);
  border-color: var(--home-slider-accent);
  background: rgba(95, 36, 214, 0.35);
}

.home-slider__control--prev {
  left: clamp(1rem, 3.5vw, 2.4rem);
}

.home-slider__control--next {
  right: clamp(1rem, 3.5vw, 2.4rem);
}
