.history-slider__paragraph:not(:last-child) {
  margin-bottom: 24px;
}
.history-years-slider {
  position: relative;
  z-index: 1;
}
@media screen and (min-width: 1024px) {
  .history-years-slider {
    margin-top: 40px;
  }
}
@media screen and (min-width: 1440px) {
  .history-years-slider {
    max-width: 1440px;
    margin: 40px auto 0;
    overflow: hidden;
  }
}
.history-years-slider:before {
  content: '';
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 140px;
  background-image: linear-gradient(to left, rgba(255, 0, 0, 0), var(--color-white));
  pointer-events: none;
  display: none;
}
@media screen and (min-width: 1440px) {
  .history-years-slider:before {
    display: block;
  }
}
.history-years-slider:after {
  content: '';
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 0;
  height: 60px;
  width: 140px;
  background-image: linear-gradient(to right, rgba(255, 0, 0, 0), var(--color-white));
  pointer-events: none;
  display: none;
}
@media screen and (min-width: 1440px) {
  .history-years-slider:after {
    display: block;
  }
}
.history-years-slider__slider {
  max-width: 1280px;
  overflow: visible;
}
.history-years-slider__slide {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media screen and (min-width: 1440px) {
  .history-years-slider__slide {
    width: 78px;
  }
}
.history-years-slider__slide:after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: var(--color-grey-3);
  width: 100%;
}
.history-years-slider__slide._first:before {
  content: '';
  position: absolute;
  z-index: 0;
  bottom: -4px;
  left: 0;
  height: 14px;
  width: 10px;
}
@media screen and (min-width: 1024px) {
  .history-years-slider__slide._first:before {
    background-color: var(--color-white);
  }
}
.history-years-slider__slider-arrow {
  position: absolute;
  z-index: 10;
  height: 54px;
  width: 180px;
  bottom: 0;
  transition: opacity 0.4s;
  opacity: 0;
  display: none;
}
.history-years-slider__slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.history-years-slider__slider-arrow._prev {
  left: 0;
}
.history-years-slider__slider-arrow._next {
  right: 0;
}
@media screen and (min-width: 1440px) {
  .history-years-slider__slider-arrow {
    display: block;
  }
}
@media (hover: hover) {
  .history-years-slider__slider-arrow:hover:not(:disabled) {
    opacity: 1;
  }
}
.history-years-slider__slide-button {
  color: var(--color-grey-1);
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
  transition: all 0.2s;
  height: 46px;
  padding-bottom: 16px;
}
@media screen and (min-width: 1024px) {
  .history-years-slider__slide-button {
    height: 52px;
  }
}
@media screen and (min-width: 1440px) {
  .history-years-slider__slide-button {
    font-size: 16px;
    line-height: 20px;
  }
}
.history-years-slider__slide-button._active {
  color: var(--color-black);
  font-size: 20px;
  line-height: 24px;
  border-bottom: 6px solid var(--color-orange);
  padding-bottom: 16px;
  padding-top: 0;
  transition: all 0.2s;
}
@media screen and (min-width: 1440px) {
  .history-years-slider__slide-button._active {
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
  }
}
.history-slider {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.history-slider__title-container {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.history-slider__title {
  margin-bottom: 46px;
}

.history-slider__slide-text {
  margin: 24px 0;
}
@media screen and (min-width: 768px) {
  .history-slider__slide-text {
    margin: 40px 0;
  }
}
@media screen and (min-width: 1024px) {
  .history-slider__slide-text {
    margin: 124px 0 0;
  }
}
@media screen and (min-width: 1440px) {
  .history-slider__slide-text {
    margin: 156px 0 0;
  }
}

.history-slider__slide {
  background-color: var(--color-white);
}

.history-slider__slide-image-container {
  height: 73vw;
  position: relative;
  z-index: 1;
}
@media screen and (min-width: 768px) {
  .history-slider__slide-image-container {
    height: 77vw;
  }
}
@media screen and (min-width: 1024px) {
  .history-slider__slide-image-container {
    height: 520px;
  }
}

.history-slider__slide-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.history-slider__slider {
  width: 100vw;
}

@media (max-width: 1439px) {
  .history-slider__title {
    margin-bottom: 40px;
  }
}
@media (max-width: 1023px) {
  .history-slider__title-container {
    position: static;
  }
  .history-slider__sliders {
    display: flex;
    flex-direction: column-reverse;
  }
}
@media (max-width: 767px) {
  .history-slider__title {
    margin-bottom: 24px;
  }
}
