/* Блок FAQ */
.faq {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto; /* Отступ снизу, если блоков несколько */
    font-family: sans-serif;
}

.faq__title-section {
    font-size: clamp(
        22px,
        4vw,
        32px
    ); /* Адаптивный размер шрифта */
    font-family: 'Arimo', sans-serif;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

/* Элемент списка */
.faq__item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* Закругления 15px */
    overflow: hidden;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

/* Кнопка-вопрос */
.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
}

.faq__question:focus-visible {
    background-color: rgba(251, 186, 32, 0.1);
}

/* Текст вопроса */
.faq__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-right: 15px;
}

/* Иконка-плюсик (Цвет #FBBA20) */
.faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    background-color: #FBBA20; /* Ваш цвет */
    transition: transform 0.3s ease;
    top: 50%;
    left: 50%;
}

.faq__icon::before {
    width: 16px;
    height: 2px;
    margin-top: -1px;
    margin-left: -8px;
}

.faq__icon::after {
    width: 2px;
    height: 16px;
    margin-top: -8px;
    margin-left: -1px;
}

/* Логика анимации иконки через атрибуты */
.faq__question[aria-expanded="true"] .faq__icon::after {
    transform: rotate(90deg) scaleY(0);
}

/* Контейнер ответа с плавной CSS-анимацией */
.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

/* Открытие контента на CSS через соседний селектор и атрибут */
.faq__question[aria-expanded="true"] + .faq__answer {
    grid-template-rows: 1fr;
}

/* Внутренний контент ответа */
.faq__content {
    overflow: hidden;
}

.faq__content p {
    margin: 0;
    padding: 0 20px 20px 20px;
    color: #666;
    line-height: 1.6;
}
