/* ======== Слайдер ======== */
.custom-slider {
  position: relative;
  width: 100vw;
  height: 600px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.custom-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s;
  animation: kenburns 12s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.custom-slide.active { opacity: 1; z-index: 2; }

/* ====== Исправлено: Светлый overlay для яркости ====== */
.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32); /* Было: rgba(55,55,55,0.24) */
  z-index: 1;
}

/* Текст в слайдере */
.slider-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.slider-caption h1, .slider-caption h2, .slider-caption .slider-title {
  font-family: "Poiret One", Arial, sans-serif;
  font-size: 46px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.15;
  /* Усилили тень и добавили белую обводку для яркости */
  text-shadow:
    0 2px 18px rgba(0,0,0,0.45),
    0 0px 3px #fff;
  -webkit-text-stroke: 1px #fff;
  text-stroke: 1px #fff;
}

.slider-subtitle {
  font-family: "Poiret One", Arial, sans-serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.12;
  margin-top: 10px;
  color: #fff;
  /* Усилили тень и добавили белую обводку */
  text-shadow:
    0 2px 14px rgba(0,0,0,0.39),
    0 0px 2px #fff;
  -webkit-text-stroke: 0.8px #fff;
  text-stroke: 0.8px #fff;
}

/* ======== Адаптив ======== */
@media (max-width: 1000px) {
  .custom-slider, .custom-slide { height: 320px; }
  .slider-caption h1, .slider-caption h2, .slider-caption .slider-title { font-size: 25px;}
  .slider-subtitle { font-size: 18px;}
}

/* ======== Мобильная адаптация слайдера ======== */
@media (max-width: 700px) {
  .custom-slider, .custom-slide { height: 200px; }
  .slider-caption h1, .slider-caption h2, .slider-caption .slider-title { font-size: 16vw; word-break: break-word; }
  .slider-subtitle { font-size: 10vw; white-space: normal; word-break: break-word; }
  .slider-caption { gap: 8px; padding: 0 4px; }
}

/* Ken Burns эффект */
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.09);}
}
