.faq-page { --faq-header-height: 82px; }
.faq-page::before,
.faq-page::after {
  --faq-side-space: max(4%, calc((100% - 1120px) / 2));
  width: min(176px, max(0px, calc(var(--faq-side-space) - 12px)));
  height: auto;
}
.faq-page::before { top: var(--faq-header-height); right: 0; aspect-ratio: 5 / 3; }
.faq-page::after { left: 0; aspect-ratio: 1; }
.faq-page .header { position: sticky; top: 0; z-index: 30; }
.faq-page main { padding-bottom: 64px; }
.faq-icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.faq-icon--asset { display: inline-grid; place-items: center; }
.faq-icon--asset > svg { display: block; width: 100%; height: 100%; }
.faq-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-block: 56px 48px; }
.faq-hero__copy { max-width: 620px; }
.faq-hero .eyebrow { margin-bottom: 16px; }
.faq-hero h1 { font-size: 2.8rem; line-height: 1.12; letter-spacing: 0; margin-bottom: 22px; }
.faq-hero__lead { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.faq-hero__art { min-width: 0; }
.faq-hero__art img { display: block; width: 90%; height: auto; margin-inline: auto; }
.faq-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-sidebar { position: sticky; top: calc(var(--faq-header-height) + 20px); padding: 14px; border-radius: 8px; background: #f8f5ff; }
.faq-navigation { display: grid; gap: 4px; }
.faq-navigation a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 17px; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--text-soft); font-size: .87rem; line-height: 1.4; }
.faq-navigation a > span:not(.faq-icon) { min-width: 0; white-space: nowrap; }
.faq-navigation a > .faq-icon:last-child { width: 17px; opacity: 0; }
.faq-navigation a[aria-current] { background: var(--violet); color: #fff; }
.faq-navigation a[aria-current] > .faq-icon:last-child { opacity: 1; }
.faq-navigation a:hover:not([aria-current]) { background: #eee8ff; }
.faq-sidebar__help { display: grid; grid-template-columns: 36px 1fr; gap: 12px 9px; background: #fff; padding: 16px 12px; border-radius: 8px; margin-top: 20px; }
.faq-help-icon { display: grid; place-items: center; height: 36px; border-radius: 50%; color: var(--violet); background: #f2edff; }
.faq-sidebar__help h2 { font-size: .85rem; line-height: 1.4; margin: 0; }
.faq-sidebar__help p, .faq-support-link { grid-column: 1 / -1; }
.faq-sidebar__help p { color: var(--text-soft); font-size: .8rem; }
.faq-support-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 5px; border-radius: 8px; background: #f4efff; color: var(--violet); font-size: .75rem; }
.faq-support-link .faq-icon { width: 16px; height: 16px; }
.faq-sections { display: grid; gap: 20px; min-width: 0; }
.faq-category { padding: 22px; border: 1px solid #e4e4f1; border-radius: 8px; background: #fff; scroll-margin-top: calc(var(--faq-header-height) + 20px); }
.faq-category h2 { margin: 0; }
.faq-category__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; font: inherit; text-align: left; background: none; color: var(--text); }
.faq-category__toggle:disabled { opacity: 1; cursor: default; }
.faq-category__badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #f1ebff; color: var(--violet); flex: none; }
.faq-category__name { flex: 1; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.faq-category__count { font-size: .72rem; font-weight: 400; color: var(--text-soft); white-space: nowrap; }
.faq-category__toggle > .faq-icon { display: none; }
.faq-category__panel { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .25s ease, opacity .2s ease; }
.faq-category__inner { min-height: 0; overflow: hidden; padding-top: 16px; transition: padding-top .25s ease; }
.faq-question { border: 1px solid #e5e5f2; border-radius: 8px; margin-bottom: 7px; overflow: hidden; }
.faq-question:last-child { margin-bottom: 0; }
.faq-question summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; font-size: .88rem; line-height: 1.5; }
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary .faq-icon { width: 18px; height: 18px; color: #615b85; transition: transform .2s ease; }
.faq-question[open] summary .faq-icon { transform: rotate(180deg); }
.faq-question summary:hover { background: #fcfaff; }
.faq-answer { padding: 0 16px 17px; color: var(--text-soft); font-size: .85rem; line-height: 1.65; }
.faq-answer > * + * { margin-top: 12px; }
.faq-answer ul { padding-left: 22px; margin-bottom: 0; }
.faq-answer li + li { margin-top: 5px; }
.faq-answer a { color: #6433db; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.faq-page :is(button,a,summary):focus-visible { outline: 3px solid #9873ff; outline-offset: 3px; }
.faq-support { position: relative; isolation: isolate; overflow: hidden; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 300px; padding: 32px; background: #f6f2ff; border-radius: 8px; }
.faq-support__art { position: absolute; inset: 0; z-index: -1; min-width: 0; }
.faq-support__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 35%, rgba(255,255,255,.82) 65%); }
.faq-support__art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.faq-support__copy { grid-column: 2; }
.faq-support__copy .eyebrow { font-size: .7rem; margin-bottom: 12px; }
.faq-support__copy h2 { margin: 0 0 14px; font-size: 1.8rem; line-height: 1.2; letter-spacing: 0; }
.faq-support__copy > p:not(.eyebrow) { color: var(--text-soft); font-size: .9rem; margin-bottom: 20px; }
.faq-support__message { color: var(--text-soft); font-size: .9rem; margin-bottom: 20px; overflow-wrap: anywhere; }
.faq-support__message a { text-decoration: underline; text-underline-offset: 3px; }
.faq-email-copy { position: relative; }
.faq-email-copy .faq-email-copy__button {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer .faq-email-copy__button { color: #6433db; }
.faq-email-copy .faq-email-copy__button:hover { color: var(--accent-dark); }
.faq-email-copy .contacts-copy-status:not(:empty) { z-index: 5; background: #fff; }
.faq-support .button { gap: 12px; font-size: .85rem; }
.faq-support__art:empty { display: none; }
.faq-support:has(.faq-support__art:empty) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-hero:has(.faq-hero__art:empty) { grid-template-columns: minmax(0, 700px); } }
@media (max-width: 899px) {
  .faq-page::before, .faq-page::after { display: none; }
  .faq-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .faq-hero h1 { font-size: 2.3rem; max-width: 550px; }
  .faq-hero__art:empty { display: none; }
  .faq-hero__art { width: 100%; max-width: 580px; justify-self: center; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-sidebar { display: none; }
  .faq-category { padding: 18px; }
  .faq-category__toggle { cursor: pointer; gap: 10px; }
  .faq-category__toggle > .faq-icon { display: block; width: 18px; height: 18px; transition: transform .25s ease; }
  .faq-category__toggle[aria-expanded="true"] > .faq-icon { transform: rotate(180deg); }
  .faq-category[data-collapsed] .faq-category__panel { grid-template-rows: 0fr; opacity: 0; }
  .faq-category[data-collapsed] .faq-category__inner { padding-top: 0; }
  .faq-category__badge { width: 42px; height: 42px; }
  .faq-category__name { font-size: 1.05rem; }
  .faq-category__count { font-size: .68rem; }
  .faq-support { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .faq-support__copy { grid-column: 1; order: -1; padding: 28px 22px; }
  .faq-support__art { position: relative; inset: auto; z-index: 0; height: 220px; }
  .faq-support__art::after { display: none; }
  .faq-support__art img { object-position: 20% center; }
}
@media (max-width: 430px) {
  .faq-hero h1 { font-size: 2.15rem; max-width: 330px; }
  .faq-hero__lead { font-size: .95rem; }
  .faq-category { padding: 14px 12px; }
  .faq-category__count { display: none; }
  .faq-category__name { font-size: 1.04rem; }
  .faq-question summary { padding: 13px 12px; font-size: .85rem; }
  .faq-answer { padding-inline: 12px; }
  .faq-sections { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-page *, .faq-page *::before, .faq-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
