/* */

/* ====================================================
   1. ZMIENNE WIZUALNE I BAZA (DLA CAŁEJ STRONY)
   ==================================================== */
:root {
    --primary-dark: #1f2937;  
    --primary-slate: #4b5563; 
    --action-green: #15803d;  
    --action-green-hover: #166534;
    --accent-orange: #ea580c; 
    --bg-outer: #e5e5e5;      
    --bg-white: #ffffff;
    --border-color: #cbd5e1;  
    --border-hover: #86efac;  
    --radius-btn: 8px;        
    --radius-card: 12px;      
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--primary-dark); 
    background-color: var(--bg-outer); 
    line-height: 1.6; 
    overflow-x: hidden; 
    display: flex; flex-direction: column; min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; width: 100%;}

/* --- ANIMACJE TŁA I EFEKTÓW --- */
@keyframes gradientWaveGray {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gradientWaveBurgundy {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes metallicShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ====================================================
   2. NAWIGACJA I STOPKA (WSPÓLNE ELEMENTY)
   ==================================================== */
header { 
    background: linear-gradient(-45deg, #e5e7eb, #d1d5db, #9ca3af, #f3f4f6);
    background-size: 400% 400%; animation: gradientWaveGray 8s ease-in-out infinite;
    border-bottom: 1px solid var(--border-color); 
    position: sticky; top: 0; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

nav { display: flex; justify-content: space-between; align-items: center; min-height: 100px; padding: 5px 0; }
.logo { text-decoration: none; z-index: 10001; position: relative; display: flex; align-items: center; transition: transform 0.2s; }
.logo:hover { transform: scale(1.02); }
.logo img { height: 80px; width: auto; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15)); display: block; }
.nav-links { display: flex; gap: 0.6rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links li { margin: 0; padding: 0; }

.nav-links a { 
    display: inline-block; text-decoration: none; font-weight: 800; font-size: 0.95rem; 
    transition: all 0.2s ease; background: linear-gradient(-45deg, #900C3F, #C70039, #831843, #BE185D);
    background-size: 400% 400%; animation: gradientWaveBurgundy 8s ease-in-out infinite;
    color: #ffffff !important; padding: 0.6rem 1.2rem; border-radius: var(--radius-btn);
    border: 2px solid #fbcfe8; box-shadow: 0 4px 8px rgba(131, 24, 67, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); letter-spacing: 0.5px; white-space: nowrap; 
}
.nav-links a:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(131, 24, 67, 0.5); border-color: #ffffff; }

.btn-nav { background-color: var(--action-green); color: var(--bg-white) !important; padding: 0.6rem 1.2rem; border-radius: var(--radius-btn); box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: 0.2s; display: inline-block; text-decoration: none; font-weight: 800; border: none;}
.btn-large { padding: 12px 25px; font-size: 1rem; }
.btn-nav:hover { background-color: var(--action-green-hover); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.hamburger { display: none; cursor: pointer; border: none; background: none; z-index: 10001; padding: 10px; }
.hamburger svg { width: 32px; height: 32px; stroke: var(--primary-dark); transition: transform 0.3s; }
footer { background: var(--primary-dark); color: #9ca3af; text-align: center; padding: 2.5rem 0; font-size: 0.9rem; border-top: 5px solid var(--action-green); margin-top: auto;}

/* ====================================================
   3. SEKCJE TYPU HERO (Artykuł, Galeria, Index)
   ==================================================== */
.article-hero, .page-hero, .hero { 
    background-color: var(--primary-slate); 
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); 
    background-size: 30px 30px; color: var(--bg-white); text-align: center; 
}
.hero { padding: 6rem 0 8rem 0; }
.page-hero { padding: 5rem 0 7rem 0; }
.article-hero { padding: 5rem 0 6rem 0; }

.badge { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 800; margin-bottom: 1.5rem; text-transform: uppercase; }
.badge.dark { background-color: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); letter-spacing: 1.5px; }
.badge.orange { background-color: rgba(234, 88, 12, 0.2); color: var(--accent-orange); border: 1px solid rgba(234, 88, 12, 0.4); letter-spacing: 1px; }

.article-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.2; margin-bottom: 1.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); max-width: 900px; margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.15; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.page-hero p, .hero p { font-size: 1.1rem; color: #e5e7eb; max-width: 700px; margin: 0 auto; font-weight: 400; }

/* PRZYCISK POWROTU (ARTYKUŁ) */
.back-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 2rem; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1.05rem; 
    transition: all 0.2s ease; 
    background: linear-gradient(-45deg, #900C3F, #C70039, #831843, #BE185D);
    background-size: 400% 400%; 
    animation: gradientWaveBurgundy 8s ease-in-out infinite;
    color: #ffffff !important; 
    padding: 12px 25px; 
    border-radius: var(--radius-btn);
    border: 2px solid #fbcfe8; 
    box-shadow: 0 4px 8px rgba(131, 24, 67, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); 
    letter-spacing: 0.5px; 
}
.back-link:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(131, 24, 67, 0.5); 
    border-color: #ffffff; 
}

/* ====================================================
   4. MODUŁY STRONY GŁÓWNEJ (INDEX.HTML)
   ==================================================== */
.ecosystem-hub { margin-top: -5rem; position: relative; z-index: 10; padding-bottom: 4rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.hub-card { background-color: var(--bg-white); border-radius: var(--radius-btn); padding: 2rem 1.5rem; text-align: center; text-decoration: none; color: var(--primary-dark); box-shadow: 0 4px 8px rgba(0,0,0,0.05); border: 2px solid var(--border-color); transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; }
.hub-card:not(.card-featured):hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.hub-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.hub-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3;}
.hub-card p { font-size: 0.85rem; color: var(--primary-slate); margin: 0; line-height: 1.5; }
.card-featured { border-color: var(--action-green); background-color: #f0fdf4; position: relative; overflow: hidden; box-shadow: 0 0 0 3px rgba(21,128,61,0.2); }
.card-featured:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(21,128,61,0.3); }
.card-featured::before { content: "INNOWACJA"; position: absolute; top: 15px; right: -30px; background: var(--accent-orange); color: white; font-size: 0.65rem; font-weight: bold; padding: 4px 30px; transform: rotate(45deg); letter-spacing: 1px; }

.services-section { padding: 5rem 0; background-color: #64748b; background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 30px 30px; border-top: 1px solid #4b5563; border-bottom: 1px solid #4b5563; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.services-section .section-header h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; color: var(--bg-white); text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.services-section .section-header p { color: #f3f4f6; max-width: 650px; margin: 0 auto; font-size: 1.1rem; }
.category-section-wrapper { box-sizing: border-box; padding: 30px 25px; border-radius: 14px; border: 3px solid #9ca3af; background-color: #d1d5db; box-shadow: 0 10px 25px rgba(0,0,0,0.25); margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin: 0; }
.service-card { border: 2px solid #ffffff; border-radius: 8px; padding: 20px; transition: all 0.2s; background: #ffffff; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 8px rgba(0,0,0,0.05); cursor: pointer; }
.service-card:hover { border-color: #86efac; transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

/* --- METALICZNE NAGŁÓWKI USŁUG --- */
.service-card h3 { 
    margin: 0 0 10px 0; 
    font-size: 1.1rem; 
    text-align: center; 
    font-weight: 800;
    
    /* Konfiguracja efektu połysku stali */
    background: linear-gradient(
        110deg, 
        var(--primary-dark) 30%, 
        #e5e7eb 50%, 
        var(--primary-dark) 70%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallicShine 7s linear infinite;
}

.service-card p { margin: 0; font-size: 0.9rem; color: #4b5563; flex-grow: 1; text-align: justify; line-height: 1.6;}

/* Mini Galeria & Lightbox */
.mini-gallery { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 15px; }
.mini-img { flex: 1; width: calc(25% - 4.5px); aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid var(--border-color); transition: transform 0.2s, border-color 0.2s; background: #e5e7eb; }
.mini-img:hover { transform: scale(1.1); border-color: var(--action-green); box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 2; position: relative;}
#lightbox { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(31, 41, 55, 0.95); backdrop-filter: blur(5px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
#lightbox.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 85%; max-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; animation: fadeInLightbox 0.3s ease-out;}
@keyframes fadeInLightbox { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); object-fit: contain; border: 3px solid var(--bg-white); user-select: none; transition: opacity 0.15s ease; }
.lightbox-close { position: absolute; top: -20px; right: -20px; background: var(--accent-orange); color: var(--bg-white); width: 45px; height: 45px; border-radius: 50%; font-weight: bold; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s, background 0.2s; border: 2px solid var(--bg-white); z-index: 100001;}
.lightbox-close:hover { background: #c2410c; transform: scale(1.1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.15); color: white; border: 2px solid rgba(255, 255, 255, 0.3); width: 50px; height: 50px; font-size: 1.8rem; font-weight: bold; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; z-index: 100002; backdrop-filter: blur(4px); user-select: none; }
.lightbox-nav:hover { background: var(--accent-orange); border-color: var(--accent-orange); transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);}
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-counter { margin-top: 15px; color: white; font-weight: bold; font-size: 1.1rem; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Manifesto (O inżynierze) */
.manifesto { padding: 4rem 0; background-color: var(--bg-outer); }
.manifesto-wrapper { max-width: 1050px; margin: 0 auto; }
.manifesto-box { background: var(--bg-white); padding: 2.5rem; border-radius: var(--radius-card); border: 2px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.manifesto-header { display: flex; gap: 2.5rem; align-items: flex-start; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px dashed #e5e7eb; }
.manifesto-header h2 { flex: 1; font-size: 2rem; font-weight: 900; margin: 0; color: var(--primary-dark); line-height: 1.2;}
.manifesto-intro { flex: 1.5; font-size: 0.95rem; color: var(--primary-slate); line-height: 1.6; text-align: justify; }
.manifesto-intro p { margin-bottom: 0.8rem; }
.manifesto-intro strong { color: var(--primary-dark); font-weight: 800; }
.pillars-title { font-size: 1.1rem; color: var(--primary-dark); font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px;}
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 2rem; }
.pillar-item { display: flex; gap: 15px; align-items: flex-start; background: #f8fafc; padding: 1.2rem; border-radius: var(--radius-btn); border: 1px solid #e2e8f0; border-left: 4px solid var(--action-green); transition: all 0.2s ease;}
.pillar-item:hover { border-color: var(--border-hover); background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px);}
.pillar-icon { font-size: 1.5rem; line-height: 1; background: var(--bg-white); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #cbd5e1; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-shrink: 0;}
.pillar-text h4 { margin: 0 0 5px 0; color: var(--primary-dark); font-size: 1.05rem; font-weight: 800; line-height: 1.2;}
.pillar-text p { margin: 0; color: var(--primary-slate); font-size: 0.9rem; line-height: 1.5; text-align: justify;}
.manifesto-cta { background: #f0fdf4; padding: 1.5rem 2rem; border-radius: var(--radius-btn); border: 2px solid #bbf7d0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.manifesto-cta-text { flex: 1; }
.manifesto-cta-text h3 { color: #166534; margin: 0 0 8px 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3;}
.manifesto-cta-text p { color: #15803d; margin: 0; font-size: 0.95rem; line-height: 1.5; text-align: justify;}
.manifesto-cta .btn-nav { flex-shrink: 0; padding: 14px 25px; margin: 0; font-size: 1.05rem;}

/* ====================================================
   5. GALERIA I KARTY PORTFOLIO (WSPÓLNE DLA INDEX I GALERII)
   ==================================================== */
main { flex: 1; padding: 0 0 4rem 0; background-color: var(--bg-outer); }

.portfolio-section { 
    padding: 5rem 0; 
    background-color: #64748b; 
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); 
    background-size: 30px 30px; 
    border-top: 1px solid #4b5563; 
    border-bottom: 1px solid #4b5563;
}
.portfolio-section .section-header h2 { color: var(--bg-white); text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.portfolio-section .section-header p { color: #f3f4f6; }

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -3.5rem auto 3rem auto; position: relative; z-index: 10; background: var(--bg-white); padding: 1.2rem; border-radius: var(--radius-card); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border: 1px solid var(--border-color); width: fit-content; }
.filter-btn { background: var(--bg-outer); border: 2px solid transparent; padding: 10px 20px; border-radius: 50px; font-weight: 700; color: var(--primary-slate); cursor: pointer; transition: all 0.2s; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.02);}
.filter-btn:hover { background: #d1d5db; color: var(--primary-dark); }
.filter-btn.active { background: var(--action-green); color: var(--bg-white); box-shadow: 0 4px 8px rgba(21,128,61,0.2);}

.archive-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.portfolio-section .portfolio-grid {
    box-sizing: border-box;
    background: #d1d5db; 
    padding: 2.5rem; 
    border-radius: var(--radius-card); 
    border: 3px solid #9ca3af; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* --- DYNAMICZNE BAZOWE ANIMACJE SZKICU OŁÓWKIEM --- */
@keyframes sketchJitter {
    0% { border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; }
    33% { border-radius: 15px 255px 15px 225px/255px 15px 225px 15px; }
    66% { border-radius: 225px 15px 255px 15px/15px 255px 15px 225px; }
    100% { border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; }
}

@keyframes sketchWiggle {
    0%, 100% { transform: rotate(-0.5deg); }
    50% { transform: rotate(0.5deg); }
}

/* --- NOWE, PRZYTŁUMIONE O 80% ANIMACJE DLA CAŁYCH KAFELKÓW (20% RUCHU) --- */
@keyframes cardJitter {
    0% { border-radius: 12px 20px 15px 25px / 20px 15px 25px 12px; }
    33% { border-radius: 18px 14px 22px 16px / 14px 22px 16px 18px; }
    66% { border-radius: 14px 24px 13px 20px / 22px 13px 20px 14px; }
    100% { border-radius: 12px 20px 15px 25px / 20px 15px 25px 12px; }
}

@keyframes cardWiggle {
    0%, 100% { transform: rotate(-0.08deg); }
    50% { transform: rotate(0.08deg); }
}

/* --- KAFELKI KART WPISÓW Z SUBTELNYM 20% DYNAMIKI --- */
.portfolio-card { 
    background-color: var(--bg-white); 
    border-radius: 12px 20px 15px 25px / 20px 15px 25px 12px; 
    overflow: hidden; 
    border: 2px solid #000000; 
    transition: box-shadow 0.2s ease, border-color 0.2s ease; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 5px 5px 0px rgba(0,0,0,0.8);
    animation: cardJitter 8s infinite alternate ease-in-out, cardWiggle 6s infinite ease-in-out;
}

.portfolio-card:hover { 
    border-color: #000000; 
    box-shadow: 10px 10px 0px rgba(0,0,0,0.8); 
}

.portfolio-image { 
    width: 100%; 
    height: 240px; 
    background-color: #d1d5db; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 2px solid #000000; 
}
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; transition: transform 0.3s ease;}
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-content { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; background-color: var(--bg-white); }
.portfolio-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.8rem; line-height: 1.3; color: var(--primary-dark); }
.portfolio-card p { font-size: 0.95rem; color: var(--primary-slate); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; text-align: justify;}


/* --- MAŁE TAGI KATEGORII (ZOSTAJĄ WYRAZISTE) --- */
.tag { 
    align-self: flex-start; 
    background-color: #ffffff; 
    color: #000000 !important; 
    font-size: 0.75rem; 
    font-weight: 800; 
    padding: 0.4rem 0.8rem; 
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    border: 2px solid #000000 !important; 
    box-shadow: 3px 3px 0px rgba(0,0,0,0.8);
    animation: sketchJitter 3s infinite alternate ease-in-out, sketchWiggle 2.5s infinite ease-in-out;
    letter-spacing: 0.5px;
}

.tag.edu, .tag.alert, .tag.montaz { 
    background-color: #ffffff; 
    color: #000000; 
    border-color: #000000; 
}

.read-more { 
    font-weight: 800; 
    color: #000000 !important; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-top: auto; 
    transition: transform 0.2s, letter-spacing 0.2s;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 4px;
    text-decoration-color: #000000;
}

.portfolio-card:hover .read-more { 
    transform: translateX(5px); 
    letter-spacing: 0.5px;
}

.read-more.orange { color: #000000 !important; }

/* ----------------------------------------------------------- */

.gallery-link-wrapper { text-align: center; margin-top: 3.5rem; }

.gallery-link { 
    display: inline-block; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1.05rem; 
    transition: all 0.2s ease; 
    background: linear-gradient(-45deg, #900C3F, #C70039, #831843, #BE185D);
    background-size: 400% 400%; 
    animation: gradientWaveBurgundy 8s ease-in-out infinite;
    color: #ffffff !important; 
    padding: 14px 28px; 
    border-radius: var(--radius-btn);
    border: 2px solid #fbcfe8; 
    box-shadow: 0 4px 8px rgba(131, 24, 67, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); 
    letter-spacing: 0.5px; 
}
.gallery-link:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(131, 24, 67, 0.5); 
    border-color: #ffffff; 
}


/* ====================================================
   6. STRONA ARTYKUŁU
   ==================================================== */
.article-wrapper { max-width: 850px; margin: -4rem auto 4rem auto; background: var(--bg-white); padding: 4rem 5rem; border-radius: var(--radius-card); box-shadow: 0 15px 35px rgba(0,0,0,0.1); position: relative; z-index: 10; border: 1px solid var(--border-color); }
.article-content { font-size: 1.15rem; color: var(--primary-dark); line-height: 1.8; }
.article-content p { margin-bottom: 1.8rem; text-align: justify; }
.article-content strong { font-weight: 800; color: #111827; }
.article-intro { font-size: 1.3rem; font-weight: 600; color: var(--primary-slate); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px dashed var(--border-color); line-height: 1.6; }
.article-quote { background: #f0fdf4; border-left: 6px solid var(--action-green); padding: 1.5rem 2rem; font-style: italic; font-weight: 600; color: var(--action-green); margin-bottom: 2.5rem; border-radius: 0 var(--radius-btn) var(--radius-btn) 0; }
.article-content h2 { font-size: 1.8rem; font-weight: 900; color: var(--primary-dark); margin: 3.5rem 0 1.5rem 0; padding-bottom: 10px; border-bottom: 3px solid var(--action-green); display: inline-block; }
.article-content h3 { font-size: 1.4rem; font-weight: 800; color: var(--action-green); margin: 2.5rem 0 1rem 0; }
.warning-box { background: #fff5f5; border: 1px solid #fecaca; border-left: 6px solid #ef4444; padding: 1.5rem; border-radius: var(--radius-btn); margin-bottom: 1.8rem; }
.warning-box p { margin: 0; color: #991b1b; }
.pros-list { list-style: none; padding: 0; margin: 2.5rem 0; }
.pros-list li { margin-bottom: 1.5rem; padding-left: 35px; position: relative; }
.pros-list li::before { content: "✅"; position: absolute; left: 0; top: 2px; font-size: 1.3rem; }
.pros-list li strong { color: var(--action-green); font-size: 1.2rem; display: block; margin-bottom: 5px; }
.img-placeholder { width: 100%; height: 400px; background: #f3f4f6; border-radius: var(--radius-card); margin: 2.5rem 0; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
.author-box { background: var(--bg-outer); padding: 3rem; border-radius: var(--radius-card); margin-top: 4rem; text-align: center; border: 1px solid var(--border-color); }
.author-box h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 1rem; color: var(--primary-dark);}
.author-box p { margin-bottom: 1.5rem; color: var(--primary-slate); }
.btn-social { display: inline-flex; align-items: center; gap: 10px; background: #1877F2; color: white !important; font-weight: bold; padding: 12px 25px; border-radius: var(--radius-btn); text-decoration: none; transition: 0.2s; border: none; }
.btn-social:hover { background: #166fe5; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); }

.article-highlight { font-size: 1.3rem; font-weight: 800; color: var(--action-green); text-align: center; margin-top: 3.5rem; }
.article-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ====================================================
   7. KONTAKT I MAPA
   ==================================================== */
.contact-section { padding: 5rem 0; background-color: var(--bg-outer); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 1rem; font-weight: 900;}
.contact-info p { color: var(--primary-slate); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-details { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem;}
.contact-details li { display: flex; align-items: center; gap: 15px; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); }
.contact-icon { font-size: 1.8rem; background: var(--bg-white); padding: 12px; border-radius: var(--radius-btn); border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; flex-shrink: 0;}
.contact-text { font-size: 1rem; color: var(--primary-slate); font-weight: normal; }
.contact-phone { font-size: 1.3rem; }
.contact-details a { color: var(--action-green); text-decoration: none; transition: 0.2s;}
.contact-details a:hover { color: var(--action-green-hover); text-decoration: underline;}
.map-container { width: 100%; height: 100%; min-height: 350px; background: var(--bg-white); border-radius: var(--radius-card); overflow: hidden; border: 2px solid var(--border-color); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.map-container iframe { width: 100%; height: 100%; min-height: 350px; border: 0; display: block; }

/* ====================================================
   8. RESPONSYWNOŚĆ (MEDIA QUERIES) - ZOPTYMALIZOWANE PROPORCJE MOBILE
   ==================================================== */
@media (max-width: 992px) { 
    .hub-grid { grid-template-columns: repeat(2, 1fr); } 
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .manifesto-header { flex-direction: column; gap: 1.5rem; }
    .manifesto-cta { flex-direction: column; text-align: center; }
    .manifesto-cta-text p { text-align: center; }
    .article-wrapper { padding: 3rem 2rem; margin-top: -3rem; } 
}

@media (max-width: 768px) {
    .container { padding: 0 10px; }
    
    nav { min-height: 80px; padding: 5px 0; }
    .logo img { height: 60px; }
    .hamburger { display: block; } 
    
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; 
        background: linear-gradient(-45deg, #e5e7eb, #d1d5db, #9ca3af, #f3f4f6);
        background-size: 400% 400%; animation: gradientWaveGray 8s ease-in-out infinite;
        flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -5px 0 25px rgba(0,0,0,0.25); border-left: 1px solid #9ca3af; z-index: 10000; margin: 0; padding: 0; 
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 85%; display: flex; justify-content: center; }
    .nav-links a { font-size: 1.15rem; width: 100%; padding: 14px 10px; box-sizing: border-box; text-align: center; border-width: 2px;}

    .hero { padding: 3rem 0 5rem 0; }
    .page-hero { padding: 3rem 0 5rem 0; }
    .article-hero { padding: 3rem 0 5rem 0; }
    
    .hero h1, .page-hero h1 { font-size: 1.7rem; }
    .hero p, .page-hero p { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.6rem !important; }
    .section-header p { font-size: 0.95rem !important; }
    
    .ecosystem-hub { margin-top: -3rem; padding-bottom: 2rem;} 
    .filters { margin-top: -2.5rem; padding: 1rem; width: 100%; border-radius: var(--radius-btn); gap: 10px; margin-bottom: 2rem; box-sizing: border-box; }
    .filter-btn { width: 100%; text-align: center; }

    .hub-grid, .services-grid, .pillars-grid, .archive-grid, .portfolio-grid { grid-template-columns: 1fr; gap: 10px; } 
    
    .hub-card { padding: 12px; flex-direction: row; text-align: left; align-items: center; gap: 12px; }
    .hub-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
    .hub-card p { font-size: 0.9rem; }
    .card-featured::before { display: none; }
    .hub-icon { margin-bottom: 0; font-size: 2rem; background: var(--bg-outer); padding: 10px; border-radius: var(--radius-btn); border: 1px solid var(--border-color); }
    
    .category-section-wrapper { padding: 15px 10px; border-width: 2px; border-radius: 10px; margin-bottom: 15px; }
    .service-card { padding: 12px; border-width: 2px; }
    .service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
    .service-card p { font-size: 0.9rem; }
    
    .portfolio-section .portfolio-grid {
        padding: 15px 10px;
        border-width: 2px;
        border-radius: 10px;
    }
    
    .portfolio-content { padding: 15px 12px; }
    .portfolio-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
    .portfolio-card p { font-size: 0.9rem; margin-bottom: 1rem; }

    .gallery-link, .back-link { 
        width: 100%; 
        box-sizing: border-box; 
        padding: 14px 10px; 
        font-size: 0.95rem; 
        justify-content: center;
    }

    .manifesto-box { padding: 15px 12px; }
    .manifesto-header { border-bottom: none; padding-bottom: 0; margin-bottom: 1.5rem;}
    .manifesto-header h2 { font-size: 1.5rem; }
    .manifesto-intro p { font-size: 0.95rem; }
    .pillar-item { flex-direction: column; text-align: left; align-items: flex-start; padding: 12px;}
    .pillar-text h4 { font-size: 1.05rem; margin-bottom: 5px; }
    .pillar-text p { font-size: 0.9rem; }
    .manifesto-cta { margin: -0.5rem; padding: 15px 12px; gap: 1rem;}
    .manifesto-cta-text h3 { font-size: 1.05rem; text-align: center;}
    .manifesto-cta-text p { font-size: 0.9rem; }
    .manifesto-cta .btn-nav { width: 100%; text-align: center; box-sizing: border-box; }

    .map-container, .map-container iframe { min-height: 250px; }
    
    .contact-info h2 { font-size: 1.6rem; }
    .contact-info p { font-size: 0.95rem; }
    
    .lightbox-close { top: -10px; right: -10px; width: 35px; height: 35px; font-size: 1.2rem;}
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; padding: 0; }
    .lightbox-prev { left: 5px; } .lightbox-next { right: 5px; }
    .lightbox-content { max-width: 95%; }
    .lightbox-counter { margin-top: 10px; font-size: 0.95rem; }

    .article-title { font-size: 1.5rem; line-height: 1.3; }
    .article-wrapper { padding: 15px 12px; margin-top: -2rem; border-radius: var(--radius-btn); }
    .article-content { font-size: 1.05rem; }
    .article-intro { font-size: 1.1rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
    .article-content h2 { font-size: 1.4rem; margin: 2rem 0 1rem 0; }
    .article-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem 0; }
    .author-box { padding: 15px 12px; margin-top: 2rem; }
    .author-box h3 { font-size: 1.3rem; }
    .author-box p { font-size: 0.95rem; }
    .img-placeholder { height: 250px; margin: 1.5rem 0; }
}