.ns-faq {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 48px;
    width: 100%;
}

.ns-faq :where(h1, h2, h3, h4, h5, h6, p, img) {
    margin: 0;
}

.ns-faq__title {
    max-width: 975px;
    font-weight: 600;
    font-size: 44px;
    line-height: 1.18;
    color: #1f2023;
}

.ns-faq__content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ns-faq__list {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.ns-faq__list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(50% - 6px);
    height: auto;
    gap: 24px;
    border-radius: 24px;
    background-color: #f3f4f6;
    padding: 32px;
    cursor: pointer;
    transition: background-color .3s ease;
}

.ns-faq__list-item:hover {
    background-color: #eaecf0;
}

.ns-faq__list-item::after {
    flex-shrink: 0;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='28' fill='none' viewBox='0 0 29 28'%3E%3Cpath stroke='%231F2023' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3.3 14h11.2m0 0h11.2m-11.2 0v11.2m0-11.2V2.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.ns-faq__list-item-question {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #1f2023;
}

.ns-faq__list-item-answer {
    display: none;
}

.ns-faq__support {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 460px;
    border-radius: 24px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    text-align: center;
    padding-top: 48px;
    overflow: hidden;
}

.ns-faq__support-title {
    font-weight: 700;
    font-size: 32px;
    padding: 0 48px;
    color: #1f2023;
}

.ns-faq__support-description {
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    padding: 24px 48px 0;
    color: #1f2023;
}

.ns-faq__support-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 32px 48px 0;
}

.ns-faq__support-links a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    height: 46px;
    border-radius: 99px;
    background-color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 0 18px;
    color: #1f2023;
    white-space: nowrap;
    cursor: pointer;
}

.ns-faq__support-links a > svg,
.ns-faq__support-links a > img {
    flex-shrink: 0;
    display: block;
    width: auto;
    height: 28px;
}

.ns-faq__support-decor {
    display: block;
    width: 100%;
    margin-top: auto;
}

/* MODAL */
.ns-faq-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(58,63,68, .7);
    width: 100%;
    height: 100%;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    inset: 0;
    z-index: 30;
    padding: calc(var(--ns-header-height, 0) + 48px) 0 48px;
    transition-property: opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}

.ns-faq-modal.ns-faq-modal--opened {
    opacity: 1;
    pointer-events: auto;
}

.ns-faq-modal__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    width: 560px;
    max-height: 100%;
    background-color: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #EBEDF1;
    color: #1f2023;
    padding: 40px;
    overflow: hidden;
    box-shadow: 0 10px 10px -5px rgba(0,0,0, .04);
    position: relative;
    box-sizing: border-box;
    margin-bottom: var(--ns-modal-offset-bottom, 0);
}

.ns-faq-modal__close {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath stroke='%236A6F75' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m15 25 10-10m-10 0 10 10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    cursor: pointer;
}

.ns-faq-modal__title {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.19;
}

.ns-faq-modal__content {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden auto;
}

.ns-faq-modal__content > *:last-child {
    margin-bottom: 0;
}

/* ADAPTIVE */
@media (max-width: 1280px) {
    .ns-faq__list-item {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .ns-faq {
        gap: 24px;
    }

    .ns-faq__title {
        font-size: 24px;
        line-height: 1.17;
    }

    .ns-faq__content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .ns-faq__list {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
    }

    .ns-faq__list-item {
        width: 100%;
        border-radius: 16px;
        padding: 20px;
    }

    .ns-faq__list-item-question {
        font-size: 16px;
        line-height: 1.5;
    }

    .ns-faq__support {
        width: 100%;
        border-radius: 24px;
        padding-top: 32px;
    }

    .ns-faq__support-title {
        font-size: 24px;
        line-height: 1.17;
        padding: 0 28px;
    }

    .ns-faq__support-description {
        font-size: 16px;
        line-height: 1.5;
        padding: 16px 28px 0;
    }

    .ns-faq__support-links {
        gap: 8px;
        padding: 24px 28px 0;
    }

    .ns-faq__support-links a {
        gap: 8px;
        height: 44px;
        padding: 0 18px;
        font-size: 13px;
    }

    .ns-faq__support-decor {
        width: 100%;
        max-width: 584px;
        height: auto;
        align-self: flex-end;
    }

    /* MODAL */
    .ns-faq-modal {
        align-items: flex-end;
    }

    .ns-faq-modal__inner {
        width: 100%;
        gap: 10px;
        border-radius: 16px 16px 0 0;
        padding: 32px 20px 24px;
        transform: translateY(100%);
        transition: transform 0.6s ease;
    }

    .ns-faq-modal--opened .ns-faq-modal__inner {
        transform: translateY(0);
    }

    .ns-faq-modal__close {
        width: 56px;
        height: 4px;
        background-color: #E0E0E0;
        background-image: none;
        left: 50%;
        top: 6px;
        transform: translateX(-50%);
    }

    .ns-faq-modal__close::before {
        content: "";
        display: block;
        width: 150%;
        height: 40px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .ns-faq-modal__title {
        font-size: 24px;
        line-height: 1.5;
    }

    .ns-faq-modal__content {
        font-size: 14px;
        line-height: 1.57;
    }
}
