.page-faq {
  --faq-sidebar-width: 280px;
  background: var(--c-primary);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-faq__hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 116px 0 40px;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(circle at 84% 12%, rgba(212, 168, 67, 0.16), transparent 34%),
    linear-gradient(145deg, var(--c-secondary) 0%, var(--c-primary) 72%);
}

.page-faq__hero::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -46px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(212, 168, 67, 0.22);
  transform: rotate(45deg);
  border-radius: 4px;
  pointer-events: none;
}

.page-faq__hero::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(212, 168, 67, 0.18);
  transform: rotate(20deg);
  pointer-events: none;
}

.page-faq__hero-inner {
  position: relative;
  z-index: 1;
}

.page-faq__hero-grid {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.page-faq__hero-text {
  min-width: 0;
}

.page-faq__kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.page-faq__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  margin: 0 0 14px;
  color: var(--c-text);
  letter-spacing: 0.01em;
}

.page-faq__lead {
  margin: 0;
  max-width: 560px;
  color: var(--c-text-dim);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}

.page-faq__search {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.94), rgba(10, 17, 40, 0.98));
  border: 1px solid var(--c-line);
  box-shadow: 8px 8px 0 rgba(212, 168, 67, 0.28);
}

.page-faq__search-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.page-faq__search-box {
  display: flex;
  align-items: center;
  background: var(--c-primary);
  border: 1px solid rgba(245, 247, 250, 0.18);
  transition: border-color 0.2s ease;
}

.page-faq__search-box:focus-within {
  border-color: var(--c-gold);
}

.page-faq__search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex: 0 0 auto;
  color: var(--c-gold);
}

.page-faq__search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  background: transparent;
  border: 0;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
}

.page-faq__search-input::placeholder {
  color: rgba(155, 163, 181, 0.72);
}

.page-faq__search-input:focus {
  outline: none;
}

.page-faq__search-key {
  flex: 0 0 auto;
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}

.page-faq__search-tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--c-text-dim);
  font-weight: 300;
}

.page-faq__search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-dim);
}

.page-faq__search-tags a {
  padding: 5px 11px;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-faq__search-tags a:hover,
.page-faq__search-tags a:focus-visible {
  background: var(--c-gold);
  color: var(--c-primary);
  border-color: var(--c-gold);
}

.page-faq__body {
  padding: 0;
}

.page-faq__layout {
  display: grid;
  gap: 28px;
  padding: 40px 0 72px;
}

.page-faq__sidebar {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-faq__toc {
  border: 1px solid var(--c-line);
  background: var(--c-secondary);
}

.page-faq__toc-title {
  margin: 0;
  padding: 15px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-faq__toc-title::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 2px solid var(--c-gold);
  flex: 0 0 auto;
}

.page-faq__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-faq__toc-list::-webkit-scrollbar {
  display: none;
}

.page-faq__toc-list li {
  flex: 0 0 auto;
}

.page-faq__toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 67, 0.12);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.page-faq__toc-list a:hover,
.page-faq__toc-list a:focus-visible {
  background: rgba(212, 168, 67, 0.08);
  color: var(--c-gold-light);
  padding-left: 22px;
}

.page-faq__toc-idx {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  color: var(--c-gold);
}

.page-faq__aside-note {
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed rgba(212, 168, 67, 0.5);
  background: linear-gradient(135deg, var(--c-secondary), rgba(13, 27, 62, 0.55));
}

.page-faq__aside-note-title {
  margin: 0 0 10px;
}

.page-faq__aside-note p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--c-text-dim);
  font-weight: 300;
}

.page-faq__aside-btn {
  display: block;
  width: 100%;
  text-align: center;
}

.page-faq .page-faq__aside-btn {
  box-shadow: 3px 3px 0 rgba(212, 168, 67, 0.28);
}

.page-faq__aside-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 214, 138, 0.4);
}

.page-faq__content {
  min-width: 0;
}

.page-faq__section {
  scroll-margin-top: 108px;
  margin-bottom: 64px;
}

.page-faq__section-head {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}

.page-faq__section-idx {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 168, 67, 0.35);
  letter-spacing: -0.02em;
}

.page-faq__section-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--c-text);
}

.page-faq__section-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--c-text-dim);
}

