.page-faq {
  --faq-panel: rgba(255, 255, 255, 0.06);
  --faq-panel-strong: rgba(255, 255, 255, 0.09);
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

.page-faq .faq-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 72px 20px 88px;
  background:
    linear-gradient(100deg, rgba(10, 14, 23, 0.96) 0%, rgba(10, 14, 23, 0.82) 40%, rgba(10, 14, 23, 0.28) 100%),
    radial-gradient(circle at 78% 30%, rgba(0, 245, 160, 0.18), transparent 42%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 245, 160, 0.08) 55%, rgba(255, 122, 26, 0.12) 100%);
  transform: skewX(-14deg);
  z-index: 0;
  pointer-events: none;
}

.page-faq .faq-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
}

.page-faq .faq-hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq .faq-hero .breadcrumb {
  margin-bottom: 2rem;
}

.page-faq .faq-hero__eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.page-faq .faq-hero h1 {
  max-width: 920px;
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-faq .faq-hero__lead {
  max-width: 660px;
  margin: 0 0 1.8rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-faq .faq-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
}

.page-faq .faq-hero__links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 245, 160, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-hero__links a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.page-faq .faq-index {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.9rem;
  max-width: 1200px;
  margin: -42px auto 0;
  padding: 0 20px;
}

.page-faq .faq-index__item {
  --faq-index-color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-index__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--faq-index-color);
}

.page-faq .faq-index__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--faq-index-color);
}

.page-faq .faq-index__item--usage {
  --faq-index-color: var(--primary);
}

.page-faq .faq-index__item--sync {
  --faq-index-color: var(--accent);
}

.page-faq .faq-index__item--support {
  --faq-index-color: var(--aux-blue);
}

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--faq-index-color);
}

.page-faq .faq-index__label {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 700;
}

.page-faq .faq-index__count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.page-faq .faq-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.2rem 20px;
}

.page-faq .faq-section + .faq-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-faq .faq-section--usage {
  --faq-section-color: var(--primary);
}

.page-faq .faq-section--sync {
  --faq-section-color: var(--accent);
}

.page-faq .faq-section--support {
  --faq-section-color: var(--aux-blue);
}

.page-faq .faq-section__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--faq-section-color);
}

.page-faq .faq-section__title {
  position: relative;
  margin: 0 0 0.8rem;
  padding-left: 0.85rem;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-faq .faq-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  background: var(--faq-section-color);
  transform: skewX(-12deg);
}

.page-faq .faq-section__lead {
  max-width: 420px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-faq .faq-section__items {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-faq .faq-item {
  background: var(--faq-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--faq-section-color);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-item[open] {
  background: var(--faq-panel-strong);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--faq-section-color);
}

.page-faq .faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item__q {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

.page-faq .faq-toggle {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.page-faq .faq-toggle::before,
.page-faq .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--faq-section-color);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.page-faq .faq-toggle::before {
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.page-faq .faq-toggle::after {
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

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

.page-faq .faq-item__a {
  display: none;
  padding: 0 1.3rem 1.3rem 1.3rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-faq .faq-item[open] .faq-item__a {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  animation: faqAnswerIn 0.28s ease;
}

.page-faq .faq-item__a p {
  margin: 0 0 0.75em;
}

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

.page-faq .faq-sync-figure {
  margin: 1.4rem 0 0;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
}

.page-faq .faq-sync-figure img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 6px;
}

.page-faq .faq-sync-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-faq .faq-contact-card {
  margin-top: 1.6rem;
}

.page-faq .faq-contact-card__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.1) 0%, rgba(255, 122, 26, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--faq-section-color);
}

.page-faq .faq-contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.page-faq .faq-contact-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-faq .faq-contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page-faq .faq-hero h1 {
    font-size: 2.6rem;
  }

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

  .page-faq .faq-contact-card__inner {
    padding: 2rem 2.2rem;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    min-height: 460px;
    padding: 88px 24px 96px;
  }

  .page-faq .faq-hero h1 {
    font-size: 3.25rem;
    line-height: 1.12;
  }

  .page-faq .faq-hero__lead {
    font-size: 1.08rem;
  }

  .page-faq .faq-section {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3.2rem;
    padding: 4.5rem 24px;
  }

  .page-faq .faq-section__head {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}
