/* main info */
.main {
  margin-bottom: 162px;
}

.main_title {
  margin-bottom: 77px;

  font-weight: 700;
  font-size: 75px;
}

.main_subtitle {
  max-width: 775px;
  letter-spacing: -1px;
  line-height: 1.2;
  text-align: center;
  font-size: 45px;
  font-weight: 400;
}

.subscribers {
  position: relative;
  display: inline-block;
}

.subscribers::before {
  content: '';
  position: absolute;
  bottom: -18px;

  width: 100%;
  height: 22px;

  background-image: url('/apiway/front/images/modern/new/underline.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

/* price */
.price {
  margin-bottom: 140px;
}

.selection {
  display: flex;
  gap: 35px;
  margin-bottom: 100px;
}

.price_plan {
  position: relative;
  font-size: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.price_plan:hover {
  color: #FEBD32;
}

.selected {
  position: relative;
  color: #FEBD32;
}

.price_plan::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background-color: #FEBD32;

  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: 0.2s ease;
}

.price_plan:hover::after,
.selected::after {
  transform: scaleX(1);
  opacity: 1;
}

.plans {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.card {
  padding: 44px 20px 20px 20px;
  width: 333px;

  border-radius: 20px;
  background-color: #FEBD321A;
}

.most_popular {
  position: relative;
  background-color: #FEBD3280;
}

.most_popular::before {
  content: 'Most popular';
  position: absolute;

  left: 50%;
  top: -22px;
  transform: translateX(-58%);

  width: 178px;
  height: 40px;

  font-size: 22px;
  text-align: center;
  padding: 10px;
  background-color: #FEBD32;
  border-radius: 50px;
}

.card_title {
  margin-bottom: 25px;

  font-weight: 700;
  letter-spacing: 1px;
  font-size: 37px;
}

.amount {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 55px;
}

.month_price {
  position: relative;
  margin-bottom: 10px;

  font-size: 22px;
  padding-left: 22px;
}

.month_price::before {
  position: absolute;
  content: '$';
  top: 0;
  left: 0;

  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 35px;
}

.year_price_wrap {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.benefit {
  font-family: 'Rubik', sans-serif;
  text-decoration: line-through;
  font-weight: 700;
  font-size: 14px;
}

.runs_amount {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 18px;
}

.info {
  cursor: pointer;
}

.card_button {
  display: block;
  margin-bottom: 26px;

  text-align: center;
}

.card_subtitle {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 18px;
}

.desc {
  margin-bottom: 25px;

  font-size: 16px;
  line-height: 1.1;
}

.list_item {
  position: relative;
  margin-bottom: 7px;
  padding-left: 18px;

  line-height: 1.1;
  font-size: 16px;
}

.list_item::before {
  position: absolute;
  content: '';
  left: -4px;
  top: 0;

  width: 18px;
  height: 18px;

  background-image: url('/apiway/front/images/modern/new/check_icon.svg');;
}

/* how pricing works */
.pricing {
  margin-bottom: 140px;
}

.pricing_title {
  margin-bottom: 60px;
}

/* frequently asked questions */
.questions {
  margin-bottom: 178px;
}

.questions_title {
  margin-bottom: 54px;
}

.questions_wrap {
  margin-bottom: 120px;
}

.question_container {
  max-width: 990px;
  width: 100%;
  padding: 38px;
  margin-bottom: 25px;

  box-shadow: 0 4px 20px #00000026;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: 0.2s ease;
}

.question_container:hover {
  color: #00000099;
}

.question_container.open:hover {
  color: #000000;
}

.question {
  position: relative;

  font-size: 28px;
  font-weight: 700;
}

.question_text {
  padding-right: 40px;
}

.question::after {
  position: absolute;
  content: '';

  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 18px;

  background-image: url('/apiway/front/images/modern/new/arrow_collapse.svg');
  transition: 0.4s ease;
}

.question_container.open .question::after {
  transform: translateY(-50%) rotate(180deg);
}

.answer_wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.answer {
  padding-top: 40px;

  font-size: 24px;
  line-height: 1.2;
}

/* tooltip */
.tooltip {
  position: absolute;
  padding: 12px;
  width: 207px;
  z-index: 10;
  pointer-events: none;

  background-color: #FFFFFF;
  opacity: 0;
  transform: translateY(5px);
  transition:  0.2s ease;

  font-size: 14px;
  line-height: 1.2;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: #FFF transparent transparent transparent;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1399px) {
  .plans {
    flex-wrap: wrap;
    max-width: 700px;
  }
}

@media screen and (max-width: 1025px) {

}

@media screen and (max-width: 768px) {
  .main,
  .price,
  .pricing,
  .questions {
    margin-bottom: 100px;
  }

  .main_title {
    font-size: 40px;
    margin-bottom: 44px;
  }

  .main_subtitle {
    font-size: 32px;
  }

  .subscribers::before {
    background-size: contain;
  }

  .selection {
    gap: 10px;
    margin-bottom: 80px;
  }

  .card_title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .month_price::before {
    font-size: 28px;
  }

  .amount {
    font-size: 40px;
  }

  .questions_wrap {
    margin-bottom: 60px;
  }

  .question_container {
    padding: 20px;
  }

  .question {
    font-size: 18px;
  }

  .answer {
    font-size: 16px;
    padding-top: 20px;
  }
}
