img.header-middle-bar__logo {
    width: 100%;
    height: auto;
    max-height: 90px;
}
img.r-header-logo__image {
    width: 100%;
    height: auto;
}
.footer-copyright__logo img {
    max-width: 70%;
}
.slide__text {
    padding-top: 85px;
}
.categories-thumbs {
    --cols-count: 3;
}
.category-thumb__name {
    font-weight: 600;
    color: #34495e;
}
.category-thumb__image {
    padding: 20px;
}
.category-thumb__image-box+.category-thumb__name {
    margin-top: 0px;
    padding-bottom: 12px;
}
.category-thumb:hover .category-thumb__name {
    color: var(--link-color-hover);
}
input.storequickorder-button {
    margin-top: 15px;
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    color: var(--button-color);
    border-color: 1px solid var(--button-color);
}
input.storequickorder-button:hover {
    color: #fff;
}
.product-cart-form__block a.button {
    width: 100%;
}

.content-decorator iframe {
    border-radius: 10px;
}
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
    background-color: #fff;
    cursor: pointer;
}

.gallery figure:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery figure:hover img {
    transform: scale(1.05);
}

/* Модальное окно для просмотра изображения */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scale(1);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden;
}

.modal img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    transition: color 0.2s;
}

.modal-nav:hover {
    color: #3498db;
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .gallery figure {
        height: 200px;
    }
    
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery figure {
        height: 220px;
    }
    
    .modal-nav {
        font-size: 35px;
    }
    
    .modal-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
}