@charset "UTF-8";
/* ============================================================
   FAQ — аккордеон
   ============================================================ */

.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: url('/wp-content/uploads/2026/05/fon5.png') center / cover no-repeat;
padding-bottom: 300px;
margin-bottom: -300px;
}

.faq__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-top: 45px;

}

/* ── Список ── */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 830px;
    width: 100%;
}

/* ── Элемент ── */
.faq__item {
    border-radius: 10px;
    border: 1px solid var(--linii);
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease;
    background-color: transparent;
}

/* Псевдоэлемент с фоновой картинкой */
.faq__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #151515 var(--faq-bg, none) top left / cover no-repeat;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 0;
}



/* Ховер — показываем фон */
.faq__item:hover::before,
.faq__item:hover::after {
    opacity: 1;
}

/* Раскрытый — тоже с фоном */
.faq__item.is-open::before,
.faq__item.is-open::after {
    opacity: 1;
}

/* ── Кнопка-триггер ── */
.faq__trigger {
    width: 100%;
    padding: 30px 38px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    z-index: 2;
    min-height: 94px;
}

/* Вопрос */
.faq__question {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-bebas);
    font-size: 28px;
    line-height: 29px;
    font-weight: 700;
    flex: 1;
    transition: background .2s;
}



/* Иконка */
.faq__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    position: relative;
}

.faq__icon-plus,
.faq__icon-minus {
    position: absolute;
    inset: 0;
    width: 34px;
    height: 34px;
    transition: opacity .2s;
}

.faq__icon-minus {
    opacity: 0;
}

.faq__item.is-open .faq__icon-plus {
    opacity: 0;
}

.faq__item.is-open .faq__icon-minus {
    opacity: 1;
}

/* ── Тело аккордеона ── */
.faq__body {
    position: relative;
    z-index: 2;
    overflow: hidden;

    max-height: 0;
    transition: max-height .35s ease, padding .35s ease;
}

.faq__body[hidden] {
    display: block; /* override hidden чтобы анимация работала */
    max-height: 0;
    padding: 0 38px;
    visibility: hidden;
}

.faq__item.is-open .faq__body {
    max-height: 600px;
    padding: 0 38px 30px;
    visibility: visible;
}

.faq__answer {
    background: var(--gradient-svetlyj);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-myriad);
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
    .faq__question {
        font-size: clamp(22px, 2.5vw, 28px);
        line-height: 1.2;
    }
}

@media (max-width: 960px) {
    .faq__item {
        border-radius: 0px;
}

}
@media (max-width: 599px) {
    .faq__trigger {
        padding: 20px 20px;
        min-height: 70px;
    }

    .faq__body[hidden],
    .faq__item.is-open .faq__body {
        padding-left: 20px;
        padding-right: 20px;
    }

    
}