/* Общие стили секции */
.custom-section {
    padding: 40px 0;
}

.custom-section__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4; /* Просто для фона страницы */
    margin: 0;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили контейнера слайдера */
.price-cards {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.custom-swiper {
    overflow: hidden; /* ВАЖНО: Обрезаем все, что не помещается */
    position: static;
    padding-bottom: 20px; /* Добавлен отступ для тени */
}

.swiper-wrapper {
    display: flex;
    align-items: stretch; /* Заставляем все слайды растягиваться по высоте */
}

.swiper-slide {
    flex-shrink: 0;
    width: 280px; /* Ширина одной карточки */
    /* margin-right удален, используется spaceBetween из JS */
    box-sizing: border-box;
    height: auto; /* Позволяем слайду растягиваться */
    display: flex;
}

/* Стили карточки */
.price-cards-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    height: 100%; /* Заставляем карточку занимать всю высоту слайда */
    display: flex;
    flex-direction: column;
    width: 100%; /* Карточка занимает всю ширину слайда */
}

.price-cards-card__header {
    background-color: #f7941d;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    min-height: 85px; /* Задаем минимальную высоту для выравнивания */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-cards-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-cards-card__description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    min-height: 54px; /* Чтобы выровнять высоту */
    padding-bottom: 20px;
    border-bottom: 1px solid #EBEBEB;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.custom-list__item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px; /* Увеличен отступ */
}

.custom-list__item::before {
    content: '✔';
    color: #28a745;
    position: absolute;
    left: 0;
    top: 0;
}

.price-cards-card__price {
    font-size: 24px;
    font-weight: bold;
    text-align: right;
    margin-top: auto; /* Прижимает цену к низу */
    padding-top: 20px;
}

/* Стили навигации и пагинации */
.custom-swiper__nav-button {
    position: absolute;
    top: 40%; /* Скорректировано положение */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-swiper__nav-button::after {
    font-size: 18px;
    color: #333;
}

.custom-swiper__nav-button--prev {
    left: 0;
}
.custom-swiper__nav-button--prev::after {
    content: '‹';
}

.custom-swiper__nav-button--next {
    right: 0;
}
.custom-swiper__nav-button--next::after {
    content: '›';
}


.swiper-pagination {
    position: relative; /* Чтобы пагинация была в потоке документа */
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 25px; /* Отступ от слайдера */
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
    border-radius: 50%;
    margin: 0 5px !important;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background-color: #f7941d;
}

@media (max-width: 767px) {
    .custom-swiper__nav-button {
        display: none;
    }

    .price-cards {
        padding: 0 15px; /* Уменьшаем боковые отступы на мобильных */
    }

    .swiper-slide {
        width: 210px;
    }

    /* Пропорционально уменьшаем внутренности карточки */
    .price-cards-card__header {
        padding: 11px;
        font-size: 15px;
        min-height: 64px;
    }

    .price-cards-card__content {
        padding: 15px;
    }

    .price-cards-card__description {
        font-size: 14px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        min-height: 40px;
    }

    .custom-list__item {
        padding-left: 19px;
        margin-bottom: 15px;
    }
    
    .price-cards-card__price {
        font-size: 18px;
        padding-top: 15px;
    }
}