body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.cases-section {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.cases-section .section-title {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    display: block;
}

/* Стилизация основного слайдера */
.cases-slider {
    padding: 20px 50px; /* Добавляем вертикальные отступы и оставляем место для стрелок */
}

.cases-slider .swiper-slide {
    height: auto; /* Позволяем Swiper управлять высотой, но даем контенту растягиваться */
    display: flex;
}

/* Стилизация карточки кейса */
.case-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Более выраженная тень */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    width: 100%; /* Убедимся, что карточка занимает всю ширину слайда */
}

.case-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Стилизация информационной части карточки */
.case-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заставляет этот блок растягиваться, занимая доступное место */
}

.case-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px;
}

.case-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    color: #555;
    font-size: 0.9rem;
    flex-grow: 1; /* Заставляет список расти, отодвигая кнопку вниз */
}

.case-info ul li {
    padding-left: 15px;
    position: relative;
    margin-bottom: 8px;
}

.case-info ul li::before {
    content: '■';
    color: #FF962B;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
}

.order-button {
    width: 100%;
    padding: 12px;
    background-color: #FF962B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto; /* Прижимает кнопку к низу */
}

.order-button:hover {
    background-color: #e68625;
}

/* Стилизация вложенного слайдера */
.image-gallery-slider {
    width: 100%;
    height: 250px;
}

.image-gallery-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery-slider .swiper-pagination {
    --swiper-pagination-bullet-horizontal-gap: 6px;
}

/* Стилизация пагинации вложенного слайдера */
.image-gallery-slider .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.7;
    border: 1px solid rgba(0,0,0,0.2);
}

.image-gallery-slider .swiper-pagination-bullet-active {
    background-color: #FF962B;
    opacity: 1;
}

/* Стилизация основной навигации (стрелки для ПК) */
.cases-section .swiper-button-prev,
.cases-section .swiper-button-next {
    color: #FF962B;
    top: 50%;
    transform: translateY(-50%);
}
.cases-section .swiper-button-prev {
    left: 0;
}
.cases-section .swiper-button-next {
    right: 0;
}


/* Основная пагинация (точки для мобильных) - по умолчанию скрыта */
.main-pagination {
    display: none;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    /* Убираем горизонтальные отступы на мобильных, так как стрелок нет */
    .cases-slider {
        padding: 0 15px; /* Небольшие отступы по бокам, вертикальные убираем */
    }

    /* Скрываем стрелки на мобильных */
    .cases-section .swiper-button-prev,
    .cases-section .swiper-button-next {
        display: none;
    }

    /* Показываем основную пагинацию на мобильных */
    .main-pagination {
        display: block;
        position: static;
        margin-top: 20px;
        margin-bottom: 40px; /* Увеличенный отступ снизу от точек */
        --swiper-pagination-bullet-horizontal-gap: 8px;
    }

    .main-pagination .swiper-pagination-bullet {
        background-color: #ccc;
        border: 1px solid rgba(0,0,0,0.2);
        width: 10px;
        height: 10px;
        cursor: pointer; /* Убеждаемся, что точки кликабельны */
        transition: background-color 0.3s ease;
    }

    .main-pagination .swiper-pagination-bullet:hover {
        background-color: #FF962B;
        opacity: 0.8;
    }

    .main-pagination .swiper-pagination-bullet-active {
        background-color: #FF962B;
        opacity: 1;
    }

    .cases-section .section-title {
        display: block !important;
        text-align: center !important;
        margin: 24px 0 16px 0 !important;
        font-size: 22px !important;
        color: #222 !important;
        z-index: 2;
        position: relative;
    }

    /* Увеличиваем отступ снизу секции на мобильных после пагинации */
    .cases-section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Контейнер слайдера с отступом снизу */
    .cases-section .container {
        padding-bottom: 0;
    }
    
    .cases-section .swiper.cases-slider {
        margin-bottom: 0;
    }
} 