.faq {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.faq-title {
    margin-bottom: 32px;
    text-align: center;
}

.faq-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

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

.faq-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid transparent;
}

.faq-item__panel {
    display: none;
}

.faq-item__trigger {
    width: 100%;
    margin: 0;
    border: none;
    background: rgba(46, 46, 46, 1);
    border-radius: clamp(40px, calc(40px + 60 * (100vw - 420px) / 1020), 100px);
    padding: clamp(12px, calc(12px + 12 * (100vw - 420px) / 1020), 24px) clamp(16px, calc(16px + 16 * (100vw - 420px) / 1020), 32px);
    height: clamp(56px, calc(56px + 24 * (100vw - 420px) / 1020), 80px);
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(16px, calc(16px + 6 * (100vw - 420px) / 1020), 22px);
    font-weight: 500;
    color: white;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.faq-item__label {
    flex: 1;
}

.faq-item.active .faq-item__trigger {
    background: var(--orange);
    color: #fff;
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.faq-item.active .faq-chevron {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.faq-answer {
    position: relative;
    overflow: hidden;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-sizing: border-box;
    height: 508px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

/* «АСМ» на весь блок, под текстом ответа */
.faq-answer-brand {
    position: absolute;
    inset: 0;                        /* растягиваем на всю карточку */
    display: flex;
    align-items: center;             /* вертикально по центру */
    justify-content: center;         /* горизонтально по центру */
    font-size: 310px;  /* огромный шрифт, чтобы точно заполнить ширину */
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    white-space: nowrap;             /* не переносить текст */
    width: auto;                     /* сбрасываем фиксированную ширину */
    height: auto;                    /* сбрасываем фиксированную высоту */
}

.faq-answer p {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 22px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Мобильный аккордеон: ответ выезжает из выбранной кнопки */
@media (max-width: 900px) {
    .faq-title {
        margin-bottom: 28px;
    }

    .faq-title.section-title {
        font-size: clamp(32px, calc(28px + 2.2vw), 42px);
    }

    .faq-list {
        gap: 14px;
    }

    .faq-item {
        overflow: visible;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .faq-item__trigger {
        justify-content: space-between;
        width: 100%;
        background: rgba(46, 46, 46, 1);
        font-size: clamp(17px, calc(17px + 5 * (100vw - 390px) / 510), 22px);
        height: auto;
        min-height: clamp(60px, calc(60px + 20 * (100vw - 390px) / 510), 80px);
        padding: clamp(14px, calc(14px + 10 * (100vw - 390px) / 510), 24px) clamp(18px, calc(18px + 14 * (100vw - 390px) / 510), 32px);
        border-radius: clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px);
    }

    .faq-item.active .faq-item__trigger,
    .faq-item.is-open .faq-item__trigger {
        background: var(--orange);
        color: #fff;
    }

    .faq-item__trigger::after {
        content: '';
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        margin-left: 10px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
    }

    .faq-item.is-open .faq-item__trigger {
        border-radius: clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) 0 0;
    }

    .faq-item.is-open .faq-item__trigger::after {
        transform: rotate(-135deg) translateY(2px);
    }

    .faq-item__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .faq-item__panel[hidden] {
        display: none;
    }

    .faq-item.is-open .faq-item__panel {
        display: grid;
        grid-template-rows: 1fr;
    }

    .faq-item__panel-inner {
        overflow: hidden;
        background: rgba(28, 28, 26, 1);
        border-radius: 0 0 clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px);
    }

    .faq-item__panel-inner p {
        margin: 0;
        padding: 18px 20px 20px;
        font-size: clamp(16px, calc(16px + 6 * (100vw - 390px) / 510), 22px);
        font-weight: 400;
        line-height: 1.65;
        color: var(--text-light);
    }

    .faq-answer--desktop {
        display: none;
    }
}

@media (min-width: 901px) {
    .faq-item.is-open .faq-item__panel {
        display: none;
    }
}
