
/* ========================================
   ZIP69 — FAQ на главной странице
======================================== */

.home-faq {
    --faq-accent: var(--color-primary, #e52329);
    --faq-text: var(--color-text, #222222);
    --faq-muted: #6b7280;
    --faq-border: #e8e8e8;

    padding: 64px 0 72px;
    background: #f7f8fa;
}

.home-faq__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* Заголовок */

.home-faq__header {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.home-faq__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--faq-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-faq__title {
    margin: 0;
    color: var(--faq-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
}

.home-faq__description {
    margin: 14px 0 0;
    color: var(--faq-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* Список вопросов */

.home-faq__list {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgb(0 0 0 / 4%);
}

.home-faq__item {
    margin: 0;
    border-bottom: 1px solid var(--faq-border);
}

.home-faq__item:last-child {
    border-bottom: 0;
}

/* Вопрос */

.home-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: var(--faq-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
    transition:
            color 0.2s ease,
            background-color 0.2s ease;
}

.home-faq__question::-webkit-details-marker {
    display: none;
}

.home-faq__question::marker {
    content: "";
}

.home-faq__question:hover {
    color: var(--faq-accent);
    background: #fffafa;
}

.home-faq__question:focus-visible {
    outline: 2px solid var(--faq-accent);
    outline-offset: -4px;
}

/* Кнопка плюс / минус */

.home-faq__icon {
    position: relative;
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #f2c9cb;
    border-radius: 50%;
    background: #fff5f5;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.home-faq__icon::before,
.home-faq__icon::after {
    position: absolute;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--faq-accent);
    content: "";
    transition: transform 0.2s ease;
}

.home-faq__icon::after {
    transform: rotate(90deg);
}

.home-faq__item[open] .home-faq__icon {
    border-color: var(--faq-accent);
    background: var(--faq-accent);
}

.home-faq__item[open] .home-faq__icon::before,
.home-faq__item[open] .home-faq__icon::after {
    background: #fff;
}

.home-faq__item[open] .home-faq__icon::after {
    transform: rotate(0);
}

/* Ответ */

.home-faq__answer {
    padding: 0 76px 24px 24px;
    color: #555b65;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.home-faq__answer p {
    margin: 0 0 12px;
}

.home-faq__answer p:last-child {
    margin-bottom: 0;
}

.home-faq__answer a {
    color: var(--faq-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Адаптация для планшетов и телефонов */

@media (max-width: 768px) {
    .home-faq {
        padding: 48px 0;
    }

    .home-faq__container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .home-faq__header {
        margin-bottom: 24px;
    }

    .home-faq__description {
        font-size: 14px;
    }

    .home-faq__question {
        gap: 14px;
        padding: 18px 16px;
        font-size: 15px;
    }

    .home-faq__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .home-faq__answer {
        padding: 0 16px 20px;
        font-size: 14px;
    }

    .home-faq__list {
        border-radius: 10px;
    }
}

@media (max-width: 380px) {
    .home-faq {
        padding: 36px 0;
    }

    .home-faq__question {
        padding: 16px 12px;
        font-size: 14px;
    }

    .home-faq__answer {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-faq *,
    .home-faq *::before,
    .home-faq *::after {
        transition: none !important;
    }
}
