/* === History === */

.history {
  padding: 100px 0;
}

.history .container-flex {
  align-items: start;
}

.timeline-list,
.history-content {
  width: calc((100% - 100px) / 2);
}

.history-content .title {
  margin-bottom: 12px;
}

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

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
  width: calc((100% - 100px) / 2);
  position: relative;
  padding: 40px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  height: 100%;
  width: 3px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 44px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--secondary-background);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
  margin-left: 80px;
  padding: 20px;
  background: var(--secondary-background);
  border-radius: var(--border-radius-secondary);
  position: relative;
}

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

.timeline-content::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 15px 10px 0;
  border-color: transparent #fff transparent transparent;
}

@media (max-width: 1024px) {
  .timeline-list::before {
    left: 20px;
  }

  .timeline-dot {
    left: 14px;
  }

  .timeline-content {
    margin-left: 50px;
  }
}

@media (max-width: 768px) {
  .timeline-list,
  .history-content {
    width: 100%;
  }

  .history-content .section-name {
    justify-content: center;
  }
}

/* === Founders === */

.founders {
  padding: 100px 0;
}

.founders .container-flex {
  gap: 150px;
}

.swiperFounders {
  width: calc((100% - 250px) / 2);
}

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

.founders-item {
  border-radius: var(--border-radius-primary);
  overflow: hidden;
  background-color: var(--secondary-background);
}

.founders-item-wrap {
  position: relative;
}

.founders-item-wrap::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  aspect-ratio: 8 / 3;
  mask: var(--wave-dip-mask-url) center / cover no-repeat;
  -webkit-mask: var(--wave-dip-mask-url) center / cover no-repeat;
  background-color: var(--secondary-background);
  z-index: 1;
}

.founders-item-img {
  height: 380px;
  width: 100%;
  object-fit: cover;
}

.founders-item-role {
  background-color: #ffffff58;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 5px;
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 2;

  color: var(--text-inverted);
  font-size: 18px;
  font-style: italic;
}

.founders-item-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0 20px 35px;
}

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

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

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

@media (max-width: 1024px) {
  .founders .container-flex {
    gap: 100px;
  }

  .swiperFounders {
    width: calc((100% - 200px) / 2);
  }

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

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

  .swiperFounders {
    padding: 0 30px;
  }

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

  .founders-content .section-name {
    justify-content: center;
  }
}

/* === Goals === */

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

.goals-content .title {
  margin-bottom: 12px;
}

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

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

.goals-item {
  display: flex;
  align-items: center;
  padding: 25px;
  gap: 50px;
  width: calc((100% - 40px) / 2);
  font-family: var(--font-family);
  font-size: 18px;
  position: relative;
  background-color: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  overflow: hidden;
}

.goals-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 150px;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
  z-index: 1;
}

.goals-item-img {
  width: 80px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.goals-item-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: calc(100% - 130px);
}

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

.about-us-content .descr:not(:last-child) {
  margin-bottom: 12px;
}
