.faq-list {
  display: grid;
  gap: 12px;
  width: min(100%, 54rem);
  margin: 0 auto;
}

.faq-item {
  --faq-card-padding: clamp(16px, 3vw, 32px);
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #f3eee5;
}

.faq-item[open] {
  border-color: #ded4c8;
  background: #faf6eb;
}

.faq-item > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px var(--faq-card-padding);
  border-radius: inherit;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}

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

.faq-item > summary::marker {
  content: '';
}

.faq-item[open] > summary {
  color: #a13a33;
}

.faq-item > summary:focus-visible {
  outline: 2px solid #a13a33;
  outline-offset: 3px;
}

.faq-toggle {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  color: #a13a33;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 9px;
  left: 1px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: rotate(0);
}

.faq-answer {
  margin: 0 var(--faq-card-padding);
  padding: 15px 0 22px;
  border-top: 1px solid #ded4c8;
  color: #625850;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.faq-answer p {
  max-width: 71ch;
  margin: 0;
}

.faq-answer p + p {
  margin-top: 8px;
}

.faq-answer strong {
  color: #302b28;
}

@media (hover: hover) {
  .faq-item:hover {
    border-color: #ded4c8;
  }
}

@media (max-width: 600px) {
  .faq-list {
    gap: 10px;
  }

  .faq-item > summary {
    min-height: 60px;
  }

  .faq-answer {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item {
    transition: border-color 180ms ease, background-color 180ms ease;
  }

  .faq-toggle::after {
    transition: transform 240ms ease;
  }

  @supports selector(::details-content) and (transition-behavior: allow-discrete) {
    .faq-item::details-content {
      display: grid;
      grid-template-rows: 0fr;
      overflow: clip;
      opacity: 0;
      transition:
        grid-template-rows 320ms cubic-bezier(0.24, 0.75, 0.35, 1),
        opacity 240ms ease,
        content-visibility 320ms allow-discrete;
    }

    .faq-item[open]::details-content {
      grid-template-rows: 1fr;
      opacity: 1;
    }

    .faq-detail-motion {
      min-height: 0;
      overflow: clip;
    }
  }
}
