/* =========================================================
   FAQ: открыт один вопрос за раз
   ========================================================= */

.faq { padding: 80px 0 160px; }

.faq__title { margin-bottom: 64px; }

.faq__list {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.faq-item {
  padding: 24px;
  border-radius: 24px;
  cursor: pointer;
  user-select: none;
}

.faq-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  text-align: left;
}

.faq-item__q {
  color: var(--c-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.faq-item__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--c-blue);
  transition: background-color 0.35s ease;
}
.faq-item__btn svg { width: 24px; height: 24px; transition: transform 0.3s ease; }

.faq-item.is-open .faq-item__btn { background-color: var(--c-blue-dark); }
.faq-item.is-open .faq-item__btn svg { transform: rotate(45deg); }

/* Высоту ответа анимирует JS */
.faq-item__a {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.3s ease;
}
.faq-item.is-open .faq-item__a { opacity: 1; }
.faq-item__a p {
  padding-top: 8px;
  color: var(--c-muted);
  font-size: 20px;
  line-height: 1.3;
}

@media (max-width: 1199px) { .faq-item__a p { font-size: 18px; } }
@media (max-width: 959px)  { .faq-item__q { font-size: 20px; } .faq { padding-top: 64px; padding-bottom: 120px; } }
@media (max-width: 639px)  { .faq { padding-top: 48px; padding-bottom: 96px; } .faq__title { margin-bottom: 40px; } .faq-item { padding: 20px; } }
@media (max-width: 479px)  {
  .faq-item__q { font-size: 18px; }
  .faq-item__a p { font-size: 16px; }
  .faq-item__btn { width: 40px; height: 40px; }
}
@media (max-width: 359px)  { .faq-item__q { font-size: 16px; } .faq-item__a p { font-size: 14px; } }
