/* ------------------------------ Hero slider ------------------------------ */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

/* Дополнительный градиент (если используется .secondary) */
.secondary .hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 50%,
      rgba(11, 26, 52, 0.4) 85%
    );
}

.secondary .hero {
  clip-path: none;
}

/* Контейнер Swiper слайдера */
.hero-slider {
  width: 100%;
  height: 76vh;
  position: relative;
  overflow: hidden;
}

/* Swiper slide */
.hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Изображения */
.hero-slider .swiper-slide picture,
.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Стрелки навигации */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  user-select: none;
  outline: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s;
}

.slider__arrow:hover {
  opacity: 0.8;
}

.slider__arrow--prev {
  left: 10px;
}

.slider__arrow--next {
  right: 10px;
}

/* Текстовый оверлей под слайдером */
.hero-overlay {
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.5rem 0;
  background: rgba(11, 26, 52, 0.85);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
}

.hero-overlay h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0;
  font-weight: bold;
}

.hero-overlay .subtitle {
  margin-top: 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: bold;
}

/* ------------------------------ Мобильная версия ------------------------------ */

@media (max-width: 768px) {
  .hero-slider {
    height: auto;
  }

  .hero-slider .swiper-slide {
    height: auto;
  }

  .hero-slider .swiper-slide picture,
  .hero-slider .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    object-position: top;
  }

  .hero-overlay {
    margin: 0 auto 1.5rem;
    padding: 1rem 0;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay .subtitle {
    font-size: 0.9rem;
  }

  .slider__arrow {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.4rem;
  }

  .hero-overlay .subtitle {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 61.9988em) {
  .hero-slider,
  .hero {
    clip-path: none !important;
  }
}
