/* Корневая сетка: 2 колонки — годы + контент */
.tlv3 {
  --gap: 24px;
  --item-h: 56px; /* базовая высота строки */
  --focusline-h: 64px; /* «окно» активной строки слева */
  --history-inline-content-top: 218px;
  --history-modal-content-top: 210px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;

  margin: 0 auto;

  box-sizing: border-box;
  /* height: calc(100dvh - 144px);
  max-height: 1100px; */
  padding-top: 80px;
}

.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 {
  --history-slide-width: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.wrapHistory:not(.wrapHistory--modal) {
  width: 100%;
  margin-left: 0;
  transform: none;
}

.history-intro {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: min(calc(100dvh - 144px), 1100px);
  max-height: 1100px;
  margin: 0 auto;
  color: #fff;
  background: url('/local/templates/nord/src/images/history-bg.webp') center /
    cover no-repeat;
}

.history-intro__container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.history-intro__content {
  max-width: 680px;
  padding: 80px 0;
}

.history-intro__title,
.history-intro__subtitle,
.history-intro__text {
  margin: 0;
}

.history-intro__title {
  font-size: 58px;
  line-height: 1.05;
  font-weight: 700;
}

.history-intro__subtitle {
  margin-top: 18px;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
}

.history-intro__text {
  max-width: 620px;
  margin-top: 34px;
  font-size: 20px;
  line-height: 1.35;
}

.history-intro__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  min-width: 0;
  min-height: 54px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--secondary-black);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.history-intro__button.banner-btn.base-button {
  background: #fff;
  color: var(--secondary-black);
}

.banner-btn:hover {
  background-color: var(--green);
  color: var(--default-color-white);
}

.history-intro__button.banner-btn.base-button:not(:disabled):hover {
  background-color: var(--green);
  color: var(--default-color-white);
}

.history-intro__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.wrapHistory:not(.wrapHistory--modal) .history-shell {
  display: none;
}

.wrapHistory--modal .history-intro {
  display: none;
}

.history-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1920px;
  min-height: inherit;
  margin: 0 auto;
}

html.history-modal-open,
body.history-modal-open {
  overflow: hidden;
}

.wrapHistory--modal {
  --history-slide-width: 100%;
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: auto;
  min-height: 100dvh;
  background: #fff;
  transform: none;
  animation: historyModalIn 0.42s ease;
}

.history-modal.base-modal {
  z-index: 10000;
  overflow: hidden;
}

.history-modal.base-modal .history-modal__overlay {
  display: block;
  min-height: 100%;
  padding: 0;
  background: #fff;
}

.history-modal.base-modal .history-modal__dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.history-modal.base-modal .base-modal__close {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 6;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--secondary-black);
  color: #fff;
}

.history-modal.base-modal .base-modal-close__icon {
  width: 24px;
  height: 24px;
}

@keyframes historyModalIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.wrapHistory--modal .history-shell {
  max-width: none;
  height: 100%;
  min-height: 100dvh;
}

.wrapHistory--modal .history-shell > .container {
  height: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.history-modal__close {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 4;
  display: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--secondary-black);
  cursor: pointer;
}

.history-modal__close::before,
.history-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
}

.history-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.history-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wrapHistory--modal .history-modal__close {
  display: block;
}

.tlv3-bg-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100%;
  max-width: 1920px;
  background: #000032;
  transform: translateX(-50%);
  transition:
    opacity 1.26s ease,
    max-width 0.48s ease,
    transform 1.26s ease;
}

.wrapHistory--modal .tlv3-bg-slide {
  max-width: none;
}

.wrapHistory--modal.wrapHistory--modal-opening .tlv3-bg-slide {
  max-width: 1920px;
}

.tlv3-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.tlv3-bg-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlv3-bg-slide.is-current {
  opacity: 1;
  transform: translateX(-50%);
}

.tlv3-bg-slide.is-next {
  opacity: 1;
  transform: translateX(50%);
}

.tlv3-bg-slide.is-prev {
  opacity: 1;
  transform: translateX(-150%);
}

.tlv3-bg-slide.is-exit-left {
  opacity: 1;
  transform: translateX(-150%);
}

.tlv3-bg-slide.is-exit-right {
  opacity: 1;
  transform: translateX(50%);
}

.history-shell > .container {
  position: relative;
  z-index: 1;
}

.tlv3-slide--has-bg .tlv3__title,
.tlv3-slide--has-bg .tlv3-section__text {
  color: #fff;
}

.wrapHistory--modal .tlv3 {
  position: relative;
  height: 100%;
  padding-top: 92px;
}

.wrapHistory--modal .tlv3__col--years,
.wrapHistory--modal .tlv3-section {
  box-sizing: border-box;
  padding-right: clamp(24px, 2.8vw, 56px);
  padding-left: clamp(24px, 2.8vw, 56px);
}

.wrapHistory--modal .tlv3__col--years {
  padding-right: 0;
}

.wrapHistory--modal .tlv3__col--view {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin-top: 0;
  min-height: 0;
}

.wrapHistory--modal .tlv3-view,
.wrapHistory--modal .tlv3-card {
  height: 100dvh;
}

