/* ==========================================================================
   СТРАНИЦА FAQ — СТИЛИ СЕКЦИИ И ИДЕАЛЬНО ПЛАНАЯ АНИМАЦИЯ
   ========================================================================== */
.faq-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  min-height: 70vh;
}
.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 8px;
}
.faq-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.1rem;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: #b3b3b3;
}
.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Горизонтальная линия */
.faq-icon::before {
  top: 9px; left: 2px; width: 16px; height: 2px;
}
/* Вертикальная линия */
.faq-icon::after {
  top: 2px; left: 9px; width: 2px; height: 16px;
}
/* Поворот и скрытие при открытии */
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-item.active .faq-icon::before {
  transform: rotate(180deg);
}

/* Новая плавная база под JavaScript-расчет высоты */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-content {
  padding: 0 24px 24px 24px;
}
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.faq-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.faq-footer p {
  font-weight: 600;
  margin-bottom: 16px;
}
.faq-support-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.faq-support-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   НОВАЯ ЦЕНТРИРОВАННАЯ НАВИГАЦИЯ FAQ
   ========================================================================== */
.faq-custom-header {
  width: 100%;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.faq-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  width: 100%;
}

/* Кнопка вернуть в магазин */
.btn-back-to-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 42px;
}

.btn-back-to-shop:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* Новая красивая кнопка переключения языка */
.btn-change-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  height: 42px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.btn-change-lang:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.btn-change-lang:active {
  transform: translateY(0);
}

/* Иконка планеты внутри кнопки */
.lang-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.btn-change-lang:hover .lang-icon {
  color: var(--text);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================== */
@media (max-width: 768px) {
  .faq-title { font-size: 1.8rem; }
  .faq-subtitle { font-size: 1rem; margin-bottom: 32px; }
  .faq-question { padding: 18px; font-size: 1rem; }
  .faq-answer-content { padding: 0 18px 18px 18px; }
  
  .faq-custom-header { padding: 16px 10px; }
  .faq-nav-container { gap: 8px; }
  .btn-back-to-shop { padding: 0 16px; font-size: 0.85rem; height: 38px; }
  .btn-change-lang { padding: 0 14px; font-size: 0.85rem; height: 38px; }
  .lang-icon { width: 14px; height: 14px; }
}