/* Корневая сетка: 2 колонки — годы + контент */
.tlv3 {
  --gap: 24px;
  --item-h: 56px; /* базовая высота строки */
  --focusline-h: 64px; /* «окно» активной строки слева */
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap);
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  box-sizing: border-box;
  height: calc(100dvh - 144px);
  max-height: 1100px;
}

.bg-container video {
  display: none;
}
.bd-header {
  padding-top: 2rem !important;
  height: 9rem !important;
  background: #051f4c;
}

.logo-35 svg path {
  fill: white;
}

a.scroll {
  display: none;
}
.wrapHistory {
  position: relative;
  background-image: url("./history-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.derevoHostory {
  height: 73vh;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.5;
}
.bd-footer {
  margin-top: 0;
}

sup {
  font-size: 14px;
}

/* Левая колонка: список дат (скролл скрыт) */
.tlv3__col--years {
  position: relative;
  overflow: auto;
  padding-right: 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  scrollbar-width: none;
  padding-top: 30px;
  display: flex;
  height: 100%;
  /* align-items: center; */
  /* justify-content: center; */
  height: calc(100dvh - 160px);
}
.tlv3__col--years::-webkit-scrollbar {
  display: none;
}

.tlv3-years__track {
  position: relative;
}

.tlv3-year {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 6px;
  height: 35px;
  font: 600 24px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #ffffff50;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease,
    background-color 0.18s ease;
  opacity: 0.75;
}
.tlv3-year:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tlv3-year.is-active {
  color: #ffffff90;
  font-size: 64px;
  /* background: rgba(255, 255, 255, 0.1); */
  transform: scale(1.16);
  height: 78px;
  opacity: 1;
  width: 180px;
}

.tlv3-year.is-active:hover {
  background: transparent;
}

.tlv3-year.is-prev,
.tlv3-year.is-next {
  color: #ffffff50;
  opacity: 0.95;
}

/* Центральная зона выравнивания активной */
.tlv3-years__focusline {
  position: sticky;
  top: calc(50vh - var(--focusline-h) / 2);
  height: var(--focusline-h);
  margin: 0 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

/* Правая колонка: карточка с кросс-фейдом */
.tlv3__col--view {
  height: calc(100dvh - 160px);
}
.tlv3-view {
  position: relative;
  height: 92%;
  /* min-height: 600px; */
}
.tlv3-card {
  position: relative;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.tlv3-card.is-fade-out {
  opacity: 0;
  transform: translateY(8px);
}
.tlv3-card.is-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Контент внутри карточки */
.tlv3-section__year {
  margin: 0 0 8px 0;
  font: 800 22px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.tlv3-section__text {
  margin-top: 20px;
  color: #ffffffdd;
  font-size: 26px;
  line-height: 1.2;
}

.tlv3-section__detail-text {
  margin-top: 30px;
  height: 30%;
}

.tlv3-section__detail-text p {
  margin-top: 20px;
}

.tlv3-section__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  /* margin: 0 auto; */
  /* margin-top: 12px; */
  max-height: 700px;
}

.tlv3-section img {
  max-width: 100%;
  border-radius: 10px;
  max-height: 70%;
  height: auto;
}

.tlv3-section {
  height: 100%;
}

.wrap-35-img {
  margin-top: 10px;
  margin-bottom: 25px;
  height: 8%;
  max-height: 62px;
}

.wrap-35-img img {
  height: 100%;
}

.imgs-wrap {
  display: flex;
  max-width: 100%;
}

.imgs-wrap img {
  max-width: 50%;
}

.tlv3__col p {
  margin: 0;
}

.history-mobile {
  display: none;
}

@media (max-width: 1980px) {
  .tlv3-section img {
    max-height: 63%;
  }

  .tlv3__col--years {
    padding-top: 0;
  }
  .tlv3-year {
    height: 30px;
  }

  .tlv3__col--years {
    padding-top: 0;
  }
}

@media (max-height: 1240px) {
  .tlv3-section__text {
    font-size: 22px;
    line-height: 1.2;
    /* max-width: 75%; */
  }
}

@media (max-width: 1460px) {
  .tlv3-section__text {
    font-size: 22px;
    line-height: 1.2;
    /* max-width: 75%; */
  }
}

@media (max-width: 1200px) {
  .tlv3-year {
    height: 30px;
  }

  .tlv3-section img {
    max-height: 60%;
  }
}

/* Мобилка: всё в одну колонку, без анимаций и без «фокуса» */
@media (max-width: 980px) {
  header.bd-header {
    height: 98px !important;
  }

  .derevoHostory {
    opacity: 0.3;
    position: fixed;
    height: 40vh;
  }
  .wrap-35-img {
    margin-top: 0;
    height: auto;
  }
  .history-mobile {
    display: block;
    padding: 30px 10px;
  }
  .tlv3 {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
  }

  .tlv3.container {
    display: none;
  }

  .tlv3__col--view {
    height: auto;
  }

  .tlv3-view {
    height: auto;
  }

  .tlv3-card {
    height: auto;
  }

  .tlv3-section {
    position: relative;
    height: auto;
  }

  .tlv3-section:not(:last-child) {
    margin-bottom: 20px;
  }

  .tlv3-section__text {
    font-size: 18px;
    margin-top: 20px;
  }

  .tlv3-section__detail-text {
    margin-top: 20px;
  }

  .tlv3-section img {
    height: auto;
    max-width: 100%;
  }

  .tlv3-year {
    height: auto;
    font-size: 32px;
  }
  .tlv3__col--years {
    border-right: 0;
    height: auto;
  }
  .tlv3-years__focusline {
    display: none;
  }
  .tlv3-year,
  .tlv3-card {
    transition: none !important;
  }
}
