.page-faq {
  --faq-panel: rgba(20, 51, 90, 0.42);
  --faq-panel-open: rgba(30, 58, 110, 0.58);
  --faq-line: rgba(245, 240, 230, 0.1);
  position: relative;
  background:
    radial-gradient(circle at 88% 6%, rgba(30, 58, 110, 0.65), transparent 34%),
    radial-gradient(circle at 6% 42%, rgba(20, 51, 90, 0.4), transparent 30%),
    var(--space-blue);
}

.page-faq .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--rock-gray);
}

.page-faq .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.page-faq .breadcrumb a:hover,
.page-faq .breadcrumb a:focus-visible {
  border-color: var(--gold);
}

.page-faq .breadcrumb-sep {
  color: var(--rock-gray);
}

.page-faq .breadcrumb [aria-current="page"] {
  color: var(--text);
}

.page-faq .faq-hero {
  position: relative;
  padding: 30px 0 40px;
  overflow: hidden;
}

.page-faq .faq-hero .data-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

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

.page-faq .faq-hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.page-faq .faq-hero-copy {
  min-width: 0;
}

.page-faq .faq-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-faq .faq-hero-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.page-faq .faq-page-title {
  margin: 0 0 16px;
  font-family: var(--header-font);
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-faq .faq-page-desc {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-faq .faq-page-desc a {
  color: var(--gold);
}

.page-faq .faq-search {
  position: relative;
  max-width: 620px;
  margin-bottom: 18px;
}

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

.page-faq .faq-search-input {
  width: 100%;
  padding: 13px 16px 13px 48px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 999px;
  background: rgba(11, 29, 58, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
}

.page-faq .faq-search-input::placeholder {
  color: var(--rock-gray);
}

.page-faq .faq-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
  background: rgba(11, 29, 58, 0.85);
}

.page-faq .faq-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
}

.page-faq .faq-cats::-webkit-scrollbar {
  height: 6px;
}

.page-faq .faq-cats::-webkit-scrollbar-thumb {
  background: rgba(245, 240, 230, 0.18);
  border-radius: 8px;
}

.page-faq .faq-cat {
  --topic-color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  background: rgba(20, 51, 90, 0.34);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
}

.page-faq .faq-cat:hover,
.page-faq .faq-cat:focus-visible {
  border-color: var(--topic-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px var(--topic-color);
}

.page-faq .faq-cat-num {
  font-family: var(--mono-font);
  font-size: 11px;
  color: var(--rock-gray);
}

.page-faq .faq-cat:hover .faq-cat-num,
.page-faq .faq-cat:focus-visible .faq-cat-num {
  color: #fff;
}

.page-faq .faq-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--topic-color);
  flex: 0 0 auto;
}

.page-faq .faq-cat--install { --topic-color: var(--gold); }
.page-faq .faq-cat--scorer { --topic-color: var(--lime); }
.page-faq .faq-cat--report { --topic-color: var(--terra); }
.page-faq .faq-cat--upgrade { --topic-color: var(--moss); }
.page-faq .faq-cat--support { --topic-color: var(--cream); }

.page-faq .faq-hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--faq-line);
  box-shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.9);
}

.page-faq .faq-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-faq .faq-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(11, 29, 58, 0.72), transparent 55%, rgba(57, 255, 20, 0.06));
}

.page-faq .faq-hero-note {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(11, 29, 58, 0.72);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-faq .faq-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.14);
  flex: 0 0 auto;
}

.page-faq .faq-live {
  color: var(--lime);
}

.page-faq .faq-hero-note-sep {
  color: var(--rock-gray);
}

.page-faq .faq-topic {
  --topic-color: var(--gold);
  padding: 38px 0 46px;
  position: relative;
}

