/* Эффект появления оверлея */
#exitBannerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease; /* Плавное появление фона */
}

#exitBannerOverlay.show {
    opacity: 1;
    display: block;
}

/* Эффект появления баннера */
#exitBanner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 600px;
    min-width: 400px;
    background: white;
    text-align: center;
    z-index: 2147483647;
    display: none;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 0 40px 40px;

    transform: translate(-50%, -60%) scale(0.5); /* Начальное состояние: смещение и уменьшенный масштаб */
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; /* Плавный эффект */
}

#exitBanner.show {
    transform: translate(-50%, -50%) scale(1); /* Конечное состояние */
    opacity: 1;
    display: block;
}

/* Видео контейнер */
.responsive-video-container {
    position: relative;
    width: calc(100% + 80px);
    height: 250px;
    margin-left: -40px;
    overflow: hidden;
}

.responsive-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текст */
#exitBanner h2 {
    font-size: 22px;
    font-family: "Montserrat", sans-serif;
    margin: 20px 10;
    line-height: 1.5;
    color: black;
/*     text-transform: uppercase; */
}

/* Кнопка */
#exitBanner a {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    max-width: 300px;
    height: 50px;
    line-height: 50px;
    margin: 10px auto;
    font-size: 19px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
/*     text-transform: uppercase; */
    color: white;
    background: #D83F2A;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#exitBanner a:hover {
    background: #A22D1D;
}




/* Реальный крестик */
.close-btn {
    position: absolute;
    top: 10px; /* Отступ сверху */
    right: 10px; /* Отступ справа */
    width: 30px; /* Размер кнопки */
    height: 30px;
    cursor: pointer;
    z-index: 10001; /* Поверх всего */
}

.close-btn::before, 
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px; /* Длина полосок */
    height: 2px; /* Толщина полосок */
    background: rgba(255, 255, 255, 0.7); /* Полупрозрачный белый */
    transform-origin: center;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg); /* Диагональная линия */
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg); /* Обратная линия */
}

.close-btn:hover::before, 
.close-btn:hover::after {
    background: rgba(255, 255, 255, 1); /* Увеличиваем яркость при наведении */
}
