/* Общие стили для слайдера */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s;
  cursor: pointer;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-text {
  position: absolute;
  top: 90px;
  left: 10px;
  background: rgba(0,0,0,0.5);
  padding: 8px;
  border-radius: 5px;
  font-size: 36px;
  color: #FFFFFF;
  line-height: 36px;
    z-index: 3;
}

.slide-info {
  font-size: 20px;
  color: #CCCCCC;
  text-align: left;
    z-index: 3;
}

.slide-info2 {
  font-size: 24px;
  color: #CCCCCC;
  text-align: left;
    z-index: 3;
}

/* Стрелки навигации */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: 0.3s ease;
}

.arrow:hover:after {
   opacity: 0.9;
}

.arrow.prev {
  left: -50px;
}

.arrow.next {
  right: -50px;
}

.arrow:after {
  content: '';
  border: solid rgba(200,200,200,1);
  opacity: 0.3;
  border-width: 0 3px 3px 0;
  padding: 7px;
  display: inline-block;
}

.arrow.prev:after {
  transform: rotate(135deg);
}

.arrow.next:after {
  transform: rotate(-45deg);
}

.slider-container:hover .arrow.prev{
  left: 20px;
  opacity: 1;
}

.slider-container:hover .arrow.next{
  right: 20px;
  opacity: 1;
}

/* Миниатюры */
.thumbs {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  z-index: 10;
}

.thumbs img {
  max-width: 120px;
  max-height: 180px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: opacity 0.3s, transform 0.2s;
  opacity: 0.5;
  margin: 4px 6px;
  border: 1px solid #F7F7F7;
  box-shadow: 1px 1px 2px #555555;
  position: relative;
}

.thumbs img.active {
  opacity: 1;
  transform: scale(1.1);
  border: 1px solid #fa0000;
}

.thumbs img:not(.active):hover {
  opacity: 1;
}

/* Десктопная версия - полноэкранный слайдер */
@media (min-width: 769px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  /* Фиксированное меню для десктопа */
  .slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
  }
  
  .slide-text {
    top: 80px; /* 80 */
  }
  
  .thumbs img:not(.active):hover {
    transform: translateY(-12px);
  }
}

/* Мобильная версия - слайдер в потоке документа */
@media (max-width: 768px) {
  .slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /*16 / 8*/
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .slide-text {
    font-size: 24px; /* 24 */
    padding: 10px;
    line-height: 24px;
    top: 10px;
  }
  
  .slide-info {
    font-size: 16px;
  }
  .slide-info2 {
  font-size: 18px;
  color: #CCCCCC;
  text-align: left;
}
  
  .thumbs img {
    margin: 2px;
    max-width: 80px;
    max-height: 120px;
  }
}

@media (max-width: 640px) {
  .slide-text {
    font-size: 20px;
    padding: 10px; /* 10 */
    line-height: 20px;
  }
  
  .slide-info {
    font-size: 14px;
  }
  .slide-info2 {
  font-size: 18px;
}
  
  .thumbs img {
    max-width: 70px;
    max-height: 105px;
  }
}

@media (max-width: 480px) {
  .slide-text {
    font-size: 16px;
    padding: 5px;
    line-height: 16px;
  }
  
  .slide-info {
    font-size: 12px;
  }
  .slide-info2 {
  font-size: 14px;
}
  
  .thumbs img {
    max-width: 60px;
    max-height: 90px;
  }
}