.page-faq {
  --faq-card-bg: rgba(31, 10, 46, 0.58);
  --faq-card-bg-deep: rgba(45, 13, 58, 0.7);
  --faq-radius-lg: 24px;
  --faq-radius-md: 16px;
  --faq-gold-soft: rgba(255, 215, 0, 0.12);
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 20px 56px;
  background:
    radial-gradient(circle at 85% 25%, rgba(155, 77, 255, 0.26), transparent 44%),
    radial-gradient(circle at 15% 95%, rgba(255, 42, 77, 0.18), transparent 42%),
    linear-gradient(180deg, #0a0a0f 0%, #1f0a2e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.page-faq .faq-hero__head {
  max-width: 840px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  margin: 12px 0 18px;
  color: var(--text-white);
  letter-spacing: 0.02em;
}

.page-faq .faq-hero__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 740px;
  margin: 0;
}

.page-faq .faq-hero__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 18px;
}

.page-faq .faq-hero__meta::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.page-faq .faq-hero__rail {
  position: absolute;
  top: 28px;
  right: 12px;
  z-index: 0;
  display: none;
  opacity: 0.8;
}

.page-faq .faq-hero .glow-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.36;
  pointer-events: none;
}

.page-faq .faq-hero .glow-orb--purple {
  width: 320px;
  height: 320px;
  background: #9b4dff;
  top: -80px;
  right: -60px;
}

.page-faq .faq-hero .glow-orb--red {
  width: 260px;
  height: 260px;
  background: #ff2a4d;
  bottom: -100px;
  left: 10%;
}

.page-faq .faq-hero .glow-orb--gold {
  width: 140px;
  height: 140px;
  background: #ffd700;
  bottom: 40px;
  right: 18%;
  opacity: 0.18;
}

.page-faq .faq-filter {
  padding-top: 6px;
}

.page-faq .faq-filter__label-heading {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.page-faq .faq-filter__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-filter__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-faq .faq-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.page-faq .faq-filter__label:hover {
  color: var(--accent-gold);
  border-color: var(--line-gold);
  background: var(--faq-gold-soft);
}

.page-faq .faq-filter__radio:checked + .faq-filter__label {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 8px 22px rgba(155, 77, 255, 0.22);
}

.page-faq .faq-section__note {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 8px;
}

.page-faq .faq-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.page-faq .faq-category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--faq-radius-lg);
  background: linear-gradient(145deg, rgba(31, 10, 46, 0.68), rgba(10, 10, 15, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.page-faq .faq-category-card:hover {
  transform: translateY(-4px) rotate(0.4deg);
  border-color: var(--line-gold);
  background: linear-gradient(145deg, rgba(45, 13, 58, 0.82), rgba(20, 8, 24, 0.82));
}

.page-faq .faq-category-card__index {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent-gold);
  min-width: 44px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line-gold);
}

.page-faq .faq-category-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-faq .faq-category-card__body strong {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
}

.page-faq .faq-category-card__body span {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.page-faq .faq-board {
  margin-top: 30px;
}

.page-faq .faq-group {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.page-faq .faq-group:first-child {
  border-top: 0;
  padding-top: 8px;
}

.page-faq .faq-group__title {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--accent-gold), var(--accent-purple)) 1;
}

.page-faq .faq-group__title h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text-white);
  margin: 0 0 6px;
}

.page-faq .faq-group__title p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.page-faq .faq-group__items {
  min-width: 0;
}

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

.page-faq .faq-question {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 12px 18px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  transition: color 0.25s;
}

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

.page-faq .faq-question:hover {
  color: var(--accent-gold);
}

.page-faq .faq-question::after {
  content: "＋";
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent-gold);
  flex: 0 0 auto;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.page-faq .faq-item details[open] > .faq-question::after {
  content: "−";
  color: var(--accent-purple);
  transform: rotate(180deg);
}

.page-faq .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.page-faq .faq-answer__inner {
  overflow: hidden;
  min-height: 0;
}

.page-faq .faq-answer__body {
  padding: 0 20px 26px 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 720px;
}

.page-faq .faq-answer__body p {
  margin: 0 0 12px;
}

.page-faq .faq-answer__body img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 18px;
  border-radius: var(--faq-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.page-faq:has(#faq-tab-cast:checked) .faq-group:not([data-category-group="cast"]),
.page-faq:has(#faq-tab-account:checked) .faq-group:not([data-category-group="account"]),
.page-faq:has(#faq-tab-quality:checked) .faq-group:not([data-category-group="quality"]),
.page-faq:has(#faq-tab-client:checked) .faq-group:not([data-category-group="client"]),
.page-faq:has(#faq-tab-sync:checked) .faq-group:not([data-category-group="sync"]),
.page-faq:has(#faq-tab-register:checked) .faq-group:not([data-category-group="register"]) {
  display: none;
}

.page-faq .faq-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.page-faq .faq-contact__intro {
  color: var(--text-body);
  max-width: 640px;
  margin: 10px 0 0;
  line-height: 1.7;
}

.page-faq .faq-contact__grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.page-faq .faq-contact__card {
  padding: 26px 24px;
  border-radius: var(--faq-radius-lg);
  background: linear-gradient(145deg, rgba(31, 10, 46, 0.66), rgba(10, 10, 15, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-faq .faq-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-faq .faq-contact__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-body);
  line-height: 1.65;
  font-size: 0.95rem;
}

.page-faq .faq-contact__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.65);
}

.page-faq .faq-contact__list strong {
  color: var(--text-white);
}

.page-faq .faq-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.page-faq .faq-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  align-items: center;
}

.page-faq .faq-contact__actions .btn {
  min-width: 150px;
}

.page-faq .faq-contact__note {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 56px 20px 64px;
  }

  .page-faq .faq-hero__rail {
    display: block;
  }

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

  .page-faq .faq-group {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
  }

  .page-faq .faq-group__title {
    margin-bottom: 0;
  }

  .page-faq .faq-answer__body img {
    max-width: 400px;
  }

  .page-faq .faq-contact__grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
