.company-history {
  width: 100%;
  padding: 50px 0 100px;
  background: #fff;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.company-history__title {
  margin: 0 0 24px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1c1c1c;
}

.company-history__intro {
  width: 67%;
  margin: 0 auto 70px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #666;
}

.company-history__timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  width: 94%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 340px;
}

.company-history__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 200px;
}

.company-history__item--high {
  align-self: flex-start;
}

.company-history__marker {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
}

.company-history__line {
  width: 1px;
  background-color: #ddd;
  min-height: 150px;
}

.company-history__year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: #d3b574;
  padding: 0 6px;
}

.company-history__content {
  text-align: left;
  padding-top: 2px;
}

.company-history__item-title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #1c1c1c;
}

.company-history__item-text {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 900px) {
  .company-history {
    padding: 40px 0 60px;
  }

  .company-history__title {
    font-size: 28px;
    padding: 0 16px;
  }

  .company-history__intro {
    width: calc(100% - 32px);
    margin-bottom: 40px;
  }

  .company-history__timeline {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 32px);
    min-height: auto;
    gap: 0;
    border-left: 2px solid #e8e8e8;
    margin-left: 24px;
    padding-left: 20px;
  }

  .company-history__item {
    position: relative;
    flex-direction: column;
    max-width: none;
    padding-bottom: 28px;
  }

  .company-history__item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3b574;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #d3b574;
  }

  .company-history__item--high {
    align-self: stretch;
  }

  .company-history__marker {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .company-history__line {
    display: none;
  }

  .company-history__year {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 22px;
    padding: 0;
  }
}
