/* FAQ page styles - depends on css/style.css */

.faq-page {
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 32%),
        linear-gradient(180deg, #faf7ff 0%, #ffffff 28%, #ffffff 100%);
}

.faq-hero {
    padding: 145px 0 56px;
}

.faq-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: start;
}

.faq-hero__content h1 {
    font-size: clamp(2.4rem, 4.8vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1a1033;
    margin: 18px 0 18px;
}

.faq-hero__content p {
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 660px;
    color: #4a4565;
}

.faq-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.faq-hero__panel {
    display: grid;
    gap: 18px;
}

.faq-hero__card,
.faq-hero__stats,
.faq-sidebar__box,
.faq-topic,
.faq-item,
.faq-cta__box {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ebe4fb;
    border-radius: 24px;
    box-shadow: 0 24px 60px -42px rgba(76, 29, 149, 0.45);
}

.faq-hero__card {
    padding: 28px;
}

.faq-hero__label,
.faq-sidebar__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 18px;
}

.faq-hero__list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.faq-hero__list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #faf7ff;
    color: #2f2250;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.faq-hero__list a::after {
    content: '->';
    color: #7c3aed;
}

.faq-hero__list a:hover {
    transform: translateX(4px);
    background: #f2ebff;
    color: #1a1033;
}

.faq-hero__stats {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.faq-hero__stats div {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.92));
}

.faq-hero__stats strong,
.faq-topic h2,
.faq-sidebar__box h2,
.faq-group__header h2,
.faq-cta__box h2 {
    display: block;
    color: #1a1033;
}

.faq-hero__stats strong {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.faq-hero__stats span {
    color: #5a5475;
    line-height: 1.55;
}

.faq-categories {
    padding: 0 0 36px;
}

.faq-categories__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.faq-topic {
    padding: 24px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.faq-topic span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #f4edff;
    color: #7c3aed;
    font-weight: 800;
    margin-bottom: 18px;
}

.faq-topic h2 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.faq-topic p {
    color: #5a5475;
    line-height: 1.6;
}

.faq-topic:hover {
    transform: translateY(-4px);
    border-color: #d8ccf8;
    box-shadow: 0 28px 50px -38px rgba(76, 29, 149, 0.38);
}

.faq-content {
    padding: 30px 0 110px;
}

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

.faq-sidebar {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 18px;
}

.faq-sidebar__box {
    padding: 24px;
}

.faq-sidebar__box h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.faq-sidebar__box p {
    color: #5a5475;
    line-height: 1.7;
    margin-bottom: 18px;
}

.faq-sidebar__box--accent {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.faq-sidebar__nav {
    display: grid;
    gap: 10px;
}

.faq-sidebar__nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8f5ff;
    color: #342657;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.faq-sidebar__nav a:hover {
    background: #efe7ff;
    color: #1a1033;
    transform: translateX(4px);
}

.faq-groups {
    display: grid;
    gap: 24px;
}

.faq-group {
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #ece6fb;
}

.faq-group__header {
    margin-bottom: 20px;
}

.faq-group__header h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: 14px 0 10px;
    letter-spacing: -0.025em;
}

.faq-group__header p {
    color: #5a5475;
    line-height: 1.7;
    max-width: 720px;
}

.faq-item {
    margin-top: 14px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 72px 24px 24px;
    position: relative;
    font-size: 1.04rem;
    line-height: 1.5;
    font-weight: 700;
    color: #1f153a;
}

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

.faq-item summary::before,
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 28px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #7c3aed;
    transition: transform .2s ease;
}

.faq-item summary::after {
    transform: rotate(90deg);
}

.faq-item[open] summary::after {
    transform: rotate(0deg);
}

.faq-item__content {
    padding: 0 24px 24px;
}

.faq-item__content p,
.faq-item__content a {
    font-size: 1rem;
    line-height: 1.75;
}

.faq-item__content p {
    color: #4f486c;
}

.faq-item__content a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-cta {
    padding-bottom: 110px;
}

.faq-cta__box {
    padding: 42px;
    background: linear-gradient(135deg, #ffffff 0%, #f5efff 100%);
    text-align: center;
}

.faq-cta__box h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    letter-spacing: -0.03em;
    margin: 16px 0 12px;
}

.faq-cta__box p {
    max-width: 720px;
    margin: 0 auto;
    color: #544d70;
    line-height: 1.8;
}

.faq-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

@media (max-width: 1180px) {
    .faq-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .faq-layout,
    .faq-hero__inner {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .faq-hero {
        padding-top: 124px;
    }

    .faq-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-group,
    .faq-cta__box,
    .faq-hero__card,
    .faq-sidebar__box {
        padding: 24px;
    }

    .faq-item summary {
        padding: 20px 62px 20px 20px;
    }

    .faq-item__content {
        padding: 0 20px 20px;
    }
}

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

    .faq-hero__actions,
    .faq-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-group {
        padding: 22px;
        border-radius: 22px;
    }

    .faq-topic {
        padding: 20px;
    }

    .faq-hero__stats div {
        padding: 16px;
    }
}
