/* ------------------------------ Hero slider ------------------------------ */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;

  /* КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ */
  display: block !important;       /* Гарантируем блочный поток */
}

/* Убираем возможный флекс у родителя, если где-то наследуется */
.hero > * {
  flex: none !important;
}

/* Дополнительный градиент (если используется .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: 60vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;

  /* На всякий случай — отключаем флекс */
  display: block !important;
}

/* 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__block {
  background-color: #db260d;
  height: 2.4rem;                /* уменьшили высоту */
  display: flex !important;
  align-items: center !important; /* выравнивание текста по центру */
  padding: 0 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;      /* все буквы большие */
  line-height: 1;                 /* отключаем лишнее пространство сверху */
}

.hero__block > div {
  display: inline-block;
  /* margin-right: 2rem; */
  line-height: 1;                 /* фикс центровки */
  white-space: nowrap;
}

/* ------------------------------ Текстовый оверлей ------------------------------ */

.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;
  }
}

/* Стили для бегущей строки */
.marquee-container {
    background-color: #c8102e;
    overflow: hidden;
    white-space: nowrap;
    height: 54px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.marquee-item {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin-right: 36px;
}

.marquee-item::after {
    content: " | ";
    position: absolute;
    margin-left: 15px;
}

.marquee-item:last-child::after {
    content: " | ";
}

@media (max-width: 768px) {
    .marquee-container {
        height: 40px;
    }

    .marquee-item {
        font-size: 20px;
        line-height: 32px;
        margin-right: 24px;
    }

    .marquee-item::after {
        margin-left: 12px;
    }
}
@media (min-width: 1024px) {
    #heroSlider {
        height: 100%;
    }
}
