/* Стиль категорий */

.design {background-image: url(/pageset/dir/icon/design.png);}
.web {background-image: url(/pageset/dir/icon/web.png);}
.seo {background-image: url(/pageset/dir/icon/seo.png);}
.bot {background-image: url(/pageset/dir/icon/bot.webp);}

/* Стиль блоков */

#workmat {
    display: block;
    position: relative;
    background: #fff;
    line-height: 0px;
}

.styleimg #workmat {
    max-width: 600px;
    margin: 0px auto;
}

#workmat .rqcqlqtr {
    z-index: 3;
        background: #e30013;
    color: #fff;
}
.styleimg #workmat .rqcqlqtr {
    right: -3px;
}

#workmat .rqcqlqtr::after,
#workmat .rqcqlqtr::before {
        border-color: #c92734 #c92734 #c92734 transparent;
}

.workitem {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.workitem {
    cursor: default;
}

a.workitem {
    cursor: pointer;
}

#workmat .workitem img {
    width: 100%;
}

.wtxt_block {
    padding: 12% 18%;
    width: 64%;
    height: 76%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
        transition: all 0.5s;
        color: #fff;
}

.wtxt_block.addcolorb {
    color: #000;
}

.wtxt_block:hover.addcolorb {
    color: #fff;
}

.workitem_txt {
    line-height: 20px;
    margin: 0px auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    text-align: left;
}

.wtxt_block:hover {
    background-color: rgb(0 0 0 / 50%);
}

.workitem_title {
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    margin: 0px;
        text-transform: uppercase;
}

.workitem_mess {
    font-size: 12px;
    line-height: 20px;
    margin-top: 3%;
}

.bmat_left p.workitem_mess {
    text-align: left;
}

.workitem_url {
    z-index: 3;
    bottom: 1.5%;
    width: 100%;
    text-align: center;
    position: absolute;
    color: #fff;
    font-size: 10px;
    line-height: 22px;
    font-weight: 100;
    transition: all 0.5s;
}

.workitem_url.addcolorb {
    color: #000;
}

#workmat:hover .workitem_url.addcolorb {
    color: #fff;
}

@media only screen and (max-width:1499px) {
        .workitem_txt {
    -webkit-line-clamp: 5;
}
   .styleimg .workitem_txt {
    -webkit-line-clamp: 7;
}

}

@media only screen and (max-width:1279px) {

.wtxt_block {
    padding: 10% 18%;
    height: 80%;
}

.styleimg .wtxt_block {
    padding: 12% 18%;
    height: 76%;
}

    .workitem_mess {
    margin-top: 2%;
}

.styleimg .workitem_mess {
    margin-top: 3%;
}

       .styleimg .workitem_txt {
    -webkit-line-clamp: 6;
}


}

@media only screen and (max-width:1179px) {
        .workitem_txt {
    -webkit-line-clamp: 6;
}
}

@media only screen and (max-width:1099px) {
       .styleimg .workitem_txt {
    -webkit-line-clamp: 5;
}
}


@media only screen and (max-width:1023px) {
        .workitem_txt {
    -webkit-line-clamp: 6;
}

           .styleimg .workitem_txt {
    -webkit-line-clamp: 7;
}

}

@media only screen and (max-width:899px) {
        .workitem_txt {
    -webkit-line-clamp: 5;
}

@media only screen and (max-width:799px) {
        .workitem_txt {
    -webkit-line-clamp: 4;
}

.styleimg .workitem_txt {
    -webkit-line-clamp: 6;
}
}

@media only screen and (max-width:699px) {
        .workitem_txt {
    -webkit-line-clamp: 5;
}

}

    @media only screen and (max-width:599px) {

.styleimg .workitem_txt {
    -webkit-line-clamp: 5;
}

}


        @media only screen and (max-width:499px) {

.styleimg .workitem_mess {
    margin-top: 3%;
        font-size: 12px;
    line-height: 20px;
}

.styleimg .workitem_txt {
    -webkit-line-clamp: 5;
}

}

            @media only screen and (max-width:419px) {


.styleimg .workitem_txt {
    -webkit-line-clamp: 4;
}

}
