.page-faq {
  position: relative;
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  padding: 24px 0 48px;
}

.page-faq .faq-hero__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(27, 92, 255, .16), rgba(123, 77, 255, .10) 45%, rgba(0, 245, 200, .07));
  padding: 26px 20px 24px;
  overflow: hidden;
}

.page-faq .faq-hero__glow {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 200, .22), transparent 65%);
  pointer-events: none;
}

.page-faq .faq-hero__title {
  margin: 14px 0 14px;
  font-size: clamp(1.85rem, 6vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 20ch;
}

.page-faq .faq-hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--blue), var(--violet) 48%, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-faq .faq-hero__lead {
  max-width: 62ch;
  color: var(--ink-soft);
}

.page-faq .faq-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.page-faq .faq-hero__media {
  margin-top: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

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

/* ---------- Steps ---------- */
.page-faq .faq-steps {
  padding: 8px 0 52px;
}

.page-faq .faq-steps__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.page-faq .faq-steps__title {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.015em;
}

.page-faq .faq-steps__note {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--neon);
  border: 1px solid rgba(0, 245, 200, .35);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: rgba(0, 245, 200, .06);
}

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

.page-faq .faq-step {
  position: relative;
  padding: 20px 18px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 21, 51, .55);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.page-faq .faq-step:hover {
  border-color: rgba(0, 245, 200, .5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}

.page-faq .faq-step__no {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--neon);
  background: rgba(0, 245, 200, .08);
  border: 1px solid rgba(0, 245, 200, .35);
}

.page-faq .faq-step__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.page-faq .faq-step__text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* ---------- Body grid ---------- */
.page-faq .faq-body {
  padding: 8px 0 56px;
}

.page-faq .faq-body__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.page-faq .faq-rail__inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(10, 16, 38, .78);
  padding: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-rail__title {
  display: none;
}

.page-faq .faq-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.page-faq .faq-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-faq .faq-rail__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.page-faq .faq-rail__link:hover,
.page-faq .faq-rail__link[aria-current="true"] {
  color: var(--ink);
  border-color: rgba(0, 245, 200, .45);
  background: rgba(0, 245, 200, .07);
}

.page-faq .faq-rail__link[aria-current="true"]::before {
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

/* ---------- Q&A ---------- */
.page-faq .faq-stream {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.page-faq .qa-group {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-faq .qa-group__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-faq .qa-group__no {
  font-size: .74rem;
  color: var(--neon);
  letter-spacing: .12em;
  padding-top: 6px;
}

.page-faq .qa-group__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-faq .qa-group__sub {
  margin: 6px 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.page-faq .qa-list {
  display: grid;
  gap: 10px;
}

.page-faq .qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 21, 51, .5);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.page-faq .qa:hover {
  border-color: rgba(27, 92, 255, .55);
}

.page-faq .qa[open] {
  border-color: rgba(0, 245, 200, .55);
  background: rgba(12, 21, 51, .78);
  box-shadow: 0 0 0 1px rgba(0, 245, 200, .12), 0 22px 46px -32px rgba(0, 245, 200, .5);
}

.page-faq .qa__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s var(--ease);
}

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

.page-faq .qa__q::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.page-faq .qa[open] .qa__q::before {
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.page-faq .qa__q::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.page-faq .qa[open] .qa__q::after {
  transform: rotate(-135deg);
  border-color: var(--neon);
}

.page-faq .qa__a {
  padding: 0 16px 16px 35px;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-faq .qa__a p {
  margin: 0 0 8px;
}

.page-faq .qa__a p:last-child {
  margin-bottom: 0;
}

.page-faq .qa__a a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 200, .45);
  transition: border-color .2s var(--ease);
}

.page-faq .qa__a a:hover {
  border-bottom-color: var(--neon);
}

/* ---------- Media figure ---------- */
.page-faq .qa-media {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(10, 16, 38, .6);
  transition: border-color .25s var(--ease);
}

.page-faq .qa-media:hover {
  border-color: rgba(0, 245, 200, .42);
}

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

.page-faq .qa-media__label {
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 38, .8);
}

/* ---------- Contact ---------- */
.page-faq .faq-contact {
  padding: 52px 0 60px;
}

.page-faq .faq-contact__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 236, 247, .14);
  border-radius: var(--radius);
  padding: 28px 20px;
  background:
    linear-gradient(122deg, rgba(42, 27, 94, .95), rgba(142, 42, 79, .62) 78%, rgba(10, 16, 38, .9));
}

.page-faq .faq-contact__glow {
  position: absolute;
  right: -90px;
  top: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 200, .18), transparent 62%);
  pointer-events: none;
}

.page-faq .faq-contact__title {
  margin: 12px 0 12px;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.015em;
  max-width: 22ch;
}

.page-faq .faq-contact__text {
  margin: 0 0 20px;
  max-width: 60ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.page-faq .faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-contact__meta {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(230, 236, 247, .16);
}

.page-faq .faq-contact__meta dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 5px;
}

.page-faq .faq-contact__meta dd {
  margin: 0;
  font-size: .93rem;
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (min-width: 660px) {
  .page-faq .faq-hero {
    padding: 30px 0 60px;
  }

  .page-faq .faq-hero__frame {
    padding: 36px 34px 32px;
  }

  .page-faq .faq-steps__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-faq .faq-rail__inner {
    border-radius: var(--radius-sm);
    padding: 16px;
    display: block;
    overflow: visible;
  }

  .page-faq .faq-rail__title {
    display: block;
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .page-faq .faq-rail__list {
    display: grid;
    gap: 4px;
  }

  .page-faq .faq-rail__link {
    border-radius: 10px;
    padding: 9px 12px;
    white-space: normal;
  }

  .page-faq .qa__a {
    padding-left: 35px;
  }

  .page-faq .faq-contact__card {
    padding: 38px 34px;
  }

  .page-faq .faq-contact__meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-body__grid {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .page-faq .faq-rail__inner {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    background: rgba(10, 16, 38, .7);
    backdrop-filter: blur(8px);
  }

  .page-faq .faq-steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .page-faq .faq-steps__list {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-faq .faq-step {
    padding: 22px 18px 22px 68px;
  }

  .page-faq .qa__q {
    padding: 17px 20px;
  }

  .page-faq .qa__a {
    padding: 0 20px 18px 39px;
  }
}
