/* FAQ page */
.faq-page {
    color: white;
}
.faq-page .container { }
.faq-page h1 {
    font-weight: 700;
    font-size: 56px;
    line-height: 64px;
}

.faq-page .main-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--grey-text);
    margin-bottom: 52px
}

/* Wrapper */
.faqs-wrapper {display: flex;flex-direction: row;flex-wrap: wrap;justify-content: space-between;gap: 32px;}

/* Category block */
.faq-blok {
    padding: 48px!important;
    gap:  32px!important;
    width: calc(50% - 16px);
}

.faq-blok[data-depth="0"] { }
.faq-blok[data-depth="1"] { }

/* Category title */
.faq-cat-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
}

/* List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Single FAQ item */
.faq {
    display: flex;
    flex-direction: column;
    opacity: 1;
    border-radius: 20px;
    padding: 20px 24px;
    background-color: var(--blue-2);
    justify-content: space-between;
    gap: 24px;
}

/* Question */
.question {
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: rgba(41, 96, 135, 0.3);
    touch-action: manipulation;
    transition: opacity 0.2s ease;
}

.question:after {
    content: "";
    display: block;
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-image: url("../images/caret-d.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.3s ease;
}

.question[aria-expanded="true"]:after
{
    transform: rotate(180deg);
}

/* Hover только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .question:hover {
        opacity: 0.8;
    }
}

/* Active для touch устройств */
.question:active {
    opacity: 0.7;
}

/* Answer */
.answer {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--grey-text);
}

/* Empty state */
.faq-empty { }

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
    /* Page title */
    .faq-page h1 {
        font-size: 40px;
        line-height: 48px;
    }
    
    .faq-page .main-text {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 40px;
    }
    
    /* Wrapper - вертикальное расположение */
    .faqs-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    /* Category block - на всю ширину */
    .faq-blok {
        width: 100%;
        padding: 40px !important;
        gap: 28px !important;
    }
    
    /* Category title */
    .faq-cat-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    /* List */
    .faq-list {
        gap: 20px;
    }
    
    /* Single FAQ item */
    .faq {
        padding: 18px 20px;
        gap: 20px;
        border-radius: 18px;
    }
    
    /* Question */
    .question {
        font-size: 18px;
        line-height: 22px;
        gap: 16px;
    }
    
    .question:after {
        width: 22px;
        min-width: 22px;
        height: 22px;
    }
    
    /* Answer */
    .answer {
        font-size: 15px;
        line-height: 22px;
    }
}

@media (max-width: 768px) {
    /* Page title */
    .faq-page h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .faq-page .main-text {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 32px;
    }
    
    /* Wrapper */
    .faqs-wrapper {
        gap: 20px;
    }
    
    /* Category block */
    .faq-blok {
        padding: 32px 24px !important;
        gap: 24px !important;
    }
    
    /* Category title */
    .faq-cat-title {
        font-size: 22px;
        line-height: 30px;
    }
    
    /* List */
    .faq-list {
        gap: 16px;
    }
    
    /* Single FAQ item */
    .faq {
        padding: 16px 18px;
        gap: 16px;
        border-radius: 16px;
    }
    
    /* Question */
    .question {
        font-size: 16px;
        line-height: 20px;
        gap: 12px;
    }
    
    .question:after {
        width: 20px;
        min-width: 20px;
        height: 20px;
    }
    
    /* Answer */
    .answer {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    /* Page title */
    .faq-page h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .faq-page .main-text {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 28px;
    }
    
    /* Wrapper */
    .faqs-wrapper {
        gap: 16px;
    }
    
    /* Category block */
    .faq-blok {
        padding: 24px 16px !important;
        gap: 20px !important;
        border-radius: 24px;
    }
    
    /* Category title */
    .faq-cat-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    /* List */
    .faq-list {
        gap: 12px;
    }
    
    /* Single FAQ item */
    .faq {
        padding: 14px 16px;
        gap: 14px;
        border-radius: 14px;
    }
    
    /* Question */
    .question {
        font-size: 15px;
        line-height: 20px;
        gap: 10px;
    }
    
    .question:after {
        width: 18px;
        min-width: 18px;
        height: 18px;
    }
    
    /* Answer */
    .answer {
        font-size: 14px;
        line-height: 20px;
    }
}
