/* === History === */

.history {
  padding: 100px 0;
}

.history-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.history-content .title {
  margin-bottom: 20px;
  max-width: 1000px;
}
.history-content .descr {
  max-width: 840px;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px 90px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc((100% - 90px) / 2);
}

.history-item:nth-child(even) {
  flex-direction: row-reverse;
  margin-top: 50px;
}

.history-item:nth-child(odd) {
  margin-bottom: 50px;
}

.history-item-img {
  width: 100px;
  object-fit: contain;
}

.history-item-content {
  width: calc(100% - 100px);
}

.history-item-content .subtitle {
  margin-bottom: 6px;
}

.history-item-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40%;
  width: 100px;
  height: 100px;
  border: 5px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 32px;
  position: relative;
  background-color: var(--background-color);
}

.history-item:nth-child(odd) .history-item-wrap::after {
  content: "";
  position: absolute;
  top: 70%;
  transform: rotate(20deg);
  left: 90%;
  right: -120px;
  height: 10px;
  z-index: -1;
  background-color: var(--accordion-active);
}

.history-item:nth-child(even):not(:last-child) .history-item-wrap::after {
  content: "";
  position: absolute;
  top: 120%;
  transform: rotate(-55deg);
  right: 30%;
  left: -170px;
  height: 10px;
  z-index: -1;
  background-color: var(--accordion-active);
}

@media screen and (max-width: 768px) {
  .history-list {
    gap: 50px;
  }

  .history-item {
    width: 100%;
  }

  .history-item:nth-child(even):not(:last-child) .history-item-wrap::after,
  .history-item:nth-child(odd) .history-item-wrap::after {
    display: none;
  }

  .history-item:nth-child(even) {
    margin-top: 0;
  }

  .history-item:nth-child(odd) {
    margin-bottom: 0;
  }
}

/* === Founders === */

.founders {
  padding: 80px 0;
  position: relative;
}

.swiperFounders,
.founders-content {
  width: calc((100% - 90px) / 2);
}

.founders-item {
  border: 1px solid var(--secondary-color);
  padding: 40px 24px;
  border-radius: var(--border-radius-primary);
}

.founders-item img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-primary);
  margin-bottom: 16px;
}

.founders-item .descr {
  margin-bottom: 16px;
}

.founders-item .subtitle span {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
}

.founders-content .title {
  margin-bottom: 16px;
}

.founders-content .descr:not(:last-child) {
  margin-bottom: 8px;
}

.founders .swiper-button-next {
  right: calc(50% + 22px);
}

@media screen and (max-width: 768px) {
  .founders .container-flex {
    flex-direction: column-reverse;
  }

  .swiperFounders,
  .founders-content {
    width: 100%;
  }

  .founders .swiper-button-prev,
  .founders .swiper-button-next {
    top: auto;
    bottom: 30%;
  }

  .founders .swiper-button-next {
    right: 3px;
  }
}

/* === Goals === */

.goals {
  padding: 80px 0 160px;
}

.goals-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}

.goals-content .title {
  max-width: 1000px;
  margin-bottom: 16px;
}

.goals-content .descr {
  max-width: 800px;
}

.goals-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.goals-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  border: 1px solid var(--secondary-color);
  padding: 40px 24px;
  width: calc((100% - 40px) / 2);
}

.goals-item-img {
  width: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

.goals-item .subtitle {
  margin-bottom: 6px;
}

@media screen and (max-width: 768px) {
  .goals-list {
    gap: 25px;
  }

  .goals-item {
    width: calc((100% - 25px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .goals-item {
    width: 100%;
  }
}
