.faq-section {
  display: flex;
  width: min(880px, 100%);
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(80px, 9vw, 128px);
  padding-bottom: clamp(80px, 9vw, 128px);
}

.faq-section h2 {
  max-width: 620px;
  margin: 0;
  font-size: var(--type-h2-font-size);
  font-weight: var(--type-h2-font-weight);
  line-height: var(--type-h2-line-height);
  letter-spacing: -0.035em;
  word-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}

.faq-title__clip {
  display: block;
  overflow: hidden;
  padding: 0.02em 0 0.08em;
}

.faq-title__line {
  display: block;
  will-change: transform;
}

.faq-list {
  display: flex;
  width: min(760px, 100%);
  flex-direction: column;
  margin-top: clamp(40px, 5vw, 64px);
}

.faq-item {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  background: #fff;
  transition: border-radius 300ms ease, background-color 300ms ease;
}

.faq-item--open {
  margin-block: 4px;
  border-bottom-color: transparent;
  border-radius: 20px;
  background: #f5f5f5;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  padding: 20px 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 220ms ease;
}

.faq-item--open .faq-question {
  padding: 24px 24px 16px;
  color: var(--ink);
}

.faq-question > span:first-child {
  max-width: 620px;
  font-size: var(--type-faq-question-font-size);
  font-weight: var(--type-faq-question-font-weight);
  line-height: var(--type-faq-question-line-height);
  letter-spacing: var(--type-faq-question-letter-spacing);
  text-wrap: pretty;
}

.faq-toggle {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
}

.faq-answer {
  overflow: hidden;
  padding-inline: 24px;
}

.faq-answer p {
  max-width: 680px;
  margin: 0;
  font-size: var(--type-faq-answer-font-size);
  font-weight: var(--type-faq-answer-font-weight);
  line-height: var(--type-faq-answer-line-height);
  color: var(--muted);
  text-wrap: pretty;
}

.faq-question:hover {
  color: var(--ink);
}

.faq-question:focus-visible {
  outline: 2px solid #ff80ad;
  outline-offset: -5px;
  border-radius: 34px;
}

@media (max-width: 1199px) {
  .faq-section h2 {
    line-height: 0.96;
  }
}

@media (max-width: 809.98px) {
  .faq-section {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .faq-section h2 {
    max-width: 560px;
    font-size: var(--type-h2-mobile-font-size);
    line-height: 1;
  }

  .faq-list {
    margin-top: 40px;
  }

  .faq-item--open {
    border-radius: 18px;
  }

  .faq-question,
  .faq-item--open .faq-question {
    min-height: 72px;
    gap: 20px;
    padding: 18px;
  }

  .faq-question > span:first-child {
    font-size: var(--type-body-lg-mobile-font-size);
    line-height: 1.35;
  }

  .faq-answer {
    padding-inline: 18px;
  }

  .faq-answer p {
    font-size: var(--type-faq-answer-mobile-font-size);
    line-height: 1.6;
  }
}

@media (max-width: 479px) {
  .faq-section {
    padding-top: 160px;
    padding-bottom: 64px;
  }

  .faq-section h2 {
    font-size: var(--type-faq-h2-mobile-sm-font-size);
  }

  .faq-list {
    margin-top: 32px;
  }

  .faq-item--open {
    border-radius: 16px;
  }

  .faq-question,
  .faq-item--open .faq-question {
    min-height: 68px;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 16px;
  }

  .faq-question > span:first-child {
    font-size: var(--type-xs-17-font-size);
    line-height: 1.4;
  }

  .faq-answer {
    padding-inline: 16px;
  }

  .faq-answer p {
    font-size: var(--type-xs-14-font-size);
    line-height: 1.6;
  }
}
