.section-history {
  margin-bottom: 80px;
}

.history-item {
  padding: 16px 0 16px 32px;
  position: relative;
}

.history-item::after {
  content: '';
  position: absolute;
  width: 1px;
  background-color: #e0e0e0;
  top: 0;
  bottom: 0;
  left: 0;
}

.history-item:first-child:after {
  top: 77px;
}

.history-item:last-child:after {
  bottom: calc(100% - 78px);
}


.history-item p {
background-color: white;

}

.history-item h3 {
  color: #d61b26;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 0;
  line-height: 36px;
}

.history-item h3 span {
  display: none;
}

.history-item p {
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  margin-bottom: 0;
  position: relative;
}

.history-item p::before {
  content: '';
  position: absolute;
  width: 32px;
  height: 1px;
  background-color: #e0e0e0;
  top: 12px;
  left: -32px;
}

.history-item p::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #d61b26;
  border-radius: 50%;
  top: 4px;
  left: -40px;
  z-index: 1;
}

.history-item p span {
  display: block;
}

.history-item p span + span {
  margin-top: 12px;
}

@media (min-width: 992px) {
  .section-history {
    margin-bottom: 100px;
  }

  .history-list {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    margin: 0 auto;
  }

  .history-item {
    display: flex;
    align-items: center;
    padding-left: 0;
  }

  .history-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .history-item::after {
    right: 0;
    margin: auto;
  }

  .history-item:first-child:after {
    top: 50%;
  }

  .history-item:last-child:after {
    bottom: 50%;
  }

  .history-item h3 {
    width: 50%;
    margin-bottom: 0;
  }

  .history-item:nth-child(odd) h3 {
    padding-right: 48px;
    text-align: right;
  }

  .history-item:nth-child(even) h3 {
    padding-left: 48px;
  }

  .history-item h3 span {
    display: inline;
  }

  .history-item p {
    width: calc(50% - 48px);
  }

  .history-item:nth-child(odd) p {
    margin-left: 48px;
  }

  .history-item:nth-child(odd) p::before {
    top: 50%;
    left: -48px;
    width: 48px;
  }

  .history-item:nth-child(odd) p::after {
    width: 24px;
    height: 24px;
    left: -61px;
    top: 50%;
    transform: translateY(-50%);
  }

  .history-item:nth-child(even) p {
    margin-right: 48px;
    text-align: right;
  }

  .history-item:nth-child(even) p::before {
    top: 50%;
    left: auto;
    right: -48px;
    width: 48px;
  }

  .history-item:nth-child(even) p::after {
    width: 24px;
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
    right: -61px;
  }
}
