/* Support page styles - Уникальный дизайн с фиолетовой гаммой */
html body.support-page {
  background: 
    radial-gradient(1200px 800px at 30% 20%, rgba(124, 58, 237, 0.18), transparent 65%),
    radial-gradient(1000px 700px at 70% 80%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(900px 600px at 50% 50%, rgba(168, 85, 247, 0.12), transparent 55%),
    linear-gradient(135deg, #581C87 0%, #6B21A8 50%, #7E22CE 100%) !important;
  background-attachment: fixed !important;
}

html body.support-page .bg .glow-a {
  background: rgba(124, 58, 237, 0.3) !important;
  left: -300px !important;
  top: -300px !important;
  width: 1000px !important;
  height: 1000px !important;
  filter: blur(80px) !important;
  opacity: 1 !important;
}

html body.support-page .bg .glow-b {
  background: rgba(139, 92, 246, 0.25) !important;
  right: -300px !important;
  bottom: -300px !important;
  width: 950px !important;
  height: 950px !important;
  filter: blur(80px) !important;
  opacity: 1 !important;
}

html body.support-page .bg .grid {
  opacity: 0.08 !important;
  background-image:
    linear-gradient(to right, rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.06) 1px, transparent 1px) !important;
}

html body.support-page .bg .noise {
  opacity: 0.12 !important;
  mix-blend-mode: overlay !important;
}

body.support-page .tiles {
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 120px);
  animation: supportFadeIn 0.6s ease-out;
}

/* Контейнер поддержки */
.support-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Заголовок страницы */
.support-header {
  text-align: center;
  padding: 32px 0 16px;
  animation: supportHeaderFadeIn 0.8s ease-out 0.2s both;
}

.support-header-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(168, 85, 247, 0.2));
  border: 2px solid rgba(167, 139, 250, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 32px rgba(168, 85, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.5));
}

.support-header-icon svg {
  width: 36px;
  height: 36px;
  color: #E9D5FF;
  filter: drop-shadow(0 0 8px rgba(233, 213, 255, 0.8));
}

.support-title {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.support-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
}

/* FAQ Аккордеон */
.support-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: supportFaqFadeIn 0.8s ease-out 0.4s both;
}

.support-faq-item {
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.85), rgba(30, 15, 46, 0.85));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: supportFaqItemSlideIn 0.5s ease-out both;
}

.support-faq-item:nth-child(1) { animation-delay: 0.5s; }
.support-faq-item:nth-child(2) { animation-delay: 0.6s; }
.support-faq-item:nth-child(3) { animation-delay: 0.7s; }
.support-faq-item:nth-child(4) { animation-delay: 0.8s; }
.support-faq-item:nth-child(n+5) { animation-delay: 0.9s; }

.support-faq-item:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 6px 16px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.support-faq-item.active {
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(192, 132, 252, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.support-faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.support-faq-question:hover {
  background: rgba(167, 139, 250, 0.08);
}

.support-faq-question-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.support-faq-icon {
  width: 24px;
  height: 24px;
  color: #C084FC;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.5));
}

.support-faq-item.active .support-faq-icon {
  transform: rotate(180deg);
  color: #E9D5FF;
}

.support-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 24px;
  background: rgba(167, 139, 250, 0.05);
  border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.support-faq-item.active .support-faq-answer {
  max-height: 1000px;
  padding: 20px 24px 24px;
  border-top-color: rgba(192, 132, 252, 0.3);
}

.support-faq-answer-content {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.support-faq-answer-content p {
  margin: 0 0 12px;
  padding: 0;
}

.support-faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Кнопка связи с поддержкой */
.support-contact {
  padding-top: 8px;
  animation: supportContactFadeIn 0.8s ease-out 1s both;
}

.support-contact-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #A855F7 0%, #9333EA 50%, #7E22CE 100%);
  border: none;
  border-radius: 18px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 10px 28px rgba(168, 85, 247, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.support-contact-btn:hover::before {
  width: 400px;
  height: 400px;
}

.support-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 14px 36px rgba(168, 85, 247, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.support-contact-btn:active {
  transform: translateY(-1px);
}

.support-contact-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.support-contact-btn:hover svg:last-child {
  transform: translateX(4px);
}

.support-contact-btn span {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

/* Состояние ошибки */
.support-error {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(45, 27, 78, 0.95), rgba(30, 15, 46, 0.95));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.support-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  border: 2px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-error-icon svg {
  width: 32px;
  height: 32px;
  color: #EF4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.support-error-message {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
}

/* Анимации */
@keyframes supportFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes supportHeaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes supportFaqFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes supportFaqItemSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes supportContactFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
