.banners-carousel-container {
  position: relative;
  margin-bottom: 1rem;
}

.banners-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banners-carousel {
  overflow: hidden;
  width: 100%;
}

.banners-carousel-track {
  display: flex;
  flex-direction: row;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.banner-slide {
  min-width: calc(33.333% - 13.33px);
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.banner-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 133.33%; /* Пропорция 3:4 (400/300 * 100) */
  overflow: hidden;
  border-radius: 8px;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 565;
  object-fit: cover;
  display: block;
}

.banner-details-btn-wrapper {
  position: absolute;
  left: 15px;
  bottom: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 5;
}

.banner-image-wrapper:hover .banner-details-btn-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.banner-details-btn {
  display: inline-block;
  background: #fff;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-details-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.banners-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banners-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.banners-carousel-btn-prev {
  left: 15px;
}

.banners-carousel-btn-next {
  right: 15px;
}

.banners-carousel-btn i {
  font-size: 20px;
  color: #333;
}

.banners-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Минимум 44×44px область нажатия для доступности (touch target) */
.banner-dot {
  padding: 12px;
  margin: 0;
  box-sizing: content-box;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.banner-dot:hover {
  background: #999;
  transform: scale(1.2);
}

.banner-dot.active {
  background: #20475D;
  transform: scale(1.3);
}

/* Адаптивность */
@media (max-width: 992px) {
  .banner-slide {
    min-width: calc(50% - 10px);
  }
  
  .banners-carousel-track {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .banner-slide {
    min-width: 100%;
  }
  
  .banners-carousel-track {
    gap: 0;
  }
  
  .banners-carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .banners-carousel-btn-prev {
    left: 10px;
  }
  
  .banners-carousel-btn-next {
    right: 10px;
  }
  
  .banner-details-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .banners-carousel-btn {
    width: 35px;
    height: 35px;
  }
  
  .banners-carousel-btn i {
    font-size: 16px;
  }
}

