.page-faq {
  --faq-panel: #0E1630;
  --faq-line: rgba(42, 52, 70, .9);
  --faq-moss-soft: rgba(53, 211, 166, .14);
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) 0 clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--faq-line);
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(138, 107, 255, .22), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(53, 211, 166, .16), transparent 66%),
    var(--sk-ink);
}
.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}
.page-faq .faq-hero__title {
  margin: 14px 0 0;
  font-family: var(--sk-font-display);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--sk-star);
}
.page-faq .faq-hero__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--sk-star-dim);
}
.page-faq .faq-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.page-faq .faq-hero__quick .sk-tag {
  transition: border-color .25s var(--sk-ease), color .25s var(--sk-ease), background-color .25s var(--sk-ease);
}
.page-faq .faq-hero__quick .sk-tag:hover,
.page-faq .faq-hero__quick .sk-tag:focus-visible {
  border-color: var(--sk-moss);
  color: var(--sk-moss);
  background: var(--faq-moss-soft);
}
.page-faq .faq-hero__figure {
  margin: 0;
  border-radius: var(--sk-radius-l);
  overflow: hidden;
  border: 1px solid var(--faq-line);
  transform: translateX(0) rotate(-1.2deg);
}
.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 15 / 7;
  object-fit: cover;
}
.page-faq .faq-hero__orbit {
  position: absolute;
  right: -140px;
  top: -160px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(123, 231, 255, .28);
  border-radius: 50%;
  pointer-events: none;
}
.page-faq .faq-hero__orbit::after {
  content: "";
  position: absolute;
  inset: 56px;
  border: 1px dashed rgba(138, 107, 255, .3);
  border-radius: 50%;
}

/* ---------- Body layout ---------- */
.page-faq .faq-body {
  padding: clamp(30px, 5vw, 60px) 0 clamp(48px, 7vw, 96px);
}
.page-faq .faq-body__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}
.page-faq .faq-rail__label {
  margin: 0 0 14px;
  color: var(--sk-mist);
}
.page-faq .faq-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--faq-line);
}
.page-faq .faq-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  color: var(--sk-star-dim);
  text-decoration: none;
  font-size: 15px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .2s var(--sk-ease), border-color .2s var(--sk-ease), background-color .2s var(--sk-ease);
}
.page-faq .faq-toc a .sk-mono {
  font-size: 12px;
  color: var(--sk-moss);
  letter-spacing: .06em;
}
.page-faq .faq-toc a:hover {
  color: var(--sk-star);
  background: rgba(14, 22, 48, .7);
}
.page-faq .faq-toc a.is-active {
  color: var(--sk-star);
  border-left-color: var(--sk-moss);
  background: rgba(53, 211, 166, .08);
}
.page-faq .faq-rail__hint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--faq-line);
}
.page-faq .faq-rail__hint .sk-note {
  color: var(--sk-mist);
  display: block;
  margin-bottom: 12px;
}

/* ---------- Groups ---------- */
.page-faq .faq-group {
  padding-top: 8px;
  scroll-margin-top: calc(var(--sk-sticky) + 18px);
}
.page-faq .faq-group + .faq-group {
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--faq-line);
}
.page-faq .faq-group__head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.page-faq .faq-group__num {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--sk-moss);
}
.page-faq .faq-group__head .sk-h2 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  color: var(--sk-star);
}
.page-faq .faq-group__intro {
  margin: 0;
  max-width: 60ch;
  color: var(--sk-mist);
  font-size: 15px;
  line-height: 1.8;
}
.page-faq .faq-group--feature {
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--faq-line);
  border-radius: var(--sk-radius-l);
  background: linear-gradient(160deg, rgba(18, 59, 54, .55), rgba(14, 22, 48, .9) 58%);
}

