/*--------------------------------------------------------------
# FAQ Section - Optimized for shuldeshov.pro
--------------------------------------------------------------*/

.faq {
  padding: 80px 0;
  background: #f8f9fa;
}

.faq .section-title {
  margin-bottom: 60px;
  text-align: center;
}

.faq .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.faq .section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.faq .section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* FAQ Container */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ Item */
.faq-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  padding: 24px 70px 24px 24px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  transition: all 0.3s ease;
}

.faq-item h3:hover {
  color: #667eea;
}

.faq-item h3 .num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.faq-item.faq-active h3 .num {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.1);
}

/* FAQ Toggle Icon */
.faq-toggle {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.3rem;
  color: #667eea;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.faq-active .faq-toggle {
  transform: translateY(-50%) rotate(90deg);
  color: #764ba2;
}

/* FAQ Content */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  padding: 0 24px;
}

.faq-item.faq-active .faq-content {
  max-height: 500px;
  opacity: 1;
  padding: 0 24px 24px;
}

.faq-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #495057;
  margin: 0;
}

/* FAQ CTA Section */
.faq-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.faq-cta h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.faq-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-cta:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-cta span {
  position: relative;
  z-index: 1;
}

.btn-cta:hover i {
  transform: scale(1.2);
}

/* Telegram Button */
.btn-cta.telegram {
  background: #ffffff;
  color: #0088cc;
}

.btn-cta.telegram:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

/* Email Button */
.btn-cta.email {
  background: #ffffff;
  color: #667eea;
}

.btn-cta.email:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/

/* Tablet */
@media (max-width: 992px) {
  .faq .section-title h2 {
    font-size: 2rem;
  }
  
  .faq-item h3 {
    font-size: 1rem;
    padding: 20px 60px 20px 20px;
  }
  
  .faq-item h3 .num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .faq-cta {
    padding: 40px 30px;
  }
  
  .faq-cta h4 {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }
  
  .faq .section-title {
    margin-bottom: 40px;
  }
  
  .faq .section-title h2 {
    font-size: 1.75rem;
  }
  
  .faq .section-title p {
    font-size: 1rem;
  }
  
  .faq-container {
    gap: 15px;
  }
  
  .faq-item {
    border-radius: 10px;
  }
  
  .faq-item h3 {
    font-size: 0.95rem;
    padding: 18px 55px 18px 18px;
    gap: 12px;
  }
  
  .faq-item h3 .num {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .faq-toggle {
    right: 18px;
    font-size: 1.2rem;
  }
  
  .faq-content p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .faq-item.faq-active .faq-content {
    padding: 0 18px 18px;
  }
  
  .faq-cta {
    border-radius: 12px;
    padding: 35px 25px;
  }
  
  .faq-cta h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .faq-cta p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 30px;
    font-size: 0.95rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .faq .section-title h2 {
    font-size: 1.5rem;
  }
  
  .faq-item h3 {
    font-size: 0.9rem;
    padding: 16px 50px 16px 16px;
    gap: 10px;
  }
  
  .faq-item h3 .num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .faq-cta h4 {
    font-size: 1.2rem;
  }
  
  .faq-cta p {
    font-size: 0.95rem;
  }
}

/*--------------------------------------------------------------
# Performance Optimizations
--------------------------------------------------------------*/

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item h3,
  .faq-toggle,
  .faq-content,
  .btn-cta,
  .faq-cta::before {
    animation: none !important;
    transition: none !important;
  }
}

/* GPU Acceleration for smooth animations */
.faq-item,
.faq-toggle,
.btn-cta {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

