
/* Основной контейнер слайдера */
.carousel-08 {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 30px 80px;
}

/* Контейнер слайдов */
.carousel-08__slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 42%; /* Соотношение 2:1 (ширина:высота) */
}

.carousel-08__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-08__slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-08__slide img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
	border: 2px solid #062e81;
}

/* Затемняющий слой */
.carousel-08__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
}

/* Текстовый контент */
.carousel-08__content {
  position: absolute;
  bottom: 15%;
  left: 10%;
  max-width: 500px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carousel-08__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  line-height: 1.2;
}

.carousel-08__text {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.5em;
  opacity: 0.9;
}

.carousel-08__btn {
  display: inline-block;
  background-color: #ff6b6b;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.carousel-08__btn:hover {
  background-color: #ee5a24;
  transform: translateY(-2px);
}

/* Стрелки */
.carousel-08__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #062e81;
  border: 2px solid #062e81;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel-08__arrow:hover {
  background: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.1);
 color: #062e81;
}

.carousel-08__arrow--left {
  left: -60px;
}

.carousel-08__arrow--right {
  right: -60px;
}

/* Точки */
.carousel-08__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-08__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #edecec;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.carousel-08__dot.active {
  background: #062e81;
  transform: scale(1.3);
}

/* Адаптивность */
@media (max-width: 768px) {
  .carousel-08 {
    padding: 10px;
}
  .carousel-08__slides {
    padding-top: 210%; /* немного выше на мобильных */
  }
  
  .carousel-08__content {
    left: 5%;
    bottom: 10%;
    max-width: 90%;
  }
  
  .carousel-08__title {
    font-size: 2rem;
  }
  
  .carousel-08__text {
    font-size: 1rem;
  }
  
  .carousel-08__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}