.footer__wrap.wrap.grid {
    display: none;
}
span.categories-bg__name {
    color: #fff;
    text-transform: uppercase;
    top: 4.5em !important;
    font-size: 22px;
    text-align: center;
}
.categories-bg.wrap .blocks__title {
    text-align: center;
}
.categories-bg.wrap.q1 {
    width: 1140px;
}


        .image-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 0 20px;
        }

      
        .image-card {
            position: relative;
            cursor: pointer;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            height: 250px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

 
        @media (min-width: 769px) {
            .image-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            }
        }

   
        @media (max-width: 768px) {
            .image-card:active {
                transform: scale(0.98);
                transition: transform 0.1s ease;
            }
        }


        .image-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }


        .image-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            transition: opacity 0.3s ease;
            z-index: 1;
        }

     
        @media (min-width: 769px) {
            .image-card:hover .image-wrapper::before {
                background: rgba(0, 0, 0, 0.3);
            }
        }


        .image-title {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            z-index: 2;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            width: 90%;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

    
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 3;
            padding: 20px;
            pointer-events: none;
        }


        .overlay-text {
            color: #333;
            font-size: 16px;
            line-height: 1.5;
            text-align: center;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

    
        @media (min-width: 769px) {
            .image-card:hover .overlay {
                opacity: 1;
            }

            .image-card:hover .overlay-text {
                transform: translateY(0);
            }

            .image-card:hover .image-title {
                opacity: 0;
            }

            .image-card:hover img {
                transform: scale(1.05);
            }
        }

   
        @media (max-width: 768px) {
            body {
                padding: 20px 15px;
            }

            .image-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .image-card {
                height: 200px;
                border-radius: 10px;
            }
            
            .image-title {
                font-size: 18px;
                font-weight: 600;
                text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
                padding: 0 10px;
            }
            
       
            .image-wrapper::before {
                background: rgba(0, 0, 0, 0.55);
            }
            
     
            .image-card.active .overlay {
                opacity: 1;
            }
            
            .image-card.active .overlay-text {
                transform: translateY(0);
            }
            
            .image-card.active .image-title {
                opacity: 0;
            }
            
            .image-card.active img {
                transform: scale(1.05);
            }
            
            .overlay-text {
                font-size: 14px;
                padding: 0 5px;
            }
            
      
            .image-card {
                cursor: pointer;
                -webkit-tap-highlight-color: transparent;
            }
        }
        
     
        @media (max-width: 480px) {
            body {
                padding: 15px 10px;
            }
            
            .image-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .image-card {
                height: 220px;
                border-radius: 12px;
            }
            
            .image-title {
                font-size: 20px;
            }
            
            .overlay-text {
                font-size: 15px;
            }
        }
        

        @media (min-width: 769px) and (max-width: 1024px) {
            .image-grid {
                gap: 15px;
            }
            
            .image-card {
                height: 220px;
            }
            
            .image-title {
                font-size: 20px;
            }
        }
        

        @media (hover: none) and (pointer: coarse) {
            .image-card {
                cursor: default;
            }
            
            .overlay {
                transition: opacity 0.2s ease;
            }
        }
        
.bold {
    font-weight: bold;
}
hr {
    border-top: 1px solid #C7C7C7;
    border-bottom: 1px solid #fff;
}
hr {
    margin-top: 20px;
    margin-bottom: 20px;
}
.contacts-block .element svg{
    width: 20px;
    height: 20px;
    color: #f44336;
    position: relative;
    bottom: -2px;
    margin-right: 3px;
}
.contacts-block .address-element svg{
    width: 16px;
    margin-right: 7px;
}
.contacts-block .email-element svg{
    margin-right: 7px;
    bottom: -4px;
}
        
.blocks__title.q1 {
    text-align: center;
}
.products.wrap1.q1 {
    padding: 0 20px;
}
a.decoration-hover {
    color: #f70000;
    text-decoration: none !important;
}

@media (max-width: 768px){
.categories-bg.wrap.q1 {
    width: 100%;
}
.categories-bg__wrap {
    --up-grid-columns: 1;
}
}

