/* === Plans === */

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

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

.plans-content .section-name {
  margin-bottom: 12px;
}

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

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

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

.plans-item {
  width: calc((100% - 60px) / 3);
  height: auto;
}

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

.plans-item-content {
  border: 1px solid var(--text-primary);
  border-top: 0;
  padding: 50px 45px 30px;
}

.plans-item-content-price {
  font-weight: 400;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-inverted);
  border-top: var(--primary-color) 1px solid;
  border-bottom: var(--primary-color) 1px solid;
  padding: 7px 0 3px;
  text-align: center;
  margin-bottom: 25px;
}

.plans-item-content .subtitle {
  margin-bottom: 24px;
}

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

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

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

.how-work {
  padding: 70px 0 180px;
}

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

.how-work-content .section-name {
  margin-bottom: 12px;
}

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

.how-work-item {
  display: flex;
  align-items: center;
  height: auto;
  gap: 24px;
  width: calc((100% - 30px) / 2);
  box-shadow: 0 10px 52px 0 rgba(0, 0, 0, 0.08);
  padding: 20px;
  padding-left: 0;
}

.how-work-item:nth-child(even) {
  flex-direction: row-reverse;
  padding: 20px;
  padding-right: 0;
}

.how-work-item-wrap {
  background-color: var(--primary-color);
  padding: 5px 10px;
}

.how-work-item-wrap p {
  color: var(--text-secondary);
  font-size: 30px;
  text-align: center;
}

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

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

  .how-work-item-wrap p {
    font-size: 26px;
  }
}
