/* ================= FAQ SECTION ================= */

.faq-section {
  padding: 4rem 60px;
  background: #fff;
}

/* TITLE */
.faq-title {
  text-align: left;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  color: #2c3e50;
  font-weight: 700;
}

/* FAQ ITEM */
.faq-item {
  background: #fff;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  max-width: 1200px; /* ограничиваем ширину */
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* QUESTION */
.faq-question {
  padding: 1.5rem 2rem;
  background: #21055E;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #3b1a85;
}

/* ANSWER */
.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #fff;
  transition:
    max-height 0.6s ease,
    opacity 0.6s ease,
    padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem 2rem;
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  line-height: 1.7;
  color: #555;
}

/* TOGGLE ICON */
.faq-toggle {
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: rgba(255,255,255,0.35);
}

/* FADE-IN (если используешь JS) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .faq-section {
    padding: 3rem 24px;
  }

  .faq-title {
    font-size: 1.8rem;
  }

  .faq-question {
    padding: 1.2rem 1.2rem;
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 1.2rem 1.2rem;
  }
}
