.page-faq {
  position: relative;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip;
}

.page-faq a {
  color: inherit;
}

.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 38px;
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.16), transparent 260px),
    radial-gradient(circle at 6% 82%, rgba(59, 31, 94, 0.10), transparent 220px),
    linear-gradient(180deg, #fff9eb 0%, #FBF6EC 92%);
  border-bottom: 1px solid rgba(166, 124, 0, 0.30);
}

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

.page-faq .faq-hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.page-faq .faq-hero-content {
  min-width: 0;
}

.page-faq .faq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  background: rgba(200, 16, 46, 0.08);
  border-left: 3px solid var(--color-red);
}

.page-faq .page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--color-night);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-faq .page-lead {
  font-size: 1rem;
  color: rgba(46, 42, 40, 0.82);
  margin: 0 0 22px;
  max-width: 560px;
}

.page-faq .faq-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid var(--color-brown);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(166, 124, 0, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-search-box:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 6px 0 rgba(212, 175, 55, 0.24);
}

.page-faq .faq-search-icon {
  position: relative;
  width: 24px;
  height: 24px;
  background: var(--gradient-gold-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.page-faq .faq-search-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.page-faq .faq-search-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 7px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}

.page-faq .faq-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.96rem;
  color: var(--color-ink);
  outline: none;
}

.page-faq .faq-search-tip {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: rgba(46, 42, 40, 0.66);
}

.page-faq .faq-hero-figure {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(0.6deg);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 24px 48px rgba(11, 30, 54, 0.18);
}

.page-faq .faq-hero-figure::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  pointer-events: none;
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

.page-faq .faq-index {
  padding: 44px 0 12px;
}

.page-faq .faq-index-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-night);
}

.page-faq .faq-index-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-brown), transparent);
}

.page-faq .faq-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-faq .faq-index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(166, 124, 0, 0.36);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-faq .faq-index-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 22px rgba(166, 124, 0, 0.14);
}

.page-faq .faq-index-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-red);
}

.page-faq .faq-index-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-night);
}

.page-faq .faq-index-count {
  font-size: 0.82rem;
  color: rgba(46, 42, 40, 0.62);
}

.page-faq .faq-body {
  padding: 36px 0 64px;
  background-image: radial-gradient(rgba(166, 124, 0, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}

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

.page-faq .faq-sidebar {
  position: static;
}

.page-faq .faq-sidebar-panel {
  padding: 20px 18px;
  color: var(--color-paper);
  background: linear-gradient(160deg, rgba(59, 31, 94, 0.92), rgba(11, 30, 54, 0.98));
  border-left: 4px solid var(--color-gold);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(11, 30, 54, 0.24);
}

.page-faq .faq-sidebar-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.page-faq .faq-sidebar-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: side;
}

.page-faq .faq-sidebar-list li {
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(251, 246, 236, 0.08);
}

.page-faq .faq-sidebar-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 4px;
  font-size: 0.92rem;
  color: rgba(251, 246, 236, 0.9);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.page-faq .faq-sidebar-list a::before {
  content: counter(side, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-gold);
}

.page-faq .faq-sidebar-list a:hover {
  color: #fff;
  padding-left: 10px;
}

.page-faq .faq-sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  background: rgba(0, 229, 160, 0.1);
  border-radius: 10px;
}

.page-faq .status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-signal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.18);
  flex-shrink: 0;
}

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

.page-faq .faq-group {
  margin-bottom: 46px;
  scroll-margin-top: 110px;
}

.page-faq .faq-group-header {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2px 14px;
  align-items: center;
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(166, 124, 0, 0.45);
}

.page-faq .faq-group-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 84px;
  height: 4px;
  background: var(--gradient-gold-red);
}

.page-faq .faq-group-index {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.9;
  color: rgba(200, 16, 46, 0.16);
  -webkit-text-stroke: 1px var(--color-red);
  opacity: 0.85;
}

.page-faq .faq-group-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 800;
  color: var(--color-night);
}

.page-faq .faq-group-header p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(46, 42, 40, 0.68);
}

.page-faq .faq-item {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(166, 124, 0, 0.40);
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(166, 124, 0, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-item[open] {
  border-color: rgba(200, 16, 46, 0.40);
  box-shadow: 0 14px 30px rgba(166, 124, 0, 0.16);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-night);
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--gradient-gold-red);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.page-faq .faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.page-faq .faq-answer {
  padding: 2px 18px 18px;
  border-top: 1px solid rgba(166, 124, 0, 0.16);
  background: rgba(251, 246, 236, 0.30);
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(46, 42, 40, 0.86);
}

.page-faq .faq-answer p {
  margin: 14px 0 6px;
}

.page-faq .faq-answer ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 4px;
  padding-left: 20px;
}

.page-faq .faq-answer a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-faq .faq-answer a:hover {
  color: var(--color-night);
}

.page-faq .faq-flow-block {
  position: relative;
  margin-top: 20px;
  padding: 22px 20px;
  background: linear-gradient(135deg, rgba(59, 31, 94, 0.09), rgba(212, 175, 55, 0.08)), #fffdf8;
  border: 1px dashed rgba(59, 31, 94, 0.40);
  border-radius: 16px;
}

.page-faq .faq-flow-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-night);
}

.page-faq .faq-flow-block h3::before {
  content: "";
  width: 6px;
  height: 18px;
  background: var(--gradient-gold-red);
  border-radius: 3px;
}

.page-faq .faq-flow-grid {
  display: grid;
  gap: 18px;
  align-items: center;
}

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

.page-faq .faq-flow-steps li {
  counter-increment: flow;
  position: relative;
  padding: 11px 0 11px 48px;
  border-bottom: 1px solid rgba(166, 124, 0, 0.22);
  font-size: 0.93rem;
  line-height: 1.6;
}

.page-faq .faq-flow-steps li:last-child {
  border-bottom: 0;
}

.page-faq .faq-flow-steps li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-gold-red);
  border-radius: 9px;
  box-shadow: 0 4px 0 rgba(166, 124, 0, 0.30);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-faq .faq-flow-figure {
  margin: 0;
  border: 1px solid rgba(59, 31, 94, 0.24);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(-0.6deg);
  box-shadow: 0 10px 24px rgba(59, 31, 94, 0.14);
}

.page-faq .faq-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 6 / 5;
}

.page-faq .faq-support {
  position: relative;
  padding: 52px 0 60px;
  color: var(--color-paper);
  background: radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.18), transparent 280px), var(--color-night);
}

.page-faq .faq-support::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-gold-red);
}

.page-faq .faq-support-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.page-faq .faq-support h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-faq .faq-support p {
  max-width: 560px;
  margin: 0 auto 22px;
  font-size: 0.96rem;
  line-height: 1.8;
  opacity: 0.86;
}

.page-faq .faq-support .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--gradient-gold-red);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.30);
}

.page-faq .faq-support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 246, 236, 0.14);
}

.page-faq .faq-support-links a {
  font-size: 0.86rem;
  color: rgba(251, 246, 236, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-support-links a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

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

@media (min-width: 720px) {
  .page-faq .faq-flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .page-faq .faq-hero {
    padding: 36px 0 46px;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: 240px 1fr;
    gap: 44px;
  }

  .page-faq .faq-sidebar {
    position: sticky;
    top: 104px;
  }
}

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