.page-faq {
  --faq-line: rgba(255, 255, 255, 0.09);
  --faq-line-soft: rgba(255, 255, 255, 0.05);
  --faq-card-bg: rgba(22, 33, 62, 0.72);
  --faq-card-open: rgba(15, 15, 26, 0.9);
  --faq-orange-soft: rgba(255, 107, 53, 0.14);
  --faq-green-soft: rgba(0, 255, 136, 0.08);
  --faq-chamfer: 16px;
  background: var(--c-primary);
  color: var(--c-white);
  overflow-x: clip;
}

/* ===== Hero ===== */
.page-faq__hero {
  padding: clamp(28px, 5vw, 56px) 0 32px;
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(255, 107, 53, 0.14), transparent 60%),
    radial-gradient(700px 260px at 8% 100%, rgba(0, 255, 136, 0.06), transparent 55%),
    var(--c-primary);
}

.page-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 6px 12px;
  font-family: var(--f-data);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-green);
  text-transform: uppercase;
  background: var(--faq-green-soft);
  border-left: 3px solid var(--c-green);
}

.page-faq h1 {
  font-family: var(--f-headline);
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 11em;
}

.page-faq__lead {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-secondary);
  max-width: 46em;
  margin: 0 0 26px;
}

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

/* ===== Quick grid ===== */
.page-faq__quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-faq__quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 16px;
  background: var(--c-secondary);
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.page-faq__quick-card:hover,
.page-faq__quick-card:focus-visible {
  background: var(--faq-orange-soft);
  transform: translateY(-2px);
  outline: none;
}

.page-faq__quick-num {
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-green);
}

.page-faq__quick-label {
  font-family: var(--f-headline);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
}

.page-faq__quick-count {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--c-muted);
}

/* ===== Layout ===== */
.page-faq__layout {
  display: block;
}

.page-faq__side {
  display: none;
}

.page-faq__content {
  padding: 0 0 24px;
}

/* ===== Section ===== */
.page-faq__section {
  padding: clamp(40px, 7vw, 72px) 0;
  background: var(--c-primary);
}

.page-faq__section--tinted {
  background: linear-gradient(180deg, rgba(22, 33, 62, 0.55), rgba(22, 33, 62, 0.2)), var(--c-primary);
}

.page-faq__section--surface {
  background: var(--c-surface);
}

.page-faq__section-head {
  margin-bottom: 28px;
}

.page-faq .section-eyebrow {
  color: var(--c-green);
  font-family: var(--f-data);
  letter-spacing: 0.1em;
}

.page-faq .section-title {
  font-family: var(--f-headline);
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-white);
  margin: 8px 0 10px;
}

.page-faq__section-desc {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-secondary);
  max-width: 44em;
  margin: 0;
}

/* ===== Feature layout ===== */
.page-faq__feature-layout {
  display: grid;
  gap: 24px;
  margin-top: 4px;
}

.page-faq__qa-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== QA accordion ===== */
.page-faq__qa {
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-line);
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.page-faq__qa[open] {
  background: var(--faq-card-open);
  border-color: rgba(0, 255, 136, 0.22);
}

.page-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-faq__q-num {
  font-family: var(--f-data);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.12);
  padding: 4px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.page-faq__q-text {
  flex: 1;
  font-family: var(--f-headline);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-white);
}

.page-faq__q-indicator {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-faq__qa[open] .page-faq__q-indicator {
  transform: rotate(-135deg);
  border-color: var(--c-green);
}

.page-faq__a {
  padding: 0 16px 18px 52px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-secondary);
}

.page-faq__a p {
  margin: 0 0 0.6em;
}

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

.page-faq__a strong {
  color: var(--c-white);
  font-weight: 500;
}

.page-faq__a a {
  color: var(--c-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 136, 0.4);
}

/* ===== Figure ===== */
.page-faq__figure {
  margin: 0;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  background: var(--c-surface);
  border: 1px solid var(--faq-line-soft);
  overflow: hidden;
}

.page-faq__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-faq__figcaption {
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-secondary);
  background: var(--c-surface);
  border-top: 1px solid var(--faq-line);
}

/* ===== CTA ===== */
.page-faq__cta {
  padding: clamp(36px, 6vw, 64px) 0;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.04) 60%),
    var(--c-secondary);
}

.page-faq__cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__cta-tag {
  display: inline-block;
  font-family: var(--f-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-green);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-faq__cta h2 {
  font-family: var(--f-headline);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: var(--c-white);
  margin: 0 0 10px;
}

.page-faq__cta-text {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-secondary);
  max-width: 38em;
  margin: 0 0 22px;
}

.page-faq__cta-text strong {
  color: var(--c-white);
  font-weight: 500;
}

.page-faq__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.page-faq__cta-meta {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0;
}

.page-faq__cta-meta + .page-faq__cta-meta {
  margin-top: 4px;
}

/* ===== Desktop ===== */
@media (min-width: 992px) {
  .page-faq__quick-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 880px;
  }

  .page-faq__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px;
  }

  .page-faq__side {
    display: block;
    padding-top: clamp(40px, 7vw, 72px);
  }

  .page-faq__side-inner {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .page-faq__side-label {
    font-family: var(--f-data);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--c-muted);
    text-transform: uppercase;
    margin: 0 0 8px;
  }

  .page-faq__side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .page-faq__side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    background: transparent;
    transition: background-color 0.2s ease;
  }

  .page-faq__side-link:hover,
  .page-faq__side-link:focus-visible {
    background: var(--faq-orange-soft);
    outline: none;
  }

  .page-faq__side-index {
    font-family: var(--f-data);
    font-size: 12px;
    color: var(--c-green);
    min-width: 22px;
  }

  .page-faq__side-text {
    font-family: var(--f-headline);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-white);
  }

  .page-faq__side-contact {
    margin-top: 24px;
    padding: 18px 16px;
    background: var(--c-surface);
    border: 1px solid var(--faq-line);
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  }

  .page-faq__side-contact-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
    margin-bottom: 10px;
  }

  .page-faq__side-contact-title {
    font-family: var(--f-headline);
    font-size: 16px;
    font-weight: 700;
    color: var(--c-white);
    margin: 0 0 6px;
  }

  .page-faq__side-contact-text {
    font-family: var(--f-body);
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-text-secondary);
    margin: 0 0 14px;
  }

  .page-faq__section {
    padding: clamp(48px, 7vw, 80px) 0;
  }

  .page-faq__feature-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 40px;
    align-items: start;
  }

  .page-faq__feature-layout--reverse .page-faq__figure {
    order: -1;
  }

  .page-faq__figure {
    position: sticky;
    top: 24px;
  }

  .page-faq__a {
    padding: 0 20px 20px 60px;
  }

  .page-faq__cta-inner {
    padding: 0 24px;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .page-faq__quick-card,
  .page-faq__qa,
  .page-faq__q-indicator,
  .page-faq__side-link {
    transition: none;
  }

  .page-faq__quick-card:hover {
    transform: none;
  }
}
