.history_section {
  padding: 80px 0;
  background: #ffffff;
}

.history__wrapper {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(260px, 382px)
    102px
    20px
    102px
    minmax(580px, 1fr);
  grid-template-rows: repeat(10, auto) 70px;
  row-gap: 50px;
  align-items: start;
}

.history__track {
  grid-row: 1 / -1;
  grid-column: 3;
  align-self: stretch;
  justify-self: center;
  z-index: 0;
  width: 1px;
  background: #d8d8d8;
  margin-top: 17px;
  margin-bottom: 10px;
}

.history__dot--end {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: end;
  justify-self: center;
  z-index: 1;
  margin-top: 0;
}
.history__decade {
  grid-column: 1;
  align-self: start;
  justify-self: end;
  width: 100%;
  transform: translateY(-16px);
}

.decade--2017 {
  grid-row: 1 / span 3;
}

.decade--2020 {
  grid-row: 4 / span 4;
}

.decade--2024 {
  grid-row: 8 / span 3;
}

.history__decade-title {
  margin: 0 0 20px;
  color: #1762cc;
  text-align: right;
  text-transform: none;
}

.history__image {
  width: 100%;
  border-radius: 6px;
}

.history__year {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 3 / 6;
  grid-template-columns: 20px 102px minmax(320px, 1fr);
  align-items: start;
}

.year--2017 {
  grid-row: 1;
}

.year--2018 {
  grid-row: 2;
}

.year--2019 {
  grid-row: 3;
}

.year--2020 {
  grid-row: 4;
}

.year--2021 {
  grid-row: 5;
}

.year--2022 {
  grid-row: 6;
}

.year--2023 {
  grid-row: 7;
}

.year--2024 {
  grid-row: 8;
}

.year--2025 {
  grid-row: 9;
}

.year--2026 {
  grid-row: 10;
}

.history__dot {
  position: relative;
  grid-column: 1;
  align-self: start;
  justify-self: center;
  width: 20px;
  height: 20px;
  margin-top: 7px;
  border: 2px solid #1762cc;
  border-radius: 50%;
  background: #ffffff;
}

.history__dot::after {
  content: "";
  position: absolute;
  inset: 3.4px;
  border-radius: 50%;
  background: #1762cc;
}
.history__dot.history__dot--end {
  grid-column: 3;
  grid-row: 11;
  align-self: end;
  justify-self: center;
  z-index: 1;
  margin-top: 0;
}
.history__content {
  grid-column: 3;
  min-width: 0;
}

.history__label {
  margin: 0 0 20px;
  text-align: left;
  text-transform: none;
}

.history__entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 584px;
  margin: 0 0 5px;
}

.history__entry:last-child {
  margin-bottom: 0;
}

.history__date {
  display: flex;
  flex: 0 0 42px;
  /* min-width: 36px; */
  text-transform: none;
  justify-content: space-between;
  align-items: baseline;
}
.history__date-num,
.history__date-unit {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
}
.history__text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: keep-all;
  background: linear-gradient(0deg, #656565, #656565),
              linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: nowrap;
}

@media (max-width: 1024px) {
  .history__wrapper {
    grid-template-columns: minmax(220px, 320px) clamp(20px, 4vw, 60px) 20px clamp(20px, 4vw, 60px) minmax(260px, 1fr);
    row-gap: 44px;
  }

  .history__year {
    grid-template-columns: 20px clamp(20px, 2vw, 60px) minmax(260px, 1fr);
  }

  .history__label {
    font-size: 22px;
  }

  .history__date {
    min-width: 44px;
    font-size: 20px;
  }

  .history__text {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .history_section {
    padding: 56px 0;
  }

  .history__wrapper {
    grid-template-columns: 20px 16px minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 28px;
  }

  .history__track {
    grid-row: 1 / -1;
    grid-column: 1;
  }

  .history__decade,
  .history__year {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .history__decade {
    display: grid;
    grid-template-columns: 20px 16px minmax(0, 1fr);
    justify-self: stretch;
    width: 100%;
  }

  .history__decade-title,
  .history__image {
    grid-column: 3;
  }

  .history__decade-title {
    margin-bottom: 16px;
    font-size: 32px;
    text-align: left;
  }

  .history__year {
    grid-template-columns: 20px 16px minmax(0, 1fr);
  }

  .history__dot {
    grid-column: 1;
    width: 18px;
    height: 18px;
    margin-top: 4px;
  }

  .history__dot::after {
    inset: 4px;
  }
  .history__dot--end {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: end;
    justify-self: center;
    margin-top: 0;
  }

  .history__track {
    margin-top: 13px;
    margin-bottom: 9px;
  }

  .history__content {
    grid-column: 3;
  }

  .history__label {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .history__entry {
    gap: 10px;
    margin-bottom: 10px;
  }

  .history__date {
    min-width: 40px;
    font-size: 18px;
  }

  .history__text {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .history_section {
    padding: 40px 0;
  }

  .history__decade-title {
    font-size: 28px;
  }

  .history__label {
    font-size: 18px;
  }

  .history__date {
    min-width: 36px;
    font-size: 16px;
  }

  .history__text {
    font-size: 14px;
  }

  .history__entry {
    flex-direction: row;
    gap: 8px;
  }
}