/*----------------------------------------*/
/*  NEW COMPONENT: Service Section Three
/*  Стили для секции услуг с изображением слева
/*----------------------------------------*/

/* Базовые стили секции */
.service-section-three {
    background-image: url(../../assets/images/homepage-3/bg/pattern-1.png);
    background-position: center center;
    background-repeat: repeat;
}

/* Стили для изображения слева */
.service-section-three > .container > .row {
    display: flex;
    align-items: flex-end;
}

.service-three-img {
    text-align: left;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.service-three-img img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

/* Стили для карточек услуг (pbmit-service-style-3) */
.pbmit-service-style-3 {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--pbmit-white-color);
    margin-bottom: 30px;
}

/* Анимация для всех элементов */
.pbmit-service-style-3,
.pbmit-service-style-3 .pbminfotech-box-content:before,
.pbmit-service-style-3 .pbmit-service-icon-wrapper {
    -webkit-transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    -o-transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.pbmit-service-style-3 .pbminfotech-box-content {
    position: relative;
}

.pbmit-service-style-3 .pbminfotech-box-content-inner {
    padding: 40px 0px 30px;
}

.pbmit-service-style-3 .pbmit-service-icon-wrapper i {
    color: var(--pbmit-global-color);
    z-index: 1;
    position: relative;
}

.pbmit-service-style-3 .pbmit-service-title {
    position: relative;
    font-size: 16px;
    line-height: 20px;
    margin: 0px;
    z-index: 1;
}

.pbmit-service-style-3 .pbmit-service-title a {
    color: var(--pbmit-blackish-color);
    text-decoration: none;
    -webkit-transition: color 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    -o-transition: color 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: color 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.pbmit-service-style-3 .pbmit-service-icon-wrapper {
    font-size: 50px;
    line-height: 50px;
    margin-bottom: 20px;
    text-align: center;
}

/* Псевдоэлемент :after - белый фон (нижний слой) */
.pbmit-service-style-3 .pbminfotech-box-content:after {
    position: absolute;
    content: '';
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--pbmit-white-color);
    z-index: -2;
}

/* Псевдоэлемент :before - цветной фон при наведении (верхний слой) */
.pbmit-service-style-3 .pbminfotech-box-content:before {
    position: absolute;
    content: '';
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: visible;
    -webkit-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -moz-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: top;
    -ms-transform-origin: top;
    -moz-transform-origin: top;
    transform-origin: top;
}

/* Эффект при наведении - раскрытие цветного фона сверху вниз */
.pbmit-service-style-3:hover .pbminfotech-box-content:before {
    opacity: 1;
    visibility: visible;
    -webkit-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -moz-transform: scaleY(1);
    transform: scaleY(1);
    background-color: var(--pbmit-global-color);
}

/* Изменение цвета текста при наведении */
.pbmit-service-style-3:hover {
    color: var(--pbmit-white-color);
}

.pbmit-service-style-3:hover .pbmit-service-title a,
.pbmit-service-style-3:hover .pbmit-service-icon-wrapper i,
.pbmit-service-style-3:hover .pbmit-service-icon-wrapper i::before {
    color: var(--pbmit-white-color);
    transition-delay: .1s;
}

/* Стили для кнопки */
.service-section-three .pbmit-btn {
    margin-bottom: 40px;
    display: inline-block;
    background-color: var(--pbmit-global-color);
}

.service-section-three .pbmit-btn:hover {
    background-color: var(--pbmit-blackish-color);
}

/* Адаптивные стили */
@media (max-width: 1199px) {
    .service-section-three .pbmit-btn {
        margin-bottom: 30px;
    }
}

@media (max-width: 991px) {
    .service-section-three {
        padding-top: 100px;
    }
    
    .service-section-three > .container > .row {
        display: block;
        align-items: normal;
    }
    
    .service-three-img {
        text-align: center;
        margin-bottom: 50px;
        display: block;
        height: auto;
    }
    
    .service-section-three .pbmit-btn {
        margin-bottom: 40px;
    }
    
    .pbmit-service-style-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .service-section-three {
        padding-top: 60px;
    }
    
    .service-three-img {
        margin-bottom: 40px;
    }
    
    .pbmit-service-style-3 .pbminfotech-box-content-inner {
        padding: 30px 15px 25px;
    }
    
    .pbmit-service-style-3 .pbmit-service-icon-wrapper {
        font-size: 40px;
        line-height: 40px;
        margin-bottom: 15px;
    }
    
    .pbmit-service-style-3 .pbmit-service-title {
        font-size: 15px;
        line-height: 18px;
    }
}

