*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  background: #e8e9ed;
  color: #0a0a0a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.morph-faq {
  --faq-bg: #e8e9ed;
  --faq-ink: #12141a;
  --faq-ink-hover: #1c1f28;
  --faq-fg: rgba(255, 252, 248, 0.94);
  --faq-fg-soft: rgba(255, 255, 255, 0.72);
  --faq-fg-dim: rgba(255, 255, 255, 0.42);
  --faq-accent: #8b9cff;
  --faq-accent-soft: rgba(139, 156, 255, 0.18);
  --faq-margin: 40px;
  --faq-radius-panel: 18px;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: var(--faq-margin);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(139, 156, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 180, 140, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(120, 200, 180, 0.08), transparent 45%),
    var(--faq-bg);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.morph-faq__stage {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.morph-faq__stage::before {
  content: "";
  position: absolute;
  inset: -48px -32px;
  border-radius: 40px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 24px 64px rgba(18, 20, 26, 0.08),
    0 4px 16px rgba(18, 20, 26, 0.04);
  pointer-events: none;
  z-index: -1;
}

.morph-faq__filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.morph-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.morph-faq__item {
  position: relative;
}

.morph-faq__goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.morph-faq__goo-header,
.morph-faq__goo-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--faq-ink);
  will-change: transform;
}

.morph-faq__goo-body {
  border-radius: var(--faq-radius-panel);
}

.morph-faq__header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background-color: var(--faq-ink);
  pointer-events: none;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-faq__trigger:hover + .morph-faq__header-bg {
  background-color: var(--faq-ink-hover);
}

.morph-faq__body-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: var(--faq-ink);
  border-radius: var(--faq-radius-panel);
  pointer-events: none;
  will-change: transform;
}

.morph-faq__trigger {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 17px 20px 17px 18px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--faq-fg);
  font-family: inherit;
  box-sizing: border-box;
}

.morph-faq__trigger:focus {
  outline: none;
}

.morph-faq__trigger:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.morph-faq__number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--faq-accent);
  background: var(--faq-accent-soft);
}

.morph-faq__question {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--faq-fg);
}

.morph-faq__icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  flex-shrink: 0;
  color: var(--faq-fg-soft);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform-origin: 50% 50%;
  will-change: transform;
  box-sizing: border-box;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph-faq__trigger:hover .morph-faq__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--faq-fg);
}

.morph-faq__panel {
  position: relative;
  z-index: 2;
  height: 0;
  overflow: hidden;
  will-change: height;
}

.morph-faq__content {
  margin-top: 10px;
  padding: 18px 22px 20px;
}

.morph-faq__answer {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--faq-fg-soft);
}

.morph-faq__line {
  overflow-x: visible;
  overflow-y: clip;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

@media (max-width: 767px) {
  .morph-faq {
    --faq-margin: 20px;
  }

  .morph-faq__stage::before {
    inset: -28px -16px;
    border-radius: 28px;
  }

  .morph-faq__trigger {
    padding: 15px 16px 15px 14px;
    gap: 12px;
    min-height: 56px;
  }

  .morph-faq__content {
    padding: 16px 18px 18px;
  }

  .morph-faq__question {
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  .morph-faq__number {
    display: none;
  }

  .morph-faq__trigger {
    padding-left: 18px;
  }
}
