@media screen and (max-width: 1037px) {
    .decorative-profiles .materials div {
        margin-bottom: 0; 
    }
}

@media screen and (max-width: 1024px) {
    .logo {
        width: 100%;
    }

    .rest {
        font-size: 18px;
    }

    .decorative-profiles .materials div {
        height: auto;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 960px) {
    .nav ul li {
        padding: 5px 54px;
    }

    .contacts > img {
        width: 86%;
    }

    .rest {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 12px;
    }

    .about-us-section img:hover {
        transform: scale(1,1)
    }
}

@media screen and (max-width: 768px) {
    .center {
        text-align: center;
    }

    .grid {
        padding: 0 5px;
    }

    .float-r {
        float: none;
    }

    .rest {
        font-size: 20px;
    }

    .logo {
        width: 174px;
        height: 76px;
    }

    .brand-container {
        margin-top: 20px;
        padding-top: 20px;
    }

    .logo .first-letter {
        position: absolute;
        font-size: 120px;
        bottom: -20px;
        left: 7px;
    }
    
    .half-width img,
    .products-section img {
        width: 100%;
    }

    .about-us-section img {
        padding: 0 !important;
    }

    .desktop-hide {
        display: block;
        text-align: right;
    }

    .nav {
        height: 0;
        opacity: 0;
        margin-top: 15px;
        overflow: hidden;
        visibility: hidden;
        transition: .4s;
    }

    .nav a {
        font-size: calc(1vw + 13px); 
    }

    .nav ul li {
        display: block;
        width: 100%;
        padding: 10px 0;
        text-align: right;
    }

    .mobile-label {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-bottom: 5px;
        font-size: 25px;
        cursor: pointer;
    }

    .mobile-label:after {
        content: '≡';
        position: absolute;
        font-size: 60px;
        right: 0;
        top: -30px;
    }

    #mobile:checked + .mobile-label:after {
        content: 'x';
        position: absolute;
        font-size: 60px;
        right: 0;
        top: -30px;
    }

    #mobile:checked + .mobile-label + .nav {
        opacity: 1; 
        visibility: visible;
        height: 160px;
    }

    .category-heading:before {
        display: none;
    }

    .contacts {
        text-align: left;
    }

    .contacts img {
        display: block;
        width: 60%;
        margin: 0; 
    }

    .footer-content {
        padding: 20px 0;
    }
    
    .footer-content > a {
        margin: 5px 20px;
    }

    .decorative-profiles .materials div {
        float: none;
        display: inline-block;
        width: calc(100% / 2 - 3px);
        padding: 0 10px;
        margin: 10px 0;
        height: auto;
        vertical-align: top;
    }

    .products.cust-links a:after {
        right: 95%;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .contacts-section .col-5-12,
    .contacts-section .col-6-12 {
        float: left;
        width: 50%; 
    }

    .products-section .col-6-12 { 
        float: left;
        width: 50%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 420px) {
    .decorative-profiles .materials div {
        float: none;
        width: 100%;
        padding: 0;
        height: auto;
    }
}

@media screen and (max-width: 320px) {
    .about-us-section img {
        width: 100%;
    }
}