/* ====================
   ИСТОРИЯ КОМПАНИИ
   ==================== */

/* Обертка: стрелки + слайдер */
.timeline-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

/* Стрелки навигации в стиле сайта */
.timeline-arrow {
  position: relative;
  z-index: 10;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50% !important;
  background: rgba(10, 25, 15, 0.85) !important;
  border: 1.5px solid #1ea653 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0 !important;
  margin: -65px 0 0 0 !important;
  outline: none !important;
}

.timeline-arrow svg {
  width: 24px;
  height: 24px;
  fill: #1ea653;
  transition: fill 0.25s ease;
  display: block;
}

.timeline-arrow:hover {
  background: #1ea653 !important;
}

.timeline-arrow:hover svg {
  fill: #ffffff !important;
}

.timeline-prev {
  margin-right: 20px !important;
}

.timeline-next {
  margin-left: 20px !important;
}

/* Неактивное состояние стрелок */
.timeline-arrow.swiper-button-disabled {
  opacity: 0.2 !important;
  cursor: not-allowed !important;
  border-color: #555555 !important;
}
.timeline-arrow.swiper-button-disabled svg {
  fill: #777777 !important;
}


  /* Зеленая полоса на весь экран */
  .banner-company::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 103px;
    height: 56px;
    background-color: #1ea653;
    z-index: 1;
    width: 100%;
  }


@media (min-width: 1200px) {
  /* Зеленая полоса на весь экран */
  .banner-company::before {
    bottom: 145px;
  }
}

/* ================================
   ДЕСКТОП ВЕРСИЯ (экран шире 768px)
   ================================ */
@media (min-width: 769px) {
  .timeline-wrapper {
    display: flex !important;
    align-items: stretch !important; /* Растягиваем слайды на всю высоту */
  }

  /* Ячейка года и текста */
  .timeline-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 151px !important;
    flex-shrink: 0 !important; 
    box-sizing: border-box !important;
    padding: 0 25px 0 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* Блок описания события (над зеленой полосой) */
  .timeline-content-col {
    order: 1 !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .timeline-content-col p {
    font-size: 14px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-align: left !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Блок с годом (на зеленой полосе) */
  .timeline-date-col {
    order: 2 !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Белые цифры года */
  .timeline-date {
    display: inline-block !important;
    color: #ffffff !important;
    font-family: HeadingPro, sans-serif;
    font-size: 32px !important;
    line-height: 1 !important;
    text-align: left !important;
  }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (смартфоны и планшеты до 768px включительно)
   ============================================================ */
@media (max-width: 768px) {

  /* Зеленая полоса скрыта */
  .banner-company::before {
    height: 0;
    display: none !important;
  }

  /* Стрелки на телефонах скрыты */
  .timeline-arrow {
    display: none !important;
  }

  .timeline-swiper {
    overflow: visible !important;
  }

  /* Превращаем слайдер в единый вертикальный список */
  .timeline-wrapper {
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    width: 100% !important;
  }

  .timeline-item {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
  }

  /* ЗЕЛЕНЫЙ СТОЛБИК С ДАТАМИ (СЛЕВА) */
  .timeline-date-col {
    order: 1 !important;
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    background-color: #1ea653 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 8px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
  }

  .timeline-date {
    color: #ffffff !important;
    font-family: HeadingPro, sans-serif;
    font-size: 27px !important;
    line-height: 1 !important;
    text-align: center !important;
    display: block !important;
  }

  /* СОБЫТИЕ С ЧЕРТОЧКОЙ (СПРАВА) */
  .timeline-content-col {
    order: 2 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 16px 15px 16px 20px !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Зеленая тонкая черточка снизу под текстом */
  .timeline-content-col::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 20px !important;
    right: 0 !important;
    height: 1px !important;
    background-color: #1ea653 !important;
    opacity: 0.9 !important;
  }

  .timeline-content-col p {
    font-size: 14px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-align: left !important;
  }
}