.faq {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
}

.faq__item {
    position: relative;
    padding: 20px 15px;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    width: 100%;
}

.faq__item::after {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    right: 26px;
    background-image: url(../images/faq-cross.svg);
    width: 35px;
    height: 35px;
    background-size: cover;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .faq__item::after {
        width: 28px;
        height: 28px;
    }
}

.faq__item.active::after {
    transform: rotate(45deg);
}

.faq__item-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: calc(100% - 70px);
}
.faq__item-question {
    font-size: 20px;
    font-weight: 400;
    line-height: 160%;
}

@media (max-width: 768px) {
    .faq__item-question {
        font-size: 16px;
    }
}

.faq__item-answer {
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    padding-bottom: 15px;
    display: none;
    user-select: none;
}

.faq__item-answer p, .faq__item-answer div {
    margin: 0;
    padding: 0;
}

.faq__item-answer ol {
    list-style: auto;
    padding-left: 35px;
}

@media (max-width: 768px) {
    .faq__item-answer ol {
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .faq__item-answer {
        font-size: 14px;
    }
}

.tabs-header-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    width: 25%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tabs-header-block {
        margin-bottom: 20px;
        width: 100%;
    }
}

.tabs-header-block-active-mobile {
    display: none;
    width: 100%;
    height: 50px;
    position: relative;
    align-items: center;
    font-size: 18px;
    padding: 0 38px 0 20px;
    border-radius: 4px;
    border: 1px solid #E7E7E7;
    background: #FFF;
    box-shadow: 0px 1px 0px 0px rgba(0, 20, 29, 0.07);
}

.tabs-header-block-active-mobile::after {
    content: '';
    position: absolute;
    right: 20px;
    background-image: url("../images/arrow-down.svg");
    width: 20px;
    height: 10px;
    transition: 0.3s;
    background-repeat: no-repeat;
    background-size: contain;
}

.tabs-header-block-active-mobile.active::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .tabs-header-block-active-mobile {
        display: flex;
    }
}

.tabs-header-block-headers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .tabs-header-block-headers {
        box-shadow: 0 0 10px -6px;
        display: none;
        max-height: 235px;
        overflow: auto;
        border-radius: 5px;
        margin-top: 10px;
        padding: 10px;
    }
}

.tabs-header-block-headers-item {
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1.2;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #E7E7E7;
    background: #FFF;
    box-shadow: 0px 1px 0px 0px rgba(0, 20, 29, 0.07);
    width: 100%;
}

@media (hover: hover) {
    .tabs-header-block-headers-item:hover {
        box-shadow: 0px 1px 0px 0px #ef203580;
        border: 1px solid #ef203580;
        color: #ef2035;
    }
}

.tabs-header-block-headers-item.active {
    cursor: unset;
    box-shadow: 0px 1px 0px 0px #ef203580;
    border: 1px solid #ef203580;
    color: #ef2035;
}

@media (max-width: 768px) {
    .tabs-header-block-headers-item {
        border: none;
        box-shadow: none;
        padding: 10px 15px;
    }

    .tabs-header-block-headers-item.active {
        cursor: unset;
        box-shadow: none;
        border: none;
        color: #ef2035;
    }

    .tabs-header-block-headers-item:hover {
        box-shadow: none;
        border: none;
    }
}

.tabs-header-block-link {
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .tabs-header-block-link {
        display: none;
    }
}

.tabs-header-block-link.mobile {
    display: none;
    margin: 20px auto 0;
}


.tabs-header-block-link.mobile:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .tabs-header-block-link.mobile {
        display: block;
    }
}

.tabs-header-block-link:hover {
    text-decoration: underline;
}

.tabs-content {
    width: 100%;
}

.tabs-content-item {
    display: none;
}

.tabs-content-item.active {
    display: block;
    width: 100%;
    animation: show 0.3s ease-in-out;
}

.faq-tabs {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .faq-tabs {
        display: flex;
        gap: 20px;
        flex-direction: column;
    }
}

@keyframes show {
    0% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}