/* =============================== */
/*       Заголовок секции         */
/* =============================== */

.section-heading-container {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading {
    color: #1a3c5e; /* темно-синий */
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* =============================== */
/*     КАРТОЧНЫЙ СЛАЙДЕР (SWIPER) */
/* =============================== */

:root {
    --swiper-theme-color: #f25c05 !important;
    --swiper-pagination-color: #f25c05 !important;
    --swiper-pagination-bullet-inactive-color: #f25c05 !important;
    --swiper-pagination-bullet-inactive-opacity: 0.5 !important;
    --swiper-pagination-bullet-opacity: 1 !important;
    --swiper-pagination-bullet-size: 10px !important;
}

/* Основной блок под слайдер */
.card-section {
    position: relative;
}

/* Контейнер слайдера */
.slide-container.swiper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 40px 0 30px 0; /* Увеличиваем padding-bottom: 60px + 30px */
}

/* Внутренний контейнер (контент) */
.slide-content {
    margin: 0 60px;
    overflow: hidden; /* Оставляем overflow: hidden для скрытия лишних карточек */
    position: relative;
}

/* Враппер карточек (swiper-wrapper) */
.card-wrapper {
    display: flex;
}

/* ===================== */
/*       Карточка        */
/* ===================== */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    padding-bottom: 25px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Добавляем центрирование для содержимого карточки */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Model ID */
.model-id {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3c5e;
    text-align: center;
    margin: 10px 0 5px;
}

/* Изображение в карточке */
.card-image {
    display: block;
    width: 380px;
    height: 250px;
    background: #fff;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Заголовок карточки */
.card-title {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-title h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #1a3c5e;
    margin: 0;
    line-height: 1.2;
}

/* Слоган */
.card-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

/* Подзаголовок, цена */
.subtitle {
    font-size: 1.5rem;
    color: #1a3c5e;
    text-align: center;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    color: #1a3c5e;
    text-align: center;
    margin-bottom: 15px;
}

.price span {
    color: #f25c05;
    font-weight: 600;
}

/* ===================== */
/*      Кнопка button    */
/* ===================== */
.button {
    background: linear-gradient(45deg, #f25c05, #ff8c33); /* Градиент из map.css */
    color: #fff;
    border: none;
    padding: 10px 20px; /* Отступы из map.css */
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1); /* Двойная тень из map.css */
    transition: all 0.3s ease;
    display: inline-flex; /* Для поддержки иконок */
    align-items: center;
    justify-content: center; /* Центрирование содержимого кнопки */
    gap: 5px; /* Для иконок */
    line-height: 1.5;
    min-height: 40px; /* Единая высота */
    font-size: 1rem; /* Размер шрифта из map.css */
    margin: 15px auto 0; /* Центрирование кнопки */
    text-transform: uppercase; /* Добавляем верхний регистр для текста */
}

.button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2); /* Тень при наведении */
    background: linear-gradient(45deg, #d94a00, #ff8c33); /* Градиент при наведении */
    animation: pulse 0.5s infinite; /* Эффект пульсации */
}

/* ===================== */
/*   Навигация Swiper    */
/* ===================== */
.slide-container .swiper-button-next,
.slide-container .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px;
    z-index: 100;
    cursor: pointer;
    background: linear-gradient(45deg, #f25c05, #ff8c33); /* Градиент из map.css */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; /* Обновленный переход */
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1); /* Двойная тень */
}

.slide-container .swiper-button-next:hover,
.slide-container .swiper-button-prev:hover {
    transform: translateY(-3px) scale(1.05); /* Эффект из map.css */
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2); /* Тень при наведении */
    background: linear-gradient(45deg, #d94a00, #ff8c33); /* Градиент при наведении */
    animation: pulse 0.5s infinite; /* Эффект пульсации */
}

.slide-container .swiper-button-next::before,
.slide-container .swiper-button-prev::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
}

.slide-container .swiper-button-next::before {
    transform: rotate(45deg);
}

.slide-container .swiper-button-prev::before {
    transform: rotate(-135deg);
}

.slide-container .swiper-button-next::after,
.slide-container .swiper-button-prev::after {
    content: none !important;
}

.slide-container .swiper-button-next {
    right: 20px;
}

.slide-container .swiper-button-prev {
    left: 20px;
}

/* Пагинация Swiper */
.card-section .swiper-pagination.card-pagination {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    font-size: 16px !important; /* Переопределяем font-size: 0 */
}

.card-section .swiper-pagination.card-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #f25c05 !important;
    opacity: 0.5 !important;
    border-radius: 50% !important;
    transform: scale(1) !important;
    transition: opacity 0.3s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease !important;
    display: inline-block !important; /* Убедимся, что буллеты отображаются */
}

.card-section .swiper-pagination.card-pagination .swiper-pagination-bullet-active {
    width: 14px !important;
    height: 14px !important;
    background: linear-gradient(45deg, #f25c05, #ff8c33) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Эффект пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    }
}

/* ===================== */
/*       Адаптив         */
/* ===================== */
@media screen and (max-width: 768px) {
    .slide-content {
        margin: 0 10px;
    }

    .slide-container .swiper-button-next,
    .slide-container .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        margin-top: -15px;
    }

    .slide-container .swiper-button-next::before,
    .slide-container .swiper-button-prev::before {
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-top: 2px solid #fff;
    }

    .card-image {
        width: 280px;
        height: 180px;
    }

    .card-title h1 {
        font-size: 1.5rem;
    }

    .model-id {
        font-size: 0.9rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .subtitle,
    .price {
        font-size: 1.2rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 36px; /* Чуть меньше для мобильных */
        text-transform: uppercase; /* Добавляем верхний регистр для текста */
    }

    .slide-container.swiper {
        padding: 40px 0 30px 0; /* 50px (существующий) + 30px (дополнительный) */
    }

    .card-section .swiper-pagination.card-pagination .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }

    .card-section .swiper-pagination.card-pagination .swiper-pagination-bullet-active {
        width: 12px !important;
        height: 12px !important;
    }
}