/* Стили для FAQ секции */

/* Основные стили FAQ секции */
.faq-section {
    background-color: var(--color-dark);
    color: var(--color-primary);
    padding: 80px 0;
}

/* Контент FAQ */
.faq-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 80px;
}

/* Левая часть с заголовком */
.faq-header {
    flex: 0 0 234px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.faq-badge {
    color: #FFDB92;
    font-size: 16px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.48px;
}

.faq-title {
    color: var(--color-primary);
    font-size: 36px;
    font-family: 'Dela Gothic One', cursive;
    font-weight: 400;
    line-height: 39.6px;
    margin: 0;
}

/* Правая часть с аккордеоном */
.faq-accordion {
    flex: 1;
    max-width: 723px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Элементы аккордеона */
.faq-item {
    background: rgba(250, 250, 250, 0.02);
    border-radius: 12px;
    border: 2px solid rgba(250, 250, 250, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(250, 250, 250, 0.06);
    background: rgba(250, 250, 250, 0.04);
}

.faq-item.active {
    border-color: rgba(250, 250, 250, 0.08);
    background: rgba(250, 250, 250, 0.06);
}

/* Вопрос */
.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 66px;
    box-sizing: border-box;
}

.faq-question:hover {
    background: rgba(250, 250, 250, 0.02);
}

.faq-question-text {
    color: var(--color-primary);
    font-size: 18px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    line-height: 18px;
    flex: 1;
    padding-right: 20px;
}

/* Кнопка переключения */
.faq-toggle {
    width: 40px;
    height: 40px;
    background: rgba(250, 250, 250, 0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle:hover {
    background: rgba(250, 250, 250, 0.08);
    transform: scale(1.05);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 20px 24px;
    color: rgba(250, 250, 250, 0.64);
    font-size: 16px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    line-height: 25.6px;
}

/* Адаптивные стили для планшетов */
@media (max-width: 991px) {
    .faq-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .faq-header {
        flex: none;
        text-align: center;
        align-items: center;
        max-width: 100%;
        justify-content: flex-start;
    }

    .faq-accordion {
        max-width: 100%;
    }

    .faq-title {
        font-size: 32px;
        line-height: 35.2px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-content {
        gap: 32px;
    }

    .faq-header {
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .faq-badge {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0.42px;
    }

    .faq-title {
        font-size: 24px;
        line-height: 26.4px;
    }

    .faq-accordion {
        gap: 12px;
    }

    .faq-question {
        padding: 16px;
        min-height: 56px;
    }

    .faq-question-text {
        font-size: 16px;
        line-height: 22.4px;
        padding-right: 16px;
    }

    .faq-toggle {
        width: 36px;
        height: 36px;
    }

    .faq-arrow {
        width: 20px;
        height: 20px;
    }

    .faq-answer-content {
        padding: 0 16px 20px;
        font-size: 14px;
        line-height: 22.4px;
    }

    .faq-item.active .faq-answer {
        max-height: 400px;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 576px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-title {
        font-size: 20px;
        line-height: 22px;
    }

    .faq-question {
        padding: 14px;
        min-height: 52px;
    }

    .faq-question-text {
        font-size: 14px;
        line-height: 19.6px;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
    }

    .faq-arrow {
        width: 18px;
        height: 18px;
    }

    .faq-answer-content {
        font-size: 13px;
        line-height: 20.8px;
        padding: 0 14px 16px;
    }
}