.faq-page {
    --faq-accent: #e52535;
    --faq-accent-dark: #b81625;
    --faq-accent-soft: rgba(229, 37, 53, .09);
    --faq-bg: #f5f5f7;
    --faq-surface: #fff;
    --faq-surface-alt: #f9f9fa;
    --faq-text: #17171a;
    --faq-muted: #6c6c75;
    --faq-border: rgba(23, 23, 26, .1);
    --faq-shadow: 0 16px 45px rgba(23, 23, 26, .07);
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 0 40px;
    color: var(--faq-text);
    direction: rtl;
}

.theme-dark .faq-page {
    --faq-accent: #ff4d5d;
    --faq-accent-dark: #e52535;
    --faq-accent-soft: rgba(255, 77, 93, .12);
    --faq-bg: #151217;
    --faq-surface: #1c181e;
    --faq-surface-alt: #211c23;
    --faq-text: #f6f3f7;
    --faq-muted: #bbb3bd;
    --faq-border: rgba(255, 255, 255, .09);
    --faq-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

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

.faq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 2px 12px;
    color: var(--faq-muted);
    font-size: .73rem;
}

.faq-breadcrumb a {
    color: var(--faq-muted) !important;
    font-size: .73rem !important;
    text-decoration: none !important;
}

.faq-breadcrumb a:hover {
    color: var(--faq-accent) !important;
}

.faq-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
    min-height: 380px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 18%, rgba(229, 37, 53, .28), transparent 30%),
        linear-gradient(135deg, #161217 0%, #24171d 52%, #111013 100%);
    color: #fff;
    box-shadow: var(--faq-shadow);
}

.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
    pointer-events: none;
}

.faq-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 46px;
}

.faq-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 10px;
    color: #ff9aa3;
    font-size: .76rem;
    font-weight: 800;
}

.faq-hero__eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--faq-accent);
}

.faq-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.7rem) !important;
    line-height: 1.45;
}

.faq-hero__content > p {
    max-width: 600px;
    margin: 12px 0 24px;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    line-height: 2;
}

.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 610px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.faq-search:focus-within {
    border-color: rgba(255, 77, 93, .9);
    box-shadow: 0 0 0 3px rgba(255, 77, 93, .14);
}

.faq-search__icon {
    flex: 0 0 48px;
    width: 18px;
    height: 18px;
    margin-right: 18px;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
}

.faq-search__icon::after {
    content: "";
    position: absolute;
    top: 33px;
    right: 31px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .78);
    transform: rotate(-45deg);
}

.faq-search input {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: .86rem;
}

.faq-search input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.faq-search input::-webkit-search-cancel-button {
    display: none;
}

.faq-search button {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.faq-hero__stats {
    display: flex;
    gap: 22px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .62);
    font-size: .72rem;
}

.faq-hero__stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.faq-hero__stats strong {
    color: #fff;
    font-size: .95rem;
}

.faq-hero__visual {
    position: relative;
    min-height: 100%;
}

.faq-hero__mark {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, .92);
    font-size: 11rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 22px 60px rgba(0, 0, 0, .32);
    transform: translate(-50%, -52%) rotate(-6deg);
}

.faq-hero__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.faq-hero__orbit--one {
    width: 250px;
    height: 250px;
}

.faq-hero__orbit--two {
    width: 330px;
    height: 330px;
}

.faq-hero__dot {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    background: var(--faq-accent);
    box-shadow: 0 0 0 8px rgba(229, 37, 53, .14);
}

.faq-hero__dot--one {
    top: 24%;
    right: 10%;
    width: 11px;
    height: 11px;
}

.faq-hero__dot--two {
    right: 34%;
    bottom: 19%;
    width: 7px;
    height: 7px;
}

.faq-category-bar {
    position: sticky;
    z-index: 10;
    top: 68px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 14px 0 24px;
    padding: 7px;
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--faq-surface) 92%, transparent);
    box-shadow: 0 10px 30px rgba(23, 23, 26, .05);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.faq-category-bar::-webkit-scrollbar {
    display: none;
}

.faq-category {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--faq-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.faq-category:hover {
    background: var(--faq-bg);
    color: var(--faq-text);
}

.faq-category.is-active {
    background: var(--faq-text);
    color: var(--faq-surface);
    box-shadow: 0 7px 18px rgba(23, 23, 26, .14);
}

.theme-dark .faq-category.is-active {
    background: var(--faq-accent);
    color: #fff;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: start;
}

.faq-content {
    min-width: 0;
}

.faq-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    margin-bottom: 9px;
    color: var(--faq-muted);
    font-size: .73rem;
}

.faq-results button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--faq-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 800;
}

.faq-group {
    margin-bottom: 20px;
    scroll-margin-top: 135px;
}

.faq-group__heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    padding: 0 4px;
}

.faq-group__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--faq-accent-soft);
}

.faq-group__icon::before,
.faq-group__icon::after {
    content: "";
    position: absolute;
    border-radius: 2px;
    background: var(--faq-accent);
}

.faq-group__icon::before {
    width: 16px;
    height: 2px;
}

.faq-group__icon::after {
    width: 2px;
    height: 16px;
}

.faq-group__heading h2 {
    margin: 0;
    color: var(--faq-text);
    font-size: 1rem !important;
    line-height: 1.6;
}

.faq-group__heading p {
    margin: 1px 0 0;
    color: var(--faq-muted);
    font-size: .68rem;
}

