.faq {
  background: var(--color-bg);
  padding: 40px 0 100px;
}

.faq .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq .heading {
  text-align: center;
  margin-bottom: 40px;
}

.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e0e2e9;
  border-radius: 14px;
  background: var(--color-bg);
  overflow: hidden;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  outline: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.8;
}
.faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

.faq-item > summary:focus-visible {
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--color-accent) 30%, transparent);
  border-radius: 12px;
}
.faq-item > summary:hover {
  background: var(--color-bg-second);
}

.answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-item[open] .answer {
  grid-template-rows: 1fr;
}
.answer > div {
  overflow: hidden;
}
.answer p {
  margin: 0;
  padding: 0 18px 16px 18px;
  line-height: 1.6;
  color: var(--color-text);
}
