.faq-section {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: #f6efdf;
  padding: 96px 24px;
}

.faq-section__content {
  display: grid;
  grid-template-columns: minmax(280px, 325px) minmax(0, 920px);
  gap: 32px;
  align-items: start;
}

.faq-section__title {
  margin: 0;
  max-width: 325px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.33vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.48px;
  text-transform: uppercase;
  color: #17407d;
}

.faq-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-section__item {
  width: 100%;
  background-color: #eee6d4;
}

.faq-section__question-button {
  width: 100%;
  border: 0;
  padding: 25px 16px;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.faq-section__question-button:focus-visible {
  outline: 2px solid #377ee4;
  outline-offset: 2px;
}

.faq-section__question-text {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #032f70;
}

.faq-section__icon {
  position: relative;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
}

.faq-section__icon-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33px;
  height: 4px;
  border-radius: 300px;
  background-color: #377ee4;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}

.faq-section__icon-bar--vertical {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-section__item--open .faq-section__icon-bar--vertical {
  opacity: 0;
}

.faq-section__answer-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}

.faq-section__item--open .faq-section__answer-container {
  grid-template-rows: 1fr;
}

.faq-section__answer-inner {
  overflow: hidden;
}

.faq-section__answer-text {
  margin: 0;
  padding: 8px 16px 25px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
  color: #001e44;
}

.faq-section__answer-text :is(p, ul, ol) {
  margin: 0 0 0.75em;
}

.faq-section__answer-text :is(p, ul, ol):last-child {
  margin-bottom: 0;
}

.faq-section__answer-text :is(h2, h3, h4, h5, h6) {
  margin: 1em 0 0.45em;
  font-weight: 700;
  line-height: 1.25;
}

.faq-section__answer-text ul,
.faq-section__answer-text ol {
  padding-left: 1.35em;
}

.faq-section__answer-text li + li {
  margin-top: 0.4em;
}

.faq-section__answer-text a {
  color: #377ee4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-section__answer-text strong,
.faq-section__answer-text b {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .faq-section__content {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  }

  .faq-section__question-text,
  .faq-section__answer-text {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 32px 12px;
  }

  .faq-section__content {
    display: flex;
    flex-direction: column;
    gap: 56px;
  }

  .faq-section__title {
    max-width: 100%;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.32px;
    text-transform: none;
  }

  .faq-section__question-button {
    gap: 16px;
    padding: 21px 10px;
  }

  .faq-section__question-text {
    font-size: 16px;
    line-height: 1.2;
  }

  .faq-section__answer-text {
    padding: 8px 10px 21px;
    font-size: 16px;
    line-height: 1.2;
  }

  .faq-section__item--desktop-only {
    display: none;
  }
}
