.faq-page {
  flex: 1;
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 1rem;
  color: #fff;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(33, 150, 243, 0.38), transparent 58%),
    linear-gradient(155deg, #0b1220 0%, #0d3b7a 42%, rgba(21, 101, 192, 0.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
}

body.light-theme .faq-hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(33, 150, 243, 0.16), transparent 58%),
    linear-gradient(155deg, #ffffff 0%, #e3f2fd 42%, rgba(187, 222, 251, 0.45) 72%, transparent 100%);
}

body.light-theme .faq-hero {
  color: #1a237e;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.light-theme .faq-hero-badge {
  background: rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.15);
  color: #1565c0;
}

.faq-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.faq-hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  opacity: 0.92;
  margin: 0;
}

body.light-theme .faq-hero-lead {
  color: #37474f;
  opacity: 1;
}

.faq-content {
  padding: 0 0 4rem;
  margin-top: -0.25rem;
  position: relative;
  z-index: 2;
}

.faq-intro {
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(33, 150, 243, 0.08);
  backdrop-filter: blur(8px);
}

body.light-theme .faq-intro {
  background: rgba(227, 242, 253, 0.9);
  border-color: rgba(21, 101, 192, 0.15);
  color: #263238;
}

/* Навигация — как в ЛК */
.faq-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  background: rgba(15, 20, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-nav::-webkit-scrollbar {
  display: none;
}

body.light-theme .faq-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(25, 118, 210, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.faq-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 5.5rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

body.light-theme .faq-nav-link {
  color: #78909c;
}

.faq-nav-link i {
  font-size: 1.2rem;
  transition: transform 0.15s ease;
}

.faq-nav-label {
  display: block;
  text-align: center;
  line-height: 1.1;
}

.faq-nav-link:hover,
.faq-nav-link:focus {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .faq-nav-link:hover,
body.light-theme .faq-nav-link:focus {
  color: #1976d2;
  background: rgba(25, 118, 210, 0.08);
}

.faq-nav-link.is-active {
  color: #fff;
  background: #2196f3;
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.25);
}

.faq-nav-link.is-active i {
  transform: scale(1.05);
}

body.light-theme .faq-nav-link.is-active {
  color: #fff;
  background: #2196f3;
  box-shadow: 0 4px 14px rgba(33, 150, 243, 0.3);
}

/* Аккордеон */
.faq-accordion {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

body.light-theme .faq-accordion {
  background: #fff;
  border-color: rgba(25, 118, 210, 0.08);
  box-shadow: 0 4px 24px rgba(33, 150, 243, 0.06);
}

.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  scroll-margin-top: 7rem;
}

body.light-theme .faq-accordion .accordion-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.faq-accordion .accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none !important;
  transition: background 0.25s ease, color 0.2s ease;
}

body.light-theme .faq-accordion .accordion-button {
  background: #fafafa;
  color: #263238;
}

.faq-accordion .accordion-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.light-theme .faq-accordion .accordion-button:hover {
  background: #f5f9ff;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(33, 150, 243, 0.28), rgba(33, 150, 243, 0.08));
  color: #fff;
  border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

body.light-theme .faq-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(33, 150, 243, 0.14), rgba(33, 150, 243, 0.05));
  color: #1565c0;
  border-bottom-color: rgba(33, 150, 243, 0.12);
}

.faq-accordion .accordion-button::after {
  filter: brightness(1.4);
  opacity: 0.75;
}

body.light-theme .faq-accordion .accordion-button::after {
  filter: none;
  opacity: 1;
}

.faq-accordion .accordion-button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.35), rgba(102, 126, 234, 0.25));
  color: #90caf9;
  font-size: 1rem;
  flex-shrink: 0;
}

body.light-theme .faq-accordion .accordion-button i {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.14), rgba(33, 150, 243, 0.1));
  color: #1976d2;
}

.faq-accordion .accordion-body {
  padding: 1.25rem 1.35rem 1.35rem;
  line-height: 1.65;
  animation: faq-accordion-in 0.25s ease;
}

@keyframes faq-accordion-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark-theme .faq-accordion .accordion-body {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

body.light-theme .faq-accordion .accordion-body {
  background: #fff;
}

body.dark-theme .faq-accordion .accordion-body a {
  color: #64b5f6;
}

body.dark-theme .faq-accordion .accordion-body code {
  color: #81d4fa;
  background: rgba(33, 150, 243, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.faq-accordion .accordion-body h5,
.faq-accordion .accordion-body h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.faq-accordion .accordion-body h5:first-child,
.faq-accordion .accordion-body h6:first-child {
  margin-top: 0;
}

.faq-player-list {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.faq-player-list li {
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.faq-player-list li:last-child {
  margin-bottom: 0;
}

.faq-player-links {
  display: inline;
  margin-left: 0.35rem;
}

body.dark-theme .faq-accordion .accordion-body .faq-player-links a {
  white-space: nowrap;
}

.faq-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(33, 150, 243, 0.25);
  background:
    radial-gradient(circle at top right, rgba(33, 150, 243, 0.15), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

body.light-theme .faq-cta {
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
  border-color: rgba(21, 101, 192, 0.12);
}

.faq-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.faq-cta-text {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .faq-hero {
    padding-top: 3rem;
    padding-bottom: 0.75rem;
  }

  .faq-nav-link {
    min-width: 4.75rem;
    font-size: 0.62rem;
  }
}
