.categories {
    list-style: none;
    margin: 0 -10px !important;
    padding: 0 !important;
}
.categories li {
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    width: 33.333333%;
    padding: 0 10px 15px 10px !important;
    margin: 0;
    text-align: center;
}
.categories li::before {
    content: '';
    display: none;
}
.categories img {
    max-width: 100%;
    width: auto;
    max-height: 120px;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 5px;
}

.cdesc p {
    padding: 0 0 1em 0;
    margin: 0;
}
.opoczno_sub_categories {
    list-style: none;
    margin: 0 -20px 0 0;
}
.opoczno_sub_categories li {
    box-sizing: border-box;
    float: left;
    width: 25%;
    padding: 0 20px 10px 0;
}
.opoczno_sub_categories a {
    position: relative;
    -webkit-perspective: 2000px;
    -moz-perspective: 2000px;
    perspective: 2000px;
    display: block;
    width: inherit;
    /* line-height: 220px; */
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: table-cell;
}
.opoczno_sub_categories a img,
.opoczno_sub_categories a picture {}
.sub_cat_img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub_cat_img picture,
.sub_cat_img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.sub_cat_name {
    box-sizing: border-box;
    padding: 0 10px;
    display: inline-block;
    vertical-align: bottom;
    position: relative;
    bottom: 15px;
    white-space: nowrap;
    line-height: 30px;
    font-size: 20px;
    font-weight: 500;
    color: #FFF;
    background: #C41D3A;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.sub_cat_name:after {
    content: attr(data-name);
    position: absolute;
    z-index: -1;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    width: 100%;
    height: 100%;
    left: 0;
    top: 100%;
    background: #9C0F27;
    -webkit-transform-origin: 0% 0%;
    -webkit-transform: rotateX(-90deg);
    -moz-transform-origin: 0% 0%;
    -moz-transform: rotateX(-90deg);
    -ms-transform-origin: 0% 0%;
    -ms-transform: rotateX(-90deg);
    transform-origin: 0% 0%;
    transform: rotateX(-90deg);
}
a:hover .sub_cat_name {
    bottom: 30px;
    transform: rotateX(93deg);
}

.opoczno_features {
    list-style: none;
    font-size: 0;
    overflow: hidden;
}
.opoczno_features li {
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    width: 25%;
    font-size: 15px;
    padding: 0 10px 20px 10px;
    text-align: center;
}
.opoczno_features li.too_much_text {
    font-size: 13px;
    line-height: 16px;
}
.feature_icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    color: #C41D3A;
}
.bath {
    background-image: url(../../images/design/bath.svg);
}
.assortment {
    background-image: url(../../images/design/assortment.svg);
}
.resistant {
    background-image: url(../../images/design/resistant.svg);
}
.protection {
    background-image: url(../../images/design/protection.svg);
}
.rect {
    background-image: url(../../images/design/rect.svg);
}
.design {
    background-image: url(../../images/design/design.svg);
}
.recommended {
    background-image: url(../../images/design/recommended.svg);
}
.clean {
    background-image: url(../../images/design/clean.svg);
}
.percentage {
    background-image: url(../../images/design/percentage.svg);
}
@media(max-width:520px) {
    .categories li {
        width: 50%;
    }
}
@media screen and (max-width:620px) {
    .opoczno_sub_categories li {
        width: 50%;
    }
    .opoczno_sub_categories a {
        line-height: 160px;
        display: block;
        width: 100%;
    }
}
@media screen and (max-width:420px) {
    .opoczno_sub_categories li {
        width: 100%;
        float: none;
        display: block;
    }
    .opoczno_sub_categories a {
        line-height: 120px;
    }
}