﻿.home-qt {
    position: relative;
}

.home-qt-top {
    display: flex;
    align-items: center;
    position: relative;
}

    .home-qt-top .top-left {
        width: 541px;
    }

        .home-qt-top .top-left a {
            width: fit-content;
            background-color: var(--default-color-2);
            border-radius: 55px;
            color: #F4F4F4;
            padding: 0 51px;
            font-size: 24px;
            line-height: 121.1%;
            font-family: insM;
            padding-bottom: 15px;
            padding-top: 15px;
            transition: all .3s;
            margin-top: 49px;
        }

            .home-qt-top .top-left a:hover {
                opacity: .7;
            }

        .home-qt-top .top-left img {
            width: 252px;
        }

    .home-qt-top .top-left-title {
        margin: 0;
        color: var(--default-color-3);
        font-family: 'monM';
        font-size: 43px;
        line-height: 121.1%;
        font-weight: 100;
        margin-top: 28px;
    }

    .home-qt-top .top-right {
        position: absolute;
        right: -48px;
    }

    .home-qt-top .top-right-img {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .home-qt-top .top-right-img .decor {
            position: absolute;
            width: 70px;
            height: 0;
            border-radius: 55px;
            transform: rotate(-63deg);
            top: 178px;
            right: 232px;
            background-color: var(--default-color-2);
            box-shadow: 0 0 40px 5px var(--default-color-2);
            animation: forQTDecor .6s infinite forwards .2s;
        }

@keyframes forQTDecor {
    0% {
        opacity: 1;
        box-shadow: 0 0 40px 5px var(--default-color-2);
    }

    50% {
        box-shadow: 0 0 40px 5px var(--default-color-2);
        opacity: .6;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 40px 5px var(--default-color-2);
    }
}

.home-qt-top .top-right-img::before {
    content: "";
    position: absolute;
    width: 541px;
    height: 541px;
    background-color: var(--default-color-1);
    border-radius: 50%;
}

.home-qt-top .top-right-img::after {
    content: '';
    position: absolute;
    width: 113px;
    height: 113px;
    border-radius: 50%;
    background-color: var(--default-color-2);
    top: 22px;
    left: 130px;
}

.home-qt-top .top-right-img img {
    position: relative;
}

.home-qt .p-title {
    color: #fff;
}

.home-qt .p-title-cate {
    color: #FFE491;
}

.home-qt .grid.wide {
    z-index: 3;
    position: relative;
    max-width: 1292px;
}

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

.home-qt-container {
    padding-top: 253px;
    padding-bottom: 126px;
}

    .home-qt-container .p-title-cate {
    }

    .home-qt-container .p-title {
    }

    .home-qt-container .p-descript {
        font-size: 24px;
    }

.home-qt-swiper {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 12px;
    row-gap: 12px;
    max-width: 1212px;
    margin: 0 auto;
    margin-top: 201px;
}

.home-qt-item:hover::before {
    transform: rotate(-10deg) scale(1.2) translate(-16px, -2px);
    z-index: 2;
}


.home-qt-item:hover .img {
    opacity: 1;
}

.home-qt-item:hover::after {
    transform: translateY(49px) scale(.8);
}



.home-qt-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: fit-content;
}

    .home-qt-item .img {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 21px;
        overflow: hidden;
        opacity: 0;
        transition: all .3s;
    }

        .home-qt-item .img img {
        }


.home-qt-decor {
}

    .home-qt-decor img {
        width: 100%;
    }

.home-qt-item:hover .home-qt-img {
}

.home-qt-item:hover span {
}

.home-qt-item:hover .home-qt-img::before {
    transform: scale(1);
    opacity: 1;
}

.home-qt-img::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: #dba1418c;
    border-radius: 50%;
    top: -8px;
    left: -8px;
    box-shadow: 0 0 21px 1px #dba141cf;
    transform: scale(.6);
    opacity: 0;
    transition: .3s cubic-bezier(.3,1,0.9,1);
    backdrop-filter: blur(4px);
}

.home-qt-img {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: fit-content;
    transition: all .3s;
}

    .home-qt-img h3 {
        margin: 0;
        color: var(--default-color-1);
        font-family: 'monM';
        font-size: 24px;
        line-height: 121.1%;
        margin-left: 19px;
        transition: all ease .3s;
        font-weight: 100;
        max-width: 142px;
        transform: translateY(7px);
    }

        .home-qt-img h3:hover {
        }

.home-qt-item:hover .home-qt-img h3 {
}

.home-qt-item:hover span {
}


.home-qt-img img {
}

.home-qt-content {
    position: absolute;
    z-index: 2;
    margin-top: 6px;
    top: 100%;
    opacity: 0;
}

.home-qt-item:hover .home-qt-content h3 {
    color: var(--default-color-4);
}

.home-qt-content h3 {
    margin: 0;
    font-family: robotoM;
    font-weight: 100;
    font-size: 19px;
    color: var(--default-color-1);
    margin-top: 14px;
    line-height: 159.5%;
    margin-bottom: 10px;
}

.home-qt-content span {
    line-height: 155%;
    font-size: 16px;
    font-family: 'monSB';
    color: #FFFFFF;
    transition: all ease .3s;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    position: absolute;
}

.home-qt-item:hover .home-qt-content span {
}

.home-qt-decor {
    position: absolute;
    top: 0;
    left: 0;
}
/*RS*/
@media(max-width:1023px) {
    .home-qt-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }


    .home-qt-swiper {
        margin-top: 35px;
        padding-bottom: 35px;
        column-gap: 12px;
        row-gap: 45px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-qt-item {
        margin: 0 auto;
    }

    .home-qt-top .top-right {
        display: none;
    }
}

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

@media(max-width: 739px) {

    .home-qt-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

        .home-qt-container .p-title {
            font-size: 31px;
            line-height: 156%;
        }

    .home-qt-swiper {
        margin-top: 30px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 20px;
        column-gap: 20px;
        row-gap: 20px;
    }

    .home-qt-item:first-child {
    }

    .home-qt-content span {
        font-size: 16px;
    }

    .home-qt-content h3 {
        margin-top: 0;
        font-size: 17px;
        margin-bottom: 5px;
    }

    .home-qt-img {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .home-qt-img h3 {
            margin: 0;
            text-align: center;
            font-size: 24px;
            line-height: 152%;
            margin-top: 7px;
        }

    .home-qt-item {
        padding: 0;
    }

    .home-qt-top .top-left-title {
        font-size: 27px;
        margin-top: 18px;
    }

    .home-qt-decor {
        left: unset;
        right: -21px;
        transform: rotate(90deg);
        top: 21px;
    }

    .home-qt-top .top-left a {
        font-size: 21px;
        margin-top: 24px;
    }
}
