/* ==========================================================================
   НАРОДНЫЙ ГАЙД — КЛАССИЧЕСКАЯ ИНФОРМАЦИЯ (FAQ СО СПОЙЛЕРАМИ И АУДИО)
   Стиль: Неоновый кибер-тропический высокотехнологичный портал (9:16)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #05070e;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 9:16 Сценический контейнер (Мягкий нейропанк) */
.app-stage.classic-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 35%, #0d1a2d 0%, #081220 45%, #040810 80%, #010306 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 240, 255, 0.08);
}

@media (min-width: 481px) {
  .app-stage.classic-stage {
    width: 480px;
    max-width: 480px;
    border-left: 1px solid rgba(0, 240, 255, 0.15);
    border-right: 1px solid rgba(0, 240, 255, 0.15);
  }
}

/* Мягкий нейропанк: атмосферный градиент фона вместо сетки */
.classic-bg-grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.06) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.classic-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 119, 182, 0.06) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   ВЕРХНЯЯ ПАНЕЛЬ УПРАВЛЕНИЯ (HEADER)
   ========================================================================== */
.classic-header {
  position: relative;
  z-index: 20;
  height: clamp(52px, 8vh, 60px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(8, 12, 22, 0.88);
  border-bottom: 1.5px solid rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.classic-header__left,
.classic-header__right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Кнопки навигации в шапке (Главная, Форматы) */
.classic-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.classic-home-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.classic-ctrl-btn:hover,
.classic-ctrl-btn:active {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.classic-formats-btn {
  border-color: rgba(255, 209, 102, 0.35);
}

.classic-formats-btn:hover,
.classic-formats-btn:active {
  background: rgba(255, 209, 102, 0.18);
  border-color: #ffd166;
  color: #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.35);
}

/* Циклический языковой переключатель */
.lang-cycle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}

.lang-cycle-btn:hover,
.lang-cycle-btn:active {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.flag-svg {
  display: block;
  border-radius: 3px;
}

/* ==========================================================================
   ПРОКРУЧИВАЕМЫЙ КОНТЕНТ (HERO + FAQ SPOILERS + FOOTER)
   ========================================================================== */
.classic-content-scroll {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 14px 28px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Кастомный скроллбар */
.classic-content-scroll::-webkit-scrollbar {
  width: 5px;
}
.classic-content-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.classic-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.25);
  border-radius: 4px;
}
.classic-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* HERO СЕКЦИЯ */
.classic-hero {
  text-align: center;
  padding: 8px 4px 18px;
}

.classic-hero__badge-row {
  margin-bottom: 8px;
}

.classic-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.classic-hero__title {
  font-size: clamp(20px, 5.4vw, 25px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.3);
  line-height: 1.25;
}

.classic-hero__subtitle {
  font-size: clamp(12px, 3.4vw, 13.5px);
  color: rgba(220, 240, 255, 0.72);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   СПОЙЛЕРЫ (ACCORDION)
   ========================================================================== */
.classic-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.classic-spoiler {
  background: rgba(14, 20, 35, 0.75);
  border: 1.5px solid rgba(0, 240, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.classic-spoiler.is-open {
  border-color: #00f0ff;
  background: rgba(16, 25, 45, 0.92);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.22), 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Заголовок спойлера (кнопка) */
.classic-spoiler__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.classic-spoiler__header:hover {
  background: rgba(0, 240, 255, 0.05);
}

.classic-spoiler__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 3px 6px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.classic-spoiler.is-open .classic-spoiler__num {
  background: #00f0ff;
  color: #08111c;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.classic-spoiler__question {
  flex: 1;
  font-size: clamp(13px, 3.6vw, 14.5px);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.classic-spoiler__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  flex-shrink: 0;
}

.classic-spoiler.is-open .classic-spoiler__chevron {
  transform: rotate(180deg);
  color: #00f0ff;
}

/* Тело спойлера */
.classic-spoiler__body {
  display: none;
  animation: spoilerSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.classic-spoiler.is-open .classic-spoiler__body {
  display: block;
}

@keyframes spoilerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.classic-spoiler__inner {
  padding: 2px 14px 14px;
}

.classic-spoiler__text {
  font-size: clamp(12.5px, 3.4vw, 13.5px);
  line-height: 1.6;
  color: rgba(230, 242, 255, 0.88);
  margin: 0;
  white-space: pre-line;
}

/* Аудио панель внутри ответа */
.classic-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.classic-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.classic-audio-btn:hover,
.classic-audio-btn:active {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.classic-audio-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Анимация волн эквалайзера при воспроизведении */
.classic-audio-waves {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.classic-audio-waves span {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  animation: eqWave 0.8s ease-in-out infinite alternate;
}

.classic-audio-waves span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.classic-audio-waves span:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.classic-audio-waves span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.classic-audio-waves span:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes eqWave {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* Состояние воспроизведения */
.classic-audio-btn.is-playing {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #08111c;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.65);
}

.classic-audio-btn.is-playing .classic-audio-btn__speaker {
  display: none;
}

.classic-audio-btn.is-playing .classic-audio-waves {
  display: flex;
}

/* Состояние подготовки/заглушки (мягкая индикация без алертов) */
.classic-audio-btn.is-preparing {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
  color: #ffd166;
  animation: audioPulse 0.6s ease infinite alternate;
}

@keyframes audioPulse {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.classic-audio-status {
  font-size: 11px;
  color: #ffd166;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ПОДВАЛ */
.classic-footer {
  text-align: center;
  padding: 24px 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 20px;
}

.classic-footer__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(0, 240, 255, 0.8);
  margin: 0 0 4px;
}

.classic-footer__copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
