/* MODULE1 — СЛАЙДЕР ДЛЯ DLE 19.0 
   (высота 700px + текст по центру по вертикали) */

.m1-slider-wrap {
    width: 100%;
    height: 700px;                    /* ← нужная высота */
    position: relative;
    overflow: hidden;
}

.m1-slide {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ==================== ТЕКСТ — ПО ЦЕНТРУ ==================== */

.m1-slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;          /* вертикальное центрирование */
    height: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}

.m1-slide-text-1 {
    font-size: 46px;
    line-height: 1.08;
    color: #fff;
    font-weight: 600;
    max-width: 790px;
    position: relative;
}

/* Красный span */
.m1-slide-text-1 .m1-red-text {
    color: #e63946 !important;
}

.m1-slide-text-1:before {
    content: '';
    display: block;
    width: 85px;
    height: 4px;
    position: absolute;
    top: -12px;
    left: 0;
    background: #fff;
}

.m1-slide-text-2 {
    font-size: 18.5px;
    color: #fff;
    line-height: 1.45;
    max-width: 670px;
    padding-top: 22px;
}

/* ==================== КНОПКИ ==================== */

.m1-slide-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 32px;
}

.m1-button {
    min-width: 135px;
    height: 40px;
    line-height: 40px;
    font-size: 14.8px;
    padding: 0 17px !important;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e63946;
    color: #fff;
}

.m1-button:hover {
    background-color: #e63946;
    color: #fff;
}

/* ====================== АДАПТИВ ====================== */

@media (max-width: 1279px) {
    .m1-slider-wrap { height: 620px; }
    .m1-slide-text-1 { font-size: 40px; }
}

@media (max-width: 767px) {
    .m1-slider-wrap { height: calc(100vh - 90px) !important; }
    .m1-slide-text-1 { font-size: 30px; }
    .m1-slide-text-2 { font-size: 15.5px; padding-top: 20px; }
    .m1-slide-buttons { margin-top: 28px; gap: 10px; }
    .m1-button { 
        min-width: 118px; 
        height: 38px; 
        line-height: 38px; 
        font-size: 13.5px;
        padding: 0 16px !important;
    }
}

@media (max-width: 567px) {
    .m1-slider-wrap { height: calc(100vh - 78px) !important; }
    .m1-slide-text-1 { font-size: 25px; }
    .m1-slide-text-2 { font-size: 14.5px; padding-top: 18px; }
    .m1-slide-buttons { 
        gap: 9px; 
        justify-content: center; 
        margin-top: 25px;
    }
    .m1-button { 
        min-width: 104px; 
        height: 36px; 
        line-height: 36px; 
        font-size: 13px; 
        padding: 0 14px !important;
    }
}