html {
    font-size: 16px;
}

.x-faq {
    --title-color: #e22429;
    --p-color: #202A32;
    --border-color: #cccccc;
    --main-title-color: #e12428;

    margin-top: 48px;
    margin-bottom: 48px;

    @media (min-width: 768px) {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    @media (min-width: 1280px) {
        margin-top: 80px;
        margin-bottom: 80px;
    }
}

.x-faq h2 {
    color: var(--main-title-color);
    margin: 0 0 24px;
    text-align: start;
    letter-spacing: .01em;
    font-family: Lato;
    font-weight: 700;
}

.x-faq h3 {
    color: var(--p-color);
    padding: 24px 16px;
    font-weight: 700;
    font-family: Lato;
    border: 1px solid var(--border-color);
    cursor: pointer;
    outline: 0;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 8px;
    border-radius: 4px;

    @media (min-width: 768px) {
        padding: 24px;
    }

    @media (min-width: 1280px) {
        font-size: 22px;
        line-height: 33px;
    }
}

.x-faq h3:last-of-type {
    margin-bottom: 0;

}

.x-faq h3.active {
    margin: 0;
    border: none;
    color: var(--title-color);
    padding: 24px 16px;

    @media (min-width: 768px) {
        padding: 24px;
    }
}

.x-faq h3.active +.accordion-content:not(:last-child) {
    margin: 0 0 30px;
}

.x-faq h3.active +.accordion-content:last-child {

    @media (min-width: 768px) {
        margin: 0 0 24px;
    }
}

.x-faq h3 .chevron {
    display: block;
    transition: all ease .3s;
}

.x-faq h3 .chevron:before {
    content: '';
    background: url('../assets/x-faq/chevron.svg')no-repeat;
    width: 16px;
    height: 16px;
    display: block;
}

.x-faq h3.active .chevron {
    transform: rotate(-180deg);
}

.x-faq .accordion-content {
    color: var(--p-color);
    left: 0;
    padding: 0 60px 0 16px;
    letter-spacing: .02em;
    line-height: 24px;
    position: relative;
    transition: all ease .5s;
    overflow: hidden;

    @media (min-width: 768px) {
        padding: 0 60px 0 24px;
    }
} 


@media (max-width: 700px) {
    .x-faq h3 {
        position: relative;
    }

    .x-faq .accordion-content {
        font-size: 15px;
        line-height: 21px;
        margin-bottom: 0;
    }
}