:root {
    --text: #1d1d1f;
    --text-secondary: #6e6e73;

    --card-bg: rgba(255, 255, 255, 0.78);
    --card-border: rgba(255, 255, 255, 0.45);

    --shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 20px 50px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

.faq {
    max-width: 920px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: var(--card-bg);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border-radius: 28px;

    border: 1px solid var(--card-border);

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1),
        box-shadow .55s cubic-bezier(.22, 1, .36, 1);
}

.faq-item.active {
    transform: translateY(-2px);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.03),
        0 28px 70px rgba(0, 0, 0, 0.08);
}

@media (hover: hover) {

    .faq-item:hover {
        transform: translateY(-2px);

        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.03),
            0 28px 70px rgba(0, 0, 0, 0.08);
    }

}

.faq-question {
    width: 100%;

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

    padding: 28px 32px;

    border: none;
    background: transparent;

    cursor: pointer;

    text-align: left;

    color: var(--text);

    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-question span:first-child {
    flex: 1;
    min-width: 0;
}

.faq-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.045);

    color: var(--text);

    font-size: 22px;
    font-weight: 300;

    transition:
        transform .65s cubic-bezier(.22, 1, .36, 1),
        background .35s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: rgba(0, 0, 0, 0.08);
}

.faq-answer {
    height: 0;
    overflow: hidden;

    transition:
        height .65s cubic-bezier(.22, 1, .36, 1);
}

.faq-answer-inner {
    padding: 0 32px 32px;

    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.85;
}

@media (max-width: 768px) {

    body {
        padding: 30px 16px;
    }

    .faq {
        gap: 14px;
    }

    .faq-item {
        border-radius: 22px;
    }

    .faq-question {
        padding: 22px;
        font-size: 16px;
        gap: 16px;
    }

    .faq-answer-inner {
        padding: 0 22px 22px;

        font-size: 15px;
        line-height: 1.75;
    }

    .faq-icon {
        width: 34px;
        height: 34px;

        font-size: 20px;
    }

}

@media (max-width: 360px) {

    .faq-question {
        padding: 18px;
        font-size: 15px;
    }

    .faq-answer-inner {
        padding: 0 18px 18px;
        font-size: 14px;
    }

}