.b-general__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px 26px;
    font-size: 0;
    transition: max-height 0.5s linear;
}

.b-general__container:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

.b-general__list {
    width: calc(100% + 30px);
    margin: 0 -15px;
}

.b-general__item-sizer {
    position: absolute;
    width: 25%;
}

.b-general__item,
.b-general__item:after {
    border-radius: 6px;
    transition: 0.3s ease-in-out;
}

.b-general__item {
    display: flex;
    align-items: flex-end;
    margin: 0 15px 30px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
}

.b-general__item:hover {
    -webkit-filter: grayscale(0) saturate(1) brightness(1) invert(0) contrast(1);
    filter: grayscale(0) saturate(1) brightness(1) invert(0) contrast(1);
}

.b-general__item:hover .b-general__item-img:before,
.b-general__item:hover:before {
    background: 0 0;
}

.b-general__item:hover:after {
    box-shadow: 0 4px 25px #83bbde;
}

.b-general__item,
.b-general__item:hover .b-general__item-img {
    -webkit-filter: none;
    filter: none;
}

.b-general__item:hover .b-general__item-title:before {
    opacity: 1;
    width: 100%;
}

.b-general__item:hover .b-general__item-title-text {
    color: #333;
}

.b-general__item:after {
    content: "";
    display: block;
    width: 90%;
    height: 40px;
    position: absolute;
    left: 5%;
    bottom: 0;
    z-index: -1;
    box-shadow: 0 4px 25px #899399;
}

.b-general__item--sh {
    height: 180px;
}

.b-general__item--lh {
    height: 390px;
}

.b-general__item--sw {
    width: calc(25% - 30px);
}

.b-general__item--lw {
    width: calc(50% - 30px);
}

.b-general__item-img,
.b-general__item-title {
    display: flex;
    width: 100%;
}

.b-general__item-img,
.b-general__item-img:before,
.b-general__item-title:before {
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s ease-in-out;
}

.b-general__item-img {
    align-items: flex-end;
    height: 100%;
    z-index: 1;
    border-radius: 6px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #fff;
    -webkit-filter: invert(10%) grayscale(70%) saturate(60%) brightness(110%) contrast(240%);
    filter: invert(10%) grayscale(70%) saturate(60%) brightness(110%) contrast(240%);
}

.b-general__item-img:before,
.b-general__item-title:before {
    content: "";
    bottom: 0;
}

.b-general__item-img:before {
    right: 0;
    border-radius: 6px;
    background-color: rgba(61, 188, 230, 0.3);
    background-image: linear-gradient(0deg, rgba(6, 71, 92, 0.55) 0%, rgba(6, 71, 92, 0.35) 100%);
    z-index: 1;
}

.b-general__item-title {
    align-items: center;
    height: 56px;
    margin: 0 0 24px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    border-left: 10px solid #ffdb00;

    background: linear-gradient(90deg, rgba(12, 21, 31, 0.749) 0%, rgba(10, 23, 37, 0.45) 60%, rgba(8, 28, 48, 0) 100%);
}

.b-general__item-title:before {
    width: 0;
    z-index: 2;
    background: linear-gradient(90deg, #ffdb00 0%, rgba(255, 252, 0, 0.7) 72.7%, rgba(255, 252, 0, 0) 100%);
    opacity: 0;
}

.b-general__item-title-text {
    margin: 0;
    position: relative;
    z-index: 3;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    transition: all 0.5s;
}

.b-general__btn {
    display: none;
}

@media only screen and (max-width: 1199px) {
    .b-general__container {
        padding: 32px 24px 16px;
    }

    .b-general__list {
        width: calc(100% + 24px);
        margin: 0 -12px;
    }

    .b-general__item {
        margin: 0 12px 24px;
    }

    .b-general__item--sh {
        height: 150px;
    }

    .b-general__item--lh {
        height: 324px;
    }

    .b-general__item--sw {
        width: calc(25% - 24px);
    }

    .b-general__item--lw {
        width: calc(50% - 24px);
    }

    .b-general__item-title {
        height: 46px;
        border-left-width: 8px;
    }

    .b-general__item-title-text {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1023px) {
    .b-general__container {
        padding-bottom: 24px;
    }

    .b-general__list {
        width: calc(100% + 24px);
        margin: 0 -12px;
    }

    .b-general__item {
        margin: 0 8px 16px;
    }

    .b-general__item--sh {
        height: 110px;
    }

    .b-general__item--lh {
        height: 236px;
    }

    .b-general__item--sw {
        width: calc(25% - 16px);
    }

    .b-general__item--lw {
        width: calc(50% - 16px);
    }

    .b-general__item-title {
        height: 36px;
        margin: 0 0 16px;
        padding-left: 12px;
        padding-right: 12px;
        border-left-width: 4px;
    }

    .b-general__item-title-text {
        font-size: 14px;
        letter-spacing: -0.4px;
    }
}

@media only screen and (max-width: 767px) {
    .b-general__container {
        display: flex;
        flex-wrap: wrap;
        max-height: 928px;
        margin-bottom: 0;
        padding: 16px 16px 24px;
        overflow: hidden;
    }

    .b-general__list {
        width: calc(100% + 8px);
        margin: 0 -4px;
    }

    .b-general__item:hover:after {
        box-shadow: 0 4px 8px #83bbde;
    }

    .b-general__item:after {
        box-shadow: 0 4px 8px #899399;
    }

    .b-general__item {
        width: calc(50% - 8px);
        margin: 0 4px 8px;
        /*-webkit-filter: none;*/
        /*filter: none;*/
    }

    .b-general__item--lh,
    .b-general__item--sh {
        height: 144px;
    }

    .b-general__item:nth-child(6n),
    .b-general__item:nth-child(6n-1) {
        width: calc(100% - 8px);
    }

    /*.b-general__item-img {*/
    /*    -webkit-filter: none;*/
    /*    filter: none;*/
    /*}*/
    /*.b-general__item-img:before {*/
    /*    display: none;*/
    /*}*/
    .b-general__item-title {
        height: 32px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .b-general__item-title-text {
        font-size: 10px;
        letter-spacing: 0;
    }

    .b-general__btn {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 8px auto 16px;
        padding: 16px;
        position: relative;
        background: 0 0;
        border: 0;
        cursor: pointer;
    }

    .b-general__btn:after {
        content: attr(data-services-show-text);
        padding-right: 8px;
        font-size: 16px;
        line-height: 14px;
        color: #00b9ff;
        background-color: #fff;
    }

    .b-general__btn:before {
        content: "";
        width: 32px;
        height: 16px;
        position: relative;
        top: -1px;
        background: url(/local/templates/webcom_2018/images/general/arrow-circle-blue.svg) #fff no-repeat center 0;
        transition: transform 0.5s;
    }

    .b-general__btn-line {
        width: calc(100vw - 32px);
        height: 2px;
        position: absolute;
        top: calc(50% - 1px);
        left: 50%;
        z-index: -1;
        background: #d0f1fc;
        transform: translateX(-50%);
    }
}
