.faq{
  position: relative;
}

.faq > .container{
  padding-bottom: 267px;
}

.faq::before {
  background-image: url("../../images/top/wave-beige-white.svg");
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 7 / 1;
  position: absolute;
  left: 0px;
  bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

.faq-list{
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.faq-question{
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--color-main);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-subtitle);
  font-size: 1rem;
  text-align: left;
}

.faq-q{
  width: 22px;
  font-size: 1.5rem;
  font-family: var(--font-title);
  border-radius: 50%;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-text{
  flex: 1;
  line-height: 1.6;
}

.faq-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.faq-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-main);
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(1px) rotate(135deg);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-toggle::before {
  transform: translateY(-1px) rotate(-45deg);
  top: 6px;
}

.faq-question:hover .faq-toggle {
  filter: brightness(1.05);
}

.faq-answer {
  padding: 0 22px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.6s cubic-bezier(.25, .1, .25, 1),
    transform 0.6s cubic-bezier(.25, .1, .25, 1);
}

.faq-item.is-open .faq-answer {
  padding: 22px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.is-open .faq-question {
  filter: brightness(1.03);
}


@media (max-width: 767px){
  .faq {
    padding-bottom: 100px;
    padding-top: 20px;
  }
  .faq-question{
    padding: 14px 16px;
  }

  .faq-answer{
    font-size: 1rem;
  }

  .faq-toggle {
    width: 30px;
    height: 30px;
  }

  .faq > .container {
      padding-bottom: 0;
  }

  .faq-answer {
    padding: 0px;
  }

  .faq-text {
    font-size: 1rem;
    line-height: 140%;
  }

  .faq-toggle::before {
    top: -4px;
  }

  .faq-question {
    gap: 10px;
    height: auto;
  }
}
