:root {
  --faq-text: #101828;
  --faq-muted: #667085;
  --faq-border: rgba(15, 23, 42, 0.09);
  --faq-soft: #f5f7fb;
  --faq-accent: #4f46e5;
}

.faq {
  background: #fbfcfe;
}

.faq__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 7rem;
}

.faq__intro .section-title {
  max-width: 560px;
}

.faq__intro .section-lead {
  max-width: 520px;
}

.faq__contact-link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1.35rem;
  color: var(--faq-text);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.faq__contact-link span {
  color: var(--faq-accent);
}

.faq__contact-link:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq__list {
  display: grid;
  border-top: 1px solid var(--faq-border);
}

.faq-item {
  border-bottom: 1px solid var(--faq-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--faq-text);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 760;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.22);
  outline-offset: 5px;
  border-radius: 8px;
}

.faq-item__icon {
  position: relative;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border: 1px solid var(--faq-border);
  border-radius: 50%;
  background: #fff;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.68rem;
  height: 1px;
  background: var(--faq-text);
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 220ms ease;
}

.faq-item[open] .faq-item__icon {
  border-color: rgba(79, 70, 229, 0.2);
  background: rgba(79, 70, 229, 0.07);
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__content {
  padding: 0 3.1rem 1.35rem 0;
}

.faq-item__content p {
  max-width: 740px;
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.faq__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--faq-border);
  border-radius: 18px;
  background: var(--faq-soft);
}

.faq__bottom-kicker {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--faq-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.faq__bottom p {
  max-width: 720px;
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.faq__bottom .btn {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .faq__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq__intro {
    position: static;
  }

  .faq__intro .section-title,
  .faq__intro .section-lead {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .faq-item summary {
    padding: 1.05rem 0;
  }

  .faq-item__content {
    padding-right: 2.4rem;
  }

  .faq__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .faq__bottom .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__icon::after {
    transition: none;
  }
}
