.faq {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(70px, 7vw, 105px);
  padding-bottom: clamp(76px, 8vw, 112px);
  scroll-margin-top: 92px;
}

.faq .section-heading { display: block; margin: 0; }
.faq .section-heading h2 { margin: 17px 0 18px; font-size: clamp(2.4rem, 3.8vw, 4.1rem); }
.faq .section-heading p { max-width: 340px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }

.faq-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 310px);
  height: 180px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #e2d8ff;
  border-radius: 27px;
  background: radial-gradient(circle at 78% 18%, #fff 0 8%, transparent 9%), linear-gradient(135deg, #f8f5ff, #e7ddff);
}
.faq-illustration::before, .faq-illustration::after { content: ""; position: absolute; border: 2px solid rgba(105, 70, 222, .16); border-radius: 50%; }
.faq-illustration::before { width: 225px; height: 225px; left: -100px; bottom: -145px; }
.faq-illustration::after { width: 145px; height: 145px; right: -71px; top: -65px; }
.faq-illustration-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 29px;
  background: linear-gradient(145deg, #8060f2, #5635ce);
  box-shadow: 0 18px 35px rgba(92, 57, 212, .23);
  color: #fff;
  font: 800 5.2rem/1 Manrope, sans-serif;
  transform: rotate(-9deg);
}
.faq-illustration-bubble { position: absolute; z-index: 2; right: 19px; bottom: 19px; padding: 8px 12px; border: 1px solid #e4dcf8; border-radius: 11px; background: #fff; box-shadow: 0 8px 20px rgba(57, 30, 122, .1); color: #5c3dc9; font-size: .7rem; font-weight: 800; }
.faq-illustration-spark { position: absolute; left: 27px; top: 22px; color: #8564ef; font-size: 1.4rem; }

.faq-list { min-width: 0; max-width: none; margin: 0; }
.faq-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 7px; border: 1px solid #e8e1f8; border-radius: 19px; background: #f7f4ff; }
.faq-category {
  min-height: 51px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #6d617e;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.faq-category:hover { color: #5332c0; transform: translateY(-2px); }
.faq-category[aria-pressed="true"] { border-color: #dfd4fc; background: #fff; box-shadow: 0 5px 13px rgba(69, 36, 145, .09); color: #5839c9; }
.faq-category:focus-visible, .faq summary:focus-visible { outline: 3px solid #a68cf4; outline-offset: 3px; }

.faq-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: start; margin-top: 22px; }
.faq-group[hidden] { display: none; }
.faq-group h3 { grid-column: 1 / -1; margin: 0 0 4px; color: #7456d6; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.faq details { min-width: 0; padding: 0; border: 1px solid #e8e0f6; border-radius: 15px; background: #fff; box-shadow: 0 5px 20px rgba(53, 31, 109, .035); transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: #cbbaf8; }
.faq details[open] { border-color: #bba5f7; box-shadow: 0 13px 28px rgba(76, 48, 157, .1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 13px 15px; border-radius: 15px; cursor: pointer; list-style: none; color: #252039; font-size: .87rem; font-weight: 800; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f1eaff; color: #6843df; font-size: 1.18rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: #6843df; color: #fff; }
.faq details p { margin: 0; padding: 0 16px 18px; color: #686074; font-size: .84rem; line-height: 1.65; }
.faq details p a { color: var(--purple); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .faq { grid-template-columns: minmax(210px, .7fr) minmax(0, 1.7fr); gap: 28px; }
  .faq-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; gap: 27px; }
  .faq .section-heading h2 { margin-bottom: 10px; }
  .faq .section-heading p { max-width: 620px; }
  .faq-illustration { display: none; }
}
@media (max-width: 560px) {
  .faq { padding-top: 70px; padding-bottom: 78px; }
  .faq-categories { gap: 6px; padding: 6px; }
  .faq-category { min-height: 47px; padding: 7px; font-size: .75rem; }
  .faq-group { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .faq summary { min-height: 60px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .faq-category, .faq details { transition: none; } }
