.page-faq {
  --faq-shadow: 0 10px 34px rgba(11, 29, 58, 0.10);
  --faq-shadow-sm: 0 4px 16px rgba(11, 29, 58, 0.06);
  --faq-sky: #38BDF8;
  --faq-violet: #A78BFA;
  background-color: var(--cloud);
  color: var(--charcoal);
  font-family: var(--body-font);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-faq .faq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Hero ===== */
.page-faq .faq-hero {
  position: relative;
  background: linear-gradient(135deg, var(--deep-space) 0%, #122754 60%, var(--deep-space) 100%);
  color: var(--cloud);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(115deg, transparent 20%, rgba(198, 255, 0, 0.05) 40%, transparent 62%),
    repeating-linear-gradient(-65deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  position: relative;
  padding: 28px 20px 0;
}

.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.65);
  margin-bottom: 34px;
}

.page-faq .faq-breadcrumb a {
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

.page-faq .faq-breadcrumb a:hover {
  color: var(--volt);
}

.page-faq .faq-breadcrumb-sep {
  color: rgba(248, 250, 252, 0.4);
}

.page-faq .faq-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 42px;
}

.page-faq .faq-hero-copy {
  position: relative;
  padding-left: 14px;
}

.page-faq .faq-hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--volt);
  transform: skewX(-6deg);
}

.page-faq .faq-hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 8px;
}

.page-faq .faq-hero-copy h1 {
  font-family: var(--headline-font);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cloud);
  margin: 0 0 14px;
  transform: skewX(-3deg);
}

.page-faq .faq-hero-dot {
  color: var(--volt);
}

.page-faq .faq-hero-lead {
  max-width: 560px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.82);
  margin: 0;
}

.page-faq .faq-hero-search-wrap {
  max-width: 520px;
}

.page-faq .faq-hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cloud);
  border-radius: var(--radius-md);
  box-shadow: var(--faq-shadow);
  padding: 6px 8px 6px 18px;
  border-bottom: 4px solid var(--volt);
  color: var(--steel);
}

.page-faq .faq-hero-search svg {
  flex-shrink: 0;
  color: var(--deep-space);
}

.page-faq .faq-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-family: var(--body-font);
  color: var(--charcoal);
  padding: 12px 4px;
}

.page-faq .faq-hero-search input::placeholder {
  color: var(--steel);
}

.page-faq .faq-hero-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.page-faq .faq-hero-search-hint {
  margin: 10px 2px 0;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.55);
}

.page-faq .faq-hero-visual {
  position: relative;
  padding: 0;
}

.page-faq .faq-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}

/* ===== Topics ===== */
.page-faq .faq-topics {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding: 0 16px;
}

.page-faq .faq-topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.page-faq .faq-topic-card {
  position: relative;
  display: block;
  background: var(--cloud);
  border-radius: var(--radius-md);
  box-shadow: var(--faq-shadow);
  padding: 20px 18px 20px 20px;
  text-decoration: none;
  color: var(--charcoal);
  border-top: 4px solid var(--volt);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .faq-topic-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(11, 29, 58, 0.03);
  pointer-events: none;
}

.page-faq .faq-topic-screen {
  border-top-color: var(--faq-sky);
}

.page-faq .faq-topic-tag {
  border-top-color: var(--faq-violet);
}

.page-faq .faq-topic-beta {
  border-top-color: var(--flame);
}

.page-faq .faq-topic-num {
  display: inline-block;
  font-family: var(--headline-font);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: rgba(11, 29, 58, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transform: skewX(-6deg);
  margin-bottom: 8px;
}

.page-faq .faq-topic-title {
  display: block;
  font-family: var(--headline-font);
  font-size: 1.18rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--deep-space);
  margin-bottom: 4px;
}

.page-faq .faq-topic-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.55;
  margin: 0;
  max-width: 260px;
}

.page-faq .faq-topic-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--deep-space);
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Main FAQ ===== */
.page-faq .faq-main {
  padding: 58px 0 20px;
}

.page-faq .faq-main-heading {
  margin-bottom: 34px;
}

.page-faq .faq-main-desc {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--steel);
  max-width: 520px;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* --- Index --- */
.page-faq .faq-index-card {
  background: var(--deep-space);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  color: rgba(248, 250, 252, 0.78);
  box-shadow: var(--faq-shadow);
}

.page-faq .faq-index-heading {
  font-family: var(--headline-font);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cloud);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-faq .faq-index-group {
  margin-bottom: 16px;
}

.page-faq .faq-index-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(198, 255, 0, 0.75);
  margin: 0 0 4px;
}

.page-faq .faq-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-index-list li {
  margin: 0;
}

.page-faq .faq-index-list a {
  position: relative;
  display: block;
  padding: 6px 10px 6px 20px;
  color: rgba(248, 250, 252, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.page-faq .faq-index-list a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.page-faq .faq-index-list a:hover,
.page-faq .faq-index-list a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--volt);
  transform: translateX(3px);
  outline: none;
}

.page-faq .faq-index-list a:hover::before,
.page-faq .faq-index-list a:focus-visible::before {
  background: var(--volt);
}

