/* Hero-секция для страницы этапов ремонта */
.repair-stages-hero {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.6;
    color: #495057;
    max-width: 800px;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
    object-position: 22%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rsm-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}
.rsm-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding-bottom: 20px;
}
.rsm-card {
    min-width: calc(100vw / 1.5 - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rsm-card-content {
    padding: 40px 20px 20px 0px;
    min-height: 55%;
    position: relative;
}
.rsm-card-content .stage-dots {
    position: absolute;
    bottom: 0;
}
.rsm-card img {
    width: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.rsm-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}
.rsm-card p {
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 300;
}
/* Скрываем scrollbar */
.rsm-scroll-container::-webkit-scrollbar {
    display: none;
}
.rsm-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Адаптация */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 991.98px) {
    .repair-stages-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-image-container img {
        max-height: 350px;
    }
}

@media (max-width: 767.98px) {
    .repair-stages-hero {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .hero-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-image-container img {
        max-height: 300px;
    }
}
/* Блок этапов ремонта */
.repair-stages {
    background-color: #f8f9fa;
}

.stage-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stage-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
}

.stage-description {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: auto;
}

.stage-image {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-image img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.stage-dots {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.red-dot {
    width: 5px;
    height: 5px;
    background-color: #dc3545;
    border-radius: 50%;
}
.repair-form-section {
    background-color: #f8f9fa !important;
}
.repair-form-col {
    background-image: url('../assets/repair-form-background.png');
    background-size: cover;
    padding: 60px;
}
#steps-form .form-container {
    padding: 60px;
    background-color: #fff;
    border-radius: 10px;
}

/* Горизонтальный скролл на мобильных */
@media (max-width: 767.98px) {
    .repair-stages .row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        margin-right: -15px;
        margin-left: -15px;
    }
    
    .repair-stages .col-6 {
        min-width: 280px;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .stage-content {
        padding: 20px;
    }
    
    .stage-image img {
        height: 180px;
    }
    .repair-form-col {
        background-image: none;
        padding: 0 !important;
    }
    #steps-form .form-container {
        padding: none;
        border-radius: 0;
        background: none;
    }
}

/* Адаптация для средних экранов */
@media (max-width: 991.98px) {
    .stage-content {
        padding: 20px;
    }
    
    .stage-title {
        font-size: 18px;
    }
    
    .stage-description {
        font-size: 14px;
    }
}