.mc-faq {
    --faq-ink: #17233c;
    --faq-muted: #667085;
    --faq-line: #e7eaf0;
    --faq-primary: #3157d5;
    --faq-primary-soft: #eef2ff;
    --faq-success: #15803d;
    --faq-danger: #c2415b;
    color: var(--faq-ink);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 2rem);
}

.mc-faq [hidden] {
    display: none !important;
}

.mc-faq__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, .6fr);
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 15%, rgba(125, 211, 252, .28), transparent 28%),
        linear-gradient(135deg, #172554 0%, #293d98 58%, #3157d5 100%);
    box-shadow: 0 24px 70px rgba(26, 46, 112, .2);
}

.mc-faq__hero::after {
    position: absolute;
    inset-inline-end: -80px;
    inset-block-end: -120px;
    width: 320px;
    height: 320px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 84px rgba(255, 255, 255, .03);
}

.mc-faq__hero-content,
.mc-faq__summary {
    position: relative;
    z-index: 1;
}

.mc-faq__eyebrow {
    display: inline-flex;
    margin-bottom: .8rem;
    padding: .35rem .75rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .1);
}

.mc-faq__hero h1 {
    max-width: 720px;
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.mc-faq__hero p {
    max-width: 640px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    line-height: 1.8;
}

.mc-faq__search {
    display: flex;
    align-items: center;
    max-width: 610px;
    margin-top: 1.8rem;
    padding: 0 .9rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
}

.mc-faq__search:focus-within {
    border-color: rgba(255, 255, 255, .7);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.mc-faq__search svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.mc-faq__search input {
    width: 100%;
    padding: .95rem .8rem;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.mc-faq__search input::placeholder {
    color: rgba(255, 255, 255, .65);
}

.mc-faq__summary {
    align-self: end;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .15rem .7rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(9, 18, 55, .24);
    backdrop-filter: blur(14px);
}

.mc-faq__summary strong {
    grid-row: span 2;
    font-size: 2rem;
    line-height: 1;
}

.mc-faq__summary span {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.mc-faq__summary i {
    grid-column: 1 / -1;
    height: 1px;
    margin: .8rem 0;
    background: rgba(255, 255, 255, .14);
}

.mc-faq__layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: clamp(2rem, 5vw, 4rem);
}

.mc-faq__nav {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    display: grid;
    gap: .35rem;
}

.mc-faq__nav > span {
    margin-bottom: .45rem;
    color: var(--faq-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mc-faq__nav button {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .75rem .85rem;
    border: 0;
    border-radius: 10px;
    color: var(--faq-muted);
    font: inherit;
    font-weight: 600;
    text-align: start;
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}

.mc-faq__nav button:hover,
.mc-faq__nav button:focus-visible,
.mc-faq__nav button.is-active {
    color: var(--faq-primary);
    background: var(--faq-primary-soft);
}

.mc-faq__nav button.is-active {
    box-shadow: inset 3px 0 0 var(--faq-primary);
}

.mc-faq__nav small {
    min-width: 25px;
    height: 25px;
    padding: .25rem;
    border-radius: 50%;
    color: var(--faq-primary);
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(49, 87, 213, .12);
}

.mc-faq__category {
    scroll-margin-top: 2rem;
    margin-bottom: 3rem;
}

.mc-faq__category-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.mc-faq__category-heading span {
    color: var(--faq-primary);
    font-size: .78rem;
    font-weight: 800;
}

.mc-faq__category-heading h2 {
    margin: 0;
    color: var(--faq-ink);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
}

.mc-faq__item {
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid var(--faq-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(23, 35, 60, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mc-faq__item:has(.mc-faq__question[aria-expanded="true"]) {
    border-color: #cfd7f7;
    box-shadow: 0 14px 36px rgba(49, 87, 213, .09);
}

.mc-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 1.25rem;
    border: 0;
    color: var(--faq-ink);
    font: inherit;
    font-weight: 750;
    text-align: start;
    background: transparent;
    cursor: pointer;
}

.mc-faq__question i {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--faq-primary-soft);
}

.mc-faq__question i::before,
.mc-faq__question i::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 10px;
    height: 2px;
    content: "";
    background: var(--faq-primary);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.mc-faq__question i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mc-faq__question[aria-expanded="true"] i::after {
    transform: translate(-50%, -50%) rotate(0);
}

.mc-faq__answer {
    border-top: 1px solid var(--faq-line);
}

.mc-faq__answer-body {
    padding: 1.35rem 1.4rem;
    color: #4b5565;
    line-height: 1.9;
}

.mc-faq__answer-body > :last-child {
    margin-bottom: 0;
}

.mc-faq__feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.4rem;
    border-top: 1px dashed var(--faq-line);
    background: #fafbfc;
}

.mc-faq__feedback > span {
    margin-inline-end: auto;
    color: var(--faq-muted);
    font-size: .88rem;
    font-weight: 600;
}

.mc-faq__vote-group {
    display: flex;
    gap: .55rem;
}

.mc-faq__vote {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 38px;
    padding: .45rem .65rem;
    border: 1px solid var(--faq-line);
    border-radius: 999px;
    color: var(--faq-muted);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}

.mc-faq__vote svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.mc-faq__vote strong {
    min-width: 24px;
    padding: .1rem .35rem;
    border-radius: 999px;
    text-align: center;
    background: #f1f3f7;
}

.mc-faq__vote--like:hover,
.mc-faq__vote--like.is-selected {
    border-color: #a7dfb8;
    color: var(--faq-success);
    background: #f0fdf4;
}

.mc-faq__vote--dislike:hover,
.mc-faq__vote--dislike.is-selected {
    border-color: #f2b9c5;
    color: var(--faq-danger);
    background: #fff1f3;
}

.mc-faq__vote:disabled {
    cursor: wait;
    opacity: .65;
}

.mc-faq__vote.is-loading svg {
    animation: mc-faq-pulse .7s ease-in-out infinite alternate;
}

.mc-faq__vote-status {
    flex-basis: 100%;
    min-height: 1.1em;
    color: var(--faq-success);
    text-align: end;
}

.mc-faq__vote-status.is-error {
    color: var(--faq-danger);
}

.mc-faq__no-results,
.mc-faq__empty {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 2rem;
    border: 1px dashed #cfd5df;
    border-radius: 20px;
    color: var(--faq-muted);
    text-align: center;
    background: #fafbfc;
}

.mc-faq__no-results strong,
.mc-faq__empty h2 {
    color: var(--faq-ink);
    font-size: 1.25rem;
}

.mc-faq__empty {
    margin-top: 2rem;
}

.mc-faq__empty > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: var(--faq-primary);
    font-size: 2rem;
    font-weight: 800;
    background: var(--faq-primary-soft);
}

@keyframes mc-faq-pulse {
    to {
        transform: scale(1.2);
    }
}

@media (max-width: 860px) {
    .mc-faq__hero {
        grid-template-columns: 1fr;
    }

    .mc-faq__summary {
        display: none;
    }

    .mc-faq__layout {
        grid-template-columns: 1fr;
    }

    .mc-faq__nav {
        position: static;
        display: flex;
        overflow-x: auto;
        padding-bottom: .5rem;
    }

    .mc-faq__nav > span {
        display: none;
    }

    .mc-faq__nav button {
        flex: 0 0 auto;
        width: auto;
        border: 1px solid var(--faq-line);
    }
}

@media (max-width: 560px) {
    .mc-faq {
        padding: .75rem;
    }

    .mc-faq__hero {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .mc-faq__feedback {
        align-items: flex-start;
        flex-direction: column;
    }

    .mc-faq__feedback > span {
        margin-inline-end: 0;
    }

    .mc-faq__vote-group {
        width: 100%;
    }

    .mc-faq__vote {
        justify-content: center;
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-faq *,
    .mc-faq *::before,
    .mc-faq *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
