.page-faq {
  --faq-sidebar-w: 280px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  background: var(--c-deep);
  overflow-x: clip;
}

.page-faq .faq-hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(1000px 360px at 90% -10%, rgba(0, 255, 146, 0.08), transparent 62%),
    radial-gradient(560px 300px at -10% 30%, rgba(0, 229, 255, 0.06), transparent 70%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(115deg, transparent 0 14px, var(--c-green) 14px 22px, transparent 22px 36px);
  opacity: 0.35;
}

.page-faq .faq-hero-title {
  margin-top: 16px;
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.page-faq .faq-hero-title span {
  display: block;
}

.page-faq .faq-hero .hero-lead {
  max-width: 640px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-mist);
}

.page-faq .faq-search-box {
  position: relative;
  max-width: 620px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-faq .faq-search-input {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  background: rgba(13, 59, 92, 0.42);
  border: 1.5px solid rgba(0, 255, 146, 0.28);
  padding: 0 18px 0 48px;
  color: var(--c-white);
  font-size: 15px;
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--motion), box-shadow var(--motion);
}

.page-faq .faq-search-input:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: var(--glow);
}

.page-faq .faq-search-input::placeholder {
  color: var(--c-gray);
}

.page-faq .faq-search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-green);
  pointer-events: none;
}

.page-faq .faq-search-hint {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--c-gray);
}

.page-faq .faq-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: clamp(30px, 5vw, 48px);
  max-width: 660px;
}

.page-faq .faq-hero-stats .stat-card {
  background: linear-gradient(160deg, rgba(13, 59, 92, 0.62), rgba(10, 30, 63, 0.9));
  border: 1px solid rgba(0, 255, 146, 0.16);
  border-radius: 8px;
  padding: 13px 16px;
}

.page-faq .faq-hero-stats .stat-card-value {
  font-size: 26px;
  line-height: 1.1;
}

.page-faq .faq-hero-stats .stat-card-label {
  font-size: 12px;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 6vw, 64px);
}

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

.page-faq .faq-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

.page-faq .faq-tag-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  margin-top: 16px;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

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

.page-faq .faq-tag-list .tag-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 146, 0.2);
  background: rgba(13, 59, 92, 0.32);
  color: var(--c-mist);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--motion);
}

.page-faq .faq-tag-list .tag-button:hover {
  border-color: rgba(0, 255, 146, 0.5);
}

.page-faq .faq-tag-list .tag-button.is-active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-deep);
  font-weight: 700;
}

.page-faq .faq-tag-num {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.7;
}

.page-faq .faq-tag-list .tag-button.is-active .faq-tag-num {
  opacity: 1;
}

.page-faq .faq-tag-count {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 7px;
  border-radius: 20px;
}

.page-faq .faq-tag-list .tag-button.is-active .faq-tag-count {
  background: rgba(10, 30, 63, 0.16);
}

.page-faq .faq-help-card,
.page-faq .faq-help-links {
  display: none;
}

.page-faq .faq-help-card {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 61, 46, 0.05);
  border: 1px solid rgba(255, 61, 46, 0.22);
  border-radius: 10px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-faq .faq-help-title {
  font-size: 15px;
  font-weight: 700;
}

.page-faq .faq-help-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.65;
}

.page-faq .faq-help-card .btn {
  margin-top: 16px;
  width: 100%;
}

.page-faq .faq-help-links {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-faq .faq-help-links a {
  flex: 1 1 auto;
  min-width: 76px;
  text-align: center;
  font-size: 12px;
  color: var(--c-gray);
  text-decoration: none;
  border: 1px dashed rgba(123, 141, 160, 0.32);
  border-radius: 7px;
  padding: 10px 8px;
  transition: all var(--motion);
}

.page-faq .faq-help-links a:hover {
  color: var(--c-green);
  border-color: rgba(0, 255, 146, 0.55);
}

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

.page-faq .faq-item {
  background: linear-gradient(135deg, rgba(13, 59, 92, 0.72), rgba(10, 30, 63, 0.92));
  border: 1px solid rgba(0, 255, 146, 0.13);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--motion), box-shadow var(--motion);
}

.page-faq .faq-item[open] {
  border-color: rgba(0, 255, 146, 0.32);
  box-shadow: 0 16px 40px rgba(0, 255, 146, 0.07);
}

.page-faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(14px, 2.2vw, 20px) clamp(14px, 2.2vw, 24px);
  cursor: pointer;
  user-select: none;
}

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

.page-faq .faq-q-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-cyan);
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.06);
  border-radius: 5px;
  padding: 4px 8px;
  min-width: 46px;
  text-align: center;
}

.page-faq .faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.page-faq .faq-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 146, 0.35);
  color: var(--c-green);
  transition: all var(--motion);
}

.page-faq .faq-toggle::before,
.page-faq .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 2px;
}

.page-faq .faq-toggle::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-toggle::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item[open] .faq-toggle {
  background: var(--c-green);
  color: var(--c-deep);
  transform: rotate(45deg);
}

.page-faq .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.24s ease;
}

.page-faq .faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.page-faq .faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-mist);
}

.page-faq .faq-item[open] .faq-answer-inner {
  border-top: 1px dashed rgba(0, 255, 146, 0.15);
  margin-inline: clamp(14px, 2.2vw, 24px);
  padding: 16px 0 20px;
}

.page-faq .faq-answer-inner p {
  max-width: 660px;
}

.page-faq .faq-answer-inner a {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-answer-inner ul {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 18px;
}

.page-faq .faq-answer-inner li {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 4px;
}

.page-faq .faq-figure {
  max-width: 520px;
  margin: 18px 0 4px;
  padding: 10px;
  background: rgba(10, 30, 63, 0.5);
  border: 1px solid rgba(0, 255, 146, 0.14);
  border-radius: 8px;
}

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

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
  letter-spacing: 0.02em;
}

.page-faq .faq-bottom {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.page-faq .faq-bottom-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 59, 92, 0.9), rgba(10, 30, 63, 0.95));
  border: 1px solid rgba(255, 61, 46, 0.3);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-faq .faq-bottom-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red), transparent);
}

.page-faq .faq-bottom-panel h2 {
  margin-top: 8px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
}

.page-faq .faq-bottom-panel p {
  max-width: 500px;
  font-size: 14px;
  color: var(--c-mist);
  line-height: 1.7;
}

.page-faq .faq-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-bottom-info {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
}

.page-faq .faq-bottom-info span {
  white-space: nowrap;
}

@media (min-width: 720px) {
  .page-faq .faq-hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 920px) {
  .page-faq .faq-hero-title {
    font-size: clamp(38px, 4vw, 54px);
  }

  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-faq .faq-sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-faq .faq-tag-list {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    gap: 8px;
    margin-top: 18px;
  }

  .page-faq .faq-tag-list .tag-button {
    justify-content: flex-start;
  }

  .page-faq .faq-tag-count {
    margin-left: auto;
  }

  .page-faq .faq-help-card,
  .page-faq .faq-help-links {
    display: block;
  }

  .page-faq .faq-help-links {
    display: flex;
  }

  .page-faq .faq-bottom-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-faq .faq-bottom-panel > div:first-child {
    flex: 1;
  }

  .page-faq .faq-bottom-actions {
    flex: 0 0 auto;
  }
}
