.faq-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(ellipse 72% 88% at 88% 40%, rgba(52, 153, 190, .24), transparent 68%), linear-gradient(120deg, #03131e, #071f2f 54%, #0a344b); }
.faq-hero::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 540px; right: -170px; top: -210px; border-radius: 48% 52% 63% 37% / 56% 36% 64% 44%; background: rgba(72, 174, 207, .17); filter: blur(68px); transform: rotate(-13deg); }
.faq-hero-glow { position: absolute; z-index: -1; width: 520px; height: 420px; left: -260px; bottom: -280px; border-radius: 50%; background: rgba(47, 151, 190, .15); filter: blur(78px); }
.faq-hero-layout { min-height: 690px; padding-top: 92px; display: grid; grid-template-columns: 1.05fr .7fr; gap: clamp(60px, 10vw, 145px); align-items: center; }
.faq-hero-copy { padding-bottom: 72px; }
.faq-hero h1 { max-width: 800px; margin: 0 0 29px; font-size: clamp(3.9rem, 5.75vw, 5.8rem); line-height: .95; letter-spacing: var(--tracking-display); text-wrap: balance; }
.faq-hero h1 em { color: #73c6e8; font-style: normal; }
.faq-hero-copy > p { max-width: 620px; margin: 0; color: #c4d5de; font-size: var(--text-lead); }
.question-field { min-height: 430px; position: relative; }
.question-field::before { content: ""; position: absolute; inset: 40px 20px; border-radius: 44% 56% 52% 48% / 48% 42% 58% 52%; background: radial-gradient(circle at 43% 42%, rgba(79, 163, 217, .16), rgba(11, 55, 78, .06) 58%, transparent 72%); }
.question-core { width: 190px; height: 190px; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(84, 176, 213, .38), rgba(15, 63, 87, .75)); box-shadow: 0 30px 75px rgba(0, 12, 22, .34); font-size: 5.2rem; font-weight: 780; line-height: 1; transform: translate(-50%, -50%); }
.topic { min-height: 40px; padding: 8px 15px; position: absolute; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: var(--radius-pill); color: #cbe1e9; background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: var(--text-xs); font-weight: 800; letter-spacing: .04em; }
.topic-general { left: 2%; top: 16%; }
.topic-external { right: 0; top: 24%; }
.topic-document { right: 6%; bottom: 17%; }
.topic-access { left: 2%; bottom: 23%; }
.topic-api { right: -3%; bottom: 38%; }
.topic-price { left: 42%; bottom: 2%; }

.topic-nav { position: sticky; z-index: 40; top: 74px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.topic-nav-inner { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 50px); }
.topic-nav a { min-height: 44px; position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: var(--text-sm); font-weight: 750; white-space: nowrap; transition: color .2s; }
.topic-nav a::after { content: ""; height: 2px; position: absolute; right: 0; bottom: 4px; left: 0; border-radius: var(--radius-pill); background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.topic-nav a:hover { color: var(--brand); }
.topic-nav a[aria-current="location"] { color: var(--deep); }
.topic-nav a[aria-current="location"]::after { transform: scaleX(1); }

.faq-category { scroll-margin-top: 142px; }
.category-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(65px, 10vw, 135px); align-items: start; }
.category-intro { position: sticky; top: 180px; }
.category-mark { width: 54px; height: 54px; margin-bottom: 30px; display: grid; place-items: center; border: 1px solid rgba(18, 62, 92, .22); border-radius: 50%; color: var(--brand); font-size: 1.15rem; font-weight: 850; }
.category-intro h2 { margin: 16px 0 22px; font-size: clamp(2.55rem, 4vw, 4rem); line-height: 1.02; letter-spacing: var(--tracking-display); text-wrap: balance; }
.category-intro > p:last-of-type { max-width: 470px; margin: 0; color: var(--muted); }
.category-intro .round-link { margin-top: 28px; }
.faq-category .accordion { border-color: rgba(18, 62, 92, .2); }
.faq-category .faq-item { border-color: rgba(18, 62, 92, .18); }
.faq-category .faq-item button { padding-block: 27px; }
.faq-category .faq-answer { max-width: 780px; padding-bottom: 28px; }
.faq-category .faq-answer code { padding: 2px 6px; border-radius: 6px; color: inherit; background: rgba(27,109,169,.09); font-family: inherit; font-size: .92em; font-weight: 750; }
.category-general { background: #fff; }
.category-external { background: #e8f3f6; }
.category-access { background: var(--warm); }
.category-integration { color: #dcebf1; background: radial-gradient(circle at 88% 18%,rgba(79,163,217,.17),transparent 28%),#0b3046; }
.category-integration .section-label { color: #79c9e8; }
.category-integration .category-mark { color: #8bd1eb; border-color: rgba(139,209,235,.3); }
.category-integration .category-intro h2 { color: #fff; }
.category-integration .category-intro > p:last-of-type,.category-integration .faq-answer { color: #adc4cf; }
.category-integration .faq-answer code { background: rgba(255,255,255,.09); }
.category-integration .round-link { color: #fff; border-color: rgba(255,255,255,.24); }
.category-integration .accordion,.category-integration .faq-item { border-color: rgba(255,255,255,.15); }
.category-integration .faq-item button { color: #f3f8fa; }
.category-integration .faq-item button > span { border-color: rgba(255,255,255,.3); }
.category-integration .faq-item button > span::before,.category-integration .faq-item button > span::after { background: #9dd7ec; }
.category-price { background: #e5f3ef; }
.category-document { color: #e3eef3; background: radial-gradient(circle at 12% 18%, rgba(79, 163, 217, .13), transparent 25%), #0a2b3f; }
.category-document .section-label { color: #79c9e8; }
.category-document .category-mark { color: #8bd1eb; border-color: rgba(139,209,235,.3); }
.category-document .category-intro h2 { color: #fff; }
.category-document .category-intro > p:last-of-type, .category-document .faq-answer { color: #adc2cd; }
.category-document .accordion, .category-document .faq-item { border-color: rgba(255,255,255,.14); }
.category-document .faq-item button { color: #f2f7f9; }
.category-document .faq-item button > span { border-color: rgba(255,255,255,.3); }
.category-document .faq-item button > span::before, .category-document .faq-item button > span::after { background: #9dd7ec; }
.faq-closing { background: radial-gradient(circle at 78% 28%, rgba(66,160,197,.2), transparent 35%), #08283d; }
.faq-closing .button, .faq-closing .text-link { white-space: nowrap; }
.faq-page .footer-main h2 { font-size: var(--text-xs); line-height: 1.3; letter-spacing: .1em; }

@media (max-width: 1020px) {
  .faq-hero-layout { grid-template-columns: 1fr .6fr; gap: 38px; }
  .question-field { transform: scale(.9); transform-origin: center; }
  .category-layout { grid-template-columns: .72fr 1.28fr; gap: 55px; }
}

@media (max-width: 860px) {
  .faq-hero-layout { min-height: auto; padding-block: 140px 70px; grid-template-columns: 1fr; }
  .faq-hero-copy { max-width: 720px; padding-bottom: 0; }
  .question-field { min-height: 360px; transform: none; }
  .topic-nav::after { content: ""; width: 40px; position: absolute; top: 0; right: 0; bottom: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.96)); }
  .topic-nav-inner { padding-right: 48px; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .topic-nav a { scroll-snap-align: start; }
  .topic-nav-inner::-webkit-scrollbar { display: none; }
  .category-layout { grid-template-columns: 1fr; gap: 44px; }
  .category-intro { position: static; }
}

@media (max-width: 620px) {
  .faq-hero-layout { padding-top: 124px; }
  .faq-hero h1 { font-size: clamp(3rem, 13.5vw, 4rem); }
  .faq-hero-copy > p { font-size: 1rem; }
  .question-field { min-height: 300px; margin-inline: -12px; transform: scale(.86); }
  .question-core { width: 160px; height: 160px; font-size: 4.4rem; }
  .topic-nav { top: 68px; }
  .topic-nav-inner { min-height: 56px; gap: 24px; }
  .faq-category { scroll-margin-top: 130px; }
  .category-mark { width: 46px; height: 46px; margin-bottom: 24px; }
  .category-intro h2 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .faq-category .faq-item button { padding-block: 22px; }
  .faq-category .faq-answer { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .topic { transition: none; }
}
