.page-faq {
  --text-primary: #1a1a1a;
  --text-secondary: #4e4e4e;
  --text-muted: #8a8a8a;
  --line-color: rgba(26, 26, 26, .1);
  --faq-bg: #f5f5f5;
  --faq-card: #ffffff;
  --faq-carbon: #0d0d0d;
  background: var(--faq-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* ========== HERO ========== */
.page-faq .faq-hero {
  position: relative;
  padding: calc(var(--header-h) + 44px) 0 56px;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(200, 16, 46, .32), transparent 56%),
    linear-gradient(135deg, var(--color-carbon) 0%, var(--color-black) 68%, #141414 100%);
  color: var(--color-white);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-gold) 42%, transparent 100%);
}

.page-faq .faq-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: saturate(.65);
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero .breadcrumb {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  margin-bottom: 20px;
}

.page-faq .faq-hero .breadcrumb a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.page-faq .faq-hero .breadcrumb a:hover {
  color: var(--color-gold);
}

.page-faq .faq-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--color-gold);
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0 0 18px;
  color: var(--color-white);
  text-transform: uppercase;
  max-width: 860px;
}

.page-faq .faq-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .74);
  max-width: 720px;
  margin: 0;
}

.page-faq .faq-search {
  position: relative;
  max-width: 640px;
  margin-top: 28px;
}

.page-faq .faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
}

.page-faq .faq-search input {
  width: 100%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  color: var(--color-white);
  padding: 14px 92px 14px 46px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.page-faq .faq-search input::placeholder {
  color: rgba(255, 255, 255, .48);
}

.page-faq .faq-search input:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, .12);
}

.page-faq .faq-search-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .38);
  pointer-events: none;
}

/* ========== LAYOUT ========== */
.page-faq .faq-layout {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 48px;
}

.page-faq .faq-content {
  order: 1;
  min-width: 0;
}

.page-faq .faq-sidebar {
  order: 2;
  margin-top: 36px;
}

/* ========== SIDEBAR ========== */
.page-faq .faq-sidebar-panel {
  position: relative;
  overflow: hidden;
  background: var(--faq-carbon);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: var(--color-white);
}

.page-faq .faq-tech {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}

.page-faq .faq-sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-faq .faq-sidebar-kicker {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-gold);
}

.page-faq .faq-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.page-faq .faq-cats {
  position: relative;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.page-faq .faq-cats::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .84);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.page-faq .faq-cat-link:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--color-white);
}

.page-faq .faq-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green) 0 34%, var(--color-white) 34% 67%, var(--color-red) 67%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.page-faq .faq-cat-name {
  font-size: 13px;
  font-weight: 500;
}

.page-faq .faq-cat-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .42);
}

.page-faq:has(#faq-filter-login:checked) .faq-cat-link[for="faq-filter-login"],
.page-faq:has(#faq-filter-scorer:checked) .faq-cat-link[for="faq-filter-scorer"],
.page-faq:has(#faq-filter-match:checked) .faq-cat-link[for="faq-filter-match"],
.page-faq:has(#faq-filter-history:checked) .faq-cat-link[for="faq-filter-history"],
.page-faq:has(#faq-filter-support:checked) .faq-cat-link[for="faq-filter-support"] {
  background: rgba(200, 16, 46, .18);
  color: var(--color-white);
}

/* ========== STAT PANEL ========== */
.page-faq .faq-stat-panel {
  margin-top: 16px;
  background: var(--faq-card);
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.page-faq .faq-stat-item {
  text-align: center;
}

.page-faq .faq-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-red);
  white-space: nowrap;
}

.page-faq .faq-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

/* ========== SUPPORT CARD ========== */
.page-faq .faq-support {
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--color-white);
}

.page-faq .faq-support::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-support-img {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.page-faq .faq-support h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
}

.page-faq .faq-support p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  word-break: break-all;
}

.page-faq .faq-support .faq-support-time {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.page-faq .faq-support .btn {
  margin-top: 14px;
}

/* ========== FILTER TOOLBAR ========== */
.page-faq .faq-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-bottom: 24px;
}

.page-faq .faq-filter::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-filter-mono {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--color-red);
  margin-right: 4px;
}

