.terms {
  position: relative;
  z-index: 20;
  background-color: #fffaf3;
  margin-top: -100px;
  border-radius: 80px 80px 0 0;
  padding: 200px 0 130px 0;
}
.terms__title {
  text-align: center;
  width: 100%;
  max-width: none;
  margin-bottom: 25px;
}
.terms__title span {
  background-color: #ffc121;
  color: #000;
  transform: rotate(-3deg);
}
.terms__subtitle {
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 70px auto;
}
.terms__card {
  border: 3px solid #000;
  border-radius: 40px;
  background-color: #fff;
  padding: 50px 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.terms__list {
  margin: 0 0 45px 0;
  padding: 0;
}
.terms__row {
  display: flex;
  align-items: baseline;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  list-style: none;
}
.terms__row:first-child {
  padding-top: 0;
}
.terms__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.terms__key {
  flex: 0 0 190px;
  font-size: 18px;
  font-weight: 800;
}
.terms__val {
  flex: 1 1 auto;
  font-size: 17px;
  line-height: 1.6;
}
.terms__val b {
  font-weight: 700;
}
.terms__val a {
  text-decoration: underline;
}
.terms__prices {
  display: flex;
  gap: 20px;
}
.terms__plan {
  flex: 1 1 0;
  min-width: 0;
  border: 3px solid #000;
  border-radius: 25px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s;
}
@media (hover: hover) {
  .terms__plan:hover {
    transform: translateY(-5px);
  }
}
.terms__plan--best {
  background-color: #000;
  color: #fff;
}
.terms__plan-term {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.terms__plan-sum {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.terms__plan-month {
  font-size: 15px;
  margin-top: 10px;
  opacity: 0.75;
  white-space: nowrap;
}
.terms__plan-save {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  background-color: #ffc121;
  color: #000;
  border-radius: 8px;
  padding: 5px 10px;
}
.terms__note {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 30px;
  color: #4a4a4a;
}
.terms__btnbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 45px;
}
.terms__btn--ghost {
  background-color: transparent;
  color: #000;
}
.terms__btn--ghost:hover {
  background-color: #000;
  color: #fff;
}

@media (max-width: 1100px) {
  .terms {
    padding-top: 150px;
  }
  .terms__card {
    padding: 40px;
  }
  .terms__prices {
    flex-wrap: wrap;
  }
  .terms__plan {
    flex: 1 1 calc(50% - 10px);
  }
}
@media (max-width: 700px) {
  .terms {
    border-radius: 40px 40px 0 0;
    padding: 130px 0 100px 0;
  }
  .terms__subtitle {
    font-size: 17px;
    margin-bottom: 45px;
  }
  .terms__card {
    padding: 25px 20px;
    border-radius: 25px;
  }
  .terms__row {
    flex-direction: column;
    gap: 6px;
    padding: 18px 0;
  }
  .terms__key {
    flex: 0 0 auto;
  }
  .terms__prices {
    flex-direction: column;
  }
  .terms__plan {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    text-align: left;
    padding: 16px 20px;
  }
  .terms__plan-term {
    grid-column: 1;
    grid-row: 1;
    font-size: 17px;
    margin-bottom: 0;
  }
  .terms__plan-sum {
    grid-column: 2;
    grid-row: 1;
    font-size: 24px;
    text-align: right;
  }
  .terms__plan-month {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
  .terms__plan-save {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-top: 0;
  }
}
