/* === Plans === */

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

.plans-content {
  text-align: center;
  margin-bottom: 60px;
}

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

.plans-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 70px) / 3);
  border: 1px solid var(--primary-color);
  padding: 20px 24px;
  height: auto;
  overflow: hidden;
  border-radius: var(--border-radius-primary);
}

.plans-item .descr {
  text-align: center;
  margin-bottom: 20px;
}

.plans-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.plans-item-wrap::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -20px;
  background-color: var(--secondary-background);
  clip-path: polygon(
    0 0,
    15% 0,
    31% 17%,
    69% 17%,
    81% 0,
    100% 0,
    100% 75%,
    75% 82%,
    62% 100%,
    40% 100%,
    27% 82%,
    0 75%
  );
  z-index: -1;
}

.plans-item-wrap .subtitle {
  color: var(--text-secondary);
  font-size: 38px;
}

.plans-item-price {
  color: var(--text-secondary);
  font-size: 46px;
}

.plans-item-price span {
  font-size: 12px;
}

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

.plans-item-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.plans-item-list li::before {
  display: flex;
  align-items: center;
  justify-content: center;
  content: "✓";
  max-width: 25px;
  width: 100%;
  height: 25px;
  background-color: var(--secondary-background);
  border-radius: 50%;
  color: var(--text-secondary);
}

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

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

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