.faq-hero {
  background: linear-gradient(120deg, #172037, #2b294a 72%, #382d54);
  border-bottom: 1px solid var(--navigation-line);
  padding-block: clamp(44px, 7vw, 100px) clamp(38px, 5vw, 70px);
}

.faq-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  letter-spacing: -.065em;
  text-wrap: initial;
}

.faq-hero .shell > p {
  color: #d9dcee;
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.faq-search { max-width: 42rem; margin-top: 32px; }
.faq-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.faq-search-row { display: flex; gap: 8px; }
.faq-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #717995;
  border-radius: 8px;
  background: #151a29;
  color: var(--ink);
  font: inherit;
}
.faq-search input::placeholder { color: #abb2c6; }
.faq-search .button { border-radius: 8px; }
#faq-count { margin-top: 9px; color: #cbd0e3; font-size: .9rem; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3.5fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
  padding-block: clamp(32px, 6vw, 72px);
}
.faq-topics { position: sticky; top: 105px; }
.faq-topics h2 { font-size: 1.1rem; margin-bottom: 12px; }
.faq-topics ul { margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 1px solid var(--line); }
.faq-topics a { display: inline-block; padding: 8px 4px; color: var(--muted); }
.faq-topics a:hover { color: var(--ink); text-decoration: underline; }
.faq-section + .faq-section { margin-top: 42px; }
.faq-section h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 2.8vw, 2.15rem); letter-spacing: -.035em; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 13px 12px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.faq-item[open] { background: var(--panel); }
.faq-item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item summary:hover { background: #ffffff0a; }
.faq-item:target summary { box-shadow: inset 3px 0 var(--blue); }
.faq-answer { padding: 1px 32px 18px 12px; color: var(--muted); }
.faq-answer p { max-width: 73ch; }
.faq-answer strong { color: var(--ink); }
.faq-answer a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.faq-empty { padding: 18px; border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 760px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-topics { position: static; }
  .faq-topics ul { display: flex; flex-wrap: wrap; column-gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
