/* History */
.history {

}

.history__header {
  margin-bottom: 53px;
}

.history__content {
  position: relative;
}

.history__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-bottom: 2px solid var(--border-color);
  z-index: 2;
}

.history__list-outer {
  position: relative;
}

.history__list-outer:before,
.history__list-outer:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 0.15s ease-in-out;
}

.history__list-outer.is-start:before,
.history__list-outer.is-end:after {
  opacity: 1;
  visibility: visible;
}

.history__list-outer:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.history__list-outer:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.history__list-wrapper {
  user-select: none;
  overflow: hidden;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
  cursor: move;
}

.history__list-wrapper:not(.is-move) {
  scroll-behavior: smooth;
}

.history__list-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.history__list-wrapper::-webkit-scrollbar-track {
  background-color: transparent;
}

.history__list-wrapper::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.history__list-wrapper.is-active,
.history__list-wrapper.is-active * {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.history__list-wrapper.is-move * {
  pointer-events: none;
}

.history__list {
  display: inline-block;
  vertical-align: top;
}

.history__part {
  display: flex;
}

.history__part_top {
  padding-left: 140px;
  border-bottom: 2px solid var(--border-color);
}

.history__item {
  flex: 0 0 auto;
  width: 340px;
  position: relative;
  padding-left: 30px;
  padding-right: 40px;
  padding-bottom: 20px;
  min-height: 171px;
}

.history__item-line {
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: -6px;
  border-left: 2px solid var(--border-color);
}

.history__item-line:before,
.history__item-line:after {
  content: '';
  position: absolute;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.history__item-line:before {
  top: 0;
  background: var(--accent-color);
  z-index: 1;
}

.history__item-line:after {
  bottom: 0;
}

.history__part_bottom .history__item-line {
  top: -5px;
  bottom: auto;
  height: 70px;
}

.history__part_bottom .history__item-line:before {
  top: auto;
  bottom: 0;
}

.history__part_bottom .history__item-line:after {
  bottom: auto;
  top: 0;
}

.history__part_bottom .history__item {
  padding-bottom: 0;
  padding-top: 47px;
}

.history__item-year {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 11px;
}

.history__item-text {
  font-size: 13px;
}

@media (max-width: 1199.98px) {
  .history__header {
    margin-bottom: 40px;
  }
}

@media (max-width: 767.98px) {
  .history__part_top {
    padding-left: 60px;
  }

  .history__item {
    width: 260px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .history__list-outer:before,
  .history__list-outer:after {
    width: 40px;
  }
}
/* ! History */