.site-faq {
  --faq-ink: #07162d;
  --faq-muted: #5f6f86;
  --faq-blue: #2765f5;
  --faq-violet: #7654f6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(82px, 9vw, 132px) 0 clamp(38px, 4vw, 56px);
  background:
    radial-gradient(circle at 8% 16%, rgba(39, 101, 245, 0.09), transparent 27%),
    radial-gradient(circle at 92% 78%, rgba(118, 84, 246, 0.10), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
}

.site-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.46;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 67, 146, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 67, 146, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.site-faq__glow {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.site-faq__glow--one {
  top: 14%;
  left: -255px;
  background: radial-gradient(circle, rgba(39, 101, 245, 0.16), transparent 70%);
}

.site-faq__glow--two {
  right: -235px;
  bottom: 6%;
  background: radial-gradient(circle, rgba(118, 84, 246, 0.17), transparent 70%);
}

.site-faq__container {
  position: relative;
}

.site-faq__heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(42px, 5vw, 64px);
  text-align: center;
}

.site-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 15px;
  border: 1px solid rgba(39, 101, 245, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(23, 57, 120, 0.07), inset 0 1px 0 #fff;
  color: #31527f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.site-faq__eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--faq-blue), var(--faq-violet));
  box-shadow: 0 0 0 5px rgba(39, 101, 245, 0.1);
}

.site-faq__heading h2 {
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(39px, 5.2vw, 68px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.site-faq__heading p {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--faq-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.site-faq__list {
  width: min(980px, 100%);
  margin: 0 auto;
  perspective: 1200px;
}

.faq-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(25, 56, 113, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow:
    0 18px 45px rgba(20, 43, 88, 0.08),
    0 2px 5px rgba(20, 43, 88, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.24s ease,
    opacity 0.65s ease;
  will-change: transform;
}

.faq-card:last-child {
  margin-bottom: 0;
}

.faq-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--faq-blue), var(--faq-violet));
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(39, 101, 245, 0.25);
  box-shadow:
    0 28px 70px rgba(24, 56, 118, 0.14),
    0 5px 12px rgba(24, 56, 118, 0.08),
    inset 0 1px 0 #fff;
  transform: translate3d(0, -3px, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.faq-card.is-open {
  border-color: rgba(39, 101, 245, 0.31);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 30px 75px rgba(31, 71, 148, 0.14),
    0 5px 14px rgba(31, 71, 148, 0.07),
    inset 0 1px 0 #fff;
}

.faq-card.is-open::before {
  opacity: 1;
  transform: scaleY(1);
}

.faq-card h3 {
  margin: 0;
  font-size: inherit;
}

.faq-question {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 102px;
  padding: 24px 27px 24px 30px;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: var(--faq-ink);
  text-align: left;
  cursor: pointer;
}

.faq-question:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(39, 101, 245, 0.34);
}

.faq-question__icon,
.faq-question__text,
.faq-question__toggle {
  transform: translateZ(24px);
}

.faq-question__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(39, 101, 245, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #eef3ff);
  box-shadow: 0 8px 20px rgba(39, 101, 245, 0.1), inset 0 1px 0 #fff;
  color: var(--faq-blue);
  font-size: 19px;
  font-weight: 800;
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.faq-card.is-open .faq-question__icon {
  background: linear-gradient(135deg, var(--faq-blue), var(--faq-violet));
  color: #fff;
  transform: translateZ(32px) rotate(-6deg);
}

.faq-question__text {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.faq-question__toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f7fc;
  box-shadow: inset 0 0 0 1px rgba(23, 56, 112, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-question__toggle::before,
.faq-question__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #708097;
  transform: translate(-50%, -50%);
}

.faq-question__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-card.is-open .faq-question__toggle {
  background: rgba(39, 101, 245, 0.1);
  box-shadow: inset 0 0 0 1px rgba(39, 101, 245, 0.12);
  transform: translateZ(30px) rotate(180deg);
}

.faq-card.is-open .faq-question__toggle::before,
.faq-card.is-open .faq-question__toggle::after {
  background: var(--faq-blue);
}

.faq-card.is-open .faq-question__toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

.faq-card.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  max-width: 820px;
  margin: -4px 78px 0 94px;
  padding: 0 0 30px;
  color: var(--faq-muted);
  font-size: 16px;
  line-height: 1.75;
}

.site-faq.faq-motion-ready .faq-card {
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotateX(4deg);
}

.site-faq.faq-motion-ready .faq-card.faq-card--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.site-faq.faq-motion-ready .faq-card.faq-card--visible:hover {
  transform: translate3d(0, -3px, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

@media (max-width: 767px) {
  .site-faq {
    padding: 72px 0 36px;
  }

  .site-faq::before {
    background-size: 40px 40px;
  }

  .site-faq__heading {
    margin-bottom: 36px;
  }

  .site-faq__heading h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .site-faq__heading p {
    margin-top: 16px;
    font-size: 16px;
  }

  .faq-card {
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .faq-question {
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    gap: 12px;
    min-height: 86px;
    padding: 20px 16px;
  }

  .faq-question__icon,
  .faq-question__toggle {
    width: 34px;
    height: 34px;
  }

  .faq-question__icon {
    border-radius: 11px;
    font-size: 16px;
  }

  .faq-question__text {
    font-size: 16px;
  }

  .faq-answer p {
    margin: -2px 18px 0 64px;
    padding-bottom: 23px;
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-card,
  .faq-question__icon,
  .faq-question__toggle,
  .faq-answer {
    transition-duration: 0.01ms !important;
  }

  .site-faq.faq-motion-ready .faq-card,
  .site-faq.faq-motion-ready .faq-card.faq-card--visible {
    opacity: 1;
    transform: none;
  }
}
