/* ===========================
   FAQ — SUDOLAB neon style
=========================== */

.faq {
  --faq-accent: var(--accent-2);         /* cyan */
  --faq-accent-alt: var(--accent);       /* pink */
  --faq-ink: var(--text-main);
  --faq-muted: var(--text-muted);
  --faq-card-bg: rgba(7, 11, 32, 0.96);
  --faq-card-border: rgba(144, 169, 255, 0.45);
  --faq-divider: rgba(148, 163, 184, 0.32);

  background: transparent;
}

/* Заголовочный блок */
.faq__head {
  margin-bottom: 24px;
}

.faq__sub {
  color: var(--faq-muted);
  font-size: 15px;
}

/* Акцентная полоска */
.faq__tricolore {
  width: 160px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(77, 243, 255, 0.45);
}

/* Список вопросов */
.faq-list {
  display: grid;
  gap: 14px;
}

/* Карточка */
.faq-item {
  background: linear-gradient(
      135deg,
      rgba(77, 243, 255, 0.08),
      rgba(255, 79, 216, 0.04)
    ),
    var(--faq-card-bg);
  border: 1px solid var(--faq-card-border);
  border-radius: 18px;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
}

.faq-item:hover {
  border-color: rgba(77, 243, 255, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 26px 85px rgba(0, 0, 0, 0.9);
}

/* Вопрос */
.faq-question {
  width: 100%;
  padding: 18px 56px 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--faq-ink);
  text-align: left;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

/* Иконка */
.faq-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);

  width: 24px;
  height: 24px;
  border-radius: 999px;

  background: radial-gradient(
      circle at 30% 0,
      rgba(77, 243, 255, 0.6),
      rgba(15, 23, 42, 0.9)
    );
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

/* Открытое — минус */
.faq-question.active .faq-icon {
  background: radial-gradient(
      circle at 30% 0,
      rgba(255, 79, 216, 0.7),
      rgba(15, 23, 42, 0.95)
    );
  border-color: var(--faq-accent-alt);
  transform: translateY(-50%) scale(1.03);
}

.faq-question.active .faq-icon::after {
  opacity: 0;
}

/* Ответ */
.faq-answer {
  max-height: 0;
  overflow: hidden;

  padding: 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--faq-muted);

  border-top: 1px solid transparent;

  transition:
    max-height 0.22s ease,
    padding 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
  opacity: 0;
}

.faq-answer.open {
  max-height: 260px;
  padding: 8px 22px 18px;
  border-top-color: var(--faq-divider);
  opacity: 1;
}

/* Адаптив */
@media (max-width: 640px) {
  .faq {
    padding: 32px 0 36px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 50px 14px 18px;
  }

  .faq-icon {
    width: 22px;
    height: 22px;
  }
}
