/* Стили для каталога изображений */
        .gallery-section {
            padding: 20px 0;
        }

        .filters-container {
            margin-bottom: 25px;
        }

        .filter-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-tab {
            padding: 12px 24px;
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            color: var(--text-dark);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .filter-tab:hover {
            border-color: var(--primary-light);
            transform: translateY(-2px);
        }

        .filter-tab.active {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
        }

        .filter-main-row {
            display: flex;
            gap: 15px;
            align-items: stretch;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .filter-group {
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            padding: 15px;
            flex: 1;
            min-width: 200px;
            display: flex;
            flex-direction: column;
            min-height: 110px;
        }

        .filter-group-title {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 12px;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-group-title i {
            color: var(--primary);
        }

        /* КРАСИВЫЕ КАСТОМНЫЕ СЕЛЕКТЫ */
        .filter-selector {
            position: relative;
            width: 100%;
        }

        .filter-selector-btn {
            width: 100%;
            padding: 14px 16px;
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .filter-selector-btn:hover {
            border-color: var(--primary-light);
            box-shadow: 0 4px 12px rgba(214, 51, 132, 0.1);
            transform: translateY(-1px);
        }

        .filter-selector-btn.active {
            border-color: var(--primary);
            background: rgba(214, 51, 132, 0.05);
        }

        .filter-selector-btn i {
            transition: transform 0.3s ease;
            color: #6B7280;
        }

        .filter-selector-btn.active i {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .filter-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            margin-top: 8px;
            padding: 8px;
            z-index: 100;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            display: none;
            max-height: 300px;
            overflow-y: auto;
        }

        .filter-dropdown.show {
            display: block;
        }

        .filter-option {
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .filter-option:hover {
            background: rgba(214, 51, 132, 0.1);
            transform: translateX(4px);
        }

        .filter-option.active {
            background: var(--primary);
            color: white;
            font-weight: 600;
        }

        .filter-option:last-child {
            margin-bottom: 0;
        }

        /* Специфические стили для блока возраста */
        .age-filter-group {
            min-height: 110px;
            padding-bottom: 15px;
        }

        .age-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .age-value-display {
            background: rgba(214, 51, 132, 0.1);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--primary);
            min-width: 80px;
            text-align: center;
        }

        /* Стили для ползунка возраста */
        .age-slider-container {
            position: relative;
            padding: 10px 0 5px 0;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .age-slider-track {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 6px;
            background: #E2E8F0;
            border-radius: 3px;
            transform: translateY(-50%);
        }

        .age-slider-range {
            position: absolute;
            top: 50%;
            height: 6px;
            background: var(--primary);
            border-radius: 3px;
            transform: translateY(-50%);
        }

        .age-slider-input {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 6px;
            -webkit-appearance: none;
            background: transparent;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .age-slider-input::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            pointer-events: all;
            transition: all 0.3s ease;
        }

        .age-slider-input::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
        }

        .age-slider-input::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            pointer-events: all;
        }

        /* Кнопки качества в одной строке с табами */
        .quality-tabs {
            display: flex;
            gap: 8px;
            margin-left: auto;
        }

        .quality-tab {
            padding: 10px 16px;
            background: white;
            border: 2px solid #E2E8F0;
            border-radius: 10px;
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }

        .quality-tab:hover {
            border-color: var(--primary-light);
            transform: translateY(-1px);
        }

        .quality-tab.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .gallery-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            background: white;
            cursor: pointer;
            aspect-ratio: 2 / 3;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(214, 51, 132, 0.2);
        }

        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .gallery-image.blurred-image {
            filter: blur(8px) brightness(0.9);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 15px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        .gallery-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 0.9rem;
            line-height: 1.3;
        }

        .gallery-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            opacity: 0.8;
        }

        .gallery-actions {
            position: absolute;
            top: 12px;
            right: 12px;
            display: flex;
            gap: 8px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover .gallery-actions {
            opacity: 1;
        }

        .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-size: 0.8rem;
        }

        .action-btn:hover {
            background: white;
            transform: scale(1.1);
        }

        .action-btn.like.active {
            background: var(--primary);
            color: white;
        }

        .quality-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .load-more-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .load-more-btn {
            background: white;
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 12px 30px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .load-more-btn:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
        }

        .hero-generate-btn {
            background: var(--primary-gradient);
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 16px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
            margin: 25px auto 0;
        }

        .hero-generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(214, 51, 132, 0.4);
        }

        .blurred-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            padding: 20px;
            z-index: 2;
        }

        .blurred-text {
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .blurred-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .blurred-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .blurred-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.8;
        }

        /* Стили для пустого состояния */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-light);
        }

        .empty-state-icon {
            font-size: 4rem;
            color: #E2E8F0;
            margin-bottom: 20px;
        }

        .empty-state-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-dark);
        }

        .empty-state-text {
            font-size: 1rem;
            margin-bottom: 25px;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
        }

        .reset-filters-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .reset-filters-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 12px;
            }

            .filter-main-row {
                flex-direction: column;
            }

            .filter-group {
                min-width: 100%;
                min-height: auto;
            }

            .age-filter-group {
                min-height: auto;
            }

            .filter-tabs {
                width: 100%;
                justify-content: center;
            }

            .quality-tabs {
                margin-left: 0;
                margin-top: 10px;
                justify-content: center;
                width: 100%;
            }

            .empty-state {
                padding: 40px 20px;
            }

            .empty-state-icon {
                font-size: 3rem;
            }

            .empty-state-title {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .gallery-item {
                aspect-ratio: 2 / 3;
            }

            .blurred-text {
                font-size: 1rem;
            }

            .blurred-btn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }

            .filter-tab, .quality-tab {
                padding: 10px 16px;
                font-size: 0.85rem;
            }

            .empty-state-title {
                font-size: 1.2rem;
            }

            .empty-state-text {
                font-size: 0.9rem;
            }
        }
