/* ===== FAQ — trwczech (lavender + deep purple) =====
   - использует твои переменные: --bg --ink --muted --line --purple --white --gap --radius
   - px-only, AA-friendly, аккуратный “glass”
   - без новых :root переменных
*/

/* секция */
.faq{
  padding-top: calc(var(--gap) * 5);
  padding-bottom: calc(var(--gap) * 5);
 
}

.faq__head{
  text-align: center;
  margin-bottom: calc(var(--gap) * 2);
  position: relative;
}

.faq__title{
  margin: 0 0 6px;
  color: var(--purple);
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.4px;
}

.faq__sub{
  margin: 0;
  color: rgba(13,20,15,.70);
}

/* “премиальная линия” вместо кремовой полоски */
.faq__tricolore{
  display: flex;
  height: 4px;
  width: 140px;
  margin: 14px auto 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(59,19,71,.15),
    rgba(59,19,71,.92),
    rgba(244,209,255,.92),
    rgba(59,19,71,.40)
  );
  box-shadow: 0 10px 26px rgba(59,19,71,.14);
}
.faq__tricolore .it{ display: none; }

/* карточки */
.faq-list{
  display: grid;
  gap: var(--gap);
  margin-top: calc(var(--gap) * 2);
}

.faq-item{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(13,20,15,.14);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(13,20,15,.10);
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.faq-item:hover{
  border-color: rgba(59,19,71,.22);
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 52px rgba(13,20,15,.12);
  transform: translateY(-1px);
}

/* вопрос */
.faq-question{
  width: 100%;
  padding: 18px 58px 18px 18px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;

  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  position: relative;

  display: flex;
  align-items: center;
  gap: 12px;

  font-family: "Manrope", system-ui, sans-serif;
  color: rgba(59,19,71,.92);
}

.faq-item:hover .faq-question{
  background: rgba(244,209,255,.18);
}

/* иконка +/- (фиолетовый, как UI-бейджи) */
.faq-icon{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 12px;

  background: rgba(244,209,255,.70);
  border: 1px solid rgba(59,19,71,.16);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 24px rgba(13,20,15,.08);
}

.faq-icon::before,
.faq-icon::after{
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: rgba(59,19,71,.92);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-icon::after{ transform: rotate(90deg); }
.faq-question.active .faq-icon::after{ opacity: 0; }

/* ответ */
.faq-answer{
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;

  border-top: 1px solid transparent;
  color: rgba(13,20,15,.72);

  transition: max-height 160ms ease, padding 220ms ease, border-color 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.faq-answer.open{
  max-height: 280px;
  padding: 12px 18px 18px;
  border-top-color: rgba(59,19,71,.14);
  opacity: 1;
}

.faq-answer p{
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: rgba(13,20,15,.72);
}

/* a11y focus */
.faq-question:focus-visible{
  outline: 3px solid rgba(59, 19, 71, .26);
  outline-offset: 3px;
}

/* адаптив */
@media (max-width: 640px){
  .faq{
    padding-top: calc(var(--gap) * 4);
    padding-bottom: calc(var(--gap) * 4);
  }
  .faq-icon{
    width: 28px;
    height: 28px;
    border-radius: 11px;
  }
  .faq-question{
    padding: 16px 52px 16px 16px;
  }
}
