/* ===== FAQ — Severimgs style (без размеров шрифта) ===== */

.faq {
  padding: 48px 0;
  background: transparent;
}

.faq__head {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.faq__title {
  margin: 0 0 6px;
}

.faq__sub {
  margin: 0;
  color: var(--color-text-soft, var(--muted, #6b7280));
}

/* трёхцветная линия, чуть мягче по тону */
.faq__tricolore {
  display: flex;
  height: 6px;
  width: 140px;
  margin: 14px auto 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.faq__tricolore .it {
  flex: 1;
}

.it--g {
  background: #009246;
}

.it--w {
  background: #ffffff;
}

.it--r {
  background: #ce2b37;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

/* карточка вопроса */
.faq-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 22px;
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

/* ховер по всей карточке */
.faq-item:hover {
  background: #fffaf5;
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-1px);
}

/* кнопка вопроса */
.faq-question {
  margin: 0;
  width: 100%;
  padding: 16px 56px 16px 18px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main, #111827);
}

.faq-question h3 {
  margin: 0;
}


/* иконка + / - справа */
.faq-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.16s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

/* активный вопрос — иконка и фон с акцентом */
.faq-question.active .faq-icon {
  background: linear-gradient(135deg, #ff7a32, #ff6a2f);
  box-shadow: 0 8px 18px rgba(255, 122, 50, 0.45);
}

.faq-question.active .faq-icon::before,
.faq-question.active .faq-icon::after {
  background: #ffffff;
}

/* когда открыто — только минус */
.faq-question.active .faq-icon::after {
  opacity: 0;
}

/* ответ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid transparent;
  color: var(--color-text-soft, #374151);
  transition:
    max-height 0.35s ease,
    padding 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
  opacity: 0;
  background: transparent;
}




.faq-answer.open {
  max-height: 260px;
  /* padding: 10px 18px 16px; */
  border-top-color: #f1f5f9;
  opacity: 1;
}

/* ховер только по вопросу — лёгкий подсвет */
.faq-item:hover .faq-question {
  background: transparent;
}

@media (max-width: 640px) {
  .faq {
    padding: 36px 0;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
  }
}
