.faq-section,
.faq-section *,
.faq-section *::before,
.faq-section *::after {
    box-sizing: border-box;
}

.faq-section {
    padding: 30px 0;
    background: #F5F3F3;
    overflow-x: hidden;
    scroll-margin-top: 20px;
}

.faq-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #0b4bd6;
    margin-bottom: 48px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: flex-start;
}

.faq-categories {
    width: 100%;
    position: sticky;
    top: 20px;
    z-index: 10;
    background: #F5F3F3;
}

.faq-category {
    width: 100%;
    padding: 16px 15px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #D2D2D2;
    text-align: left;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-category:last-child {
    border-bottom: none;
}

.faq-category:hover {
    background: #f0f0f0;
}

.faq-category.active {
    background: #0b4bd6;
    color: #ffffff;
}

.faq-panel {
    display: none;
}

.faq-panel.active {
    display: block;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.faq-question-text {
    flex: 1;
    text-align: left;
}

.faq-question .arrow {
    width: 26px;
    height: 26px;
    position: relative;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-question .arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
    font-size: 17px;
    line-height: 1.4;
    color: #444;
}

.faq-answer p {
    max-width: 684px;
    margin: 0;
    padding-bottom: 20px;
}

.faq-item.open .faq-question .arrow::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }

    .faq-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .faq-categories {
        display: flex;
        gap: 0;
        overflow-x: auto;
        margin-bottom: 0;
        position: sticky;
        top: 0;
        background: #F5F3F3;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 0;
    }

    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    .faq-category {
        flex: 0 0 auto;
        max-width: 180px;
        padding: 12px 16px;
        border: none;
        border-right: 1px solid #d2d2d2;
        text-align: center;
        font-size: 15px;
    }

    .faq-category:last-child {
        border-right: none;
    }

    .faq-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 14px;
    }
}