.affiliate-slider {
  overflow: hidden;
  width: 100%;
  height: 250px;
  position: relative;
  box-sizing: border-box;
  cursor: grab;
}

.affiliate-slider .slider-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scroll 30s linear infinite;
}

.affiliate-slider:hover .slider-track {
  animation-play-state: paused; /* пауза при наведении */
}

.affiliate-slider .slide {
  flex: 0 0 auto;
  margin-right: 20px;
  height: 250px;
  display: flex;
  align-items: center;
}

.affiliate-slider .slide img {
  height: 250px;
  width: auto;
  display: block;
}

/* стрелки */
.affiliate-slider .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.affiliate-slider .arrow.left { left: 10px; }
.affiliate-slider .arrow.right { right: 10px; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* мобильная версия свайп */
@media (max-width: 768px) {
  .affiliate-slider .arrow { display: none; }
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