.wrapHistory--modal .tlv3-section {
  padding-top: var(--history-modal-content-top);
  padding-bottom: 56px;
}

.wrapHistory:not(.wrapHistory--modal) .tlv3 {
  position: relative;
  min-height: calc(100dvh - 144px);
}

.wrapHistory:not(.wrapHistory--modal) .tlv3__col--view {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin-top: 0;
}

.wrapHistory:not(.wrapHistory--modal) .tlv3-view,
.wrapHistory:not(.wrapHistory--modal) .tlv3-card {
  height: 100%;
  overflow: visible;
}

.wrapHistory:not(.wrapHistory--modal) .tlv3-section {
  padding-top: var(--history-inline-content-top);
}

.wrapHistory:not(.wrapHistory--modal) .tlv3-slide {
  overflow: visible;
  transform: none !important;
}

.wrapHistory:not(.wrapHistory--modal) .tlv3-slide:not(:first-child) {
  display: none;
}

.wrapHistory:not(.wrapHistory--modal)
  .history-mobile
  .tlv3-section:not(:first-of-type) {
  display: none;
}
.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;
  z-index: 3;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  scrollbar-width: none;
  padding-top: 0;
  display: flex;
  align-items: flex-start;
  /* align-items: center; */
  /* justify-content: center; */
  height: 48px;
}
.tlv3__col--years::-webkit-scrollbar {
  display: none;
}

.tlv3-years__track {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  gap: 24px;
}

.tlv3-year {
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  margin: 0;
  padding: 12px 31px;
  min-height: 48px;

  color: var(--secondary-black);
  font-size: 17px;
  line-height: 24px;
  white-space: nowrap;
  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;
  background: var(--secondary-grey);
}
.tlv3-year:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tlv3__right {
  width: 43%;
  max-width: 900px;
}

.tlv3-slide--text-only .tlv3-section {
  justify-content: flex-start;
}

.tlv3-slide--text-only .tlv3__right {
  width: min(100%, 860px);
  max-width: 860px;
}

.tlv3-year.is-active {
  color: #fff;
  background: var(--secondary-black);
  /* background: rgba(255, 255, 255, 0.1); */
  /* transform: scale(1.16); */

  opacity: 1;
}

.tlv3-year:hover {
  background: var(--secondary-black);
  color: #fff;
}

/* Центральная зона выравнивания активной */
.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 {
  margin-top: 90px;
  min-height: 430px;
  height: 100%;
}
.tlv3-view {
  position: relative;
  height: 100%;
  overflow: hidden;
  /* min-height: 600px; */
}
.tlv3-card {
  position: relative;
  height: 100%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tlv3-card::-webkit-scrollbar {
  display: none;
}

.tlv3-slide {
  position: relative;
  flex: 0 0 var(--history-slide-width);
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 1.26s ease,
    transform 1.26s ease;
}

.tlv3-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background: #000032;
}

.tlv3-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.tlv3-slide__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tlv3-slide__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.wrapHistory:not(.wrapHistory--modal) .tlv3-slide__bg {
  left: 50%;
  right: auto;
  width: min(100vw, 1920px);
  transform: translateX(-50%);
}

.wrapHistory--modal .tlv3-slide__bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  transform: none;
}

.tlv3-slide.is-current {
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}

.tlv3-slide.is-next {
  opacity: 1;
  transform: translateX(0);
}

.tlv3-slide.is-prev {
  opacity: 1;
  transform: translateX(0);
}

.tlv3-slide.is-exit-left {
  opacity: 1;
  transform: translateX(0);
}

.tlv3-slide.is-exit-right {
  opacity: 1;
  transform: translateX(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: 32px;
  font-size: 20px;
  line-height: 1.2;
  max-width: 600px;
}

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

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

.tlv3-section__img {
  display: block;
  /* max-width: 95%; */
  width: auto;
  height: auto;
  border-radius: 10px;
  /* margin: 0 auto; */
  /* margin-top: 12px; */
  max-height: 700px;
  max-width: 53.5%;
  flex-shrink: 0;
  object-fit: contain;
}

.tlv3-section__media {
  display: flex;
  flex: 0 1 53.5%;
  max-width: 53.5%;
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
}

.tlv3-section__media picture {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 1px;
}

.tlv3-section__media .tlv3-section__img {
  width: auto;
  max-width: 100%;
}

video.tlv3-section__img {
  max-height: 63%;
}

.tlv3-section img {
  border-radius: 10px;
  max-height: 700px;
  height: auto;
  width: auto;
  max-width: 53.5%;
  /* flex-grow: 1; */
}

.tlv3-section {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  gap: 4%;
  display: inline-block;
  display: block; /* чтобы ширина точно применялась */
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
}

.tlv3__title {
  font-weight: 700;
  font-size: 67px;
}

.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;
}

.bd-header {
  height: 112px !important;
}

@media (max-width: 1980px) {
  .tlv3__col--years {
    padding-top: 0;
  }

  .tlv3__col--years {
    padding-top: 0;
  }
  .tlv3-section__text {
    font-size: 22px;
    line-height: 1.2;
    /* max-width: 75%; */
  }
}

