/* ========================
   Базовые настройки 
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ========================
   Основной контент
   ======================== */
.faq-main {
    margin-top: 135px;
    padding-top: 0;
}

/* ========================
   Хлебные крошки
   ======================== */
.breadcrumbs {
    font-size: 18px;
    font-weight: 400;
    color: #929292;
    margin-bottom: 60px;
    padding-top: 0;
}

.breadcrumbs a {
    color: #929292;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #D90D26;
}

.breadcrumbs__sep {
    margin: 0 2px;
}

.breadcrumbs__current {
    color: #929292;
}

/* ========================
   Заголовок и описание
   ======================== */
.faq-hero__title {
    font-size: 50px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    color: #000;
}

.faq-hero__desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 1200px;
    margin-bottom: 60px;
    color: #000;
}

/* ========================
   Раздел с вопросами
   ======================== */
.faq-section {
    margin-bottom: 60px;
}

.faq-section__title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

/* Вопрос */
.faq-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    padding: 0 30px;
    transition: box-shadow 0.3s, border-radius 0.3s, margin-bottom 0.3s;
    cursor: pointer;
    
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Активный вопрос */
.faq-item.active {
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: none;
}

.faq-item__text {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
}

.faq-item__icon {
    width: 24px;
    height: 24px;
    margin-left: 40px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

/* Ответ – плавное раскрытие */
.faq-answer {
    max-height: 0;                   
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 15px;             
    padding: 0 30px;                 
    font-size: 18px;
    font-weight: 300;
    line-height: 25px;
    color: #000;
    background: transparent;
    transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    padding-bottom: 15px;
    line-height: 30px;
}

.faq-answer a {
    color: #D90D26;
}

.faq__list li {
    padding: 5px;
    margin-left: 40px;
}

/* Когда вопрос активен, ответ раскрывается */
.faq-item.active + .faq-answer {
    max-height: 800px;               
    padding: 30px 30px 35px 30px;    
    margin-bottom: 35px;           
    opacity: 1;
}

/* ========================
   Адаптивность (мобильная версия)
   ======================== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
    }

    .faq-main {
        margin-top: 83px;
        margin-bottom: 40px;
    }

    .breadcrumbs {
        font-size: 12px;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .faq-hero__title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .faq-hero__desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .faq-section__title {
        font-size: 20px;
        margin-bottom: 15px;
        margin-top: 30px;
    }

    .faq-item__text {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: -3%;
        margin-left: -10px;
    }

    .faq-answer {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 10px;
    }

    .faq-answer p {
        line-height: 1.5;
        margin-bottom: 0;
    }

    .faq-answer b {
        font-weight: 500;
    }

    .faq-answer .faq__list li {
        margin-left: 30px;
    }

    .faq-item__icon {
        margin-left: 10px; /* прижимаем иконку к правому краю */
    }

    /* Уменьшаем отступ в ответе */
    .faq-item.active + .faq-answer {
        margin-bottom: 0;
        max-height: 1000px; 
    }

    /* Отключаем анимацию наведения на мобильных */
    .faq-item:hover {
        box-shadow: none;
        transform: none;
    }
}