/* ==========================================================================
   1. ZMIENNE GLOBALNE I RESET
   ========================================================================== */

:root {
    --bg-color: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* ZGASZONE ZŁOTO (Elegancja) */
    --gold-accent: #c5a059; 
    --gold-glow: rgba(197, 160, 89, 0.4);
    --gold-bg: rgba(197, 160, 89, 0.1);
    
    --font-main: 'Montserrat', sans-serif;
    --spacing-section: 120px;
    --h2-main-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff; /* Fallback */
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   GLOBALNA NAPRAWA ROZPYCHANIA EKRANU (HORIZONTAL OVERFLOW)
   ========================================================================== */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* Naprawa kontenera karuzeli - wymuszenie ukrywania elementów wychodzących poza ekran */
.my-swiper-1x2 {
    width: 100%;
    overflow: hidden !important; 
    position: relative;
}

/* ==========================================================================
   KLASY UŻYTKOWE: STRUKTURA I TŁA (FULL-WIDTH PARALLAX)
   ========================================================================== */

.light-section {
    background: url('../img/bg-page-light.webp') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
}

.dark-section {
    background: url('../img/bg-page-dark.webp') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    color: #ffffff;
}

.dark-section .section-desc {
    color: var(--gold-accent);
    opacity: 0.9;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: var(--spacing-section) 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--h2-main-size);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================================
   2. KOMPONENTY GLASSMORPHISM
   ========================================================================== */

.glass-card, .glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card-simple {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}

.btn-glass {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-glass.primary {
    background: #ffffff;
    color: #000000;
}

.btn-glass.primary:hover {
    background: #e0e0e0;
}

/* ==========================================================================
   3. NAWIGACJA (FULL WIDTH & LIGHT)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo img {
    height: 35px;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px; height: 3px;
    background: #000;
    transition: 0.3s;
}

/* ==========================================================================
   4. SEKCJA HERO (DESKTOP)
   ========================================================================== */

#hero {
    background: url('../img/bg-hero.webp') no-repeat center center;
    background-size: cover;
    padding: 120px 5% 60px 5%; 
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.hero-left { grid-column: 1; display: flex; justify-content: flex-start; }
.hero-center { grid-column: 2; display: flex; justify-content: center; }
.hero-right { grid-column: 3; text-align: right; color: #fff; }

.hero-logo { max-width: 500px; margin-right: -100px; }
.hero-center img { max-height: 50vh; }

.hero-right h1 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
}
s
.hero-mobile-btn {
    display: none !important;
}

.mobile-only-content { display: none; }
.desktop-logo { display: block; }
.mobile-logo { display: none; }

/* ==========================================================================
   5. ZAUFALI MI (GRID 5x2)
   ========================================================================== */

.clients-section {
    background: #ffffff;
    width: 100%;
    padding: 100px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.clients-carousel-container {
    /* width: 100%; */
    max-width: 1400px; 
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.clients-desc {
    color: var(--text-secondary);
    max-width: 600px; 
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.clients-carousel-container::before,
.clients-carousel-container::after {
    content: ''; position: absolute; top: 0; bottom: 0;
    width: 120px; z-index: 10; pointer-events: none;
}
.clients-carousel-container::before { left: 0; background: linear-gradient(to right, #ffffff, transparent); }
.clients-carousel-container::after { right: 0; background: linear-gradient(to left, #ffffff, transparent); }

.clients-responsive-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 160px;
    align-items: center;
    justify-items: center;
}

.clients-title {
    font-size: var(--h2-main-size);
    margin-bottom: 15px;
    font-weight: 800;
    color: #000;
}

.client-logo-item img {
    width: 100%;
    max-width: 250px;
    max-height: 250px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/* ==========================================================================
   6. OFERTA (MAKIETA POPRAWIONA)
   ========================================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.makieta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 40px; 
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.makieta-header {
    height: 140px;
    position: relative;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.makieta-header-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); 
}

.makieta-title {
    position: relative;
    color: #ffffff; 
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 800;
    padding-right: 120px;
}

.makieta-icon {
    position: absolute;
    top: 20px; 
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 3;
}

.makieta-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
}

.makieta-body {
    flex-grow: 1;
    padding: 70px 30px 30px 30px;
    margin-top: -60px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    z-index: 0;
}

.makieta-item-title { color: #000; font-weight: 700; margin-bottom: 4px; } 
.makieta-item-desc { color: #444; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px; }

/* ==========================================================================
   7. POZOSTAŁE SEKCJE (PORTFOLIO, O MNIE, STOPKA)
   ========================================================================== */

.portfolio-gallery { margin-bottom: var(--spacing-section); }
.gallery-title { font-size: 2.2rem; margin-bottom: 45px; font-weight: 800; }

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; }
.about-content .glass-card, .timeline-content { padding: 50px; }

/* ==========================================================================
   STOPKA (DARK & PREMIUM - PARALLAX BACKGROUND)
   ========================================================================== */

.dark-footer {
    background: url('../img/bg-page-dark.webp') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    padding: 120px 0 40px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contact {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 80px auto;
}

.footer-contact h2 {
    font-size: var(--h2-main-size);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-accent);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.footer-lead {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 50px;
    opacity: 0.9;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-info-item h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-info-item p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-link {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-accent);
}

/* Przyciski w stopce */
.footer-contact .contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-contact .btn-glass.primary {
    background: var(--gold-accent) !important;
    color: #000000 !important;
    box-shadow: 0 10px 25px var(--gold-glow);
}

.footer-contact .btn-glass.primary:hover {
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.footer-bottom .copyright p {
    font-size: 0.85rem;
    color: #888888;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 25px;
}

.footer-bottom .legal-links a {
    font-size: 0.85rem;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

.footer-bottom .legal-links a:hover {
    color: var(--gold-accent);
}

/* ==========================================================================
   RESPONSYWNOŚĆ STOPKI
   ========================================================================== */

@media (max-width: 768px) {
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 20px;
    }
}

/* ==========================================================================
   8. O MNIE & TIMELINE (DARK THEME)
   ========================================================================== */

.dark-section {
    width: 100%;
    margin: 0;
    padding: 100px 0;
    position: relative;
    color: #ffffff;
}

.dark-glass {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.dark-glass h2, .dark-glass h3 { color: #ffffff; }
.dark-glass p { color: #cccccc; }

.about-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
}

.about-content .glass-card, .timeline-content { padding: 50px; }

.about-header-with-photo {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.achievements-list {
    padding-left: 20px;
    color: #cccccc;
}
.achievements-list li { margin-bottom: 10px; }

.achievements-section-title {
    font-size: var(--h2-main-size) !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 50px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: left;
}

.timeline {
    position: relative; 
    padding-left: 35px; 
    margin-top: 40px;
    border-left: 3px solid rgba(255, 255, 255, 0.1); 
}

.timeline-item { margin-bottom: 70px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute; left: -44.5px; top: 5px;
    width: 20px; height: 20px; 
    background: var(--gold-accent); 
    border-radius: 50%; border: 4px solid #1a1a1a; 
    box-shadow: 0 0 15px var(--gold-glow); 
}

.timeline-date { 
    background: var(--gold-bg); 
    color: var(--gold-accent); 
    border: 1px solid var(--gold-glow); 
    display: inline-block; margin-bottom: 15px;
    padding: 3px 8px;
}

.timeline-content h2 {
    font-size: var(--h2-main-size);
    margin-bottom: 25px;
    font-weight: 800;
}

.timeline-company { font-size: 1.2rem; color: #ffffff; margin-bottom: 4px;}
.timeline-role { font-size: 1rem; color: #aaaaaa; margin-bottom: 15px; font-weight: 500; }

.about-card-split {
    display: flex;
    overflow: hidden;
    padding: 0 !important;
    min-height: 480px;
}

.about-text-side {
    flex: 1;
    padding: 50px 40px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-side h2 {
    margin-bottom: 25px;
    font-size: var(--h2-main-size);
    font-weight: 800;
}

.about-text-side p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}
.about-text-side p:last-child { margin-bottom: 0; }

.about-image-side {
    width: 38%;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-photo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.achievement-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievements-modern-grid {
    display: flex;
    flex-direction: column;
}

.achievement-icon-wrapper {
    min-width: 65px;
    max-width: 65px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5px;
}

.achievement-trophy-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.achievements-modern-module {
    padding: 50px;
    width: 100%;
}

.achievement-modern-card {
    display: flex;
    align-items: flex-start;
    gap: 25px; 
    padding: 25px 0;
    margin-bottom: 0; 
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.achievement-modern-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.achievement-modern-card:first-child {
    padding-top: 0;
}

.achievement-modern-card:hover {
    transform: translateX(8px);
}

.achievements-section-title {
    font-size: var(--h2-main-size) !important;
    font-weight: 800;
    text-transform: none !important;
    margin-top: 0; 
    margin-bottom: 40px;
    letter-spacing: 0;
    color: #ffffff;
    text-align: left;
}

.achievement-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
    min-width: 50px; 
}

.achievement-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-accent); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cccccc;
}

/* ==========================================================================
   SEKCJA B2B
   ========================================================================== */

.b2b-white-section {
    padding: 120px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.b2b-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.b2b-white-section .btn-glass.primary {
    background: #000000 !important;
    color: #ffffff !important;
}

.b2b-white-section .btn-glass.primary:hover {
    background: #222222 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.b2b-title {
    font-size: var(--h2-main-size);
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b2b-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.b2b-top-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.b2b-top-icon {
    height: 95px;
    width: auto;
    object-fit: contain;
}


/* ==========================================================================
   9. MEDIA QUERIES (MOBILE)
   ========================================================================== */

@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        position: absolute;
        top: 60px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.active { transform: translateY(0); }
    .hamburger { display: flex; }

    #hero {
        height: auto;
        padding: 100px 5% 40px 5%;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }

    .hero-center { 
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    .hero-center img { 
        max-height: 250px; 
        margin: 0 auto; 
    }

    .hero-left { 
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex;
        flex-direction: column;
        align-items: flex-end; 
        text-align: right;
        width: 100%;
    }

    .hero-right { 
        grid-column: 2 !important;
        grid-row: 2 !important;
        color: #ffffff; 
        text-align: left;
    }
    
    .hero-mobile-headline {
        color: #000000; 
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 15px 0 0 0;
        text-transform: uppercase;
        text-align: right; 
    }

    .hero-mobile-btn {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        display: inline-block !important; 
        justify-self: center !important;
        margin-top: 25px; 
        white-space: nowrap !important;
        width: max-content !important;
        padding: 12px 28px !important;
        font-size: 0.75rem !important;
        letter-spacing: 1px;
    }

    .hero-description {
        color: #ffffff;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero-logo { max-width: 90px; margin-right: 0px; margin-top: -35px}

    .desktop-logo { display: none !important; }
    .mobile-logo { 
        display: block !important; 
        width: 100%;
        max-width: 150px; 
        height: auto;
    }

    .mobile-only-content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    .clients-responsive-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 30px;
        padding: 0 40px;
        scrollbar-width: none;
    }
    .clients-responsive-wrapper::-webkit-scrollbar { display: none; }
    .client-logo-item { flex: 0 0 auto; }
    .client-logo-item img { max-width: 150px; }

    .about-grid { grid-template-columns: 1fr; }

    .about-header-with-photo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-card-split {
        flex-direction: column-reverse !important;
        min-height: auto;
    }

    .about-image-side {
        width: 100%;
        height: 350px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-text-side {
        padding: 35px 25px;
    }

    .achievements-modern-module {
        padding: 35px 25px;
    }

    .achievement-modern-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px;
        padding: 25px 0;
    }

    .achievement-icon-wrapper {
        min-width: auto;
        max-width: 70px;
        margin-top: 0;
    }
    
    .achievements-section-title {
        text-align: center !important;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   PORTFOLIO PAGE - GRID & SKELETON LOADER
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-title {
    font-size: var(--h2-main-size);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.portfolio-item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.img-skeleton-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-skeleton-wrapper.ratio-1x2 { aspect-ratio: 1 / 2; }
.img-skeleton-wrapper.ratio-2x1 { aspect-ratio: 21 / 9; }
.img-skeleton-wrapper.ratio-1x1 { aspect-ratio: 1 / 1; }
.img-skeleton-wrapper.ratio-a4  { aspect-ratio: 1.414 / 1; }

.img-skeleton-wrapper.loading-skeleton {
    animation: portfolio-skeleton-pulse 1.5s infinite alternate ease-in-out;
}
@keyframes portfolio-skeleton-pulse {
    0% { background-color: rgba(255, 255, 255, 0.1); }
    100% { background-color: rgba(255, 255, 255, 0.3); }
}

.skeleton-spinner {
    width: 35px; height: 35px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top-color: var(--gold-accent);
    border-radius: 50%;
    animation: portfolio-spin 0.8s linear infinite;
    position: absolute;
    z-index: 1;
}
@keyframes portfolio-spin { to { transform: rotate(360deg); } }

.lazy-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute; top: 0; left: 0;
    z-index: 2;
}
.lazy-thumb.is-loaded { opacity: 1; }

.img-skeleton-wrapper:not(.loading-skeleton) { border: none; background: transparent; }
.img-skeleton-wrapper:not(.loading-skeleton) .skeleton-spinner { display: none; }


/* ==========================================================================
   UKŁAD GALERII 1X2 (SWIPER)
   ========================================================================== */

.my-swiper-1x2 .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
}

.swiper-slide.glass-slide {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: auto;
}

.swiper-slide.glass-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.glass-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   UKŁAD GALERII 2X1
   ========================================================================= */

.gallery-2x1-stacked .stacked-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item-2x1 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    width: 100%;
}

.gallery-item-2x1:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item-2x1 > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   UKŁAD GALERII 1X1
   ========================================================================= */

.gallery-1x1-grid .grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item-1x1 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    width: 100%;
}

.gallery-item-1x1:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item-1x1 > a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .gallery-1x1-grid .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .gallery-1x1-grid .grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSYWNOŚĆ DLA GALERII 2X1
   ========================================================================= */

@media (max-width: 992px) { 
    .gallery-2x1-stacked .stacked-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .img-skeleton-wrapper.ratio-2x1 {
        aspect-ratio: 16 / 9 !important;
    }
}

/* ==========================================================================
   STYLOWANIE NAKŁADKI Z TEKSTEM
   ========================================================================== */

.glass-overlay {
    position: absolute !important;
    top: 0 !important;         
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;    
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 70%) !important;
    padding: 25px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; 
    z-index: 5 !important;
    pointer-events: none !important;
}

.glass-overlay h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.glass-overlay p {
    color: #dddddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   STYLOWANIE ZŁOTYCH TAGÓW
   ========================================================================== */

.glass-pill {
    display: inline-block !important; 
    background: rgba(197, 160, 89, 0.15) !important; 
    border: 1px solid rgba(197, 160, 89, 0.4) !important; 
    color: var(--gold-accent) !important; 
    padding: 6px 14px !important;
    border-radius: 20px !important; 
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.glass-slide .tags-wrapper,
.gallery-item-2x1 .tags-wrapper,
.gallery-item-1x1 .tags-wrapper {
    position: absolute !important;
    top: 20px !important;    
    right: 20px !important;  
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    z-index: 10 !important; 
    margin-bottom: 0 !important;
}

.glass-slide .glass-pill,
.gallery-item-2x1 .glass-pill,
.gallery-item-1x1 .glass-pill {
    background: rgba(0, 0, 0, 0.5) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.swiper-slide.glass-slide:hover .glass-pill,
.gallery-item-2x1:hover .glass-pill,
.gallery-item-1x1:hover .glass-pill {
    border-color: rgba(197, 160, 89, 0.5) !important;
    color: var(--gold-accent) !important;
}

/* ==========================================================================
   UKŁAD GALERII SPLIT A4
   ========================================================================== */

.gallery-split-rows { 
    margin-bottom: 80px; 
}

.split-rows-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 60px; 
}

.gallery-item-split {
    display: flex; 
    align-items: stretch; 
    border-radius: 16px;
    overflow: hidden;
    background: transparent; 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-item-split:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.split-image-side { 
    width: 55%; 
    overflow: hidden; 
}

.split-image-side .img-skeleton-wrapper { 
    border-radius: 0; 
    height: 100%; 
}

.split-image-side img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item-split:hover .split-image-side img {
    transform: scale(1.05); 
}

/* ---------------------------------------------------
   JASNE SZKŁO I WYRÓWNANIE DO GÓRY
   --------------------------------------------------- */

.split-text-side {
    width: 45%; 
    padding: 50px 60px 40px 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start !important; 
    gap: 20px; 
    text-align: left;
    
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border-left: 1px solid rgba(0, 0, 0, 0.05); 
}

.split-text-side h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #111111;
    margin-bottom: 0;
}

.split-text-side p { 
    font-size: 1rem; 
    line-height: 1.7; 
    color: #444444;
    margin-bottom: 0;
}

.split-text-side .tags-wrapper {
    justify-content: flex-start !important;
}

.gallery-item-split.row-reversed { 
    flex-direction: row-reverse; 
}
.gallery-item-split.row-reversed .split-text-side { 
    text-align: right; 
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}
.gallery-item-split.row-reversed .tags-wrapper {
    justify-content: flex-end !important;
}

/* ==========================================================================
   RESPONSYWNOŚĆ DLA SPLIT A4
   ========================================================================== */

@media (max-width: 992px) {
    .gallery-item-split, .gallery-item-split.row-reversed { 
        flex-direction: column !important; 
    }
    .split-image-side, .split-text-side { 
        width: 100% !important; 
    }
    .split-image-side {
        order: 1; 
    }
    .split-text-side { 
        order: 2; 
        padding: 40px 30px; 
        text-align: center !important; 
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .split-text-side .tags-wrapper,
    .gallery-item-split.row-reversed .tags-wrapper {
        justify-content: center !important;
    }
}

/* ==========================================================================
   SIATKA GALERII WIDEO (YOUTUBE)
   ========================================================================== */

.gallery-video-module { margin-bottom: 40px; }
.video-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.portfolio-video-card { padding: 20px !important; display: flex; flex-direction: column; gap: 20px; }
.yt-facade { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; }
.yt-thumbnail { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; transition: opacity 0.3s ease, transform 0.4s ease; }
.yt-facade:hover .yt-thumbnail { opacity: 0.9; transform: scale(1.02); }
.yt-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 65px; height: 65px; background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; transition: all 0.3s ease;
}
.yt-play-btn::after {
    content: ''; display: block; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--gold-accent);
}
.yt-facade:hover .yt-play-btn { background: var(--gold-accent); border-color: var(--gold-accent); transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:hover .yt-play-btn::after { border-color: transparent transparent transparent #000; }

.video-card-body { text-align: left; }
.video-card-body h3 { font-size: 1.2rem; color: #ffffff; margin-bottom: 8px; font-weight: 700; }
.video-card-body p { font-size: 0.9rem; color: #aaaaaa; line-height: 1.5; }

/* ==========================================================================
   RESPONSYWNOŚĆ NOWYCH GALERII
   ========================================================================== */
   
@media (max-width: 992px) {
    .gallery-item-split, .gallery-item-split.row-reversed { flex-direction: column !important; }
    .split-image-side, .split-text-side { width: 100% !important; }
    .split-text-side { padding: 40px 25px; text-align: center !important; align-items: center !important; }
}
@media (max-width: 576px) {
    .video-grid-wrapper { grid-template-columns: 1fr; }
}