.page-faq {
  --faq-toc-w: 200px;
  --faq-section-gap: clamp(56px, 7vw, 96px);
  --faq-blueprint-line: rgba(10, 31, 68, 0.07);
  background: var(--c-light);
}

/* ======================= HERO ======================= */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--faq-blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--faq-blueprint-line) 1px, transparent 1px),
    var(--c-navy);
  background-size: 44px 44px;
  border-bottom: 4px solid var(--c-green);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.page-faq .faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, var(--c-orange) 40%, var(--c-orange) 42%, transparent 42%);
  opacity: 0.14;
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 2;
}

.page-faq .faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

.page-faq .faq-hero-main {
  max-width: 100%;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 18px 0 20px;
  max-width: 12.5em;
}

.page-faq .faq-hero .lead {
  color: #c6d2e8;
  max-width: 42em;
  margin-bottom: 28px;
}

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

.page-faq .faq-hero-aside {
  display: none;
}

.page-faq .faq-hero-board {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  padding: 30px 28px;
  transform: rotate(-2deg);
  position: relative;
  max-width: 300px;
  margin-left: auto;
}

.page-faq .faq-hero-board::after {
  content: '';
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--c-orange);
  z-index: -1;
}

.page-faq .faq-board-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--c-green);
  letter-spacing: 0.06em;
}

.page-faq .faq-board-index {
  display: block;
  font-family: var(--font-num);
  font-size: 20px;
  color: #fff;
  margin-top: 10px;
}

.page-faq .faq-board-rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--c-orange);
  margin: 18px 0 10px;
}

.page-faq .faq-board-note {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.3em;
}

/* ======================= BODY WRAP ======================= */
.page-faq .faq-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 64px;
}

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

/* ======================= TOC ======================= */
.page-faq .faq-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.page-faq .faq-toc-title {
  display: none;
}

.page-faq .faq-toc-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-toc-cap:hover,
.page-faq .faq-toc-cap:focus-visible {
  border-color: var(--c-green);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
  transform: translateY(-1px);
}

.page-faq .faq-toc-no {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--c-orange);
}

.page-faq .faq-toc-text {
  color: inherit;
}

/* ======================= SECTIONS ======================= */
.page-faq .faq-section {
  margin-bottom: var(--faq-section-gap);
  scroll-margin-top: 20px;
}

.page-faq .faq-section:target {
  outline: 2px solid rgba(57, 255, 20, 0.55);
  outline-offset: 12px;
}

.page-faq .faq-section-head {
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-line);
  position: relative;
}

.page-faq .faq-section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--c-green);
}

.page-faq .faq-section-desc {
  color: var(--c-muted);
  margin-top: 10px;
  max-width: 48em;
  font-size: 15px;
}

/* ======================= Q&A ======================= */
.page-faq .qa-list {
  max-width: 860px;
}

.page-faq .qa-item {
  border-bottom: 1px solid var(--c-line);
  position: relative;
}

.page-faq .qa-item[open] {
  border-bottom-color: var(--c-green);
}

.page-faq .qa-item[open]::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-green);
  z-index: 2;
}

.page-faq .qa-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-ink);
  transition: color 0.2s ease;
}

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

.page-faq .qa-q:hover {
  color: var(--c-navy);
}

.page-faq .qa-no {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--c-orange);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-weight: 600;
}

.page-faq .qa-text {
  flex: 1;
  line-height: 1.45;
}

.page-faq .qa-arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
  margin-right: 8px;
}

.page-faq .qa-item[open] .qa-arrow {
  transform: rotate(-135deg);
  border-color: var(--c-green);
}

.page-faq .qa-a {
  padding: 0 18px 26px 44px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-faq .qa-a p + p {
  margin-top: 12px;
}

.page-faq .qa-a ol {
  margin: 12px 0;
  padding-left: 22px;
}

.page-faq .qa-a li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.page-faq .qa-a a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-faq .qa-a a:hover {
  color: var(--c-green);
}

/* ======================= ENTRY GRID & FIGURE ======================= */
.page-faq .faq-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-faq .faq-figure {
  margin: 0;
}

.page-faq .faq-figure--entry {
  align-self: start;
  position: relative;
  background: var(--c-navy);
  padding: 10px 10px 0;
  border-radius: 6px;
  box-shadow: var(--shadow-hard);
  max-width: 420px;
}

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

.page-faq .faq-figure-cap {
  padding: 12px 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  text-align: center;
}

/* ======================= MEMBER PANEL ======================= */
.page-faq .faq-member-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--c-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 20px;
  margin-bottom: 36px;
  border-radius: 4px;
  border-left: 4px solid var(--c-orange);
}

.page-faq .faq-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq .faq-member-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.14);
  color: var(--c-green);
  flex: 0 0 auto;
}

.page-faq .faq-member-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ======================= DATA STRIP ======================= */
.page-faq .faq-data-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-navy);
  border-left: 4px solid var(--c-green);
  margin-bottom: 36px;
  border-radius: 4px;
  overflow: hidden;
}

.page-faq .faq-dstat {
  background: var(--c-navy);
  padding: 22px 18px;
  text-align: center;
}

.page-faq .faq-dnum {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--c-orange);
  line-height: 1.1;
}

.page-faq .faq-dlabel {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

/* ======================= CONTACT CARDS ======================= */
.page-faq .faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-faq .faq-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

.page-faq .faq-contact-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 18px 16px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-contact-card:hover {
  border-color: var(--c-green);
  transform: translateY(-2px);
}

.page-faq .faq-contact-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-orange);
  border-radius: 2px 0 0 2px;
}

.page-faq .faq-contact-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.page-faq .faq-contact-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.5;
  word-break: break-all;
}

.page-faq .faq-contact-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-muted);
}

/* ======================= BOTTOM CTA ======================= */
.page-faq .faq-cta {
  background:
    linear-gradient(var(--faq-blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--faq-blueprint-line) 1px, transparent 1px),
    var(--c-navy);
  background-size: 44px 44px;
  border-top: 4px solid var(--c-green);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-faq .faq-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-faq .faq-cta-figure {
  margin: 0;
  order: -1;
}

.page-faq .faq-cta-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.page-faq .faq-cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: #fff;
  margin: 14px 0 16px;
letter-spacing: 0.02em;
}

.page-faq .faq-cta-copy p {
  color: #c6d2e8;
  max-width: 34em;
}

.page-faq .faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* ======================= DESKTOP ======================= */
@media (min-width: 768px) {
  .page-faq .faq-member-panel {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-faq .faq-data-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-faq .faq-contact-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
  }

  .page-faq .faq-hero-aside {
    display: block;
  }

  .page-faq .faq-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }

  .page-faq .faq-entry-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-body-wrap {
    flex-direction: row-reverse;
    gap: 48px;
    align-items: flex-start;
  }

  .page-faq .faq-toc {
    flex: 0 0 var(--faq-toc-w);
    position: sticky;
    top: 28px;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 0;
    gap: 10px;
  }

  .page-faq .faq-toc-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
    padding: 0 4px 8px;
    border-bottom: 2px solid var(--c-line);
    margin-bottom: 4px;
  }

  .page-faq .faq-toc-cap {
    display: flex;
    justify-content: space-between;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--c-line);
    background: transparent;
    padding: 10px 4px;
  }

  .page-faq .faq-toc-cap:hover,
  .page-faq .faq-toc-cap:focus-visible {
    border-color: var(--c-green);
    transform: none;
    box-shadow: none;
  }

  .page-faq .faq-cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }

  .page-faq .faq-cta-figure {
    order: 0;
  }
}
