/* ============================================
   FAQ — секция «Часто задаваемые вопросы»
   ============================================ */

.faq {
    background: var(--surface-general-primary);
    padding: 64px 0;
}

.faq__container {
    max-width: 1472px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

/* ===== ЛЕВАЯ КОЛОНКА: ИНФО ===== */
.faq__info {
    width: 40%;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 48px;
    position: sticky;
    top: 150px;
}

.faq__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq__title {
    color: var(--base-neutral-lightest);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.faq__description {
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}


/* ===== ПРАВАЯ КОЛОНКА: АККОРДЕОН ===== */
.faq__accordion {
    flex: 1 1 0;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Пункт аккордеона */
.faq__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(250, 250, 250, 0.04);
    transition: background-color 300ms var(--easing-gentle);
}

.faq__item--open {
    background: rgba(250, 250, 250, 0.08);
}

/* Шапка (кнопка) */
.faq__item-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(250, 250, 250, 0.12);
    cursor: pointer;
    text-align: left;
    transition: border-color 300ms var(--easing-gentle);
}

.faq__item--open .faq__item-header {
    border-bottom-color: var(--border-secondary);
}

.faq__item-title {
    flex: 1 1 0;
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.faq__item-icon {
    display: flex;
    flex-shrink: 0;
    transition: transform 400ms var(--easing-gentle);
}

.faq__item-icon .icon {
    fill: var(--base-neutral-lightest);
}

.faq__item--open .faq__item-icon {
    transform: rotate(180deg);
}

/* Тело (контент) */
.faq__item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--easing-gentle);
}

.faq__item-content {
    padding: 12px;
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.faq__item-content p {
    margin: 0 0 8px;
}

.faq__item-content p:last-child {
    margin-bottom: 0;
}

/* ===== АДАПТИВ: ПЛАНШЕТ (835-1440) ===== */
@media (max-width: 1440px) {
    .faq {
        padding: 48px 0;
    }

    .faq__container {
        gap: 24px;
    }

    .faq__info {
        gap: 32px;
    }

    .faq__title {
        font-size: 24px;
    }

    .faq__description {
        font-size: 14px;
    }
}

/* ===== АДАПТИВ: МОБИЛЬНЫЙ (≤834) ===== */
@media (max-width: 834px) {
    .faq {
        padding: 32px 0;
    }

    .faq__container {
        flex-direction: column;
        gap: 32px;
    }

    .faq__info {
        width: 100%;
        gap: 24px;
        position: static;
    }

    .faq__header {
        gap: 16px;
    }

    .faq__title {
        font-size: 22px;
    }

    .faq__accordion {
        width: 100%;
    }

    .faq__button {
        width: 100%;
        justify-content: space-between;
    }

    .faq__button .button__label{
        margin: 0 auto;
    }
}