/* home_slider.css */

/* home_slider.css */

/* [DC Source] Слайдер для главной страницы */

.slider {
  position: relative;
  width: 100%;
  height: 95vh;
  max-width: 100vw;
  max-height: 95vh;
  overflow: hidden;
  background: #181818;
  margin-top: 75px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-slider {
  position: relative;
  width: 100%;
  height: 65vh;
  max-width: 100vw;
  max-height: 65vh;
  overflow: hidden;
  background: #181818;
  margin-top: 75px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-images {
  width: 100vw;
  height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* [DC Source] Картинка-слайд */
.slider-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 95vh;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s;
  z-index: 1;
  pointer-events: none;
}

/* [DC Source] ДОБАВЛЕНО: эффекты движения для slide-effect-zoom-in и slide-effect-zoom-out */
.slider-image.slide-effect-zoom-in {
  animation: slider-image-zoom-in 10s linear forwards;
}
.slider-image.slide-effect-zoom-out {
  animation: slider-image-zoom-out 10s linear forwards;
}
/* [DC Source] slide-effect-pan-left и slide-effect-pan-right */
.slider-image.slide-effect-pan-left {
  animation: slider-image-pan-left 10s linear forwards;
}
.slider-image.slide-effect-pan-right {
  animation: slider-image-pan-right 10s linear forwards;
}

@keyframes slider-image-zoom-in {
  0%   { transform: scale(1); }
  100% { transform: scale(1.28); }
}
@keyframes slider-image-zoom-out {
  0%   { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes slider-image-pan-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-3vw); }
}
@keyframes slider-image-pan-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(3vw); }
}

.slider-image.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* [DC Source] Текстовый оверлей для каждого слайда */
.slider-content {
  position: absolute;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  top: 0;
  height: 90vh;
  display: flex;
  flex-direction: column;
  /* [DC Source] ДОРАБОТАНО: убраны неработающие селекторы, теперь позиционирование задаётся через inline style */
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  padding: 10vw 7vw;
  transition: opacity 0.8s;
}
.slider-content.active {
  opacity: 1;
  pointer-events: auto;
}
/* [DC Source] ДОБАВЛЕНО: z-index: -1 для .slider-content неактивного, чтобы скрыть любые пересечения */
.slider-content:not(.active) {
  z-index: -1;
}

/* [DC Source] Заголовок слайда */
.slider-title {
  font-size: 2.6rem;
  line-height: 1.11;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6em;
  text-shadow: 0 0 5px rgba(0,0,0,0.80);
  letter-spacing: 0.03em;
}
.slider-desc {
  font-size: 1.28rem;
  color: #fff;
  font-weight: 400;
  line-height: 0.45;
  margin-bottom: 1.3em;
  text-shadow: 0 0 2px rgba(0,0,0,0.80);
}

/* [DC Source] Кнопка Подробнее: мигающая анимация */
.slider-link {
  background: #8C2028 !important; /* насыщенный, ярко-красный */
  opacity: 0.7 !important;
  color: #fff;
  font-weight: 200;
  padding: 0.72em 2.3em;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.0rem;
  letter-spacing: 0.01em;
  margin-top: 0.5em;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5) !important;
}
.slider-link:hover, .slider-link:focus {
  background: #8C2028 !important;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  opacity: 1 !important;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .95) !important;
}

/* [DC Source] Примеры простых эффектов (добавь по необходимости) */
.title-effect-zoom { animation: sliderZoomIn 1s both; }
@keyframes sliderZoomIn {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.desc-effect-fade-in { animation: sliderFadeIn 1.2s both; }
@keyframes sliderFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.url-effect-fade-out { animation: sliderFadeOut 1.2s both; }
@keyframes sliderFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0.15; }
}
.slide-effect-zoom { animation: sliderZoomIn 1.2s both; }
.slide-effect-fade-in { animation: sliderFadeIn 1.2s both; }
.slide-effect-fade-out { animation: sliderFadeOut 1.2s both; }

/* [DC Source] Стрелки по умолчанию скрыты и оформлены как прямоугольник */
.slider-arrow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.2s, color 0.2s;
  background: rgba(30,30,30,0.15);
  color: #fff;
  border: none;
  outline: none;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 10;
  user-select: none;
}

/* [DC Source] Показываем стрелки при наведении на слайдер */
.slider:hover .slider-arrow,
.slider:focus-within .slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* [DC Source] Ховер — чуть более тёмный фон и золотой цвет стрелки */
.slider-arrow:hover, .slider-arrow:focus {
  background: rgba(30,30,30,0.25);
  color: #FFD700;
}

/* [DC Source] Позиционирование стрелок */
.slider-arrow-left {
  left: 18px;
}
.slider-arrow-right {
  right: 18px;
}

/* [DC Source] SVG-стрелка внутри кнопки */
.slider-arrow svg {
  display: block;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

/* [DC Source 991.98][NEW] Для мобильных устройств — слайдер вытягивается на всю высоту экрана */
@media (max-width: 991.98px) {
  .slider,
  .slider-images,
  .slider-image,
  .slider-content {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }
  .slider-content {
    padding: 40vw 3vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
  }
  /* [DC Source][NEW] Размеры заголовка и описания на мобильных */
  .slider-title {
    font-size: 3.0rem;
    margin-bottom: 0.4em;
  }
  .slider-desc {
    font-size: 2rem;
    margin-bottom: 0.8em;
    line-height: 1.0;
  }
  .slider-link {
    font-size: 1rem;
    padding: 0.5em 1.5em;
  }
  .slider-arrow {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* [DC Source 575.98][NEW] Для мобильных устройств — слайдер вытягивается на всю высоту экрана */
@media (max-width: 575.98px) {
  .slider,
  .slider-images,
  .slider-image,
  .slider-content {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }
  .slider-content {
    padding: 40vw 3vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
  }
  /* [DC Source][NEW] Размеры заголовка и описания на мобильных */
  .slider-title {
    font-size: 3.0rem;
    margin-bottom: 0.4em;
  }
  .slider-desc {
    font-size: 2rem;
    margin-bottom: 0.8em;
    line-height: 1.0;
  }
  .slider-link {
    font-size: 1rem;
    padding: 0.5em 1.5em;
  }
  .slider-arrow {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* [DC Source] Оверлей для затемнения */
.slider-overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: rgba(0,0,0,0.2);
}