/* ========================================= */
/* КАСТОМНЫЙ СЛАЙДЕР (КНОПКА НЕЗАВИСИМА)     */
/* ========================================= */

.oc-banner7-container {
    position: relative;
    width: 100%;
    height: 350px !important;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.custom-slider-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
}

/* Сами слайды с фоновыми картинками */
.custom-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
    opacity: 0;                   
    transition: opacity 0.6s ease-in-out; 
    z-index: 1;
}

.custom-slide.active {
    opacity: 1;
    z-index: 2;
}

/* --- БЛОК С ТЕКСТОМ --- */
.banner7-content {
    position: absolute;
    top: 40px; /* Текст начинается сверху */
    left: 40px;
    width: 55%;
    z-index: 10;
    text-align: left;
    /* Убрали transform и top 50%, которые ломали всё */
}

/* Оформление текста */
.banner7-content .title1 {
	font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    font-family: 'Rubik', sans-serif;
}
.banner7-content.slider-2 .title1 { color: #69acff; }

.banner7-content .sub-title {
	margin: 0 0 15px 0 !important;
    font-size: 34px !important;
    color: #ffffff;
    font-weight: 700 !important;
	font-family: 'Rubik', sans-serif;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.banner7-content .banner7-des {
    color: #f0f0f0;
    font-size: 15px !important;
    font-weight: 400;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Rubik', sans-serif;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* --- КНОПКА (НЕЗАВИСИМАЯ) --- */
.banner7-readmore {
    position: absolute !important; /* Вырываем из потока текста */
    top: 190px !important;         /* Жестко задаем позицию по вертикали */
    left: 0px !important;         /* Позиция по горизонтали */
    margin: 0 !important;          /* Убираем все отступы */
    display: inline-block;
    z-index: 10;
}

.banner7-readmore a.btn {
	background: #eb3e32 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Rubik', sans-serif;
    display: inline-block;
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 30px !important;
	border-radius: 5px !important;
    border: none !important;
    text-decoration: none;
    transition: ease .3s all;
}
.banner7-readmore a.btn:hover {
	background: #363f4d !important;
}

/* Точки навигации */
.custom-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}
.custom-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: 0.3s;
}
.custom-dot.active,
.custom-dot:hover {
    opacity: 1;
    background: #eb3e32;
}

/* ========================================= */
/* МОБИЛЬНАЯ ВЕРСИЯ (МАКСИМАЛЬНО УЖАТАЯ)     */
/* ========================================= */
@media (max-width: 767px) {
    .oc-banner7-container {
        height: 170px !important; 
    }

    .custom-slide {
        background-position: left center; 
    }

    .banner7-content {
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: 100% !important; 
        padding: 10px; 
        box-sizing: border-box;
    }
    
    .banner7-content .sub-title {
        font-size: 15px !important; 
        margin-bottom: 3px !important;
        line-height: 1.1 !important;
    }
    
    .banner7-content .banner7-des {
        font-size: 10px !important;
        line-height: 1.2 !important;
        padding-right: 40%; 
    }

    /* КНОПКА: поднимаем вверх за счет увеличения bottom */
    .banner7-readmore {
        position: absolute !important;
        top: auto !important;   
        bottom: 45px !important; /* <--- БЫЛО 10px, СТАЛО 45px (поднимает кнопку) */
        left: 10px !important;   /* Оставляем как вы просили */
        margin: 0 !important;
    }
    
    .banner7-readmore a.btn {
        height: 28px !important;
        line-height: 28px !important;
        font-size: 10px !important;
        padding: 0 12px !important;
        border-radius: 3px !important;
    }

    .custom-dots {
        bottom: 10px;
        right: 10px;
        left: auto; 
    }
}