/* --- Answer panel --- */
.page-faq .faq-answer-panel {
  min-width: 0;
}

.page-faq .faq-section {
  margin-bottom: 38px;
}

.page-faq .faq-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--headline-font);
  font-size: 1.42rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--deep-space);
}

.page-faq .faq-section-num {
  display: inline-block;
  font-family: var(--headline-font);
  font-size: 0.84rem;
  color: var(--flame);
  background: rgba(255, 107, 0, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transform: skewX(-7deg);
  white-space: nowrap;
}

/* --- Accordion item --- */
.page-faq .faq-item {
  background: #ffffff;
  border: 1px solid rgba(11, 29, 58, 0.05);
  border-radius: var(--radius-md);
  box-shadow: var(--faq-shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-faq .faq-item[open] {
  box-shadow: var(--faq-shadow);
}

.page-faq .faq-item-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.page-faq .faq-item-summary:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.page-faq .faq-item-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(198, 255, 0, 0.28);
  color: var(--deep-space);
  font-size: 0.75rem;
  font-weight: 700;
  transform: skewX(-6deg);
}

.page-faq .faq-item-title {
  flex: 1;
  min-width: 0;
}

.page-faq .faq-item-toggle {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--deep-space);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-faq .faq-item-toggle::before,
.page-faq .faq-item-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--volt);
  transform: translate(-50%, -50%);
}

.page-faq .faq-item-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s ease;
}

.page-faq .faq-item[open] .faq-item-toggle {
  background: var(--flame);
}

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

.page-faq .faq-item-body {
  padding: 16px 18px 20px 18px;
  border-top: 1px solid rgba(11, 29, 58, 0.06);
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.page-faq .faq-item-body p {
  margin: 0 0 10px;
}

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

.page-faq .faq-item-body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.page-faq .faq-item-body ol li {
  margin-bottom: 5px;
}

.page-faq .faq-item-body ol li:last-child {
  margin-bottom: 0;
}

/* --- Favorites visual guide --- */
.page-faq .faq-fav-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--faq-shadow-sm);
  padding: 18px;
  margin: 20px 0 0;
}

.page-faq .faq-fav-guide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-faq .faq-fav-guide-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-faq .faq-fav-guide-title {
  font-family: var(--headline-font);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--deep-space);
}

.page-faq .faq-fav-guide-steps {
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.65;
}

/* ===== Contact CTA ===== */
.page-faq .faq-contact {
  position: relative;
  background: linear-gradient(120deg, var(--deep-space) 0%, #0D2145 70%, #122a52 100%);
  color: var(--cloud);
  margin-top: 42px;
  padding: 60px 0 64px;
  overflow: hidden;
}

.page-faq .faq-contact::before {
  content: "";
  position: absolute;
  bottom: -70px;
  right: -50px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(198, 255, 0, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-contact::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--volt) 0%, var(--flame) 55%, transparent 100%);
}

.page-faq .faq-contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-faq .faq-contact-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 8px;
  display: block;
}

.page-faq .faq-contact-title {
  font-family: var(--headline-font);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  color: var(--cloud);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.page-faq .faq-contact-text {
  max-width: 560px;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.78);
  margin: 0 0 16px;
  line-height: 1.7;
}

.page-faq .faq-contact-trust {
  max-width: 560px;
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.55);
  margin: 0;
  line-height: 1.7;
}

.page-faq .faq-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ===== Media Queries ===== */
@media (min-width: 640px) {
  .page-faq .faq-topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-faq .faq-fav-guide {
    grid-template-columns: minmax(0, 260px) 1fr;
    padding: 20px;
  }

  .page-faq .faq-fav-guide-img {
    height: 100%;
    min-height: 180px;
  }
}

@media (min-width: 992px) {
  .page-faq .faq-hero-inner {
    padding: 36px 24px 0;
  }

  .page-faq .faq-hero-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
  }

  .page-faq .faq-hero-copy {
    flex: 1.2;
  }

  .page-faq .faq-hero-search-wrap {
    flex: 1;
    max-width: 460px;
    margin-bottom: 6px;
  }

  .page-faq .faq-topics {
    margin-top: -56px;
    padding: 0 24px;
  }

  .page-faq .faq-topics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-faq .faq-topic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 29, 58, 0.14);
  }

  .page-faq .faq-topic-card:hover .faq-topic-arrow {
    opacity: 0.8;
    transform: translate(4px, -50%);
  }

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

  .page-faq .faq-index {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-faq .faq-item-summary {
    padding: 18px 22px;
  }

  .page-faq .faq-item-body {
    padding: 18px 24px 22px 24px;
  }

  .page-faq .faq-contact {
    padding: 72px 0 80px;
  }

  .page-faq .faq-contact-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
  }

  .page-faq .faq-contact-actions {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-topic-card,
  .page-faq .faq-topic-arrow,
  .page-faq .faq-item,
  .page-faq .faq-item-toggle,
  .page-faq .faq-item-toggle::after,
  .page-faq .faq-index-list a {
    transition: none;
  }
}
