/**
 * Современная карусель главной страницы
 */

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 2.53 / 1;
  min-height: 280px;
}

.hero-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.hero-carousel__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.hero-carousel__content h3 {
  margin: 0 0 8px 0 !important;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  font-weight: 600 !important;
  color: #fff !important;
}

.hero-carousel__content h5,
.hero-carousel__content p {
  margin: 4px 0 !important;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.4 !important;
}

.hero-carousel__content a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.hero-carousel__content a:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.hero-carousel__content ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.hero-carousel__content ul li {
  margin: 4px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
}

.hero-carousel__content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7CBB00;
  font-weight: bold;
}

/* Стрелки */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-carousel__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel__arrow--prev {
  left: 16px;
}

.hero-carousel__arrow--next {
  right: 16px;
}

.hero-carousel__arrow svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

/* Точки-индикаторы */
.hero-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-carousel__dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .hero-carousel {
    border-radius: 0;
    box-shadow: none;
  }

  .hero-carousel__content {
    padding: 16px 20px 20px;
  }

  .hero-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .hero-carousel__arrow--prev {
    left: 8px;
  }

  .hero-carousel__arrow--next {
    right: 8px;
  }

  .hero-carousel__arrow svg {
    width: 20px;
    height: 20px;
  }
}
