/* ION Heat — FAQs */

.faq .container {
    flex-direction: column;
    gap: 70px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.faq__line-accent {
    border: none;
    border-top: 1px solid var(--main);
    align-self: stretch;
    margin: 0;
}

.faq__inner {
    display: flex;
    flex-direction: column;
    gap: 39px;
    align-items: flex-start;
    align-self: stretch;
}

/* Шапка */
.faq__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1242px;
}

.faq__label {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 130%;
    font-weight: 800;
    text-transform: uppercase;
}

.faq__title {
    color: var(--text);
    font-family: var(--h2-font-family);
    font-size: clamp(32px, 5vw, 64px);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    align-self: stretch;
}

.faq__desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    align-self: stretch;
}

/* Аккордеон */
.faq__list {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.faq__item {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.faq__item-head {
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.faq__item-head:hover {
    background: #f9f9f9;
}

.faq__item-question {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    flex: 1;
    padding-right: 24px;
}

.faq__item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
}

.faq__item-icon::before,
.faq__item-icon::after {
    content: '';
    position: absolute;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Горизонтальная черта (всегда) */
.faq__item-icon::before {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Вертикальная черта (скрывается при открытии) */
.faq__item-icon::after {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__item.is-active .faq__item-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq__item-body {
    display: none;
    padding: 0 30px 30px;
    color: var(--text);
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    line-height: 160%;
    font-weight: var(--menu-font-weight);
}

.faq__item-body p {
    margin-bottom: 12px;
}

.faq__item-body p:last-child {
    margin-bottom: 0;
}

.faq__item.is-active .faq__item-body {
    display: block;
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .faq .container {
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .faq__item-head {
        padding: 20px 16px;
    }

    .faq__item-body {
        padding: 0 16px 20px;
    }

    .faq__item-question {
        font-size: 18px;
    }
}