/* === Plans === */

.plans {
  padding: 60px 0 100px;
}

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

.plans-content .title {
  margin-bottom: 20px;
}

.plans-content .descr {
  max-width: 840px;
}

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

.plans-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 80px) / 3);
  height: auto;
  position: relative;
  z-index: 1;
}

.plans-item-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 140px;
  aspect-ratio: 6 / 5;
}

.plans-item-wrap-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  background: var(--primary-color);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 5"><path d="M 0 0 L 0 2 C 0 3 1 5 1 5 L 5 5 C 5 5 6 3 6 2 L 6 0" fill="white"/></svg>')
    center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 5"><path d="M 0 0 L 0 2 C 0 3 1 5 1 5 L 5 5 C 5 5 6 3 6 2 L 6 0" fill="white"/></svg>')
    center / contain no-repeat;
}

.plans-item-wrap::after {
  content: "";
  position: absolute;
  top: 0px;
  left: -40px;
  clip-path: polygon(100% 100%, 0% 100%, 100% 0);
  width: 41px;
  height: 40px;
  background-color: var(--primary-hover);
}

.plans-item-wrap::before {
  content: "";
  position: absolute;
  top: 0px;
  right: -40px;
  clip-path: polygon(100% 100%, 0% 100%, 0 0);
  width: 41px;
  height: 40px;
  background-color: var(--primary-hover);
}

.plans-item-wrap-price {
  font-size: 36px;
  position: relative;
  z-index: 4;
  color: var(--text-secondary);
}

.plans-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 30px;
  border-radius: var(--border-radius-primary);
  overflow: hidden;
  width: 100%;
  background-color: var(--secondary-background);
  color: var(--text-secondary);
  padding-top: 90px;
}

.plans-item-content .descr,
.plans-item-content .subtitle,
.plans-item-content .secondary-btn {
  color: var(--text-secondary);
}

.plans-item-content .subtitle {
  text-align: center;
  font-size: 42px;
  margin-bottom: 15px;
}

.plans-item-stars {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.plans-item-star {
  width: 40px;
  height: 40px;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background-color: yellow;
}

.plans-item-stars::after {
  content: "";
  width: 30px;
  height: 30px;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background-color: yellow;
}

.plans-item-stars::before {
  content: "";
  content: "";
  width: 30px;
  height: 30px;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background-color: yellow;
}

.plans-item-line {
  width: 80%;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 45px;
}

.plans-content-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 35px;
  margin-bottom: 45px;
}

.plans-content-list-item {
  display: flex;
  align-items: center;
  padding: 8px;
  padding-left: 60px;
  border-radius: 20px;
  background-color: var(--text-secondary);
  position: relative;
}

.plans-content-list-item .descr {
  color: var(--text-primary);
  font-size: 14px;
}

.plans-content-list-item div {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -10px;
  width: 60px;
  height: 60px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  font-size: 30px;
  color: var(--text-primary);
}

.plans-item-content .secondary-btn {
  margin-top: auto;
}

@media screen and (max-width: 1024px) {
  .plans-item {
    width: calc((100% - 40px) / 2);
  }
}

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

/* === How Work === */

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

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

.how-work-content .title {
  margin-bottom: 20px;
}

.how-work-content .descr:not(:last-child) {
  margin-bottom: 14px;
}

.how-work-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  width: calc((100% - 90px) / 2);
}

.how-work-item {
  display: flex;
  border: 1px solid #000;
  width: 100%;
  padding-left: 10px;
}

.how-work-item-wrap {
  position: relative;
  margin-top: -15px;
  margin-bottom: -15px;
}

.how-work-item-wrap-bg {
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  background-color: var(--primary-color);
  width: 120px;
  height: 100%;
  font-size: 60px;
  color: var(--text-secondary);
}

.how-work-item-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -11px;
  width: 14px;
  height: 15px;
  background-color: var(--primary-hover);
  z-index: -1;
  clip-path: polygon(78% 100%, 0 0, 100% 0);
}

.how-work-item-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 14px;
  height: 15px;
  background-color: var(--primary-hover);
  z-index: -1;
  clip-path: polygon(29% 0, 0% 100%, 100% 100%);
}

.how-work-item-content {
  padding: 20px;
  width: calc(100% - 120px);
}

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

  .how-work-item-content {
    padding: 10px;
  }

  .how-work::after {
    bottom: -50px;
  }
}
