/* ==========================================================================
   FAQ.CSS - Стили для блока "Часто задаваемые вопросы" (аккордеон)
   ========================================================================== */

.faq-section {
  padding-bottom: var(--space-3xl) 0;
  background-color: #fff;
}

.faq-title {
  font-size: var(--text-xxl);
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--c-text-default);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-lg) 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--c-text-default);
}

.faq-question:hover {
  color: var(--c-brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--c-text-light);
}

.faq-answer p {
  margin: 0;
  padding-bottom: var(--space-lg);
}

.faq-item.is-active .faq-answer {
  max-height: 200px; /* Достаточно для ответа в несколько строк */
  transition: max-height 0.4s ease-in;
}

/* Иконка-стрелка */
.faq-icon {
  flex-shrink: 0;
  margin-left: var(--space-md);
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
}
