.page-faq {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-faq__layout {
  padding-top: clamp(24px, 6vw, 72px);
}

.page-faq__breadcrumb {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.page-faq__header {
  position: relative;
  margin-bottom: clamp(32px, 7vw, 64px);
  padding-left: clamp(12px, 3vw, 32px);
}

.page-faq__header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-400), rgba(227, 179, 65, 0));
}

.page-faq__kicker {
  color: var(--gold-400);
  margin-bottom: 12px;
}

.page-faq__title {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.page-faq__lead {
  color: var(--muted-300);
  max-width: 70ch;
  margin: 0;
}

.page-faq__body {
  display: grid;
  gap: 32px;
}

.page-faq__toc {
  margin-bottom: 8px;
}

.page-faq__toc-title {
  display: none;
}

.page-faq__toc-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.page-faq__toc-list::-webkit-scrollbar {
  display: none;
}

.page-faq__toc-list li {
  flex-shrink: 0;
}

.page-faq__toc-list a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted-300);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.page-faq__toc-list a:hover {
  color: var(--gold-200);
  border-color: var(--gold-400);
}

.page-faq__toc-figure {
  display: none;
}

.page-faq__section {
  scroll-margin-top: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.page-faq__code {
  color: var(--sky-400);
  font-family: var(--font-mono);
  margin: 0 0 8px;
}

.page-faq__subtitle {
  color: var(--cream-50);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__list {
  counter-reset: faq-acc;
}

.page-faq__item {
  counter-increment: faq-acc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 8px;
  font-weight: 600;
  color: var(--cream-50);
  transition: color 0.28s var(--ease);
}

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

.page-faq__item summary::before {
  content: "F-" counter(faq-acc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-400);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  opacity: 0.85;
}

.page-faq__item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  transform: translateY(-3px) rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-faq__item[open] summary {
  color: var(--gold-200);
}

.page-faq__item[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.page-faq__answer {
  padding: 0 8px 24px;
  color: var(--muted-300);
  font-size: 15px;
  line-height: 1.8;
}

.page-faq__answer a {
  color: var(--blue-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 109, 242, 0.5);
}

.page-faq__figure {
  margin: 20px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.page-faq__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.page-faq__figure figcaption {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted-300);
  padding: 10px 14px;
}

.page-faq__helpful {
  margin: 16px 0 0;
}

.page-faq__helpful-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted-300);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-faq__helpful-btn:hover {
  color: var(--gold-200);
  border-color: var(--gold-400);
}

.page-faq__cta {
  margin-top: clamp(40px, 8vw, 72px);
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold-400);
  border-radius: 12px;
  display: grid;
  gap: 8px;
}

.page-faq__cta-kicker {
  color: var(--gold-400);
  margin: 0;
}

.page-faq__cta-title {
  color: var(--cream-50);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
}

.page-faq__cta-text {
  color: var(--muted-300);
  margin: 0 0 8px;
  max-width: 72ch;
}

.page-faq__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 640px) {
  .page-faq__answer {
    padding-left: 52px;
  }
}

@media (min-width: 960px) {
  .page-faq__body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
  }

  .page-faq__toc {
    position: sticky;
    top: 32px;
    grid-column: 2;
    margin: 0;
    padding: 0;
  }

  .page-faq__toc-title {
    display: block;
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px;
  }

  .page-faq__toc-list {
    display: block;
    overflow: visible;
    margin: 0 0 32px;
    padding: 0;
    border-left: 2px solid var(--navy-700);
  }

  .page-faq__toc-list li {
    margin: 0;
  }

  .page-faq__toc-list a {
    display: block;
    border: 0;
    border-radius: 0;
    background: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    padding: 7px 0 7px 18px;
    white-space: normal;
  }

  .page-faq__toc-list a:hover {
    border-left-color: var(--gold-400);
  }

  .page-faq__toc-figure {
    display: block;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
  }

  .page-faq__toc-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  .page-faq__toc-figure figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-300);
    padding: 8px 12px;
  }
}