.page-faq .faq-filter input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.page-faq .faq-filter label {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--line-color);
  background: var(--faq-card);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.page-faq .faq-filter label:hover {
  border-color: rgba(200, 16, 46, .3);
  color: var(--color-red);
}

.page-faq .faq-filter input:checked + label {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .22);
}

.page-faq .faq-filter input:focus-visible + label {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ========== FAQ SECTIONS ========== */
.page-faq .faq-section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-faq .faq-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-red);
}

.page-faq .faq-section-head .section-index {
  color: var(--color-red);
  font-size: 12px;
}

.page-faq .faq-section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  color: var(--color-black);
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== FAQ ITEM ========== */
.page-faq .faq-item {
  position: relative;
  background: var(--faq-card);
  border: 1px solid var(--line-color);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.page-faq .faq-item[open] {
  border-color: rgba(200, 16, 46, .28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 16px 32px rgba(0, 0, 0, .07);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item-no {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--color-red);
  background: rgba(200, 16, 46, .08);
  padding: 3px 7px;
  border-radius: 3px;
}

.page-faq .faq-item-q {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-black);
}

.page-faq .faq-item-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--color-red);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.page-faq .faq-item-toggle::before {
  content: "+";
  line-height: 1;
}

.page-faq .faq-item[open] .faq-item-toggle {
  transform: rotate(45deg);
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.page-faq .faq-item-a {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.page-faq .faq-item-a p {
  margin: 0 0 8px;
}

.page-faq .faq-item-a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item-a a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-item[open] .faq-item-a {
  animation: page-faq-fade-in .28s var(--ease);
}

@keyframes page-faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FILTER DISPLAY CONTROL ========== */
.page-faq:has(#faq-filter-login:checked) .faq-section:not(#cat-login),
.page-faq:has(#faq-filter-scorer:checked) .faq-section:not(#cat-scorer),
.page-faq:has(#faq-filter-match:checked) .faq-section:not(#cat-match),
.page-faq:has(#faq-filter-history:checked) .faq-section:not(#cat-history),
.page-faq:has(#faq-filter-support:checked) .faq-section:not(#cat-support) {
  display: none;
}

/* ========== CTA ========== */
.page-faq .faq-cta {
  position: relative;
  margin-top: 8px;
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 80% 120%, rgba(212, 175, 55, .16), transparent 52%),
    linear-gradient(135deg, var(--color-red) 0%, var(--color-black) 62%, var(--faq-carbon) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.page-faq .faq-cta::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-cta-inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-cta .tilt-band {
  margin-bottom: 18px;
}

.page-faq .faq-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  color: var(--color-white);
}

.page-faq .faq-cta p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .76);
}

.page-faq .faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-faq .faq-cta .btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
  color: var(--color-white);
}

.page-faq .faq-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--color-white);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .page-faq .faq-stat-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }

  .page-faq .faq-stat-num {
    font-size: 20px;
  }

  .page-faq .faq-hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 68px;
  }

  .page-faq .faq-hero-lead {
    font-size: 17px;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .page-faq .faq-sidebar,
  .page-faq .faq-content {
    order: 0;
  }

  .page-faq .faq-sidebar {
    margin-top: 0;
  }

  .page-faq .faq-sidebar-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    z-index: 2;
  }

  .page-faq .faq-cats {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-cat-count {
    margin-left: auto;
  }

  .page-faq .faq-support-img {
    display: block;
  }

  .page-faq .faq-content {
    padding-top: 2px;
  }

  .page-faq .faq-filter {
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-faq .faq-cta {
    padding: 72px 0 80px;
  }

  .page-faq .faq-cta-actions {
    margin-top: 28px;
  }
}
