/* /faq redesign — tokens from :root */
.fqx {
  --fqx-text: rgba(255, 255, 255, 0.92);
  --fqx-muted: rgba(255, 255, 255, 0.55);
  --fqx-faint: rgba(255, 255, 255, 0.35);
  max-width: var(--site-content-max, 1500px);
  margin: 0 auto;
  padding: 12px var(--site-gutter, 50px) 48px;
  color: var(--fqx-text);
  box-sizing: border-box;
}

.fqx *,
.fqx *::before,
.fqx *::after { box-sizing: border-box; }

@keyframes fqx-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fqx__anim {
  animation: fqx-rise 0.4s ease both;
}
.fqx__anim:nth-child(2) { animation-delay: 0.05s; }
.fqx__anim:nth-child(3) { animation-delay: 0.1s; }
.fqx__anim:nth-child(4) { animation-delay: 0.15s; }

/* Hero */
.fqx-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--global-border-radius, 20px);
  padding: 28px 28px 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--global-lime) 14%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--global-brand) 22%, transparent), transparent 50%),
    linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-classic) 100%);
}

.fqx-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--fqx-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.fqx-hero__back:hover { color: #fff; }

.fqx-hero__title {
  margin: 0 0 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.fqx-hero__sub {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fqx-muted);
}

.fqx-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 4px 4px 4px 16px;
  border-radius: var(--mini-border-radius, 10px);
  background: var(--bg-classic);
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.fqx-search:focus-within {
  border-color: color-mix(in srgb, var(--global-brand) 55%, transparent);
}

.fqx-search__ico {
  color: var(--global-brand);
  font-size: 15px;
  flex-shrink: 0;
}

.fqx-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 12px 0;
}
.fqx-search__input::placeholder { color: var(--fqx-faint); }

.fqx-search__clear {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--base-alfa-neutral);
  color: var(--fqx-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.fqx-search__clear.is-visible { display: inline-flex; }
.fqx-search__clear:hover { color: #fff; background: var(--base-alfa-neutral-hover); }

/* Layout: nav + content */
.fqx-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.fqx-nav {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
}

.fqx-nav__label {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fqx-faint);
}

.fqx-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border: none;
  border-radius: var(--mini-border-radius, 10px);
  background: transparent;
  color: var(--fqx-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.fqx-nav__btn:hover {
  background: var(--base-alfa-neutral-hover);
  color: #fff;
}
.fqx-nav__btn.is-active {
  background: color-mix(in srgb, var(--global-brand) 18%, transparent);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--global-brand);
}

.fqx-nav__count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--fqx-faint);
  font-variant-numeric: tabular-nums;
}
.fqx-nav__btn.is-active .fqx-nav__count { color: var(--global-lime); }

.fqx-nav__ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--base-alfa-neutral);
  color: var(--global-brand);
  font-size: 13px;
  flex-shrink: 0;
}

/* Panels */
.fqx-panel {
  margin-bottom: 18px;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
  padding: 8px;
  scroll-margin-top: 20px;
}

.fqx-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 10px;
}

.fqx-panel__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--base-alfa-neutral);
  color: var(--global-lime);
  font-size: 15px;
}

.fqx-panel__title {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fqx-panel__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Accordion item */
.fqx-item {
  border-radius: var(--mini-border-radius, 10px);
  background: var(--under-seconadary);
  overflow: hidden;
  transition: background 0.15s ease;
}
.fqx-item.is-open {
  background: var(--base-neutral);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--global-brand) 35%, transparent);
}
.fqx-item.is-hidden { display: none; }

.fqx-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.fqx-item__btn:hover { background: var(--base-alfa-neutral-hover); }

.fqx-item__chev {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fqx-faint);
  border-bottom: 2px solid var(--fqx-faint);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.fqx-item.is-open .fqx-item__chev {
  transform: rotate(225deg);
  margin-top: 2px;
  border-color: var(--global-brand);
}

.fqx-item__body {
  display: none;
  padding: 0 16px 16px;
  color: var(--fqx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.fqx-item.is-open .fqx-item__body { display: block; }
.fqx-item__body p { margin: 0; }

/* Empty search */
.fqx-empty {
  display: none;
  padding: 28px 16px;
  text-align: center;
  color: var(--fqx-muted);
  font-size: 14px;
  border-radius: var(--global-border-radius, 20px);
  background: var(--bg-secondary);
}
.fqx-empty.is-visible { display: block; }

/* Support CTA */
.fqx-support {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--global-border-radius, 20px);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--global-brand) 16%, var(--bg-secondary)), var(--bg-secondary));
}

.fqx-support__title {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}

.fqx-support__text {
  margin: 0;
  font-size: 13px;
  color: var(--fqx-muted);
}

.fqx-support__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--mini-border-radius, 10px);
  border: none;
  background: var(--global-brand);
  color: #04140a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.fqx-support__btn:hover {
  background: var(--global-lime);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .fqx-layout {
    grid-template-columns: 1fr;
  }
  .fqx-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .fqx-nav__label { display: none; }
  .fqx-nav__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .fqx-nav__btn.is-active {
    box-shadow: none;
    background: color-mix(in srgb, var(--global-brand) 22%, transparent);
  }
}

@media (max-width: 768px) {
  .fqx { padding: 8px var(--site-gutter, 15px) 36px; }
  .fqx-hero { padding: 22px 18px; }
}
