.page-faq {
  --faq-card: #12294A;
  --faq-line: rgba(192, 200, 208, 0.22);
  --faq-muted: rgba(242, 244, 248, 0.62);
  --faq-accent-soft: rgba(255, 107, 53, 0.12);
  position: relative;
}

.page-faq .breadcrumb {
  margin-bottom: 8px;
}

.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 20px;
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero .section-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.page-faq .faq-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--color-light);
  margin: 0 0 16px;
  max-width: 820px;
}

.page-faq .faq-hero .page-desc {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--faq-muted);
  max-width: 780px;
  margin: 0;
}

.page-faq .faq-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--faq-line);
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--faq-card);
  border: 1px solid var(--faq-line);
  border-radius: var(--radius);
  color: rgba(242, 244, 248, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .faq-search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.page-faq .faq-search svg {
  flex-shrink: 0;
}

.page-faq .faq-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-light);
}

.page-faq .faq-search input::placeholder {
  color: rgba(242, 244, 248, 0.35);
}

.page-faq .faq-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.page-faq .faq-hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-hot-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.4);
  padding-right: 2px;
}

.page-faq .faq-hot-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-light);
  background: transparent;
  text-decoration: none;
  transition: all 0.25s ease;
}

.page-faq .faq-hot-tags .tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.06);
}

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

.page-faq .faq-sidebar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 28px;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--faq-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-light);
  text-decoration: none;
  transition: all 0.25s ease;
}

.page-faq .faq-cat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.page-faq .faq-cat:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-faq .faq-cat.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

.page-faq .faq-cat.active .faq-cat-num {
  color: rgba(255, 255, 255, 0.75);
}

.page-faq .faq-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-faq .faq-section {
  scroll-margin-top: 80px;
}

.page-faq .faq-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-faq .faq-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--faq-accent-soft);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}

.page-faq .faq-section h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-light);
  margin: 0;
}

.page-faq .faq-section-desc {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--faq-muted);
}

.page-faq .faq-item {
  position: relative;
  margin-bottom: 12px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius);
  background: rgba(18, 41, 74, 0.55);
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .faq-item:hover {
  border-color: rgba(255, 107, 53, 0.45);
}

.page-faq .faq-item:target {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.page-faq .faq-item details {
  display: block;
}

.page-faq .faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-light);
  user-select: none;
}

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

.page-faq .faq-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--color-accent);
  transition: height 0.28s ease;
}

.page-faq .faq-item details[open] summary::before {
  height: 22px;
}

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

.page-faq .faq-icon::before,
.page-faq .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.page-faq .faq-icon::before {
  width: 14px;
  height: 2px;
  top: 6px;
  left: 0;
}

.page-faq .faq-icon::after {
  width: 2px;
  height: 14px;
  top: 0;
  left: 6px;
}

.page-faq .faq-item details[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.page-faq .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-faq .faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 18px 0 22px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--faq-muted);
}

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

.page-faq .faq-item details[open] .faq-answer-inner {
  padding-bottom: 18px;
}

.page-faq .faq-answer-inner p {
  margin: 0 0 10px;
}

.page-faq .faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-answer-inner a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.4);
  transition: border-color 0.2s ease;
}

.page-faq .faq-answer-inner a:hover {
  border-color: var(--color-accent);
}

.page-faq .faq-answer-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 107, 53, 0.85);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-answer-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.page-faq .faq-figure {
  margin: 20px 0 4px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--faq-card);
  max-width: 560px;
}

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

.page-faq .faq-figure figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--faq-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(242, 244, 248, 0.5);
}

.page-faq .faq-figure--panel {
  max-width: 640px;
}

.page-faq .faq-cta {
  position: relative;
  margin-top: 8px;
  padding: 28px 24px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent 45%),
    var(--faq-card);
  overflow: hidden;
}

.page-faq .faq-cta::after {
  content: "FAQ";
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 107, 53, 0.06);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.page-faq .faq-cta h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-light);
  margin: 0 0 10px;
}

.page-faq .faq-cta p {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--faq-muted);
  margin: 0 0 20px;
  max-width: 560px;
}

.page-faq .faq-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 768px) {
  .page-faq .faq-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-faq .faq-search {
    flex: 0 1 340px;
  }

  .page-faq .faq-hot-tags {
    justify-content: flex-end;
  }

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

  .page-faq .faq-cta {
    padding: 32px 36px;
  }
}

@media (min-width: 992px) {
  .page-faq .faq-hero {
    padding: 44px 0 28px;
  }

  .page-faq .faq-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
  }

  .page-faq .faq-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-faq .faq-sidebar {
    position: sticky;
    top: 28px;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    white-space: normal;
    margin-bottom: 0;
    padding-bottom: 0;
    border-left: 1px solid var(--faq-line);
    padding-left: 12px;
  }

  .page-faq .faq-cat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    white-space: normal;
    color: rgba(242, 244, 248, 0.7);
    line-height: 1.4;
  }

  .page-faq .faq-cat-num {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1.7;
  }

  .page-faq .faq-cat:hover {
    background: var(--faq-accent-soft);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
  }

  .page-faq .faq-cat.active {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--color-accent);
    color: var(--color-accent);
  }

  .page-faq .faq-cat.active .faq-cat-num {
    color: var(--color-accent);
  }

  .page-faq .faq-content {
    gap: 48px;
  }

  .page-faq .faq-answer-inner {
    padding-left: 24px;
  }

  .page-faq .faq-figure {
    margin-top: 24px;
  }
}
