/* ============================================================
   GLOBÁLNÍ POZADÍ (Z MAIN PAGE)
   ============================================================ */
html, body {
  overflow-x: hidden;
}

body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                    url('image (1).png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  margin: 0;
  font-family: 'Rubik', sans-serif;
}

/* ============================================================
   REZERVA PRO XP BAR & AKTIVNÍ NAVBAR
   ============================================================ */
.xp-bar-placeholder {
  width: 100%;
  height: 25px;
  background: transparent;
  position: relative;
  z-index: 999;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050 !important;
}

.navbar__link.active {
  color: var(--c-accent);
}
.navbar__link.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--c-accent);
}

/* ============================================================
   HERO SEKCE FAQ
   ============================================================ */
.faq-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 30px;
  text-align: center;
  position: relative;
}

.faq-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #fff 30%, var(--c-accent-h) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ============================================================
   FAQ SEKCE / SEZNAM
   ============================================================ */
.faq-section {
  padding: 20px 0 90px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.faq-item:hover {
  border-color: rgba(0, 94, 255, 0.45);
}

.faq-item.active {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), 0 8px 28px var(--c-accent-glow);
}

/* ------ OTÁZKA (TLAČÍTKO) ------ */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--c-text);
  font-family: inherit;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--tr);
}

.faq-question:hover {
  color: var(--c-accent-h);
}

.faq-item.active .faq-question {
  color: var(--c-accent);
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--c-text-dim);
  transition: transform var(--tr), color var(--tr);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--c-accent);
}

/* ------ ODPOVĚĎ ------ */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--tr-slow);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: clamp(0.92rem, 2vw, 1rem);
  transition: padding var(--tr-slow);
}

.faq-item.active .faq-answer__inner {
  padding: 0 24px 22px;
}

.faq-link {
  color: var(--c-accent-h);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--tr);
}

.faq-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   RESPONZIVITA
   ============================================================ */
@media (max-width: 600px) {
  .faq-question {
    padding: 16px 18px;
  }
  .faq-answer__inner {
    padding: 0 18px;
  }
  .faq-item.active .faq-answer__inner {
    padding: 0 18px 18px;
  }
}
