/* ============================================================
   CMS POPUP
   ============================================================ */

body.pop-up-cms2-open {
    overflow: hidden;
}

#pop-up-cms2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#pop-up-cms2.pop-up-hidden {
    display: none !important;
}

.pop-up-cms2__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#pop-up-cms2.is-visible .pop-up-cms2__background {
    opacity: 1;
}

.pop-up-cms2__content {
    position: relative;
    display: flex;
    width: 90%;
    max-width: 960px;
    max-height: 540px;
    background: #ffffff;
    z-index: 10000;
    align-items: stretch;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease 0.15s,
                transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}

#pop-up-cms2.is-visible .pop-up-cms2__content {
    opacity: 1;
    transform: translateY(0);
}

.pop-up-cms2__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: transparent;
    color: #262626;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pop-up-cms2__close:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
}

.pop-up-cms2__image {
    flex: 0 0 50%;
    overflow: hidden;
}

.pop-up-cms2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pop-up-cms2__text {
    flex: 1;
    padding-inline: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: #ffffff;
}

.pop-up-cms2__text__title {
    display: block;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 1.25;
    color: #333333;
}

.pop-up-cms2__text__description p {
    margin: 0 0 8px;
    text-align: center;
}

.pop-up-cms2__text__description p:last-child {
    margin-bottom: 0;
}

#pop-up-cms2 .button {
    align-self: center;
}

@media (max-width: 992px) {
    .pop-up-cms2__image {
        display: none;
    }

    .pop-up-cms2__content {
        width: 88%;
    }

    .pop-up-cms2__text {
        padding: 44px 32px;
    }

    .pop-up-cms2__text__title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .pop-up-cms2__content {
        width: 94%;
    }

    .pop-up-cms2__text {
        padding: 36px 24px;
    }

    .pop-up-cms2__text__title {
        font-size: 20px;
    }
}
