.faq-container {
  width: 95%;
  max-width: 1100px;
  margin: 40px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 16px;
  padding: 30px 40px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScaleUp 0.7s ease-out forwards;
}

@keyframes fadeInScaleUp {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.faq-container:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.faq-item {
  border-bottom: 1px solid #ffad66;
  padding: 22px 0;
  transition: background-color 0.4s ease, transform 0.3s ease;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScaleUp 0.6s ease-out forwards;
}

.faq-item.active {
  background-color: #ffffff;
  transform: translateX(5px);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-top: 10px;
}

.faq-question {
  cursor: pointer;
  font-size: 20px;
  color: #000000;
  position: relative;
  padding-right: 45px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease, transform 0.2s ease;
}

.faq-question:hover {
  transform: scale(1.05);
}

.faq-question::after {
  content: '+';
  font-size: 28px;
  line-height: 1;
  color: #ffaa00;
  transition: transform 0.5s ease, content 0.4s ease, color 0.3s ease;
  flex-shrink: 0;
  user-select: none;
  position: absolute;
  right: 0;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
  color: #ff6600;
  animation: bounce 0.4s ease forwards;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  opacity: 0;
  padding-left: 12px;
  margin-top: 10px;
  color: #000000;
  font-size: 16px;
  line-height: 1.6;
  user-select: text;
  will-change: max-height, opacity;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(180deg) translateY(0);
  }
  50% {
    transform: rotate(180deg) translateY(-6px);
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 20px 25px;
  }
  .faq-question {
    font-size: 17px;
    padding-right: 35px;
  }
  .faq-answer {
    font-size: 15px;
    padding-left: 10px;
  }
}