.page-faq .faq-topic + .faq-topic {
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-topic--install { --topic-color: var(--gold); }
.page-faq .faq-topic--scorer { --topic-color: var(--lime); }
.page-faq .faq-topic--report { --topic-color: var(--terra); }
.page-faq .faq-topic--upgrade { --topic-color: var(--moss); }
.page-faq .faq-topic--support { --topic-color: var(--cream); }

.page-faq .faq-topic--scorer {
  background: linear-gradient(120deg, rgba(20, 51, 90, 0.28), transparent 60%);
}

.page-faq .faq-topic--upgrade {
  background: linear-gradient(300deg, rgba(138, 154, 91, 0.08), transparent 60%);
}

.page-faq .faq-topic--support {
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.07), transparent 38%);
}

.page-faq .faq-topic-grid {
  display: grid;
  gap: 22px;
}

.page-faq .faq-topic-intro {
  min-width: 0;
}

.page-faq .faq-topic-id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--topic-color, var(--gold));
}

.page-faq .faq-topic-id::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.page-faq .faq-topic-h2 {
  margin: 0 0 10px;
  font-family: var(--header-font);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-faq .faq-topic-intro p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.page-faq .faq-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.page-faq .faq-item {
  --topic-color: var(--gold);
  background: var(--faq-panel);
  border: 1px solid var(--faq-line);
  border-radius: var(--radius);
  transition:
    background var(--t-base),
    border-color var(--t-base),
    transform var(--t-base),
    box-shadow var(--t-base);
}

.page-faq .faq-item:hover {
  transform: translateY(-1px);
}

.page-faq .faq-item[open] {
  background: var(--faq-panel-open);
  border-color: var(--topic-color);
  box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.7);
}

.page-faq .faq-item[open]:hover {
  transform: none;
}

.page-faq .faq-item-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item-tag {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--topic-color, var(--gold));
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast);
}

.page-faq .faq-item:hover .faq-item-tag {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--topic-color);
  color: #fff;
}

.page-faq .faq-item-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--t-fast);
}

.page-faq .faq-item[open] .faq-item-text {
  color: #fff;
}

.page-faq .faq-item-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  flex: 0 0 auto;
  transition:
    border-color var(--t-fast),
    transform var(--t-base);
}

.page-faq .faq-item-icon::before,
.page-faq .faq-item-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--topic-color, var(--gold));
  transition:
    transform var(--t-base),
    opacity var(--t-base);
}

.page-faq .faq-item-icon::before {
  transform: translate(-50%, -50%);
}

.page-faq .faq-item-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-item[open] .faq-item-icon {
  border-color: var(--gold);
}

.page-faq .faq-item[open] .faq-item-icon::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.page-faq .faq-item-body {
  padding: 0 16px 18px;
  border-top: 1px dashed rgba(122, 127, 140, 0.28);
  margin-top: -6px;
}

.page-faq .faq-item-body > *:first-child {
  margin-top: 14px;
}

.page-faq .faq-item-body p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.page-faq .faq-item-body ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.page-faq .faq-item-body li {
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.page-faq .faq-item-body a {
  color: var(--gold);
}

.page-faq .faq-item-body a:hover,
.page-faq .faq-item-body a:focus-visible {
  text-decoration: underline;
}

.page-faq .faq-support-body {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-faq .faq-support-grid {
  display: grid;
  gap: 16px;
}

.page-faq .faq-support-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--faq-line);
}

.page-faq .faq-support-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-faq .faq-support-card {
  position: relative;
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(20, 51, 90, 0.72) 55%);
  border: 1px solid rgba(255, 215, 0, 0.42);
}

.page-faq .faq-support-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--cream);
}

.page-faq .faq-support-desc {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.page-faq .faq-contact-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
}

.page-faq .faq-contact-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--space-blue);
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 auto;
}

.page-faq .faq-support-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 29, 58, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 40px 0 52px;
  }

  .page-faq .faq-topic {
    padding: 52px 0 64px;
  }

  .page-faq .faq-topic-grid {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2.3fr);
    gap: 32px;
  }

  .page-faq .faq-item-head {
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 18px 20px;
  }

  .page-faq .faq-item-body {
    padding: 0 20px 22px;
  }

  .page-faq .faq-support-grid {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 48px;
  }

  .page-faq .faq-topic-intro {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}
