/* ===== FAQ ===== */

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-chevron {
  color: var(--text-45);
  transition: transform var(--dur-base) var(--ease);
}

.faq-item[data-open='true'] .faq-chevron {
  transform: rotate(180deg);
}

/* Плавное раскрытие без измерения высоты в JS: grid-template-rows
   0fr → 1fr — надёжный CSS-приём, не требует фиксированной высоты. */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease);
}

.faq-item[data-open='true'] .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 18px 18px;
  font-size: 14px;
  color: var(--text-72);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 20px 22px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 22px 20px;
    font-size: 15px;
    max-width: 68ch;
  }
}
