/* ===========================
   FAQ — Dark Neon Clean
=========================== */

.faq {
  --faq-bg: transparent;
  --faq-card-bg: #050814;
  --faq-border: rgba(152, 206, 255, 0.25);
  --faq-glow: rgba(77, 243, 255, 0.45);
  --faq-glow-pink: rgba(255, 79, 216, 0.45);

  --faq-text-main: #f7f7ff;
  --faq-text-muted: #93a1ff;

  background: var(--faq-bg);
}

/* Заголовочный блок */
.faq__head {
  margin-bottom: 24px;
}

.faq__sub {
  color: var(--faq-text-muted);
  font-size: 15px;
}

/* неоновая полоска */
.faq__tricolore {
  width: 160px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #4df3ff,
   #ff5f2c
  );

  box-shadow:
    0 0 18px rgba(77, 243, 255, 0.6),
    0 0 22px rgba(255, 79, 216, 0.45);
}

/* список */
.faq-list {
  display: grid;
  gap: 14px;
}

/* карточка */
.faq-item {
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border);
  border-radius: 18px;

  box-shadow:
    0 0 45px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(10, 15, 36, 0.8);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(152, 206, 255, 0.65);
  transform: translateY(-2px);

  box-shadow:
    0 0 25px rgba(77, 243, 255, 0.45),
    0 0 45px rgba(255, 79, 216, 0.35),
    inset 0 0 22px rgba(77, 243, 255, 0.1);
}

/* кнопка вопроса */
.faq-question {
  width: 100%;
  padding: 18px 56px 18px 22px;

  font-size: 16px;
  font-weight: 700;
  color: var(--faq-text-main);
  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: 26px;
  height: 26px;
  border-radius: 999px;

  background: rgba(10, 15, 36, 0.9);
  border: 1px solid rgba(152, 206, 255, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 14px rgba(152, 206, 255, 0.45);

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #bde4ff;
  border-radius: 2px;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

/* активное */
.faq-question.active .faq-icon {
  background: rgba(59, 59, 59, 0.13);
  border-color: #ff5f2c;
  box-shadow: 0 0 22px #ff5f2c;
  transform: translateY(-50%) scale(1.05);
}

.faq-question.active .faq-icon::before,
.faq-question.active .faq-icon::after {
  background: white;
}

.faq-question.active .faq-icon::after {
  opacity: 0;
}

/* ответ */
.faq-answer {
  max-height: 0;
  overflow: hidden;

  padding: 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--faq-text-muted);

  border-top: 1px solid transparent;

  transition:
    max-height 0.28s ease,
    padding 0.28s ease,
    border-color 0.28s ease,
    opacity 0.28s ease;

  opacity: 0;
}

.faq-answer.open {
  max-height: 240px;
  padding: 10px 22px 18px;
  border-top-color: rgba(152, 206, 255, 0.35);
  opacity: 1;
}

/* адаптив */
@media (max-width: 640px) {
  .faq {
    padding: 30px 0 36px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 50px 14px 18px;
  }

  .faq-icon {
    width: 22px;
    height: 22px;
  }
}
