.page-faq {
  --faq-gap: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(230, 57, 70, 0.14), transparent 60%),
    radial-gradient(860px 480px at -12% 18%, rgba(255, 215, 0, 0.08), transparent 55%),
    var(--bg-primary);
}

.page-faq .faq-hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-gold-red);
  opacity: 0.7;
}

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

.page-faq .faq-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 12px 0 18px;
}

.page-faq .faq-hero__title-accent {
  background: var(--gradient-gold-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-faq .faq-hero__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 62ch;
  margin: 0 0 24px;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-faq .faq-hero__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-faq .faq-hero__stat {
  text-align: center;
  padding: 10px 6px;
  border-right: 1px solid var(--line-regular);
}

.page-faq .faq-hero__stat:last-child {
  border-right: 0;
}

.page-faq .faq-hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--accent-gold);
}

.page-faq .faq-hero__stat-unit {
  font-size: 0.7em;
  margin-left: 2px;
  color: var(--text-secondary);
}

.page-faq .faq-hero__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.page-faq .faq-category {
  position: relative;
}

.page-faq .faq-category__grid {
  display: grid;
  gap: var(--faq-gap);
}

.page-faq .faq-category__card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.page-faq .faq-category__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gradient-gold-red);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.page-faq .faq-category__card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  transform: translateY(-2px);
}

.page-faq .faq-category__card:hover::before {
  opacity: 1;
}

.page-faq .faq-category__icon {
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.12));
}

.page-faq .faq-category__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.page-faq .faq-category__desc {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0 0 20px;
}

.page-faq .faq-board {
  padding: clamp(28px, 5vw, 56px) 0 0;
}

.page-faq .faq-board__grid {
  display: flex;
  flex-direction: column;
  gap: var(--faq-gap);
}

.page-faq .faq-board__side {
  order: -1;
  display: grid;
  gap: var(--faq-gap);
  align-content: start;
}

.page-faq .faq-board__main {
  display: grid;
  gap: 28px;
  align-content: start;
  min-width: 0;
}

.page-faq .faq-side-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.page-faq .faq-side-card--highlight {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.06), transparent 70%), var(--bg-panel);
}

.page-faq .faq-side-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.page-faq .faq-side-card__text {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

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

.page-faq .faq-side-links a {
  display: block;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line-regular);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.page-faq .faq-side-links a:hover {
  color: var(--accent-gold);
  padding-left: 8px;
}

.page-faq .faq-side-links li:last-child a {
  border-bottom: 0;
}

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

.page-faq .faq-accordion {
  display: grid;
  gap: 14px;
}

.page-faq .faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.page-faq .faq-item[open] {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: var(--shadow-soft);
}

.page-faq .faq-item__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item__q {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.93rem;
  line-height: 1.55;
}

.page-faq .faq-item__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-regular);
  color: var(--accent-silver);
  background: var(--bg-surface);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-faq .faq-item__badge--fixed {
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
}

.page-faq .faq-item__badge--active {
  color: var(--accent-red);
  border-color: rgba(230, 57, 70, 0.4);
  background: rgba(230, 57, 70, 0.08);
}

.page-faq .faq-item__arrow {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.page-faq .faq-item__arrow::before,
.page-faq .faq-item__arrow::after {
  content: "";
  position: absolute;
  background: var(--accent-gold);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.page-faq .faq-item__arrow::before {
  width: 14px;
  height: 2px;
  top: 13px;
  left: 7px;
}

.page-faq .faq-item__arrow::after {
  width: 2px;
  height: 14px;
  top: 7px;
  left: 13px;
}

.page-faq .faq-item[open] .faq-item__arrow::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__body {
  display: none;
  padding: 4px 20px 22px;
  border-top: 1px solid var(--line-regular);
}

.page-faq .faq-item[open] .faq-item__body {
  display: block;
  animation: faq-body-in 0.35s var(--ease-out);
}

@keyframes faq-body-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-faq .faq-steps {
  list-style: none;
  counter-reset: faq-step;
  margin: 18px 0 0;
  padding: 0;
}

.page-faq .faq-steps li {
  counter-increment: faq-step;
  position: relative;
  padding: 0 0 14px 40px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-faq .faq-steps li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-sm);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  background: var(--bg-surface);
}

.page-faq .faq-img {
  margin-top: 18px;
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

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

.page-faq .faq-contact {
  margin-top: clamp(28px, 5vw, 56px);
}

.page-faq .faq-contact__grid {
  display: grid;
  gap: 14px;
}

.page-faq .faq-contact__item {
  background: var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.page-faq .faq-contact__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.page-faq .faq-contact__value {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  text-decoration: none;
}

.page-faq .faq-contact__item a.faq-contact__value {
  color: var(--accent-gold);
  transition: color 0.2s var(--ease-out);
}

.page-faq .faq-contact__item a.faq-contact__value:hover {
  color: var(--text-primary);
}

.page-faq .faq-contact__note {
  margin-top: 18px;
  background: linear-gradient(150deg, rgba(255, 215, 0, 0.05), transparent 70%), var(--bg-panel);
  border: 1px solid var(--line-regular);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.page-faq .faq-contact__tip {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 8px 0 0;
}

@media (min-width: 640px) {
  .page-faq .faq-contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
    gap: 48px;
  }

  .page-faq .faq-hero__panel {
    margin-bottom: 4px;
  }

  .page-faq .faq-category__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .page-faq .faq-category__card:nth-child(2) {
    margin-top: 32px;
  }

  .page-faq .faq-category__card:nth-child(3) {
    margin-top: 10px;
  }

  .page-faq .faq-board {
    padding: clamp(40px, 6vw, 72px) 0 0;
  }

  .page-faq .faq-board__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .page-faq .faq-board__side {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--header-offset) + 20px);
  }

  .page-faq .faq-topic {
    margin-bottom: 4px;
  }

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