/* Секция FAQ */
.faq {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    scroll-margin-top: 100px;
}

.faq-container {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* Заголовок */
.faq-title {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e70000 0%, #ff3333 50%, #e70000 100%);
    border-radius: 2px;
}

/* Элемент FAQ */
.faq-item {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Кнопка вопроса */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: 'Gilroy', 'Arial', sans-serif;
    position: relative;
}

.faq-question:hover {
    color: #e70000;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #e70000;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231, 0, 0, 0.1);
}

.faq-question.active::after {
    content: '−';
    background: #e70000;
    color: #fff;
    transform: rotate(180deg);
}

/* Блок ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-answer.active {
    opacity: 1;
    max-height: 500px;
    /* Достаточно для любого контента */
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    padding: 0 0 25px 0;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .faq {
        margin: 60px auto;
        padding: 0 15px;
    }

    .faq-container {
        padding: 40px 35px;
    }

    .faq-title {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .faq-question {
        font-size: 17px;
        padding: 18px 0;
    }

    .faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .faq {
        margin: 50px auto;
    }

    .faq-container {
        padding: 35px 30px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 16px;
        padding: 16px 0;
    }

    .faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .faq {
        margin: 40px auto;
        padding: 0 10px;
    }

    .faq-container {
        padding: 30px 25px;
    }

    .faq-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .faq-question {
        font-size: 15px;
        padding: 14px 0;
    }

    .faq-question::after {
        font-size: 20px;
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }

    .faq-answer p {
        font-size: 14px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 25px 20px;
    }

    .faq-title {
        font-size: 22px;
    }

    .faq-question {
        font-size: 14px;
        padding: 12px 0;
    }

    .faq-answer p {
        font-size: 13px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 375px) {
    .faq-container {
        padding: 20px 15px;
    }

    .faq-title {
        font-size: 20px;
    }

    .faq-question {
        font-size: 13px;
    }

    .faq-answer p {
        font-size: 12px;
    }
}