
/* --- Base Block Styles --- */
.faq-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    color: #ffffff;
    padding-top: 150px;
}

.faq-block__title {
    font-size: 48px;
    line-height: 100%;
    font-weight: 500;
}

.faq-block__list {
    display: flex;
    flex-direction: column;
    gap: 0; 
}

/* --- Group Layout --- */
.faq-block__group {
    display: flex;
    flex-direction: row;
    gap: 126px; /* Большой отступ между названием категории и вопросами */
    padding: 40px 0;
}

.faq-block__category-col {
    width: 282px;
    flex-shrink: 0;
}

.faq-block__category-title {
    font-size: 24px;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.5);
}

.faq-block__items-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- FAQ Item --- */
.faq-block__item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-block__question {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start; /* Выравнивание по верху, если вопрос длинный */
    cursor: pointer;
    justify-content: space-between;
}

.faq-block__question-text {
    flex: 1;
    font-size: 32px;
    line-height: 100%;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover effect on question text */
.faq-block__question:hover .faq-block__question-text {
    color: var(--lime);
}

/* --- Toggle Icon --- */
.faq-block__toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

/* Icon visibility toggle */
.faq-block__toggle-icon .icon-opened {
    display: none;
}
.faq-block__toggle-icon .icon-closed {
    display: block;
}

/* --- Open State Styles --- */
.faq-block__item.is-open .faq-block__toggle-icon {
    background:var(--lime)
}

.faq-block__item.is-open .faq-block__toggle-icon .icon-closed {
    display: none;
}
.faq-block__item.is-open .faq-block__toggle-icon .icon-opened {
    display: block;
}

.faq-block__item.is-open .faq-block__question-text {
    /* Опционально: можно оставить белым или сделать зеленым */
}

/* --- Answer Content --- */
.faq-block__answer-wrapper {
    /* Скрыто по умолчанию, управляется JS */
}

.faq-block__answer {
    padding-top: 16px;
    padding-right: 80px; /* Отступ справа, чтобы текст не был слишком широким */
    font-size: 16px;
    line-height: 130%;
    color: #ffffff;
    max-width: 800px;
}

.faq-block__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}
/* Скрываем последний разделитель */
.faq-block__group:last-child + .faq-block__divider {
    display: none;
}

/* --- Mobile Adaptation --- */
@media (max-width: 1100px) {
    .faq-block__group {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
    }
    
    .faq-block__category-col {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .faq-block__title {
        font-size: 32px;
    }

    .faq-block__category-title {
        font-size: 18px;
    }

    .faq-block__question {
        gap: 16px;
        align-items: center; /* Центрирование иконки по высоте на моб */
    }

    .faq-block__question-text {
        font-size: 20px;
        line-height: 120%;
    }

    .faq-block__toggle-icon {
        width: 32px;
        height: 32px;
    }
    
    .faq-block__answer {
        font-size: 14px;
        padding-right: 0;
    }
}
