/* =========================================================
 * ## Уведомление портфолио/кейсов: notification-wrapper
 * ========================================================= */

.notification-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-wrapper.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-wrapper.hide {
    opacity: 0;
    transform: translateX(-100%);
}

.notification {
    position: relative;
    max-width: 600px;
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    background: rgba(139, 69, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 0.2px;
    background: linear-gradient(95.6deg, rgba(255, 255, 255, 0.8) 4.46%, rgba(255, 255, 255, 0) 50.88%, rgba(255, 255, 255, 0.8) 95.54%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.notification-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(50% 50% at 50% 50%, #CC001E 0%, #A10119 73.27%, #7A0114 100%);

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.notification-icon svg {
    width: 25px;
    height: 25px;
    fill: white;
}

button#closeBtn svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
    color: white;
}

.notification-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-family: "Geometria-Light";
    font-family: "TTNorms-Regular", sans-serif;
}

@media (max-width: 1200px) {
    .notification {
        max-width: 80%;
    }
}

.notification-content strong {
    font-weight: 600;
}

.close-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    align-self: flex-start;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-btn svg {
    display: block;
}

@media (max-width: 768px) {
    .notification-wrapper {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .notification {
        max-width: 100%;
        padding: 5px;
        gap: 8px;
    }

    button#closeBtn svg {
        width: 20px;
        height: 20px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    .notification-icon svg {
        width: 25px;
        height: 25px;
    }

    .notification-content p {
        font-size: 10px;
    }
}

/* ## Video */

a.video-clips-why__image img {
    border-radius: 20px;
}



.video-clips-why__links .wp-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

a.video-clips-why__image.popup-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
}

/* .video-clips-why__links .wp-video {
    width: 100% !important;
} */

@media (max-width: 550px) {
    .video-clips-why__links .wp-video {

        width: 100% !important;
    }

    .video-clips-why .wp-video-shortcode video,
    video.wp-video-shortcode {
        max-width: 100%;
        display: inline-block;
        object-fit: cover;
    }

    .video-clips-why div#mep_0 {
        width: 100% !important;
        height: 250px !important;
    }

    .video-clips-why .wp-video-shortcode video,
    video.wp-video-shortcode {
        max-width: 100%;
        display: inline-block;
        object-fit: cover;
        height: 250px !important;
        width: 100% !important;
    }
}


.video-clips-why__links {
    border-radius: 30px;
    overflow: hidden;
}


.video-clips-why__links video {
    width: 100%;
}


@media (max-width: 650px) {
    a.video-clips-why__image.popup-link {
        display: none;
    }
}

.video-clips-why__links video {
    width: 100%;
    height: 100%;
}

@media (max-width: 650px) {
    h1.global-kejs__title.title {
        color: #fff !important;
    }
}


.plyr__control--overlaid {
    background: red !important;
}

.plyr--full-ui input[type=range] {
    color: red !important;
}

.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded=true] {
    background: red !important;
}



/* ## Other */


.cases__link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cases__link span {
    display: block;
    line-height: 0.5;

}

@media (max-width: 991px) {
    .cases__link span {

        transform: translate(0px, 2px);
    }

}

a.cases__link svg {
    width: 0px;
    transition: all 0.4s ease 0s;
}

a.cases__link.cases__link--active svg {
    width: 15px;
}



/* =========================================================
 * ## Кейсы/видео: item-info-kejs, video-clips, plyr
 * ========================================================= */

.item-info-kejs__desp.subtitle video {
    max-height: 850px;
}

.video-clips-why__links {
    border-radius: 10px;

}

.item-info-kejs__desp.subtitle video {
    max-height: max-content;
}

.plyr--video {
    max-height: max-content;

}

.item-info-kejs__desp.subtitle video {
    height: 500px;
    width: auto;
    border-radius: 15px;
    min-height: 260px;
}

.info-kejs__column {
    flex: 1 1 auto;
}

@media (max-width: 650px) {
    .item-info-kejs__desp.subtitle video {
        height: auto;
        width: 100%;

    }
}

.info-kejs-strategia-top__column {
    flex: 1 1 auto;
}

.info-kejs-video__video video {
    width: 100%;
}


@media (min-width: 650px) {
    .portfolio-kejsyy-template-default .breadcrumb__item a {

        color: #cb0000a6;
    }

    .portfolio-kejsyy-template-default .breadcrumb span:before {
        background-color: #cb0000;
    }

    .portfolio-kejsyy-template-default .breadcrumb span:after {
        background-color: #cb0000;
    }
}