.page-faq {
  --faq-accent: #39FF14;
  --faq-accent-soft: rgba(57, 255, 20, 0.08);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.page-faq .faq-hero {
  position: relative;
  padding: 40px 0 36px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 128px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--fire-start));
}

.page-faq .faq-hero::before {
  content: "FAQ";
  position: absolute;
  right: 0;
  top: -10px;
  font-family: var(--font-data);
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  letter-spacing: -0.03em;
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero .page-title,
.page-faq .faq-hero .page-sub {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero .page-sub {
  max-width: 720px;
  margin-bottom: 0;
}

.page-faq .faq-hero-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.55);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--ink-low);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.page-faq .hb-chips {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.page-faq .hb-chips i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.page-faq .hb-chips i:first-child {
  background: var(--fire-start);
}

.page-faq .hb-chips i:nth-child(2) {
  background: var(--warn);
}

.page-faq .hb-chips i:last-child {
  background: var(--accent);
}

.page-faq .hb-path {
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0 72px;
}

.page-faq .faq-toc {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: rgba(17, 34, 64, 0.55);
  padding: 18px 20px 14px;
}

.page-faq .toc-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-hi);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.page-faq .toc-label .data-mono {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-low);
}

.page-faq .toc-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.page-faq .toc-link:hover {
  color: var(--ink-hi);
  border-color: var(--accent);
  background: var(--faq-accent-soft);
}

.page-faq .toc-idx {
  font-size: 12px;
  color: var(--accent);
}

.page-faq .toc-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-low);
  letter-spacing: 0.06em;
}

.page-faq .toc-contact {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

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

.page-faq .faq-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  position: relative;
  padding-top: 32px;
  margin-top: 56px;
}

.page-faq .faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 65%, transparent 100%);
}

.page-faq .faq-section:first-of-type {
  margin-top: 0;
}

.page-faq .faq-section:first-of-type::before {
  display: none;
}

.page-faq .faq-section:target::before {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--fire-start) 60%, transparent 100%);
}

.page-faq .faq-sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: end;
}

.page-faq .faq-sec-num {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-faq .faq-sec-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-left: 10px;
  background: linear-gradient(90deg, var(--fire-start), var(--fire-end));
  vertical-align: middle;
}

.page-faq .faq-sec-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-hi);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-faq .faq-sec-desc {
  margin: 8px 0 0;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.7;
  grid-column: 1 / -1;
}

.page-faq .faq-sec-count {
  font-size: 11px;
  color: var(--ink-low);
  letter-spacing: 0.08em;
  text-align: right;
}

.page-faq .faq-sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.page-faq .faq-figure {
  position: relative;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 10px;
}

.page-faq .faq-figure::before {
  content: "IMG.DATA";
  position: absolute;
  top: -1px;
  left: 10px;
  transform: translateY(-50%);
  background: var(--bg-void);
  padding: 0 8px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-low);
}

.page-faq .faq-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--bg-panel-2);
}

.page-faq .faq-figure figcaption {
  padding: 10px 2px 2px;
  font-size: 12px;
  color: var(--ink-low);
}

.page-faq .faq-figure-wide {
  margin-left: 0;
  margin-right: 0;
}

.page-faq .faq-figure-portrait {
  max-width: 100%;
}

.page-faq .faq-list {
  margin-top: 8px;
}

.page-faq .faq-item {
  border: 1px solid var(--line);
  background: rgba(17, 34, 64, 0.5);
  margin-top: 16px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.page-faq .faq-item[open] {
  border-color: rgba(57, 255, 20, 0.42);
  background: rgba(17, 34, 64, 0.78);
}

.page-faq .faq-q {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-hi);
  -webkit-user-select: none;
  user-select: none;
}

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

.page-faq .faq-q::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-faq .faq-item[open] > .faq-q::before {
  opacity: 1;
}

.page-faq .faq-q-mark {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}

.page-faq .faq-q-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
}

.page-faq .faq-q-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.page-faq .faq-item[open] > .faq-q .faq-q-toggle {
  transform: translateY(-50%) rotate(45deg);
}

.page-faq .faq-a {
  padding: 6px 48px 20px 44px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1.8;
}

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

.page-faq .faq-a a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
  transition: border-color 0.2s ease;
}

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

.page-faq .faq-a b {
  color: var(--ink-hi);
  font-weight: 600;
}

.page-faq .faq-contact {
  margin-top: 14px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.page-faq .faq-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0;
  font-family: var(--font-data);
  font-size: 13px;
  word-break: break-all;
}

.page-faq .faq-contact-line span {
  color: var(--accent);
  min-width: 86px;
  letter-spacing: 0.08em;
  font-size: 11px;
  flex: 0 0 auto;
}

.page-faq .faq-a-note {
  margin-top: 14px;
  border-left: 2px solid var(--fire-start);
  padding-left: 14px;
  font-size: 14px;
}

.page-faq .faq-end-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-low);
  letter-spacing: 0.04em;
}

.page-faq .faq-end-note a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

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

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

  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow: auto;
  }

  .page-faq .toc-list {
    display: block;
  }

  .page-faq .toc-link {
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding: 12px 6px;
  }

  .page-faq .toc-item + .toc-item {
    border-top: 1px solid rgba(35, 53, 84, 0.6);
  }

  .page-faq .faq-sec-grid {
    grid-template-columns: 5fr 7fr;
    gap: 28px;
    align-items: start;
  }

  .page-faq .faq-sec-grid .faq-figure {
    margin-top: 0;
  }

  .page-faq .faq-sec-head h2 {
    font-size: 30px;
  }

  .page-faq .faq-q-text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-q,
  .page-faq .faq-q-toggle,
  .page-faq .toc-link,
  .page-faq .faq-a a {
    transition: none;
  }
}
