.ks1 h1 {
  font-size: calc(1.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom:16px !important;
}
@media (min-width: 1200px) {
  .ks1 h1 {
    font-size: 3.5rem;
  }
}

.ks1 .col-12 {
	z-index:1;
	height: 100%;
	margin-top:160px;
}

.ks1 {
	background-size:cover;
  	background-position:center;
  	background-repeat:no-repeat;
  	min-height:50vh;  /* Обязательно укажите высоту */
  	margin:-6px -12px 0 -12px; /* Убираем стандартные отступы строки */
  	padding:16px;      /* Внутренние отступы для контента */
  	color:white;     /* Цвет текста */
  	position:relative; /* Для наложения */
}
.ks_black {
	position: absolute; top:0; left:0; right:0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); z-index:0;
}

.ks_lead {
  font-size: 1.25rem;
  font-weight:600 !important;
  letter-spacing:1px;
  margin: 10px 0px 0px 0px;
}
.carousel-image1 {
    width: 107%;
    height: 123%;
    object-position: center;
    /* Дополнительно можно добавить фон */
    background-color: #000; /* Черный фон если есть пустоты */
}
.carousel-image2 {
    width: 118%;
    height: 160%;
    object-position: center;
    /* Дополнительно можно добавить фон */
    background-color: #000; /* Черный фон если есть пустоты */
}
.carousel-image3 {
    width: 102%;
    height: 120%;
    object-position: center;
    /* Дополнительно можно добавить фон */
    background-color: #000; /* Черный фон если есть пустоты */
}
    .service-card {
        max-width: 1200px;
        margin: 20px auto;
        background-color: white;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    
    .service-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .carousel-column {
        width: 35%;
        background-color: #f1f3f4;
        padding: 20px;
        text-align: center;
    }
    
    .text-column {
        width: 65%;
        padding: 20px;
    }
    
    .service-title {
        color: #2c3e50;
        margin-top: 0;
        border-bottom: 2px solid #000000;
        padding-bottom: 10px;
    }
    
    .carousel-image {
        height: 300px;
        object-fit: cover;
        width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        filter: brightness(0.5);
    }
    
    .carousel-item a {
        display: block;
        width: 100%;
        height: 100%;
    }
    
    /* Мобильная адаптация */
    @media (max-width: 768px) {
        .carousel-column, 
        .text-column {
            width: 100%;
        }
        
        .carousel-column {
            order: 1;
        }
        
        .text-column {
            order: 2;
        }
        
        .service-content {
            flex-direction: column;
        }
        
        .carousel-image {
            height: 250px;
        }
        
        /* Для карточек с обратным порядком на мобильных */
        .service-content[style*="flex-direction: row-reverse"] {
            flex-direction: column;
        }
        
        .service-content[style*="flex-direction: row-reverse"] .carousel-column {
            order: 1;
        }
        
        .service-content[style*="flex-direction: row-reverse"] .text-column {
            order: 2;
        }
    }
    
    /* Дополнительные стили для карусели */
    .carousel {
        position: relative;
    }
    
    .carousel-inner {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-item {
        position: relative;
        display: none;
        float: left;
        width: 100%;
        margin-right: -100%;
        backface-visibility: hidden;
        transition: transform 0.6s ease-in-out;
    }
    
    .carousel-item.active {
        display: block;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15%;
        padding: 0;
        color: #fff;
        text-align: center;
        background: none;
        border: 0;
        opacity: 0.5;
        transition: opacity 0.15s ease;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: inline-block;
        width: 2rem;
        height: 2rem;
        background-repeat: no-repeat;
        background-position: 50%;
        background-size: 100% 100%;
    }
    
    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }
    
    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }