/* === services === */

.services {
  padding: 100px 0;
}

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

.services-content .descr {
  max-width: 845px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 30px;
}

.services-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: calc((100% - 30px) / 2);
}

.services-item:nth-child(even) {
  flex-direction: row-reverse;
}

.services-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);

  mask: var(--zigzag-mask-url) center / 100% 100% no-repeat;
  -webkit-mask: var(--zigzag-mask-url) center / 100% 100% no-repeat;

  height: 100%;
  width: calc(40% - 15px);

  padding: 15px 30px;
  padding-left: 65px;
}

.services-item-wrap img {
  width: 80px;
  object-fit: contain;
}

.services-item-content {
  background-color: var(--secondary-background);
  position: relative;
  height: 100%;
  width: 60%;
  padding: 20px 40px 20px 0;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

.services-item:nth-child(even) .services-item-content,
.services-item:nth-child(even) .services-item-wrap {
  transform: scaleX(-1);
}

.services-item:nth-child(even) .subtitle,
.services-item:nth-child(even) .descr,
.services-item:nth-child(even) img {
  transform: scaleX(-1);
}

.services-item-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.5px;
  transform: translateX(-100%);

  height: 100%;
  width: 24%;

  mask: var(--petal-mask-url) center / 100% 100% no-repeat;
  -webkit-mask: var(--petal-mask-url) center / 100% 100% no-repeat;

  background-color: var(--secondary-background);
  z-index: 1;
}

.services-item-content .subtitle {
  margin-bottom: 5px;
}

@media screen and (max-width: 1024px) {
  .services-item {
    gap: 20px;
  }
}

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

  .services-item-content {
    padding: 24px 32px 24px 0;
  }
}

@media screen and (max-width: 500px) {
  .services-item {
    gap: 0;
  }

  .services-item:nth-child(even) {
    flex-direction: row;
  }

  .services-item:nth-child(even) .services-item-wrap,
  .services-item-wrap {
    transform: scaleX(1);
  }

  .services-item-wrap {
    width: 40%;
    padding-left: 50px;
  }

  .services-item-content {
    width: 60%;
  }

  .services-item-content::before {
    width: 27%;
  }

  .services-item:nth-child(even) .services-item-content {
    transform: scaleX(1);
  }

  .services-item:nth-child(even) .subtitle,
  .services-item:nth-child(even) .descr,
  .services-item:nth-child(even) img {
    transform: scaleX(1);
  }
}

/* === Parners === */

.how-work {
  padding: 100px 0 160px;
}

.how-work .content-center {
  margin-bottom: 0;
  width: 100%;
}

.how-work .wrapper,
.how-work-wrapper {
  width: calc((100% - 100px) / 2);
}

.how-work-wrapper .descr {
  margin-bottom: 40px;
}

.how-work-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  width: 100%;
}

.how-work-item {
  display: flex;
  align-items: center;
  padding: 25px;
  gap: 50px;
  width: 100%;
  font-family: var(--font-family);
  position: relative;
  background-color: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  overflow: hidden;
}

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

.how-work-item-number {
  position: relative;
  z-index: 2;
  font-size: 44px;
  color: var(--text-secondary);
}

.how-work-item-wrap .subtitle {
  margin-bottom: 7px;
}

.how-work-item .descr {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .how-work .wrapper,
  .how-work-wrapper {
    width: 100%;
  }
}
