/* ===============================
   FAQ: верхний блок (крошки + H1)
=============================== */

.page-faq__top {
    padding: 32px 0 24px;
}

.page-faq__top .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}


/* ===============================
   Контейнер FAQ
=============================== */

.page-faq__content-wrapper {
    padding-bottom: 80px;
}

.page-faq__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 32px 40px 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-light);
}

/* ===============================
   Аккордеон
=============================== */

.faq-accordion {
    border-radius: 18px;
    overflow: hidden;
    background-color: #fff;
}

/* Элемент аккордеона */
.faq-item {
    border-bottom: 1px solid #ececec;
    background: #ffffff;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Шапка (вопрос) */
.faq-item__header {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.faq-item__question {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: left;
}

/* ===============================
   Иконка стрелки
=============================== */

.faq-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    transition: border-color 0.25s ease, background-color 0.25s ease;
    position: relative;
}

/* Стрелка */
.faq-item__icon::before {
    content: "";
    width: 10px;
    height: 10px;

    border-right: 2px solid var(--color-dark);
    border-bottom: 2px solid var(--color-dark);

    transform: rotate(45deg); /* вниз */
    transition: transform 0.25s ease, border-color 0.25s ease;
}

/* При наведении */
.faq-item__header:hover .faq-item__icon {
    border-color: #d7d7d7;
}

/* ===============================
   Активное состояние (открыто)
=============================== */

.faq-item--active .faq-item__icon {
    border-color: var(--color-accent);
    background-color: #fff7e3;
}

.faq-item--active .faq-item__icon::before {
    transform: rotate(-135deg); /* вверх */
    border-color: var(--color-dark);
}

/* ===============================
   Контент ответа
=============================== */

.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: transparent; /* убрали фон */
}

.faq-item__content {
    padding: 0 32px 24px 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    background: none !important; /* точно без фона */
}

/* ===============================
   Адаптив
=============================== */

@media (max-width: 992px) {
    .page-faq__inner {
        padding: 28px 24px 32px;
        border-radius: 20px;
    }

    .faq-item__header {
        padding: 20px 24px;
    }

    .faq-item__content {
        padding: 0 24px 20px 24px;
    }

    .faq-item__question {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .page-faq__inner {
        padding: 20px 18px 24px;
        border-radius: 16px;
    }

    .faq-item__header {
        padding: 18px;
        gap: 16px;
    }

    .faq-item__content {
        padding: 0 18px 18px 18px;
    }

    .faq-item__question {
        font-size: 18px;
    }

    .faq-item__icon {
        width: 28px;
        height: 28px;
    }
}
