/* Общие настройки контейнера */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  color: #130D25;
  font-family: 'Montserrat', sans-serif;
}

/* Стиль для каждого элемента FAQ */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #130D25;
  padding-bottom: 10px;
  position: relative;
}

/* --- ДЕСКТОПНАЯ ВЕРСИЯ (960px – 1920px) --- */
@media (min-width: 960px) {
  /* Вопросы */
  .faq-question {
    font-size: 22px;
    line-height: 1;
    font-weight: 500; /* Medium */
    cursor: pointer;
    padding-right: 30px;
    position: relative;
  }
  
  /* Ответы */
  .faq-answer {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500; /* Medium */
  }
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (320px – 959px) --- */
@media (max-width: 959px) {
  /* Вопросы */
  .faq-question {
    font-size: 16px;
    line-height: 1;
    font-weight: 500; /* Medium */
    cursor: pointer;
    padding-right: 30px;
    position: relative;
  }
  
  /* Ответы */
  .faq-answer {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500; /* Medium */
  }
}

/* Единое правило для стрелки (не зависит от размера экрана) */
.faq-question::after {
  content: "▼";
  font-size: 22px;
  color: #6744DB;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, content 0.3s ease;
}

/* Стрелка вверх для открытого элемента */
.faq-item.open .faq-question::after {
  content: "▲";
}

/* Ответы — скрыты по умолчанию */
.faq-answer {
  display: none;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
}

/* Показываем ответ при открытом родителе */
.faq-item.open .faq-answer {
  display: block;
}