.page-faq {
  display: block;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 52px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 76%, var(--ink-2) 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -150px;
  right: -190px;
  width: min(840px, 68vw);
  height: 580px;
  background: var(--red);
  opacity: 0.17;
  clip-path: polygon(32% 0%, 100% 0%, 100% 74%, 0% 100%);
  pointer-events: none;
}

.page-faq .faq-hero__streak {
  position: absolute;
  z-index: 0;
  left: -12%;
  bottom: -50px;
  width: 68%;
  height: 210px;
  background: linear-gradient(100deg, rgba(242, 178, 27, 0.24), rgba(242, 178, 27, 0) 78%);
  clip-path: polygon(0% 100%, 10% 0%, 100% 56%, 100% 100%);
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
}

.page-faq .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-faq .breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-faq .breadcrumbs a:hover {
  color: var(--paper);
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 60px;
    align-items: end;
  }
}

.page-faq .faq-hero__title {
  margin: 12px 0 0;
  font-size: clamp(46px, 8.5vw, 96px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.page-faq .faq-hero__lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(245, 241, 232, 0.8);
}

.page-faq .faq-hero__aside {
  display: grid;
  gap: 18px;
}

.page-faq .faq-hero__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  aspect-ratio: 10 / 7;
}

.page-faq .faq-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(11, 23, 38, 0) 42%, rgba(11, 23, 38, 0.72) 100%);
  pointer-events: none;
}

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

.page-faq .faq-hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-faq .faq-hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.page-faq .faq-hero__facts-num {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 14px;
  color: var(--jade);
}

/* ---------- Shell ---------- */
.page-faq .faq-shell {
  position: relative;
  padding: 60px 0 96px;
}

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

/* ---------- Scene index ---------- */
.page-faq .faq-index {
  margin-bottom: 44px;
}

@media (min-width: 1000px) {
  .page-faq .faq-index {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }
}

.page-faq .faq-index__title {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-faq .faq-index__list::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-index__list a {
  display: block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-faq .faq-index__list a:hover,
.page-faq .faq-index__list a.is-active {
  color: var(--ink);
  background: var(--jade);
  border-color: var(--jade);
}

@media (min-width: 1000px) {
  .page-faq .faq-index__list {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .page-faq .faq-index__list a {
    padding: 11px 0 11px 16px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    background: none;
  }

  .page-faq .faq-index__list a:hover,
  .page-faq .faq-index__list a.is-active {
    color: var(--paper);
    background: none;
    border-left-color: var(--red);
  }
}

/* ---------- Scenes ---------- */
.page-faq .faq-body {
  min-width: 0;
}

.page-faq .faq-scene {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.page-faq .faq-scene + .faq-scene {
  margin-top: 62px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.page-faq .faq-scene__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin-bottom: 26px;
}

.page-faq .faq-scene__num {
  padding-top: 7px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.page-faq .faq-scene__title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.page-faq .faq-scene__note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- Accordion ---------- */
.page-faq .faq-item {
  border-top: 1px solid var(--line);
}

.page-faq .faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 8px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease);
}

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

.page-faq .faq-item__q:hover {
  background: rgba(245, 241, 232, 0.04);
}

.page-faq .faq-item[open] .faq-item__q {
  background: rgba(47, 169, 140, 0.08);
}

.page-faq .faq-item__no {
  flex: 0 0 auto;
  padding-top: 5px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.3s var(--ease);
}

.page-faq .faq-item[open] .faq-item__no {
  color: var(--jade);
}

.page-faq .faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper);
}

.page-faq .faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--paper);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.page-faq .faq-item__icon::before {
  width: 9px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__icon::after {
  width: 1.5px;
  height: 9px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item[open] .faq-item__icon {
  background: var(--jade);
  border-color: var(--jade);
}

.page-faq .faq-item[open] .faq-item__icon::before,
.page-faq .faq-item[open] .faq-item__icon::after {
  background: var(--ink);
}

.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.page-faq .faq-item__a {
  padding: 0 8px 28px 52px;
  max-width: 70ch;
}

.page-faq .faq-item__a p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.88;
  color: rgba(245, 241, 232, 0.76);
}

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

.page-faq .faq-item__a a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 169, 140, 0.42);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

@media (max-width: 599px) {
  .page-faq .faq-item__q {
    gap: 12px;
    padding: 20px 6px;
  }

  .page-faq .faq-item__a {
    padding: 0 6px 26px 6px;
  }
}

/* ---------- Inline figure ---------- */
.page-faq .faq-figure {
  margin: 58px 0;
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.page-faq .faq-figure__cap {
  margin-top: 13px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--mist);
}

/* ---------- Closing band ---------- */
.page-faq .faq-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: var(--ink-2);
}

.page-faq .faq-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(226, 59, 46, 0.2) 0%, rgba(226, 59, 46, 0) 48%),
    linear-gradient(295deg, rgba(242, 178, 27, 0.16) 0%, rgba(242, 178, 27, 0) 42%);
  pointer-events: none;
}

.page-faq .faq-cta__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

@media (min-width: 860px) {
  .page-faq .faq-cta__panel {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 52px;
  }
}

.page-faq .faq-cta__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-faq .faq-cta__text {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.88;
  color: rgba(245, 241, 232, 0.78);
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__icon,
  .page-faq .faq-item__icon::before,
  .page-faq .faq-item__icon::after,
  .page-faq .faq-item__q,
  .page-faq .faq-index__list a {
    transition: none;
  }
}
