/* faq-styles.css */


.faq-section {
    padding: 100px 20px;
    max-width: 852px;
    margin: 0 auto;
}

.faq-main-title {
    font-size: 64px;
    line-height: 64px;
    color: #1C1C1C;
    margin-bottom: 40px;
    font-weight: 500;
}

.faq-main-title span {
    color: #B40555; /* Акцентный бордовый */
}

.faq-container {
    border-top: 1px solid #f0f0f0;
}

/* Элемент аккордеона */
.faq-item {
    border: 2px solid #EDEDED;
    border-radius: 12px;
}

/* Заголовок (вопрос) */
.faq-question {
    list-style: none; /* Убираем стандартную стрелку Chrome */
    padding: 12px 8px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: #1C1C1C;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none; /* Убираем стрелку в Safari */
}

.faq-question:hover {
    color: #b01a4e;
}

/* Иконка плюс/минус */
.faq-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFE6CD;
    border: 2px solid #FFE6CD;
    border-radius: 8px;
    position: relative;
}

/* .faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: #b01a4e;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
} */

/* Горизонтальная линия */
.faq-icon::before {
    width: 12px;
    height: 2px;
}

/* Вертикальная линия */
.faq-icon::after {
    width: 2px;
    height: 12px;
}

/* Анимация иконки при открытии */
.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item[open] .faq-question {
    
}

/* Блок ответа */
.faq-answer {
    padding: 12px 16px;
    font-size: 18px;
    line-height: 24px;
    color: #1C1C1C99;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Кнопка снизу */
.faq-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-ask {
    background-color: #ff2d46;
    color: #fff;
    border: none;
    padding: 24px 40px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-ask:hover {
    background-color: #d92137;
}


.faq-icon svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.faq-item[open] .faq-icon svg {
    transform: rotate(180deg);
}


.faq-item summary {
    outline: none;
    user-select: none;
}

/* Адаптивность */
@media (max-width: 600px) {
    .faq-main-title {
        font-size: 28px;
        line-height: 32px;
    }
    .faq-item img, 
    .faq-item svg {
        flex-shrink: 0;
    }
    .faq-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .faq-question {
        font-size: 16px;
        line-height: 18px;
    }
    .faq-answer {
        font-size: 14px;
        line-height: 17px;
    } 
    .faq-question {
        padding: 11px 4px 11px 12px;
    } 
    .faq-answer {
        padding: 8px 12px;
    }

}