:root{
  --ink:#17213b;
  --ink-soft:#34415f;
  --muted:#667085;
  --line:#e3e7f1;
  --purple:#635bff;
  --purple-dark:#4d46d9;
  --purple-pale:#f1efff;
  --teal:#16b8a6;
  --teal-dark:#087f73;
  --teal-pale:#e8faf6;
  --bg:#f8faff;
  --shadow:0 18px 48px rgba(39,48,85,.08);
  --content:1120px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:96px;
}

body{
  margin:0;
  min-width:320px;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.68;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}
button,input{font:inherit}
svg{display:block}

.container{
  width:min(var(--content),calc(100% - 48px));
  margin:0 auto;
}

/* COMPACT HERO */

.faq-hero{
  position:relative;
  overflow:hidden;
  padding:54px 0 38px;
  background:
    radial-gradient(circle at 84% 10%,rgba(99,91,255,.10),transparent 28%),
    radial-gradient(circle at 12% 90%,rgba(22,184,166,.09),transparent 28%),
    #fff;
  border-bottom:1px solid rgba(227,231,241,.9);
}

.faq-hero:after{
  content:"";
  position:absolute;
  right:-100px;
  top:-55px;
  width:310px;
  height:120px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(99,91,255,.10),rgba(22,184,166,.12));
  transform:rotate(13deg);
}

.faq-hero__inner{
  position:relative;
  z-index:2;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  color:var(--purple-dark);
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.eyebrow:before{
  content:"";
  width:28px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--teal),var(--purple));
}

.faq-hero h1{
  max-width:760px;
  margin:0;
  font-size:clamp(32px,4vw,47px);
  line-height:1.06;
  letter-spacing:-.052em;
  font-weight:760;
  text-wrap:balance;
}

/* FAQ */

.faq-section{
  padding:58px 0 86px;
}

.faq-layout{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:40px;
  align-items:start;
}

.faq-side{
  position:sticky;
  top:108px;
}

.faq-side h2{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.035em;
}

.faq-search{
  position:relative;
  margin-top:20px;
}

.faq-search svg{
  position:absolute;
  left:15px;
  top:50%;
  width:18px;
  transform:translateY(-50%);
  color:#8b95a7;
  pointer-events:none;
}

.faq-search input{
  width:100%;
  min-height:48px;
  padding:12px 15px 12px 43px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  outline:none;
  box-shadow:0 7px 20px rgba(39,48,85,.04);
}

.faq-search input:focus{
  border-color:rgba(99,91,255,.5);
  box-shadow:0 0 0 4px rgba(99,91,255,.1);
}

.category-list{
  display:grid;
  gap:7px;
  margin-top:20px;
}

.category-link{
  padding:10px 12px;
  color:#5c687f;
  background:transparent;
  border:0;
  border-radius:10px;
  text-align:left;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.category-link:hover,
.category-link:focus-visible{
  color:var(--purple-dark);
  background:#fff;
  outline:none;
}

.faq-content{
  display:grid;
  gap:24px;
}

.faq-category{
  padding:28px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(227,231,241,.96);
  border-radius:22px;
  box-shadow:0 12px 36px rgba(39,48,85,.055);
}

.category-head{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:18px;
}

.category-number{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex:none;
  color:var(--purple-dark);
  background:var(--purple-pale);
  border-radius:12px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
}

.faq-category:nth-child(2) .category-number{
  color:var(--teal-dark);
  background:var(--teal-pale);
}

.category-head h2{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.035em;
}

.faq-list{
  display:grid;
  gap:10px;
}

.faq-item{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.faq-item:hover{
  border-color:#d6d9ea;
}

.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:18px 19px;
  color:var(--ink);
  background:transparent;
  border:0;
  text-align:left;
  cursor:pointer;
  font-size:16px;
  font-weight:750;
}

.faq-plus{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  flex:none;
  color:var(--purple);
  background:var(--purple-pale);
  border-radius:10px;
  font-size:20px;
  font-weight:500;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}

.faq-answer{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s ease;
}

.faq-answer-inner{
  overflow:hidden;
}

.faq-answer p{
  margin:0;
  padding:0 19px 19px;
  color:#556078;
  font-size:15px;
  line-height:1.78;
}

.faq-item.active{
  border-color:rgba(99,91,255,.4);
  box-shadow:0 9px 24px rgba(99,91,255,.07);
}

.faq-item.active .faq-answer{
  grid-template-rows:1fr;
}

.faq-item.active .faq-plus{
  color:#fff;
  background:var(--purple);
  transform:rotate(45deg);
}

.no-results{
  display:none;
  padding:30px;
  text-align:center;
  color:var(--muted);
  background:#fff;
  border:1px dashed #cfd5e2;
  border-radius:18px;
}

/* CONTACT */

.faq-contact{
  padding:0 0 72px;
}

.faq-contact__card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:36px;
  padding:34px 38px;
  background:linear-gradient(135deg,#f1efff 0%,#ffffff 58%,#e8faf6 100%);
  border:1px solid #ddd9ff;
  border-radius:24px;
  box-shadow:var(--shadow);
}

.faq-contact__card h2{
  margin:0;
  font-size:clamp(26px,3vw,36px);
  line-height:1.1;
  letter-spacing:-.045em;
}

.faq-contact__card p{
  max-width:650px;
  margin:10px 0 0;
  color:#556078;
  font-size:15px;
}

.faq-contact__link{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  color:var(--purple-dark);
  background:#fff;
  border:1.5px solid var(--purple);
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}

/* FOOTER */

.footer{
  padding:27px 0 23px;
  background:#fff;
  border-top:1px solid var(--line);
}

.footer-top{
  display:flex;
  justify-content:space-between;
  gap:36px;
  align-items:flex-start;
}

.footer-brand p{
  max-width:440px;
  margin:10px 0 0;
  color:#556078;
  font-size:13px;
  line-height:1.58;
  font-weight:550;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px 18px;
}

.footer-links a{
  color:var(--purple);
  font-size:13px;
  font-weight:750;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-top:19px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:#6f788d;
  font-size:12px;
  font-weight:550;
}

@media(max-width:900px){
  .faq-layout{
    grid-template-columns:1fr;
  }

  .faq-side{
    position:static;
  }

  .category-list{
    display:none;
  }
}

@media(max-width:760px){
  .container{
    width:min(var(--content),calc(100% - 28px));
  }

  .faq-hero{
    padding:42px 0 30px;
  }

  .faq-section{
    padding:44px 0 62px;
  }

  .faq-category{
    padding:20px;
    border-radius:19px;
  }

  .faq-contact__card{
    grid-template-columns:1fr;
    padding:28px 24px;
  }

  .faq-contact__link{
    width:100%;
  }

  .footer-top,
  .footer-bottom{
    align-items:flex-start;
    flex-direction:column;
  }

  .footer-links{
    justify-content:flex-start;
  }
}

@media(max-width:520px){
  .container{
    width:min(var(--content),calc(100% - 22px));
  }

  .faq-hero h1{
    font-size:clamp(31px,10vw,40px);
  }

  .faq-question{
    padding:16px;
    font-size:15px;
  }

  .faq-answer p{
    padding:0 16px 17px;
    font-size:14px;
  }

  .category-head h2{
    font-size:19px;
  }
}
