:root {
  --ddd-faq-ink: #17242a;
  --ddd-faq-muted: #5e6a70;
  --ddd-faq-brand: #174b57;
  --ddd-faq-brand-strong: #103943;
  --ddd-faq-accent: #ef6a3a;
  --ddd-faq-line: #dfe7e8;
  --ddd-faq-soft: #f4f8f8;
  --ddd-faq-white: #ffffff;
}

.ddd-faq-section,
.ddd-faq-section * {
  box-sizing: border-box;
}

.ddd-faq-section {
  color: var(--ddd-faq-ink);
  background: var(--ddd-faq-white);
}

.ddd-faq-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 88px;
}

.ddd-faq-heading {
  max-width: 760px;
}

.ddd-faq-eyebrow {
  margin: 0 0 10px;
  color: var(--ddd-faq-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 22px;
}

.ddd-faq-heading h2,
.ddd-faq-aside h2 {
  margin: 0;
  color: var(--ddd-faq-brand-strong);
  font-weight: 700;
  letter-spacing: 0;
}

.ddd-faq-heading h2 {
  font-size: 34px;
  line-height: 1.35;
}

.ddd-faq-heading > p:last-child {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--ddd-faq-muted);
  font-size: 16px;
  line-height: 28px;
}

.ddd-faq-pains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.ddd-faq-pains article {
  min-width: 0;
  min-height: 210px;
  padding: 24px 22px;
  border-top: 3px solid var(--ddd-faq-brand);
  background: var(--ddd-faq-soft);
}

.ddd-faq-pains span {
  color: var(--ddd-faq-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.ddd-faq-pains h3 {
  margin: 12px 0 8px;
  color: var(--ddd-faq-brand-strong);
  font-size: 20px;
  line-height: 28px;
}

.ddd-faq-pains p {
  margin: 0;
  color: var(--ddd-faq-muted);
  font-size: 14px;
  line-height: 24px;
}

.ddd-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  gap: 54px;
  align-items: start;
  margin-top: 74px;
}

.ddd-faq-aside {
  position: sticky;
  top: 24px;
  padding: 28px;
  color: var(--ddd-faq-white);
  background: var(--ddd-faq-brand-strong);
}

.ddd-faq-aside .ddd-faq-eyebrow {
  color: #ffd0be;
}

.ddd-faq-aside h2 {
  color: var(--ddd-faq-white);
  font-size: 25px;
  line-height: 1.45;
}

.ddd-faq-aside > p:nth-of-type(2) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 24px;
}

.ddd-faq-aside a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 9px 18px;
  border-radius: 5px;
  color: var(--ddd-faq-white);
  background: var(--ddd-faq-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
}

.ddd-faq-aside a:hover,
.ddd-faq-aside a:focus-visible {
  background: #d95729;
}

.ddd-faq-list {
  border-top: 1px solid var(--ddd-faq-line);
}

.ddd-faq-list details {
  border-bottom: 1px solid var(--ddd-faq-line);
}

.ddd-faq-list summary {
  position: relative;
  min-height: 70px;
  padding: 21px 48px 21px 0;
  color: var(--ddd-faq-brand-strong);
  font-size: 17px;
  font-weight: 700;
  line-height: 28px;
  list-style: none;
  cursor: pointer;
}

.ddd-faq-list summary::-webkit-details-marker {
  display: none;
}

.ddd-faq-list summary::before,
.ddd-faq-list summary::after {
  position: absolute;
  top: 34px;
  right: 5px;
  width: 15px;
  height: 2px;
  background: var(--ddd-faq-accent);
  content: "";
}

.ddd-faq-list summary::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.ddd-faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.ddd-faq-list details > p {
  margin: -4px 48px 0 0;
  padding: 0 0 22px;
  color: var(--ddd-faq-muted);
  font-size: 15px;
  line-height: 27px;
}

@media screen and (max-width: 960px) {
  .ddd-faq-pains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ddd-faq-layout {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 34px;
  }
}

@media screen and (max-width: 680px) {
  .ddd-faq-inner {
    width: calc(100% - 32px);
    padding: 58px 0 64px;
  }

  .ddd-faq-heading h2 {
    font-size: 28px;
  }

  .ddd-faq-heading > p:last-child {
    font-size: 15px;
    line-height: 26px;
  }

  .ddd-faq-pains,
  .ddd-faq-layout {
    grid-template-columns: 1fr;
  }

  .ddd-faq-pains article {
    min-height: 0;
  }

  .ddd-faq-layout {
    gap: 34px;
    margin-top: 54px;
  }

  .ddd-faq-aside {
    position: static;
    padding: 24px 20px;
  }

  .ddd-faq-aside h2 {
    font-size: 22px;
  }

  .ddd-faq-aside a {
    width: 100%;
  }

  .ddd-faq-list summary {
    min-height: 64px;
    padding: 18px 38px 18px 0;
    font-size: 16px;
    line-height: 26px;
  }

  .ddd-faq-list summary::before,
  .ddd-faq-list summary::after {
    top: 31px;
    right: 3px;
  }

  .ddd-faq-list details > p {
    margin-right: 0;
    font-size: 14px;
    line-height: 25px;
  }
}
