

        .container {
            max-width: 1920px;
            width: 100%;
            margin: 0 auto;
            padding: 0 20px;
        }


        /* Search and Filter Section */
        .filters-section {
            background-color: white;
            padding: 30px 0;
            padding-top: 100px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .search-box {
            display: flex;
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box input {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #ddd;
            border-radius: 50px 0 0 50px;
            font-size: 16px;
            outline: none;
            transition: var(--transition);
        }

        .search-box input:focus {
            border-color: var(--primary);
        }

        .search-box button {
            padding: 15px 25px;
            background: var(--secondary);
            color: black;
            border: none;
            border-radius: 0 50px 50px 0;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .search-box button:hover {
            background: #e67300;
        }

        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }

        .filter-tag {
            padding: 8px 16px;
            background: #f1f1f1;
            border-radius: 50px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 14px;
        }

        .filter-tag:hover, .filter-tag.active {
            background: var(--primary);
            color: white;
        }

        /* Content Tabs */
        .content-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            border-bottom: 1px solid #ddd;
        }

        .tab {
            padding: 15px 30px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            border-bottom: 3px solid transparent;
        }

        .tab.active {
            color: var(--primary);
            border-bottom: 3px solid var(--primary);
        }

        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
            align-items: stretch;
        }

        .gallery-item {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            display: flex; 
            flex-direction: column; 
            height: auto; 
            min-height: 350px;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .item-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .item-info {
            padding: 20px;
            flex-grow: 1; 
            display: flex;
            flex-direction: column;
        }

        .item-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--primary);
            flex-grow: 1; 
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 60px; 
        }

        .item-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 10px;
            flex-shrink: 0; 
        }

        .item-tag {
            padding: 4px 8px;
            background: #f1f1f1;
            border-radius: 4px;
            font-size: 12px;
            color: var(--dark);
            white-space: nowrap;
        }

        .item-type {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 5px 10px;
            background: var(--secondary);
            color: black;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            z-index: 2;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            overflow-y: auto;
            padding: 40px 20px;
        }

        .modal-content {
            background-color: white;
            max-width: 1200px;
            margin: 0 auto;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .modal-body {
            padding: 30px;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-image {
            width: 100%;
            max-height: 500px;
            object-fit: contain;
            margin-bottom: 20px;
            border-radius: 5px;
        }

        .modal-title {
            font-size: 24px;
            margin-bottom: 15px;
            color: var(--primary);
        }

        .modal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .modal-tag {
            padding: 5px 10px;
            background: #f1f1f1;
            border-radius: 4px;
            font-size: 14px;
        }

        .modal-description {
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .modal-details {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 5px;
            margin-top: 20px;
        }

        .modal-details h4 {
            margin-bottom: 10px;
            color: var(--primary);
        }

        /* 3D Viewer */
        .model-viewer {
            width: 100%;
            height: 400px;
            background: #f1f1f1;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            position: relative;
        }

        .model-placeholder {
            font-size: 18px;
            color: var(--gray);
            text-align: center;
        }

        .model-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .model-control {
            padding: 8px 15px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: var(--transition);
        }

        .model-control:hover {
            background: #004494;
        }

        /* Loading Animation */
        .loader {
            display: none;
            text-align: center;
            padding: 30px;
        }

        .loader .fas {
            font-size: 40px;
            color: var(--primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* No Results */
        .no-results {
            text-align: center;
            padding: 40px;
            grid-column: 1 / -1;
            color: var(--gray);
        }

        /* Responsive Design */
        @media (max-width: 1920px) {
            .container {
                padding: 0 5%;
            }
        }

        @media (max-width: 1600px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 1200px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 20px;
            }
        }

        @media (max-width: 992px) {
            .search-box {
                max-width: 100%;
            }
            
            .filter-tags {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 10px;
            }
            
            .content-tabs {
                overflow-x: auto;
                justify-content: flex-start;
                padding-bottom: 10px;
            }
            
            .tab {
                padding: 12px 20px;
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            }
            
            .modal-body {
                padding: 20px;
            }
            
            .model-viewer {
                height: 300px;
            }
        }

        @media (max-width: 420px) {
            
            .search-box {
                flex-direction: column;
            }
            
            .search-box input {
                border-radius: 50px;
                margin-bottom: 10px;
            }
            
            .search-box button {
                border-radius: 50px;
            }
            
            .model-controls {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        .lazy {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lazy.loaded {
            opacity: 1;
        }

        .item-image {
            background: #f0f0f0;
            transition: opacity 0.3s ease;
        }

        /* Стиль для кнопки "Показать еще" */
        .load-more-container {
            text-align: center;
            margin: 30px 0 50px;
        }

        .load-more-btn {
            padding: 15px 40px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
        }

        .load-more-btn:hover {
            background: #004494;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
        }

        .load-more-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Улучшенная ленивая загрузка */
        .lazy-image {
            opacity: 0;
            transition: opacity 0.5s ease;
            background: #f0f0f0;
        }

        .lazy-image.loaded {
            opacity: 1;
        }

        /* Анимация появления новых элементов */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .gallery-item.new-item {
            animation: fadeIn 0.5s ease forwards;
        }