.faq {
  padding: 140px 27px 60px;
}

.faq-title {
  text-align: center;
  color: #3b4043;
  font-size: 16px;
  margin-top: 36px;
  line-height: 30px;
}

.faq-container {
  margin: 32px auto 0;
}

.faq-tabs {
  max-width: 552px;
  display: flex;
  gap: 18px;
  margin: 32px auto 49px;
  justify-content: center;
  position: relative;
}

.faq-tab {
  padding: 18px 0 15px;
  border: 1px solid #707070;
  border-radius: 8px;
  background: white;
  color: #000000;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  position: relative;
  width: 100%;
}

.faq-tab.active {
  border: 1px solid #37c281;
  background: #37c281;
  color: white;
}

.faq-tab.active::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #37c281;
}

.faq-content {
  display: none;
}

.faq-content.active {
  display: block;
}

.faq-item {
  position: relative;
  background: white;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  padding: 16px 36px 16px 16px;
  background-color: #37c281;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  border-radius: 20px 20px 0 0;
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 16px;
  color: #3b4043;
  line-height: 24px;
}

.faq-answer.open {
  padding: 16px 16px;
  max-height: 400px;
}

.faq-arrow {
  position: absolute;
  display: block;
  background-image: url(../images/common/faq-arrow.png);
  width: 16px;
  min-width: 16px;
  height: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s;
  right: 16px;
  top: 24px;
}

.faq-arrow.open {
  transform: scaleY(-1);
}

@media (min-width: 768px) {
  .faq {
    padding: 200px 27px;
  }

  .faq-tabs {
    margin-bottom: 64px;
  }

  .faq-content.active {
    max-width: 1000px;
    margin: 0 auto;
  }

  .faq-question {
    padding: 15px 36px 16px 30px;
    font-size: 20px;
    line-height: 29px;
  }

  .faq-item {
    margin-bottom: 24px;
  }

  .faq-answer {
    padding: 0 40px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    font-size: 16px;
    color: #3b4043;
    line-height: 24px;
  }

  .faq-answer.open {
    padding: 20px 40px;
  }

  .faq-arrow {
    right: 20px;
    top: 26px;
  }
}