/* ---------- Accordion ---------- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-faq .faq-item {
  border: 1px solid var(--faq-line);
  border-radius: var(--sk-radius-m);
  background: rgba(14, 22, 48, .72);
  overflow: hidden;
  transition: border-color .25s var(--sk-ease), background-color .25s var(--sk-ease);
}
.page-faq .faq-item:hover {
  border-color: rgba(53, 211, 166, .5);
}
.page-faq .faq-item[open] {
  border-color: rgba(53, 211, 166, .62);
  background: rgba(14, 22, 48, .95);
}
.page-faq .faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--sk-star);
}
.page-faq .faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__code {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--sk-moss);
  white-space: nowrap;
}
.page-faq .faq-item__q {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}
.page-faq .faq-item__chev {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.page-faq .faq-item__chev::before,
.page-faq .faq-item__chev::after {
  content: "";
  position: absolute;
  background: var(--sk-cyan);
  transition: transform .25s var(--sk-ease), opacity .25s var(--sk-ease);
}
.page-faq .faq-item__chev::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}
.page-faq .faq-item__chev::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}
.page-faq .faq-item[open] .faq-item__chev::after {
  transform: scaleY(0);
  opacity: 0;
}
.page-faq .faq-item__a {
  padding: 0 16px 18px;
  border-top: 1px dashed rgba(42, 52, 70, .9);
  margin-top: 2px;
  padding-top: 16px;
  background: linear-gradient(180deg, rgba(18, 59, 54, .38), rgba(7, 11, 26, 0) 78%);
}
.page-faq .faq-item__a p {
  margin: 0 0 12px;
  color: var(--sk-star-dim);
  font-size: 15px;
  line-height: 1.85;
  max-width: 68ch;
}
.page-faq .faq-item__a p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-item__a strong {
  color: var(--sk-cyan);
  font-weight: 700;
}
.page-faq .faq-item__a a {
  color: var(--sk-moss);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--sk-ease);
}
.page-faq .faq-item__a a:hover {
  color: var(--sk-cyan);
}

/* ---------- Feature figure ---------- */
.page-faq .faq-feature {
  margin: 0 0 22px;
  border-radius: var(--sk-radius-m);
  overflow: hidden;
  border: 1px solid var(--faq-line);
}
.page-faq .faq-feature img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-faq .faq-feature .sk-figure__cap {
  display: block;
  padding: 10px 14px;
  background: rgba(7, 11, 26, .82);
  color: var(--sk-mist);
  font-family: var(--sk-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- More panel ---------- */
.page-faq .faq-more {
  margin-top: clamp(38px, 5vw, 66px);
  scroll-margin-top: calc(var(--sk-sticky) + 18px);
}
.page-faq .faq-more__panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--sk-radius-l);
}
.page-faq .faq-more__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--sk-star);
}
.page-faq .faq-more__text {
  margin: 0;
  max-width: 68ch;
  color: var(--sk-star-dim);
  font-size: 15px;
  line-height: 1.85;
}
.page-faq .faq-more__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Top button ---------- */
.page-faq .sk-totop {
  display: block;
  margin: 0 auto 8px;
  padding: 10px 20px;
  background: rgba(14, 22, 48, .92);
  border: 1px solid var(--faq-line);
  border-radius: var(--sk-capsule);
  color: var(--sk-star-dim);
  font-family: var(--sk-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .25s var(--sk-ease), color .25s var(--sk-ease);
}
.page-faq .sk-totop:hover,
.page-faq .sk-totop:focus-visible {
  border-color: var(--sk-moss);
  color: var(--sk-moss);
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
  }
  .page-faq .faq-hero__figure {
    transform: translateX(18px) rotate(-1.4deg);
  }
  .page-faq .faq-item summary {
    padding: 18px 22px;
  }
  .page-faq .faq-item__q {
    font-size: 17px;
  }
  .page-faq .faq-item__a {
    padding: 18px 22px 22px;
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-body__grid {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
  .page-faq .faq-rail__sticky {
    position: sticky;
    top: calc(var(--sk-sticky) + 18px);
  }
  .page-faq .faq-hero__title {
    max-width: 14ch;
  }
}

@media (min-width: 1280px) {
  .page-faq .faq-body__grid {
    grid-template-columns: 300px 1fr;
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-toc a,
  .page-faq .faq-hero__quick .sk-tag,
  .page-faq .sk-totop,
  .page-faq .faq-item__chev::before,
  .page-faq .faq-item__chev::after {
    transition: none;
  }
}
