/* FAQ */
.faq-block {
  padding: 16px 0 80px;
}

.faq-block__title {
  margin: 0 0 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  padding: 16px 16px 16px 24px;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
  cursor: pointer;
}

.faq-item:hover {
  border-color: var(--colors-border-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.faq-toggle {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--colors-bg-main);
  position: relative;
  flex-shrink: 0;
}

.faq-toggle:hover{
  background-color: var(--colors-bg-btn-light-hover);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--colors-text-main);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-answer {
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  cursor: default;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  padding-bottom: 16px;
}

@media (max-width: 767px) {
  .faq-block {
    padding: 0 0 40px;
  }

  .faq-block__title {
    margin-bottom: 16px;
  }

  .faq-item {
    padding: 12px 12px 12px 16px;
  }

  .faq-toggle {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .faq-toggle::before,
  .faq-toggle::after {
    width: 14px;
  }

  .faq-item.is-open .faq-answer {
    padding-bottom: 6px;
  }
}
