.ms-page {
  background-color: var(--color-header-bg, #f8f7f3);
  overflow-x: hidden;
}

.ms-page .cards-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.ms-page .cards-section .checklist-grid:last-child {
  margin-bottom: 0;
}

.ms-faq {
  padding: 0 0 80px;
}

.ms-faq__head {
  margin-bottom: 32px;
}

.ms-faq__title {
  font-family: var(--font-family-base);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #151515;
  margin: 12px 0 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border-radius: 22px;
}

.faq-item__qmark {
  grid-area: qmark;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #edebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-mono, 'JetBrains Mono', monospace);
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: #151515;
}

.faq-item__question {
  grid-area: question;
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #151515;
}

.faq-item__toggle {
  grid-area: toggle;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #151515;
  justify-self: end;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 1px;
}

.faq-item__toggle::before {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq-item__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  grid-template-areas: "qmark question toggle";
  align-items: center;
  column-gap: 24px;
  text-align: left;
  padding: 28px;
}

.faq-item.is-open .faq-item__btn {
  grid-template-areas:
    "qmark . toggle"
    "question question question";
  align-items: start;
  row-gap: 24px;
  padding-bottom: 12px;
}

.faq-item__panel {
  display: none;
  padding: 0 28px 28px;
  font-size: 16px;
  line-height: 1.5;
  color: #717182;
}

.faq-item.is-open .faq-item__panel:not(:empty) {
  display: block;
}

@media (max-width: 768px) {
  .faq-item__btn {
    padding: 20px;
    column-gap: 12px;
    grid-template-columns: 36px minmax(0, 1fr) 28px;
  }
  .faq-item__qmark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .faq-item__question {
    font-size: 16px;
  }
  .faq-item__panel {
    padding: 0 20px 20px;
  }
}
