/* Блок "Доступные услуги" */
.product-services-mobile {
    display: block;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.product-services-mobile__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: none;
}

.product-services-mobile__slider {
    width: 100%;
    padding: 0 36px 40px;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Фиксируем минимальную высоту для стабильного позиционирования стрелок */
}

.product-services-mobile__slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.product-services-mobile__slider .swiper-slide {
    height: auto;
    display: flex;
    /* важно: НЕ задаём width — Swiper рассчитывает ширину слайдов сам */
}

.product-services-mobile__nav {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 50% !important;
    color: transparent;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer;
    transition: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    box-sizing: border-box !important;
}

/* Отключаем стандартные иконки Swiper (они рисуются через :after и могут "просвечивать") */
.product-services-mobile__nav.swiper-button-prev::after,
.product-services-mobile__nav.swiper-button-next::after {
    content: '' !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Убеждаемся, что стрелки круглые, переопределяя стили Swiper */
.product-services-mobile__nav.swiper-button-prev,
.product-services-mobile__nav.swiper-button-next {
    border-radius: 50% !important;
    overflow: hidden !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Рисуем наши “стандартные” галочки через ::before (не конфликтует со Swiper :after) */
.product-services-mobile__nav::before {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.product-services-mobile__nav--prev::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.product-services-mobile__nav--next::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Без анимаций/подпрыгиваний при наведении/нажатии */
.product-services-mobile__nav:hover,
.product-services-mobile__nav:active,
.product-services-mobile__nav:focus,
.product-services-mobile__nav:focus-visible {
    background: #fff !important;
    border-color: rgba(0, 0, 0, 0.22) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-50%) !important;
    top: 50% !important;
    outline: none;
}

.product-services-mobile__nav:active::before {
    /* не вращаем/не двигаем стрелку на active */
    transition: none !important;
}

.product-services-mobile__nav--prev {
    left: 6px;
}

.product-services-mobile__nav--next {
    right: 6px;
}

.product-services-mobile__nav.swiper-button-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.product-services-mobile__nav.swiper-button-disabled:hover {
    transform: translateY(-50%) !important;
    top: 50% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.product-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #f0cf4c;
}

.product-service-card__icon {
    width: 48px;
    height: 48px;
    background: #f0cf4c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-service-card__icon i {
    font-size: 22px;
    color: #000;
}

.product-service-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-service-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-service-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-service-card__title a:hover {
    color: #f0cf4c;
}

.product-service-card__description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-service-card__buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.product-service-card__btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    flex: 1;
    min-width: 0;
}

.product-service-card__btn--order {
    background: #f0cf4c;
    color: #000;
}

.product-service-card__btn--order:hover {
    background: #e0bf3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(240, 207, 76, 0.3);
}

.product-service-card__btn--details {
    background: transparent;
    color: #333;
    border: 1px solid #e0e0e0;
}

.product-service-card__btn--details:hover {
    border-color: #f0cf4c;
    color: #f0cf4c;
    background: #fff;
}

.product-services-mobile__pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.product-services-mobile__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.product-services-mobile__pagination .swiper-pagination-bullet-active {
    background: #f0cf4c;
    width: 24px;
    border-radius: 4px;
}

/* Стили для планшетов и десктопов */
@media (min-width: 769px) {
    .product-services-mobile {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .product-services-mobile__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .product-services-mobile__slider {
        padding: 0 44px 40px;
    }
    
    .product-service-card {
        padding: 20px;
        min-height: 260px;
    }
    
    .product-services-mobile__nav {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        border-radius: 50% !important;
    }
    
    .product-services-mobile__nav::before {
        width: 8px;
        height: 8px;
    }
    
    .product-services-mobile__nav--prev {
        left: 6px;
    }
    
    .product-services-mobile__nav--next {
        right: 6px;
    }
    
    .product-service-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
    
    .product-service-card__icon i {
        font-size: 26px;
    }
    
    .product-service-card__title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .product-service-card__description {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .product-service-card__buttons {
        gap: 10px;
    }
    
    .product-service-card__btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .product-services-mobile__slider .product-services-mobile__nav {
        display: none !important;
    }
    
    .product-services-mobile__slider {
        padding: 0 15px 40px !important;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 576px) {
    .product-services-mobile {
        margin-top: 24px;
        padding: 16px 0;
    }
    
    .product-services-mobile__title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .product-service-card {
        padding: 14px;
        min-height: 210px;
    }
    
    .product-services-mobile__slider {
        padding: 0 15px 40px !important;
    }
    
    .product-services-mobile__slider .product-services-mobile__nav {
        display: none !important;
    }

    .product-services-mobile__nav::before {
        width: 7px;
        height: 7px;
        border-top-width: 2px;
        border-right-width: 2px;
    }
    
    .product-service-card__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    
    .product-service-card__icon i {
        font-size: 20px;
    }
    
    .product-service-card__title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-service-card__description {
        font-size: 12px;
        margin-bottom: 10px;
    }
}