.page-faq {
  --cat-accent: var(--ice);
  --faq-grid-line: rgba(0, 212, 255, 0.06);
}

.page-faq .category-basics {
  --cat-accent: var(--mint);
}

.page-faq .category-data {
  --cat-accent: var(--orange);
}

.page-faq .category-video {
  --cat-accent: var(--ice);
}

.page-faq .category-updates {
  --cat-accent: var(--amber);
}

.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 40px;
  background:
    linear-gradient(var(--faq-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--faq-grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at 82% 18%, rgba(0, 255, 135, 0.12), transparent 46%),
    linear-gradient(135deg, var(--space) 0%, #0d1830 70%, var(--trench) 100%);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

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

.page-faq .breadcrumb {
  margin-bottom: 28px;
}

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

.page-faq .section-label {
  margin-bottom: 12px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--pearl);
  max-width: 9em;
}

.page-faq .faq-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 62ch;
  margin: 0 0 22px;
}

.page-faq .faq-search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--trench);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.page-faq .faq-search-icon {
  color: var(--ice);
  flex-shrink: 0;
}

.page-faq .faq-search-label {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--slate);
  margin-right: auto;
}

.page-faq .faq-search-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--ice);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-faq .faq-search-tag:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(0, 255, 135, 0.06);
}

.page-faq .faq-hero-art {
  position: relative;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--trench);
}

.page-faq .faq-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 65%, rgba(0, 255, 135, 0.14));
  pointer-events: none;
}

.page-faq .faq-topic-nav {
  display: flex;
  gap: 12px;
  padding: 28px 0 8px;
  overflow-x: auto;
}

.page-faq .faq-topic-nav .tag {
  white-space: nowrap;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-faq .faq-overview {
  margin: 40px 0 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 32, 64, 0.55);
  padding: 24px 20px;
}

.page-faq .faq-overview h2 {
  font-family: var(--font-headline);
  font-size: 20px;
  color: var(--pearl);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.page-faq .faq-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 18px;
}

.page-faq .faq-overview-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 4px;
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.page-faq .faq-overview-link::before {
  content: "›";
  color: var(--ice);
  font-weight: 800;
  font-family: var(--font-data);
}

.page-faq .faq-overview-link:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--pearl);
}

.page-faq .faq-sections {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-bottom: 72px;
}

.page-faq .faq-category {
  scroll-margin-top: calc(var(--header-h) + 24px);
  display: block;
}

.page-faq .faq-category-head {
  border-left: 4px solid var(--cat-accent);
  padding-left: 18px;
  margin-bottom: 20px;
}

.page-faq .faq-category-num {
  display: block;
  font-family: var(--font-data);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: var(--cat-accent);
  letter-spacing: -0.02em;
}

.page-faq .faq-category-head h2 {
  font-family: var(--font-headline);
  font-size: 26px;
  line-height: 1.2;
  margin: 10px 0 6px;
  color: var(--pearl);
  letter-spacing: 0.01em;
}

.page-faq .faq-category-head p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52ch;
}

.page-faq .faq-category-head::after {
  content: "";
  display: block;
  height: 4px;
  width: 48px;
  margin-top: 14px;
  background: var(--cat-accent);
  transform: skewX(-18deg);
}

.page-faq .faq-category-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-faq .faq-item {
  background: var(--trench);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cat-accent);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-faq .faq-item[open] {
  border-color: var(--cat-accent);
  background: rgba(18, 32, 64, 0.85);
}

.page-faq .faq-question {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--pearl);
  line-height: 1.5;
  user-select: none;
}

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

.page-faq .faq-question:hover {
  background: rgba(0, 212, 255, 0.04);
}

.page-faq .faq-question-text {
  flex: 1;
}

.page-faq .faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--cat-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s;
}

.page-faq .faq-chevron::before,
.page-faq .faq-chevron::after {
  content: "";
  position: absolute;
  background: var(--cat-accent);
  border-radius: 2px;
  transition: background 0.25s;
}

.page-faq .faq-chevron::before {
  width: 12px;
  height: 2px;
}

.page-faq .faq-chevron::after {
  width: 2px;
  height: 12px;
}

.page-faq .faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  background: var(--cat-accent);
}

.page-faq .faq-item[open] .faq-chevron::before,
.page-faq .faq-item[open] .faq-chevron::after {
  background: var(--space);
}

.page-faq .faq-answer {
  border-top: 1px dashed var(--border);
  padding: 0 22px 22px;
}

.page-faq .faq-answer p {
  margin: 0;
  padding-top: 16px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
}

.page-faq .faq-payment-visual {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--space);
}

.page-faq .faq-payment-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-visual-caption {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  letter-spacing: 0.01em;
}

.page-faq .faq-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--trench), rgba(0, 212, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px;
  box-shadow: var(--shadow-md);
}

.page-faq .faq-contact::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.12);
  filter: blur(36px);
  pointer-events: none;
}

.page-faq .faq-contact-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-faq .faq-contact h2 {
  font-family: var(--font-headline);
  font-size: 26px;
  line-height: 1.2;
  color: var(--pearl);
  margin: 0 0 8px;
}

.page-faq .faq-contact p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
  max-width: 60ch;
}

.page-faq .faq-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
}

.page-faq .faq-contact-actions .btn {
  text-align: center;
  text-decoration: none;
}

@media (min-width: 700px) {
  .page-faq .faq-overview-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-faq .faq-contact-actions {
    flex-direction: row;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    padding: 36px 0 64px;
  }

  .page-faq .breadcrumb {
    margin-bottom: 44px;
  }

  .page-faq .faq-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .page-faq .faq-hero h1 {
    font-size: 58px;
  }

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

  .page-faq .faq-hero-art {
    max-width: 440px;
  }

  .page-faq .faq-topic-nav {
    padding: 36px 0 12px;
  }

  .page-faq .faq-overview {
    margin: 48px 0 64px;
    padding: 28px 32px;
  }

  .page-faq .faq-category {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }

  .page-faq .faq-category-head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    margin-bottom: 0;
  }

  .page-faq .faq-payment-visual {
    margin-top: 20px;
  }

  .page-faq .faq-contact {
    padding: 48px 40px;
  }

  .page-faq .faq-contact-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-faq .faq-contact-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}
