/* ==========================================
   БЛОК ПОПУЛЯРНЫХ УСЛУГ
   ========================================== */

.popular-services {
    margin: 40px 0px 70px 0px;
}

/* Шапка блока: Заголовок и Стрелки */
.popular-services-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    width: 100%;
}

.popular-services .title {
    color: #231C1A;
    font-size: 36px;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 0; /* Убран нижний отступ для flex-выравнивания */
}

.popular-services-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================
   СЛАЙДЕР И ВЫРАВНИВАНИЕ ВЫСОТЫ ПЛИТОК
   ========================================== */

.popular-services-slider {
    margin-top: 10px;
}

/* Отступы для того, чтобы всплывающие тени не обрезались */
.popular-services-slider .slick-list {
    padding: 20px 0 !important;
    margin: -20px 0 !important;
}

/* Одинаковая высота слайдов */
.popular-services-slider .slick-track {
    display: flex !important;
}

.popular-services-slider .slick-slide {
    height: auto !important;
    display: flex !important;
}

.popular-services-slider .slick-slide > div,
.popular-srv-wrap {
    width: 100%;
    height: 100%;
    padding: 0px 10px;
}


/* ==========================================
   КАРТОЧКА УСЛУГИ (POPULAR SRV ITEM)
   ========================================== */

.popular-srv-item {
    color: #562212;
    font-weight: 700;
    font-size: 22px;
    line-height: 120%;
    background-color: #FCF9F7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    width: 100%;
    min-height: 168px;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    background-repeat: no-repeat;
    background-position: right 15px bottom 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    
    /* Плавные анимации */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-position 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

.popular-srv-name {
    color: #562212;
    transition: color 0.3s ease;
}


/* ==========================================
   СТРЕЛКИ НА УРОВНЕ H2
   ========================================== */

.popular-services-arrows a.slick-prev,
.popular-services-arrows a.slick-next {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 46px;
    height: 46px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

.popular-services-arrows a.slick-prev {
    background-image: url(/local/templates/design2026/images/arrow-left.svg);
}

.popular-services-arrows a.slick-next {
    background-image: url(/local/templates/design2026/images/arrow-right.svg);
}


/* ==========================================
   HOVER-ЭФФЕКТЫ (ДЕСКТОП)
   ========================================== */

@media (hover: hover) and (pointer: fine) {

    /* Подъем карточки услуги, глубокая тень и сдвиг иконки */
    .popular-srv-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px rgba(86, 34, 18, 0.12);
        background-position: right 10px bottom 10px;
    }

    .popular-srv-item:hover .popular-srv-name {
        color: #ED5338; /* Акцентный цвет заголовка */
    }

    .popular-srv-item:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 6px 15px rgba(86, 34, 18, 0.1);
    }

    /* Анимация стрелок при наведении */
    .popular-services-arrows a.slick-prev:hover {
        transform: translateX(-4px) scale(1.08) !important;
    }

    .popular-services-arrows a.slick-next:hover {
        transform: translateX(4px) scale(1.08) !important;
    }

    .popular-services-arrows a.slick-prev:active,
    .popular-services-arrows a.slick-next:active {
        transform: scale(0.92) !important;
    }
}


/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 768px) {
    .popular-services-head {
        align-items: center;
    }
    .popular-services .title {
        font-size: 28px;
    }
    .popular-srv-item {
        font-size: 20px;
        min-height: 150px;
        padding: 18px;
    }
}