.faq-group__count {
    padding: 4px 8px;
    border: 1px solid var(--faq-border);
    border-radius: 999px;
    color: var(--faq-muted);
    font-size: .65rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--faq-border);
    border-radius: 11px;
    background: var(--faq-surface);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-item:hover {
    border-color: color-mix(in srgb, var(--faq-accent) 30%, var(--faq-border));
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--faq-accent) 48%, var(--faq-border));
    box-shadow: var(--faq-shadow);
}

.faq-item summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 9px 13px;
    color: var(--faq-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--faq-accent);
    outline-offset: -3px;
}

.faq-item__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--faq-accent-soft);
    color: var(--faq-accent);
    font-size: .7rem;
    font-weight: 900;
}

.faq-item__question {
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.8;
}

.faq-item__toggle {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--faq-bg);
}

.faq-item__toggle::before,
.faq-item__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--faq-text);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

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

.faq-item[open] .faq-item__toggle {
    background: var(--faq-accent);
}

.faq-item[open] .faq-item__toggle::before,
.faq-item[open] .faq-item__toggle::after {
    background: #fff;
}

.faq-item[open] .faq-item__toggle::after {
    transform: translate(-50%, -50%);
}

.faq-item__answer {
    margin: 0 58px 0 13px;
    padding: 0 0 17px;
    border-top: 1px solid var(--faq-border);
}

.faq-item__answer p {
    margin: 13px 0 8px;
    color: var(--faq-muted);
    font-size: .8rem;
    line-height: 2.05;
}

.faq-item__answer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--faq-accent) !important;
    font-size: .75rem !important;
    text-decoration: none !important;
}

.faq-item__answer a:hover span {
    transform: translateX(-3px);
}

.faq-item__answer a span {
    transition: transform .2s ease;
}

.faq-aside {
    position: sticky;
    top: 133px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-aside__card {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--faq-border);
    border-radius: 13px;
    background: var(--faq-surface);
}

.faq-aside__card--dark {
    position: relative;
    border-color: transparent;
    background: #171419;
    color: #fff;
}

.faq-aside__card--dark::after {
    content: "؟";
    position: absolute;
    left: -8px;
    bottom: -56px;
    color: rgba(255, 255, 255, .045);
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-8deg);
}

.faq-aside__label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 6px;
    color: var(--faq-accent);
    font-size: .68rem;
    font-weight: 800;
}

.faq-aside__card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-size: 1.05rem !important;
}

.faq-aside__card--dark p {
    position: relative;
    z-index: 1;
    margin: 8px 0 14px;
    color: rgba(255, 255, 255, .65);
    font-size: .74rem;
    line-height: 1.9;
}

.faq-aside__card--dark > a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--faq-accent-dark);
    color: #fff !important;
    font-size: .76rem !important;
    text-decoration: none !important;
}

.faq-aside__card--dark small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, .45);
    font-size: .62rem;
}

.faq-quick-links {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.faq-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--faq-border);
    color: var(--faq-text) !important;
    font-size: .75rem !important;
    text-decoration: none !important;
}

.faq-quick-links a:last-child {
    border-bottom: 0;
}

.faq-quick-links a > span:last-child {
    color: var(--faq-accent);
}

.faq-empty {
    padding: 42px 20px;
    border: 1px dashed var(--faq-border);
    border-radius: 14px;
    background: var(--faq-surface);
    text-align: center;
}

.faq-empty > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--faq-accent-soft);
    color: var(--faq-accent);
    font-size: 1.6rem;
    font-weight: 900;
}

.faq-empty h2 {
    color: var(--faq-text);
    font-size: 1rem !important;
}

.faq-empty p {
    margin: 6px 0 14px;
    color: var(--faq-muted);
    font-size: .75rem;
}

.faq-empty button {
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--faq-accent);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 800;
}

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

.faq-page .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 850px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .faq-page {
        padding-top: 4px;
    }

    .faq-breadcrumb {
        margin-right: 6px;
    }

    .faq-hero {
        grid-template-columns: 1fr;
        min-height: 410px;
        border-radius: 13px;
    }

    .faq-hero__content {
        justify-content: flex-end;
        padding: 28px 20px;
    }

    .faq-hero__content > p {
        margin-bottom: 17px;
        font-size: .8rem;
    }

    .faq-hero__visual {
        position: absolute;
        inset: 0;
        opacity: .24;
    }

    .faq-hero__mark {
        top: 33%;
        left: 20%;
        font-size: 9rem;
    }

    .faq-search {
        height: 54px;
    }

    .faq-hero__stats {
        margin-top: 14px;
    }

    .faq-category-bar {
        top: 58px;
        margin: 9px 0 19px;
        border-radius: 10px;
    }

    .faq-category {
        min-height: 36px;
        padding: 6px 11px;
        font-size: .7rem;
    }

    .faq-group {
        scroll-margin-top: 112px;
    }

    .faq-group__heading {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .faq-group__icon {
        width: 34px;
        height: 34px;
    }

    .faq-group__heading h2 {
        font-size: .9rem !important;
    }

    .faq-item summary {
        grid-template-columns: 30px minmax(0, 1fr) 24px;
        gap: 8px;
        min-height: 58px;
        padding: 8px 9px;
    }

    .faq-item__number {
        width: 30px;
        height: 30px;
    }

    .faq-item__question {
        font-size: .78rem;
    }

    .faq-item__answer {
        margin-right: 47px;
        padding-left: 2px;
    }

    .faq-item__answer p {
        font-size: .76rem;
    }

    .faq-aside {
        grid-template-columns: 1fr;
    }
}

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