/* ===== PAGE FAQ ===== */
.page-faq {
  --faq-accent-line: linear-gradient(90deg, var(--c-neon), var(--c-purple) 55%, var(--c-orange));
  color: #FFFFFF;
  background: var(--c-deep);
}

.page-faq [id^="faq-"] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- HERO ---------- */
.page-faq__hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #0B1628 0%, #121C28 55%, #1E2D3D 100%);
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 84px;
  z-index: 0;
  isolation: isolate;
}

.page-faq__hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  z-index: -2;
  overflow: hidden;
}

.page-faq__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
  max-width: 100%;
}

.page-faq__hero-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 22, 40, 0.2), rgba(11, 22, 40, 0.82) 100%);
}

.page-faq__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 24% 38%, rgba(57, 255, 20, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 24%, rgba(138, 43, 226, 0.22) 0 6px, transparent 8px),
    radial-gradient(circle at 84% 65%, rgba(255, 106, 0, 0.16) 0 3px, transparent 5px),
    radial-gradient(circle at 12% 80%, rgba(57, 255, 20, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 82%, rgba(138, 43, 226, 0.12) 0 4px, transparent 7px);
  z-index: -1;
}

.page-faq__hero::after {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: 0;
  height: 36px;
  background: var(--faq-accent-line);
  transform: skewY(-1.4deg) translateY(18px);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

.page-faq__hero-inner {
  position: relative;
  width: 100%;
  z-index: 2;
}

.page-faq__crumbs {
  margin-bottom: 28px;
  opacity: 0.85;
}

.page-faq__hero-tag {
  margin-bottom: 16px;
  background: rgba(57, 255, 20, 0.12);
  color: var(--c-neon);
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.18);
}

.page-faq__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: end;
}

.page-faq__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 7.5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 13em;
  margin: 0 0 20px;
}

.page-faq__lede {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-muted);
  max-width: 54em;
  margin: 0;
}

.page-faq__hero-aside {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 460px;
}

.page-faq__hero-stat {
  position: relative;
  padding: 18px 16px 16px;
  background: rgba(30, 45, 61, 0.78);
  border: 1px solid rgba(170, 184, 198, 0.2);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-faq__hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--c-neon);
  transform: skewY(-12deg);
}

.page-faq__hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--c-neon);
}

.page-faq__hero-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ---------- QUICK NAV ---------- */
.page-faq__quick {
  position: relative;
  z-index: 2;
  background: #121C28;
  border-bottom: 1px solid rgba(170, 184, 198, 0.1);
}

.page-faq__quick-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.page-faq__quick-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-orange);
  white-space: nowrap;
  margin-right: 6px;
}

.page-faq__quick-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px 9px 12px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.25s var(--ease-cubic), color 0.25s var(--ease-cubic), transform 0.25s var(--ease-cubic), border-color 0.25s var(--ease-cubic);
}

.page-faq__quick-link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--c-neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex-shrink: 0;
}

.page-faq__quick-link:hover,
.page-faq__quick-link:focus-visible {
  background: var(--c-neon);
  color: #0B1628;
  border-color: var(--c-neon);
  transform: translateY(-2px);
}

.page-faq__quick-link:hover::before,
.page-faq__quick-link:focus-visible::before {
  background: #0B1628;
}

/* ---------- WATERFALL ---------- */
.page-faq__waterfall-section {
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 12% 25%, rgba(138, 43, 226, 0.08), transparent 320px),
    radial-gradient(circle at 88% 70%, rgba(57, 255, 20, 0.05), transparent 300px),
    var(--c-deep);
}

.page-faq__waterfall {
  columns: 1;
  column-gap: 24px;
}

.page-faq__category {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 22px 18px 14px;
  background: linear-gradient(180deg, rgba(30, 45, 61, 0.94), rgba(18, 28, 40, 0.96));
  border: 1px solid rgba(170, 184, 198, 0.16);
  box-shadow: 0 16px 34px rgba(2, 8, 18, 0.4);
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-faq__category:hover {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 20px 44px rgba(2, 8, 18, 0.48);
}

.page-faq__category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--faq-accent-line);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease-cubic);
}

.page-faq__category:hover::before {
  transform: scaleX(1);
}

.page-faq__category-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(170, 184, 198, 0.12);
}

.page-faq__category-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  margin-top: 2px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--c-neon), var(--c-purple));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: #0B1628;
}

.page-faq__category-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- FAQ ITEMS ---------- */
.page-faq__item {
  margin-bottom: 10px;
  background: rgba(11, 22, 40, 0.42);
  border: 1px solid rgba(170, 184, 198, 0.14);
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-faq__item:last-child {
  margin-bottom: 0;
}

.page-faq__item[open] {
  background: rgba(11, 22, 40, 0.72);
  border-color: rgba(57, 255, 20, 0.38);
}

.page-faq__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--c-neon);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-faq__item[open]::before {
  opacity: 1;
}

.page-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 14px 15px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
  user-select: none;
  transition: color 0.25s ease;
}

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

.page-faq__question:hover {
  color: var(--c-neon);
}

.page-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--c-neon);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.45);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease-cubic);
}

.page-faq__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.page-faq__item[open] .page-faq__icon {
  transform: rotate(45deg);
  color: var(--c-orange);
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 106, 0, 0.12);
}

.page-faq__answer {
  padding: 0 16px 15px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-faq__answer p {
  margin: 0;
}

.page-faq__answer strong {
  color: var(--c-neon);
  font-weight: 600;
}

.page-faq__answer a {
  color: var(--c-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq__item[open] .page-faq__answer {
  animation: page-faq-reveal 0.3s var(--ease-cubic);
}

@keyframes page-faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- SUPPORT CTA ---------- */
.page-faq__support {
  padding: 80px 0;
  position: relative;
  background:
    linear-gradient(135deg, rgba(138, 43, 226, 0.14), transparent 45%),
    linear-gradient(315deg, rgba(57, 255, 20, 0.07), transparent 40%),
    #121C28;
  overflow: hidden;
}

.page-faq__support::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--faq-accent-line);
  opacity: 0.75;
}

.page-faq__support-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-faq__support-media {
  display: flex;
  justify-content: center;
}

.page-faq__support-img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid rgba(57, 255, 20, 0.5);
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 0 100%);
  filter: saturate(1.15) contrast(1.1);
  box-shadow: 0 20px 44px rgba(2, 8, 18, 0.5);
}

.page-faq__support-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin: 0 0 8px;
}

.page-faq__support-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.page-faq__support-text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 44em;
}

.page-faq__support-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 720px) {
  .page-faq__hero {
    min-height: 560px;
    padding-top: calc(var(--header-h) + 84px);
  }

  .page-faq__hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
  }

  .page-faq__hero-aside {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .page-faq__hero-stat {
    padding: 20px 20px 18px;
  }

  .page-faq__waterfall {
    columns: 2;
  }

  .page-faq__support-inner {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }

  .page-faq__support-media {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .page-faq__hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .page-faq__waterfall {
    columns: 3;
  }

  .page-faq__support-inner {
    grid-template-columns: 260px 1fr;
    gap: 64px;
  }

  .page-faq__support-img {
    width: 220px;
    height: 220px;
  }
}
