.portfolio-hero {
            margin-bottom: 32px;
            padding: 28px 30px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 24px;
            background:
                radial-gradient(circle at top left, rgba(42, 121, 233, 0.22), transparent 34%),
                linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
        }
        .portfolio-hero p {
            margin: 12px 0 0;
            max-width: 680px;
            color: rgba(255, 255, 255, 0.76);
            line-height: 1.6;
            font-size: 1.02rem;
        }
        .portfolio-hero h2,
        .gallery-title-block h3 {
            border: none;
            padding: 0;
        }
        .portfolio-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 18px;
            margin-bottom: 34px;
        }
        .category-card {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            min-height: 220px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 22px;
            background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
            cursor: pointer;
            box-shadow: 0 18px 38px rgba(0,0,0,0.16);
            transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
            overflow: hidden;
            position: relative;
            backdrop-filter: blur(8px);
            animation: riseIn 0.55s ease both;
        }
        .category-card.active {
            border-color: rgba(121, 186, 255, 0.95);
            background: linear-gradient(180deg, rgba(42,121,233,0.22), rgba(255,255,255,0.06));
            box-shadow: 0 20px 44px rgba(15, 76, 129, 0.28);
            transform: translateY(-4px);
        }
        .category-placeholder {
            width: 100%;
            min-height: 138px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.7);
            font-size: 1.05em;
            font-weight: 600;
            letter-spacing: 0.02em;
            padding: 20px;
            text-align: center;
            background: linear-gradient(135deg, #25364f, #1b2434);
        }
        .category-preview {
            width: 100%;
            height: 138px;
            object-fit: cover;
            border-radius: 22px 22px 0 0;
            flex-shrink: 0;
            background: #1a1a1a;
            display: block;
        }
        .category-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 16px 18px 18px;
        }
        .category-card .category-caption {
            width: 100%;
            font-size: 1.05em;
            color: #fff;
            background: none;
            font-weight: 600;
            letter-spacing: 0.02em;
        }
        .category-count {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.10);
            color: rgba(255,255,255,0.72);
            font-size: 0.88rem;
        }
        .portfolio-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 22px;
            margin-top: 18px;
        }
        .work-item {
            background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 22px;
            box-shadow: 0 18px 36px rgba(0,0,0,0.12);
            overflow: hidden;
            width: 100%;
            height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
            cursor: pointer;
            animation: riseIn 0.55s ease both;
        }
        .work-item img.portfolio-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .work-item:hover {
            transform: translateY(-6px);
            border-color: rgba(121, 186, 255, 0.6);
            box-shadow: 0 24px 44px rgba(0,0,0,0.20);
        }
        .gallery-header {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 8px;
        }
        .gallery-tools {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .gallery-title-block h3 {
            margin: 0;
            font-size: 1.6rem;
            color: #fff;
        }
        .gallery-title-block p {
            margin: 8px 0 0;
            color: rgba(255,255,255,0.66);
        }
        .gallery-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 54px;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(121, 186, 255, 0.16);
            border: 1px solid rgba(121, 186, 255, 0.22);
            color: #d8ebff;
            font-weight: 600;
        }
        .gallery-reset {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 10px 14px;
            border: 1px solid rgba(255,255,255,0.10);
            border-radius: 999px;
            background: rgba(255,255,255,0.06);
            color: #fff;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
        }
        .gallery-reset:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,0.12);
        }
        .gallery-reset[hidden] {
            display: none;
        }
        .portfolio-empty {
            display: grid;
            place-items: center;
            min-height: 220px;
            border: 1px dashed rgba(255,255,255,0.16);
            border-radius: 24px;
            color: rgba(255,255,255,0.64);
            background: rgba(255,255,255,0.03);
            text-align: center;
            padding: 24px;
        }
        .lightbox {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0);
            z-index: 1000;
            padding: 32px;
            box-sizing: border-box;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, background 0.3s ease, visibility 0s linear 0.3s;
        }
        .lightbox.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.9);
            transition-delay: 0s;
        }
        .lightbox-dialog {
            position: relative;
            width: min(92vw, 1400px);
            height: min(88vh, 920px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px 88px 148px;
            opacity: 0;
            transform: translateY(18px) scale(0.97);
            transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: transform, opacity;
        }
        .lightbox.open .lightbox-dialog {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        .lightbox-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 14px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
            background: #111;
        }
        .lightbox-close,
        .lightbox-nav {
            position: absolute;
            border: none;
            color: #fff;
            background: rgba(255, 255, 255, 0.14);
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }
        .lightbox-close:hover,
        .lightbox-nav:hover {
            background: rgba(255, 255, 255, 0.24);
            transform: scale(1.05);
        }
        .lightbox-close {
            top: 10px;
            right: 10px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 28px;
            line-height: 1;
        }
        .lightbox-nav {
            top: 50%;
            transform: translateY(-50%);
            width: 56px;
            height: 72px;
            border-radius: 18px;
            font-size: 34px;
            line-height: 1;
        }
        .lightbox-nav:disabled {
            opacity: 0.35;
            cursor: default;
        }
        .lightbox-nav:hover {
            transform: translateY(-50%) scale(1.05);
        }
        .lightbox-nav:disabled:hover {
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.14);
        }
        .lightbox-prev {
            left: 14px;
        }
        .lightbox-next {
            right: 14px;
        }
        .lightbox-counter {
            position: absolute;
            left: 50%;
            bottom: 88px;
            transform: translateX(-50%);
            color: #fff;
            font-size: 0.95em;
            letter-spacing: 0.04em;
        }
        .lightbox-caption {
            position: absolute;
            left: 96px;
            right: 96px;
            bottom: 116px;
            text-align: center;
            color: rgba(255,255,255,0.84);
            font-size: 0.98rem;
        }
        .lightbox-thumbs {
            position: absolute;
            left: 24px;
            right: 24px;
            bottom: 18px;
            display: flex;
            justify-content: center;
            gap: 10px;
            max-width: none;
            overflow-x: auto;
            padding: 8px 4px 4px;
        }
        .lightbox-thumb {
            width: 68px;
            height: 68px;
            flex: 0 0 auto;
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 14px;
            overflow: hidden;
            background: rgba(255,255,255,0.08);
            cursor: pointer;
            opacity: 0.65;
            transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
        }
        .lightbox-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .lightbox-thumb.active {
            opacity: 1;
            transform: translateY(-2px);
            border-color: rgba(121, 186, 255, 0.8);
        }
        @media (prefers-reduced-motion: reduce) {
            .lightbox,
            .lightbox-dialog {
                transition: none;
            }
        }
        @media (max-width: 900px) {
            .portfolio-hero {
                padding: 22px 18px;
                border-radius: 20px;
            }
            .lightbox {
                padding: 18px;
            }
            .lightbox-dialog {
                width: 100%;
                height: min(84vh, 700px);
                padding: 56px 12px 118px;
            }
            .lightbox-nav {
                width: 48px;
                height: 64px;
                font-size: 28px;
            }
            .lightbox-prev {
                left: 8px;
            }
            .lightbox-next {
                right: 8px;
            }
            .lightbox-close {
                top: 8px;
                right: 8px;
            }
            .lightbox-counter {
                bottom: 74px;
            }
            .lightbox-caption {
                left: 12px;
                right: 12px;
                bottom: 98px;
                font-size: 0.92rem;
            }
            .lightbox-thumbs {
                left: 10px;
                right: 10px;
                bottom: 12px;
            }
            .lightbox-thumb {
                width: 56px;
                height: 56px;
            }
            .gallery-header {
                flex-direction: column;
                align-items: start;
            }
            .work-item {
                height: 220px;
            }
        }
        @media (max-width: 480px) {
            .portfolio-hero,
            .category-card,
            .work-item {
                border-radius: 18px;
            }
            .portfolio-categories,
            .portfolio-gallery {
                gap: 16px;
            }
        }
