/* START_FILE: css/timing.css — УПРОЩЁННАЯ ОДНОСТРАНИЧНАЯ ВЕРСИЯ */

.timing-section {
  background-image: url('../images/bg-block-5.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  width: 100%;
  padding: 60px 0 !important;
  box-sizing: border-box !important;
}

.timing-card-island {
  max-width: 700px !important;
  width: 95% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
  min-height: auto !important; /* Убрали жесткую десктопную высоту */
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.timing-island-content {
  width: 85% !important; /* Немного расширили для лучшей вместимости текста */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 45px 0 !important;
  box-sizing: border-box !important;
}

.timing-card-island *, .timing-card-island button {
  color: #4A4A4A !important;
  text-shadow: none !important;
}

.timing-headline-badge {
  padding: 10px 30px !important;
  border-radius: 15px !important;
  margin-bottom: 40px !important;
  display: inline-block !important;
  border: none !important;
  background-image: url('../images/bg-block-5.webp') !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-size: cover !important;
}

.timing-headline-badge h2 {
  font-family: 'Great Vibes', cursive !important;
  font-size: 3rem !important;
  font-weight: 400 !important;
  color: #4A4A4A !important;
  margin-bottom: 0 !important;
  letter-spacing: 0px !important;
  text-transform: none !important;
}

/* ОЧИЩЕНО: Контейнеры, треки и страницы слайдера теперь полностью статичны и равны 100% */
.timing-cards-container {
  width: 100% !important;
  box-sizing: border-box !important;
}

.timing-slider-track {
  display: block !important; /* Убрали flex и 200% ширины */
  width: 100% !important;
}

.timing-page-content {
  width: 100% !important; /* Сбросили десктопные 50% */
  display: block !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.custom-timeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
  position: relative !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Осевая вертикальная линия таймлайна */
.custom-timeline::before {
  content: "";
  position: absolute;
  top: 5px; bottom: 5px; left: 88px;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1) !important;
  z-index: 1;
}

.custom-timeline div,
.timeline-row,
.timeline-time-cell,
.timeline-dot-cell,
.timeline-text-cell,
.timeline, .timeline-item, .time, .timeline-dot, .time-desc {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
}

.timeline-row::before, .timeline-row::after,
.timeline-time-cell::before, .timeline-time-cell::after,
.timeline-dot-cell::before, .timeline-dot-cell::after,
.timeline-text-cell::before, .timeline-text-cell::after {
  display: none !important;
  content: none !important;
}

.timeline-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  position: relative;
  z-index: 2;
  box-sizing: border-box !important;
}

.timeline-time-cell {
  width: 65px !important;
  font-family: 'Alexander', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-align: right !important;
  display: block !important;
  color: #4A4A4A !important;
  flex-shrink: 0 !important;
}

.timeline-dot-cell {
  width: 46px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.t-dot {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  min-height: 9px !important;
  background-color: #4A4A4A !important;
  border-radius: 50% !important;
  display: block !important;
}

.timeline-text-cell {
  flex: 1 !important;
  font-family: 'Alexander', serif !important;
  font-size: 1.5rem !important;
  line-height: 1.4 !important;
  padding-left: 5px !important;
  color: #4A4A4A !important;
  white-space: normal !important; /* Разрешаем перенос строк по умолчанию */
  word-wrap: break-word !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* ==========================================================================
   ИЗОЛИРОВАННАЯ МОБИЛЬНАЯ ВЕРСИЯ (ДО 580px) — ЧИСТАЯ АДАПТИВНОСТЬ ОДНОЙ СТРАНИЦЫ
   ========================================================================== */
@media (max-width: 580px) {
  .timing-section {
    padding: 40px 0 !important;
  }
  .timing-island-content { 
    width: 92% !important; 
    padding: 35px 0 !important; 
  }
  .timing-card-island { 
    min-height: auto !important; 
  }
  .timeline-time-cell { 
    width: 55px !important; 
    font-size: 1.4rem !important; 
  }
  .custom-timeline::before { 
    left: 78px; 
  }
  
  /* Текст идеально зажат внутри флекс-строки и переносится строго по границам слов */
  .timeline-text-cell { 
    font-size: 1.5rem !important; 
    white-space: normal !important; 
    word-wrap: break-word !important; 
    flex: 1 !important;
    padding-right: 5px !important;
  }
}
/* END_FILE: css/timing.css */