@media (max-height: 1199px) {
  .tlv3-section__text {
    font-size: 20px;
    line-height: 1.2;
    /* max-width: 74%; */
  }
}

@media (max-width: 1600px) {
  .tlv3__title {
    font-size: 56px;
  }
}

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

@media (max-width: 1290px) {
  .bd-header {
    height: 80px !important;
    padding-top: 20px !important;
  }

  .wrap-35-img {
    margin-top: 5px;
    margin-bottom: 15px;
  }

  .tlv3-section__text {
    font-size: 18px;
    line-height: 1.05;
  }
}

@media (max-width: 1200px) {
  .history-intro__title {
    font-size: 52px;
  }

  .history-intro__subtitle {
    font-size: 36px;
  }

  .tlv3-year {
    min-height: 40px;
    padding: 8px 24px;
    line-height: 24px;
  }

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

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

  .derevoHostory {
    opacity: 0.3;
    position: fixed;
    height: 40vh;
  }

  .wrapHistory--modal {
    overflow-y: auto;
  }

  .history-modal.base-modal {
    overflow-y: auto;
  }

  .history-modal.base-modal .history-modal__dialog {
    height: auto;
  }

  .wrapHistory--modal .history-shell > .container {
    height: auto;
    padding-right: 15px;
    padding-left: 15px;
  }

  .history-modal__close,
  .history-modal.base-modal .base-modal__close {
    position: fixed;
    top: 90px;
    right: 15px;
    z-index: 6;
    width: 38px;
    height: 38px;
    background: #fff;
    color: var(--secondary-black);
    box-shadow: 0 4px 14px rgba(1, 3, 51, 0.12);
  }

  .history-modal.base-modal .base-modal-close__icon {
    width: 18px;
    height: 18px;
  }

  .wrap-35-img {
    margin-top: 0;
    height: auto;
  }
  .history-mobile {
    display: block;
    margin: 0;
    width: 100%;
    padding: 0 0 30px;
    scroll-behavior: smooth;
  }

  .history-mobile__nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    min-height: 92px;
    padding: 20px 0 10px;
    box-shadow: 0 2px 1.8px 0 rgba(0, 0, 0, 0.03);
    background: #fff;
    scrollbar-width: none;
  }

  .wrapHistory:not(.wrapHistory--modal) .history-modal__close {
    display: none;
  }

  .tlv3-bg-slide {
    display: none;
  }

  .history-mobile__nav::-webkit-scrollbar {
    display: none;
  }

  .history-mobile__year {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 68px;
    height: 40px;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 10px;
    background: var(--secondary-grey3);
    color: var(--secondary-black);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .history-mobile__year.is-active,
  .history-mobile__year:focus-visible {
    background: var(--secondary-black);
    color: #fff;
  }

  .history-mobile__title {
    margin: 22px 0 0;
    color: var(--secondary-black);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
  }
  .tlv3 {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
  }

  .wrapHistory .tlv3 {
    display: none;
  }

  .wrapHistory {
    min-height: 0;
  }
  .history-intro {
    height: auto;
    padding-right: 15px;
    padding-left: 15px;
    background: none;
    box-sizing: border-box;
  }

  .history-intro__container {
    border-radius: 10px;
    background: url('/local/templates/nord/src/images/history-bg_mob.webp')
      center / cover no-repeat;
  }

  .history-intro__content {
    max-width: 520px;
    padding: 32px 20px;
  }

  .history-intro__title {
    font-size: 32px;
  }

  .history-intro__subtitle {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1.1;
  }

  .history-intro__text {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.4;
  }

  .history-intro__button {
    width: 100%;
    margin-top: 28px;
  }

  .history-shell {
    overflow: visible;
    min-height: 0;
  }

  .tlv3__col--view {
    height: auto;
  }

  .tlv3-view {
    height: auto;
  }

  .tlv3-card {
    height: auto;
  }

  .tlv3-section {
    position: relative;
    height: auto;
    display: block;
    width: 100%;
    padding: 0;
    scroll-margin-top: 96px;
  }

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

  .wrapHistory--modal .tlv3-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 10px;
  }

  .history-mobile > .tlv3-section:first-of-type {
    padding-top: 58px;
  }

  .tlv3-section__text {
    font-size: 16px;
    margin: 10px 0 0;
    max-width: 100%;
    color: var(--secondary-black);
  }

  .wrapHistory--has-bg .history-mobile__title,
  .wrapHistory--has-bg .history-mobile .tlv3-section__text {
    color: var(--secondary-black);
  }

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

  .tlv3-section__img,
  video.tlv3-section__img,
  .tlv3-section img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
  }

  .tlv3-section__media,
  .tlv3-section__media picture {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .tlv3-section__media .tlv3-section__img {
    width: 100%;
    max-width: 100%;
  }

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

@media (max-width: 560px) {
  .history-intro__title {
    font-size: 20px;
  }

  .history-intro__subtitle {
    font-size: 16px;
    margin-top: 10px;
  }

  .history-intro__subtitle br {
    display: none;
  }
  .history-intro__text {
    margin-top: 10px;
  }
}
