.newhome-faq {
  padding: clamp(48px, 8vw, 108px) 20px;
  background: linear-gradient(180deg, #fafafa, #f3f3ff);
  color: #181a2e;
}

.newhome-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(24px, 6vw, 88px);
  max-width: 1040px;
  margin-inline: auto;
}

.newhome-faq__heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.newhome-faq__list {
  overflow: hidden;
  border: 1px solid #e5e4ef;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(40 31 91 / 5%);
}

.newhome-faq details + details {
  border-top: 1px solid #ecebf2;
}

.newhome-faq summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 2vw, 16px);
  min-height: 66px;
  padding: 13px clamp(12px, 3vw, 24px);
  color: #181a2e;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  transition: background 200ms ease;
}

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

.newhome-faq summary:hover,
.newhome-faq details[open] summary {
  background: #f8f7ff;
}

.newhome-faq summary:focus-visible,
.newhome-faq__cta:focus-visible {
  outline: 2px solid #5046e5;
  outline-offset: -3px;
}

.newhome-faq__number {
  color: #595587;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.newhome-faq__icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efedff;
  color: #5046b8;
}

.newhome-faq__icon::before,
.newhome-faq__icon::after {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 5px);
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.newhome-faq__icon::after {
  transform: rotate(90deg);
  transition: transform 230ms ease, opacity 230ms ease;
}

.newhome-faq details[open] .newhome-faq__icon::after {
  transform: rotate(0);
  opacity: 0;
}

.newhome-faq details p {
  margin: 0;
  padding: 2px clamp(16px, 3vw, 30px) 19px clamp(33px, 6vw, 54px);
  color: #545568;
  font-size: 14px;
  line-height: 1.65;
}

.newhome-faq__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.newhome-faq__cta:hover {
  background: #34323c;
}

@media (prefers-reduced-motion: no-preference) {
  .newhome-faq details[open] p {
    animation: newhome-faq-in 240ms ease both;
  }

  @supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
    .newhome-faq details {
      interpolate-size: allow-keywords;
    }

    .newhome-faq details::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 280ms ease, opacity 230ms ease, content-visibility 280ms allow-discrete;
    }

    .newhome-faq details[open]::details-content {
      block-size: auto;
      opacity: 1;
    }

    .newhome-faq details[open] p {
      animation: none;
    }
  }
}

@keyframes newhome-faq-in {
  from { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .newhome-faq summary,
  .newhome-faq__icon::after {
    transition: none;
  }
}

@media (max-width: 819px) {
  .newhome-faq {
    padding-inline: 16px;
  }

  .newhome-faq__layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 540px;
  }

  .newhome-faq__list {
    border-radius: 14px;
  }

  .newhome-faq details p {
    padding: 12px 16px 18px;
    font-size: 15px;
  }

  .newhome-faq__cta {
    min-height: 46px;
    margin-top: 14px;
  }
}
