﻿.home-ser {
    position: relative;
}

    .home-ser .grid.wide {
        position: relative;
        z-index: 3;
    }

.home-ser-container {
    padding-bottom: 108px;
}

.home-ser-top {
    display: flex;
    align-items: end;
    align-items: flex-end;
    align-items: self-end;
    max-width: 1064px;
}

    .home-ser-top .left {
        flex: 1;
    }

    .home-ser-top .left-name {
        margin: 0;
        font-weight: 100;
        color: #ABABAB;
        font-family: 'barM';
        font-size: 24px;
    }

    .home-ser-top .left-title strong {
        color: var(--color-2);
    }

    .home-ser-top .left-title {
        margin: 0;
        font-family: 'barSB';
        text-transform: uppercase;
        color: #fff;
        font-size: 40px;
        line-height: 118%;
        margin-top: 6px;
    }

    .home-ser-top .right {
        position: relative;
        display: flex;
        align-items: center;
        height: fit-content;
    }

        .home-ser-top .right::before {
            content: '';
            position: absolute;
            width: 1px;
            height: 53px;
            background: rgba(255, 255, 255, 0.33);
            left: 0;
        }

        .home-ser-top .right section {
            position: relative;
            color: #CCCCCC;
            line-height: 138.7%;
            font-size: 14px;
            max-width: 699px;
            padding-left: 28px;
        }

            .home-ser-top .right section strong {
                color: var(--color-2);
                font-weight: 100;
                font-family: 'barM';
            }

.home-ser-list {
    max-width: 1073px;
    margin: 0 auto;
    margin-top: 50px;
}

    .home-ser-list .swiperhomeser {
    }

.home-ser-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgb(0 0 0 / 76%);
}

.home-ser-item {
    height: 419px;
    border-radius: 5px;
    border: 1px solid #A4A4A4;
    overflow: hidden;
    position: relative;
    transition: all .3s;
}

    .home-ser-item:hover {
        border-color: var(--color-2);
    }

.home-ser-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-ser-item:hover .home-ser-img img:nth-child(1) {
    opacity: 0;
}

.home-ser-item:hover .home-ser-img img:nth-child(2) {
    opacity: 1;
}

.home-ser-decor {
    position: absolute;
    bottom: 100%;
    width: 100%;
    max-height: 222.34px;
}

.home-ser-img img {
    transition: all .5s;
}

    .home-ser-img img:nth-child(1) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.home-ser-decor2 {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 892px;
}

.home-ser-item:hover .home-ser-line {
    width: 18px;
}

.home-ser-line {
    background: rgba(255, 255, 255, 0.33);
    width: 100%;
    height: 1px;
    transition: .7s cubic-bezier(.3,1,0.9,1);
}

.home-ser-img img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}


.home-ser .decor-1 {
    position: absolute;
    left: -45px;
    top: -92px;
    z-index: 5;
}

.home-ser .decor-2 {
    position: absolute;
    bottom: -56px;
    right: -11px;
    z-index: 9;
}

.home-ser .swiper {
    overflow: unset;
}

.home-ser-content {
    position: absolute;
    top: 0;
    z-index: 5;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 33px 29px;
}

.home-ser-item:hover .home-ser-title {
    color: #fff;
}

.home-ser-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    -webkit-line-clamp: 1;
    font-weight: 100;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-ser-title {
    text-transform: uppercase;
    color: var(--color-2);
    font-family: 'barM';
    font-size: 24px;
    padding-bottom: 14px;
    margin: 0;
    transition: all .3s;
}

.home-ser-item:hover .home-ser-descript {
    transform: translateY(0);
    opacity: 1;
    transition-delay: .1s;
}

.home-ser-item:hover .home-ser-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: .2s;
}

.home-ser-descript {
    opacity: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 140.7%;
    margin-top: 11px;
    transform: translateY(12px);
    transition: .5s cubic-bezier(.3,1,0.9,1);
}

.home-ser-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    transform: translateY(12px);
    opacity: 0;
    transition: .5s cubic-bezier(.3,1,0.9,1);
}

    .home-ser-btn img {
    }


@media(max-width:1023px) {
    .home-ser-decor,
    .home-ser-decor2 {
        display: none;
    }

    .home-ser {
        background-color: var(--color-1);
    }

    .home-ser-top {
        flex-direction: column;
        align-items: unset;
    }

        .home-ser-top .right section {
            padding-left: 0;
            border: none;
            margin-top: 10px;
            max-width: 100%;
        }

        .home-ser-top .right::before {
            display: none;
        }

    .home-ser-list {
        margin-top: 25px;
    }

    .home-ser-container {
        padding: 35px 0;
    }

    .home-ser-content {
       
        padding: 16px;
    }

    .home-ser-title {
    font-size: 22px;
}
    .home-ser-item {
    height: 308px;
}
}

@media(min-width:740px) and (max-width:1023px) {
}

@media(max-width:739px) {
    .home-ser-container {
        padding: 25px 0;
    }
    .home-ser-title span {
    -webkit-line-clamp: 2;
    text-transform: capitalize;
    line-height: 151%;
}
    .home-ser-item {
        height: 260px;
    }
        .home-ser-title {
        font-size: 22px;
    }
        .home-product.df .home-product-container {
        padding: 25px 0;
    }
}
