/* --- Секция FAQ --- */
.faq {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  padding: 60px 0 80px;
}



.faq__container {
  position: relative;
  z-index: 1; /* Чтобы контент всегда был поверх снежинок */
}

@media (max-width: 992px) {
  .faq::before { width: 250px; height: 250px; top: -80px; left: -80px; }
  .faq::after { width: 180px; height: 180px; bottom: -60px; right: -60px; }
}

@media (max-width: 768px) {
  .faq { padding: 40px 0 60px; }
  .faq::before { width: 150px; height: 150px; top: -50px; left: -50px; }
  .faq::after { width: 120px; height: 120px; bottom: -40px; right: -40px; }
}

.faq__header {
  margin-bottom: 20px;
  max-width: 780px;
}

.faq__subtitle {
  font-size: 16px;
  color: #4a5c72;
  line-height: 1.5;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
}

.faq__item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  border: 1px solid #dcebfa;
  box-shadow: 0 4px 20px rgba(0, 118, 204, 0.05);
  transition: box-shadow 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 8px 30px rgba(0, 118, 204, 0.1);
}

.faq__question {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #102a45;
  -webkit-user-select: none;
  user-select: none;
}

.faq__bubble {
  width: 32px;
  height: 32px;
  background-color: #0076cc;
  color: #fff;
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 22px;
  margin-right: 20px;
  flex-shrink: 0;
}

.faq__toggle {
  width: 32px;
  height: 32px;
  background-color: #f2f7fc;
  border-radius: 50%;
  color: #0076cc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 14px;
}

.faq__question:hover .faq__toggle {
  background-color: #e6f0fa;
}

.faq__item.active .faq__toggle {
  transform: rotate(45deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
  margin-left: 52px;
  /* Выравнивание по тексту вопроса */
}

.faq__item.active .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer p {
  overflow: hidden;
  min-height: 0;
  color: #4a5c72;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding-top: 0;
  opacity: 0;
  transition: padding-top 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.faq__item.active .faq__answer p {
  padding-top: 15px;
  opacity: 1;
  transition: padding-top 0.3s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

/* Адаптивность для текста FAQ */
@media (max-width: 576px) {
  .faq__question {
    font-size: 16px;
  }

  .faq__item {
    padding: 15px;
  }

  .faq__bubble {
    margin-right: 15px;
  }

  .faq__answer {
    margin-left: 47px;
  }
}