.faq-section {
  --faq-anchor-inset: 34px;
  position: relative;
  z-index: 5;
  min-height: clamp(520px, 62svh, 690px);
  display: flex;
  align-items: flex-start;
  padding: clamp(24px, 4vh, 46px) var(--page-pad) clamp(30px, 4vh, 48px);
  background: var(--bg);
  color: var(--text);
  border-top: 0;
}

.faq-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

.faq-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  text-align: center;
}

.faq-heading h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
}

.faq-heading p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.8125rem;
  font-weight: 430;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 12px;
  align-items: start;
}

.faq-item {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
  transition:
    border-color 220ms var(--ease),
    background-color 220ms var(--ease);
}

.faq-item[open] {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: rgba(255, 255, 255, 0.96);
}

.faq-item > .editor-frame-overlay--faq {
  inset: -10px;
}

.faq-item[open] > .editor-frame-overlay--faq {
  visibility: visible;
  filter: brightness(0.95);
}

.faq-item summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 18px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  list-style: none;
}

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

.faq-item summary > span:first-child {
  min-width: 0;
}

.faq-item summary > span:last-child {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.56);
}

.faq-item summary > span:last-child::before,
.faq-item summary > span:last-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.faq-item summary > span:last-child::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary > span:last-child::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: -4px 0 0;
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 430;
  line-height: 1.62;
}

@media (max-width: 680px) {
  .faq-section {
    --faq-anchor-inset: 22px;
    min-height: auto;
    align-items: flex-start;
    padding: 44px var(--page-pad) 22px;
  }

  .faq-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 42px;
    background: var(--bg);
    pointer-events: none;
  }

  .faq-shell {
    width: min(100%, 420px);
  }

  .faq-item summary {
    min-height: 50px;
    padding: 0 14px;
    font-size: 0.8125rem;
  }

  .faq-item p {
    padding: 0 14px 16px;
    font-size: 0.75rem;
  }
}
