/* 1. Обертка слайдера */
body .top_slider_wrapp.maxwidth-banner { width: 100% !important; display: block !important; clear: both !important; }
body .custom-figma-slider { width: 100% !important; max-width: 1290px !important; margin: 0 auto !important; padding: 0 !important; background: transparent !important; }

/* ВОЗВРАЩАЕМ FLEXSLIDER'у КОНТРОЛЬ НАД ВЫСОТОЙ */
body .custom-figma-slider .flex-viewport { transition: height 0.3s ease !important; }

/* 2. Жесткие высоты для слайда, чтобы JS не ошибался */
body .custom-figma-slider .custom-banner-slide {
    height: 412px !important; /* Статика для десктопа */
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: block !important;
}

body .custom-banner-slide .target-link-overlay { position: absolute !important; top:0; left:0; width:100%; height:100%; z-index: 50 !important; }

/* 3. Внутренний контейнер */
body .custom-banner-slide .custom-banner-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important; 
    padding: 0 72px !important; 
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

/* 4. Текстовый блок */
body .custom-banner-slide .custom-banner-content {
    position: relative !important;
    z-index: 20 !important;
    width: 100% !important;
    max-width: 573px !important;
    text-align: left !important;
    display: block !important;
}

/* Шрифты и отступы */
body .custom-banner-slide .custom-banner-title {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 20px 0 !important;
    display: block !important;
    text-align: left !important;
}

body .custom-banner-slide .custom-banner-subtitle {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 33px 0 !important;
    display: block !important;
    text-align: left !important;
}

/* Кнопка */
body .custom-banner-slide .custom-banner-btn-wrap {
    position: relative !important;
    z-index: 30 !important;
    text-align: left !important;
    display: block !important;
}

body .custom-banner-slide .custom-banner-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #333333 !important;
    height: 56px !important;
    padding: 0 76px !important;
    border-radius: 4px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* 5. Картинка грузовика */
body .custom-banner-slide .custom-banner-image {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 792px !important; 
    height: 100% !important;
    z-index: 5 !important; 
}

body .custom-banner-slide .custom-banner-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom right !important; 
    display: block !important;
    max-width: none !important;
}

/* =========================================
   АДАПТИВ (СТРОГИЕ ПИКСЕЛИ)
   ========================================= */

/* Планшеты (меньше 991px) */
@media (max-width: 991px) {
    body .custom-figma-slider .custom-banner-slide { height: 320px !important; }
    body .custom-banner-slide .custom-banner-inner { padding: 0 40px !important; }
    body .custom-banner-slide .custom-banner-title { font-size: 32px !important; margin-bottom: 15px !important; }
    body .custom-banner-slide .custom-banner-subtitle { font-size: 16px !important; margin-bottom: 20px !important; }
    body .custom-banner-slide .custom-banner-btn { height: 44px !important; padding: 0 40px !important; }
    body .custom-banner-slide .custom-banner-image { width: 500px !important; }
}

/* Смартфоны (меньше 767px) */
@media (max-width: 767px) {
    body .custom-figma-slider .custom-banner-slide { height: 350px !important; } /* Достаточно места для текста и кнопки */
    
    body .custom-banner-slide .custom-banner-inner { 
        padding: 10px 20px !important; 
        align-items: flex-start !important; /* Поднимаем текст наверх */
    }
    
    body .custom-banner-slide .custom-banner-title { font-size: 20px !important; margin-bottom: 5px !important; }
    body .custom-banner-slide .custom-banner-subtitle { font-size: 14px !important; margin-bottom: 10px !important; }
    body .custom-banner-slide .custom-banner-btn { height: 44px !important; padding: 0 30px !important; }
    
    body .custom-banner-slide .custom-banner-image { 
        width: 90% !important; 
        height: 60% !important; 
        opacity: 0.25 !important; 
    }
}