.page-faq {
  --faq-accent-bg: rgba(0, 229, 160, 0.08);
  --faq-step-width: 30px;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 229, 160, 0.06) 0%, transparent 240px),
    radial-gradient(circle at 95% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 200px),
    var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  padding: 28px 16px 64px;
}

.faq-shell {
  max-width: 1180px;
  margin: 0 auto;
}

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

.faq-hero {
  position: relative;
  margin-bottom: 30px;
}

.faq-hero .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.faq-hero .section-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--cta);
  flex: 0 0 auto;
}

.faq-hero h1 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 780px;
}

.faq-lead {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.faq-hero::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 32px;
  background: linear-gradient(to right, rgba(0, 229, 160, 0.5) 0%, rgba(0, 229, 160, 0.12) 35%, transparent 70%);
}

.faq-layout {
  position: relative;
}

.faq-index {
  margin-bottom: 24px;
}

.faq-index-label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-index-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
}

.faq-index-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.faq-index-nav::-webkit-scrollbar {
  display: none;
}

.faq-index-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-dark);
  border: 1px solid var(--border-green);
  border-radius: 2px;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.faq-index-link:hover,
.faq-index-link:focus {
  border-color: var(--accent);
  color: var(--text-main);
  background: var(--faq-accent-bg);
}

.faq-index-link span {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--accent);
}

.faq-help-card {
  margin-top: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-green);
  border-radius: 2px;
  padding: 14px;
}

.faq-help-title {
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
}

.faq-help-text {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.faq-help-card .btn {
  width: 100%;
  justify-content: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.faq-details {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--border-green);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-details[open] {
  border-color: rgba(0, 229, 160, 0.5);
  background: linear-gradient(180deg, rgba(0, 229, 160, 0.06) 0%, rgba(0, 229, 160, 0) 140px), var(--bg-dark);
}

.faq-details::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 0;
  border-top: 18px solid var(--accent);
  border-right: 18px solid transparent;
  z-index: 1;
  pointer-events: none;
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  user-select: none;
}

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

.faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 2px;
}

.faq-no {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  background: var(--faq-accent-bg);
  border: 1px solid rgba(0, 229, 160, 0.35);
  border-radius: 2px;
  width: 42px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform: skewX(-6deg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq-details[open] .faq-no {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.faq-summary h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
  color: var(--text-main);
  transition: color 0.25s var(--ease);
}

.faq-details[open] .faq-summary h2 {
  color: var(--accent-light);
}

.faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-details[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  position: relative;
  z-index: 2;
  padding: 0 16px 20px;
}

.faq-desc {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 16px;
}

.faq-desc strong {
  color: var(--text-main);
  font-family: var(--font-data);
  font-weight: 700;
}

.faq-steps {
  list-style: none;
  counter-reset: faq-step;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
}

.faq-steps li {
  counter-increment: faq-step;
  position: relative;
  padding: 0 0 16px 46px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 20px;
}

.faq-steps li:last-child {
  padding-bottom: 0;
}

.faq-steps li::before {
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--faq-step-width);
  height: 24px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: var(--cta);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-8deg);
}

.faq-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--faq-step-width) / 2 - 1px);
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 229, 160, 0.5), rgba(0, 229, 160, 0.05));
}

.page-faq .faq-a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-note {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(245, 247, 250, 0.08);
  margin: 12px 0 0;
  padding-top: 12px;
}

.faq-a-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.faq-a-copy {
  min-width: 0;
}

.faq-figure {
  margin: 12px 0 0;
  padding: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--border-green);
  border-radius: 2px;
  position: relative;
}

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

.faq-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 4px 4px;
}

.faq-metrics {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.faq-metric {
  flex: 1 1 90px;
  background: var(--bg-deep);
  border: 1px solid var(--border-green);
  padding: 12px 8px;
  text-align: center;
  border-radius: 2px;
}

.faq-metric-num {
  display: block;
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.faq-metric-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.faq-more {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.12) 0%, rgba(0, 229, 160, 0) 60%), var(--bg-dark);
  border: 1px solid var(--border-green);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.faq-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.faq-more p {
  margin: 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .faq-a-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 26px;
  }

  .faq-figure {
    margin-top: 14px;
  }

  .faq-more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }

  .faq-more p {
    max-width: 70%;
  }
}

@media (min-width: 860px) {
  .page-faq {
    padding: 40px 24px 88px;
  }

  .faq-hero h1 {
    font-size: 52px;
    max-width: 820px;
  }

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

  .faq-index {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin-bottom: 0;
  }

  .faq-index-nav {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(245, 247, 250, 0.08);
  }

  .faq-index-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-left: 2px solid var(--border-green);
    border-radius: 0;
    background: transparent;
    padding: 9px 12px;
    color: var(--text-dim);
  }

  .faq-index-link:hover,
  .faq-index-link:focus {
    color: var(--text-main);
    border-left-color: var(--accent);
    background: var(--faq-accent-bg);
  }

  .faq-help-card {
    margin-top: 18px;
    padding: 16px;
  }

  .faq-list {
    max-width: 860px;
  }

  .faq-summary {
    padding: 24px 22px;
  }

  .faq-a {
    padding: 0 22px 26px;
  }

  .faq-item:target .faq-details {
    border-color: rgba(0, 229, 160, 0.65);
    box-shadow: 0 0 0 1px rgba(0, 229, 160, 0.18);
  }
}
