.popup {
    position: fixed;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    pointer-events: none;
}

.popup.active {
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 1;
    height: 100%;
}

.popup__overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #2B2929;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.popup.active .popup__overlay {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.popup__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    z-index: 1;
    border-radius: 15px;
}

.popup__body {
    padding: 60px;
    height: 100%;
}

.popup__container {
    height: 100%;
}

.popup__title {
    font-family: Cera Pro;
    font-size: 32px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

.popup__title--fs54 {
    font-family: Cera Pro;
    font-size: 54px;
    font-weight: 500;
    line-height: 59.4px;
    letter-spacing: -0.01em;
}

.popup__text {
    font-family: Cera Pro;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
    width: 70%;
}

.popup__close {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

.popup__close span {
    transition: all .3s ease;
}

.popup__close--white span {
    color: #fff;
}

.popup__close--white:hover span {
    color: #FF004F;
}

.popupSmall .popup__inner {
    max-width: 470px;
}

.popup__close:hover span {
    color: #FF004F;
}

@media (max-width: 767px) {
    .popup__title {
        font-family: Cera Pro;
        font-size: 22px;
        font-weight: 500;
        line-height: 26.4px;
        text-align: left;
        margin-bottom: 20px;
    }

    .popup__title--fs54 {
        font-family: Cera Pro;
        font-size: 32px;
        font-weight: 500;
        line-height: 32px;
        letter-spacing: -0.01em;
        text-align: left;
    }

    .popup__text {
        font-family: Cera Pro;
        font-size: 16px;
        font-weight: 400;
        line-height: 22.4px;
        text-align: left;
    }

    .popup__body {
        padding: 30px;
        height: 100%;
    }


    .popup__close {
        top: 20px;
        right: 20px;
    }

    .popup__close span {
        font-size: 10px;
    }

    .popupSmall .popup__inner {
        width: calc(100% - 40px);
    }
}



.qrCodeBlock {
    margin-bottom: 20px;
}

.qrCodeBlock img {
    border: 1px solid rgb(157, 157, 157, .3);
    border-radius: 15px;
}

.qrCodeText {
    font-family: Cera Pro;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    text-align: center;
}


/* попап с формой */
.popupForm .formBlock {
    padding: 0;
}

.popup__head .popup__title {
    margin-bottom: 0;
}

.popup__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.popupForm .popup__inner {
    max-width: 1160px;
    width: 100%;
}

.popup__form .formRow__inputs {
    flex-wrap: wrap;
}

.popup__form .popup__head {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .popupForm .popup__inner {
        width: calc(100% - 40px);
        height: 100%;
        overflow: scroll;
    }

    .popupForm {
        padding: 20px;
    }

    .popupForm .formBlock {
        display: flex;
        height: 100%;
        justify-content: center;
    }

    .formSuccess {
        align-self: center;
    }

    .popup__head {
        margin-bottom: 20px;
    }

    .popup__form.formBlock {
        padding: 0;
    }

    .popup__text {
        width: 100%;
    }
}

/* попап с формой END */

/* Попап всплывашка */

.popupLayout .popup__inner {
    top: auto;
    bottom: -50%;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    transition: all .3s ease;
}

.popupLayout.active .popup__inner {
    bottom: 0;
}

.popupLayout .formRow__inputs {
    width: 100%;
}

/* Попап всплывашка END */

[data-popup="subscribe"] .popup__inner {
    height: auto;
}

/* Видео попап */


@media (max-width: 767px) {
    .videoPopup .popup__inner {
        width: calc(100% - 20px);
    }

    .videoPopup iframe {
        width: 100% !important;
    }

    .videoPopup .popup__close {
        top: 10px;
        right: 15px;
    }
}

/* Медиа попап  */
.mediaPopup .popup__inner {
    max-width: 70%;
    background-color: transparent;
}

.mediaPopup .popup__close {
    top: -30px;
    right: -30px;
}


.mediaPopup .popup__body {
    background-color: transparent;
    padding: 0;
}

.mediaPopup img {
    border-radius: 8px;
    width: 100%;
}

.mediaSlider .swiper-button-next::after,
.mediaSlider .swiper-button-prev::after {
    color: #fff;
}

.mediaPopup__videoSlide iframe {
    width: 100%;
    height: 600px;
}


@media (max-width: 1199px) {
    .mediaPopup .popup__inner {
        max-width: 100%;
    }

    .mediaPopup__videoSlide iframe {
        width: 100%;
        height: 400px;
    }

    .mediaPopup .popup__close {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .mediaPopup__videoSlide iframe {
        width: 100%;
        height: 400px;
    }
}


/* Медиа попап END */