.page-faq__card {
  background: var(--c-secondary);
  border: 1px solid var(--c-line);
}

.page-faq__hot-card {
  box-shadow: 5px 5px 0 rgba(212, 168, 67, 0.1);
}

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

.page-faq__hot li {
  border-bottom: 1px solid rgba(212, 168, 67, 0.14);
}

.page-faq__hot li:last-child {
  border-bottom: 0;
}

.page-faq__hot a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-faq__hot a:hover,
.page-faq__hot a:focus-visible {
  background: rgba(212, 168, 67, 0.1);
  color: var(--c-gold-light);
}

.page-faq__hot-num {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: var(--c-gold);
}

.page-faq__item-list {
  display: grid;
  gap: 12px;
}

.page-faq__item {
  position: relative;
  border: 1px solid var(--c-line);
  background: var(--c-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq__item[open] {
  border-color: var(--c-gold);
  box-shadow: 5px 5px 0 rgba(212, 168, 67, 0.14);
}

.page-faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 16px;
  cursor: pointer;
}

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

.page-faq__item summary::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-faq__item summary:hover::before,
.page-faq__item summary:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.page-faq__item-index {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-gold);
  color: var(--c-gold);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
}

.page-faq__item-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
  transition: color 0.2s ease;
}

.page-faq__item summary:hover .page-faq__item-text,
.page-faq__item summary:focus-visible .page-faq__item-text {
  color: var(--c-gold-light);
}

.page-faq__item-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-line);
  font-size: 18px;
  line-height: 1;
  color: var(--c-gold);
}

.page-faq__item-icon::before {
  content: "+";
  display: block;
  transition: transform 0.25s ease;
}

.page-faq__item[open] .page-faq__item-icon::before {
  content: "−";
  transform: rotate(180deg);
}

.page-faq__answer {
  display: none;
  padding: 0 18px 22px 70px;
  border-top: 1px dashed rgba(212, 168, 67, 0.18);
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 300;
}

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

.page-faq__item[open] .page-faq__answer {
  display: block;
  animation: page-faq-reveal 0.3s ease;
}

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

.page-faq__split {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-faq__media {
  margin: 0;
  border: 1px solid var(--c-line);
  background: var(--c-secondary);
  padding: 8px;
  box-shadow: 6px 6px 0 rgba(212, 168, 67, 0.12);
}

.page-faq__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-faq__media figcaption {
  padding: 10px 4px 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  font-weight: 300;
}

.page-faq__cta {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 44px 24px;
  border: 1px solid var(--c-gold);
  background: linear-gradient(120deg, var(--c-secondary) 0%, var(--c-primary) 62%);
  box-shadow: 8px 8px 0 rgba(212, 168, 67, 0.16);
}

.page-faq__cta-bg {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.08;
  pointer-events: none;
}

.page-faq__cta-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq__cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-faq__cta-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.page-faq__cta-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
}

.page-faq__cta-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-dim);
  font-weight: 300;
}

.page-faq__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-faq__cta-actions .btn {
  text-decoration: none;
}

@media (min-width: 640px) {
  .page-faq__hero {
    padding: 136px 0 56px;
  }

  .page-faq__hot a {
    padding: 18px 22px;
  }

  .page-faq__item summary {
    padding: 18px 20px;
    gap: 16px;
  }

  .page-faq__answer {
    padding-left: 76px;
  }

  .page-faq__cta {
    padding: 56px 40px;
  }

  .page-faq__cta-title {
    font-size: 34px;
  }
}

@media (min-width: 900px) {
  .page-faq__hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 48px;
    margin-top: 34px;
  }

  .page-faq__layout {
    grid-template-columns: var(--faq-sidebar-width) minmax(0, 1fr);
    gap: 44px;
    padding: 56px 0 96px;
  }

  .page-faq__sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
  }

  .page-faq__toc-list {
    display: block;
    overflow: visible;
  }

  .page-faq__toc-list li {
    flex: none;
  }

  .page-faq__split {
    grid-template-columns: minmax(0, 1fr) 0.78fr;
    gap: 28px;
  }

  .page-faq__section-idx {
    font-size: 36px;
  }

  .page-faq__section-title {
    font-size: 26px;
  }

  .page-faq__cta-bg {
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
  }
}
