/* CSS Variables & Reset */
:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --text-muted: #dcdcdc;
    --accent-color: #A46F19;
    --accent-hover: #DBAA4D;
    --section-bg-alt: #1a1a1a;
    
    /* Epickie Gradienty z Logo */
    --gold-gradient: linear-gradient(180deg, #DBAA4D 0%, #A46F19 100%);
    --silver-gradient: linear-gradient(135deg, #ffffff 0%, #dcdcdc 50%, #a0a0a0 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    
    --glass-bg: rgba(26, 26, 26, 0.75);
    --glass-border: rgba(246, 206, 74, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.7), 0 10px 20px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 0 25px rgba(246, 206, 74, 0.4);
    --font-main: 'Montserrat', sans-serif;
}

/* Klasy pomocnicze dla gradientów */
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100%;
    color-scheme: dark;
}

/* Three.js Canvas */
#hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}

/* Typography */
h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; color: #ffffff; text-shadow: 0 0 20px rgba(0, 0, 0, 0.5); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 15px rgba(246, 206, 74, 0.2); }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
p { line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.125rem; }
.text-accent { color: var(--accent-color); }
.subtitle { text-transform: uppercase; letter-spacing: 3px; color: var(--accent-color); font-size: 0.875rem; font-weight: 700; display: block; margin-bottom: 1rem; }

/* Layout & Containers */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4rem; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; align-items: stretch; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 2rem; }

/* Glassmorphism UI for Light Mode */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    /* Usunięto overflow: hidden, aby ikony mogły wystawać */
}
.glass-card p:last-child {
    margin-bottom: 0;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: rgba(40, 40, 40, 0.9);
    border-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.25rem 2.5rem; border-radius: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none; transition: all 0.4s ease; cursor: pointer;
    border: none; font-size: 1rem; gap: 0.75rem;
}
.btn-primary { 
    background: var(--gold-gradient); 
    color: #121212; 
    box-shadow: 0 0 15px rgba(246, 206, 74, 0.4); 
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 800;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
.btn-primary:hover::after {
    left: 200%;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(246, 206, 74, 0.7); color: #000; filter: brightness(1.1); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid var(--accent-color); box-shadow: 0 0 10px rgba(246, 206, 74, 0.2); }
.btn-secondary:hover { background: rgba(246, 206, 74, 0.1); transform: translateY(-3px); box-shadow: 0 0 20px rgba(246, 206, 74, 0.4); color: var(--accent-color); }

.btn-white-gray {
    background: linear-gradient(135deg, #FAFAFA 0%, #B6B6B5 100%);
    color: #121212 !important;
    border: none;
    box-shadow: 0 0 15px rgba(250, 250, 250, 0.3);
    font-weight: 800;
}
.btn-white-gray:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(250, 250, 250, 0.6);
    color: #000 !important;
}

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent; padding: 1rem 0;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(7, 11, 17, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    position: relative;
    z-index: 101;
}
.nav-logo { 
    height: 40px;
    width: auto;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1);
}
.navbar.scrolled .nav-logo {
    height: 32px;
    filter: none;
}
.logo:hover .nav-logo {
    transform: scale(1.05);
}
.nav-menu { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-menu a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); text-decoration: none; font-weight: 600; transition: all 0.3s; font-size: 0.85rem; }
.navbar.scrolled .nav-menu a { color: var(--text-muted); text-shadow: none; }
.navbar.scrolled .nav-menu a:hover { color: var(--accent-color); text-shadow: 0 0 10px rgba(246, 206, 74, 0.5); }
.nav-menu a:hover { color: var(--accent-color); }
.btn-nav { background: var(--gold-gradient); color: #121212 !important; font-weight: 800 !important; text-shadow: none !important; padding: 0.75rem 1.5rem; border-radius: 8px; box-shadow: 0 0 15px rgba(246, 206, 74, 0.4); }
.btn-nav:hover { background: var(--accent-hover); transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 1.75rem; cursor: pointer; color: #fff; transition: color 0.3s; }
.navbar.scrolled .menu-toggle { color: var(--text-color); }

/* Sections */
.snap-section { 
    min-height: 100dvh; 
    display: flex; 
    flex-direction: column; 
    padding: 100px 0 80px; 
    scroll-margin-top: 60px; 
}
.snap-section > .container {
    margin: auto;
}
#map-section { scroll-margin-top: 60px; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Specifics */
.hero-buttons { display: flex; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap; }
.icon-large { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; display: inline-block; padding: 1rem; background: rgba(211, 152, 48, 0.05); border-radius: 4px; border: 1px solid rgba(211, 152, 48, 0.2); }
.check-list { list-style: none; }
.check-list li { margin-bottom: 1rem; font-weight: 500; display: flex; align-items: center; gap: 12px; font-size: 1.125rem; color: var(--text-color); }
.check-list i { color: var(--accent-color); background: rgba(211, 152, 48, 0.1); padding: 8px; border-radius: 50%; font-size: 0.875rem; }

/* Horizontal Card Layout (O nas & Usługi) */
.horizontal-card {
    position: relative;
    display: block;
    padding: 3rem 2rem 2rem 2rem !important;
    text-align: left;
    margin-top: 2rem;
}
.horizontal-card .icon-large,
.horizontal-card i[class^="fas"] {
    position: absolute;
    top: -2rem;
    left: 2rem;
    margin-bottom: 0;
    font-size: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(246, 206, 74, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.horizontal-card:hover .icon-large,
.horizontal-card:hover i[class^="fas"] {
    transform: translateY(-5px) scale(1.05) rotate(5deg);
    background: var(--gold-gradient);
    color: #121212;
    box-shadow: 0 0 25px rgba(246, 206, 74, 0.6);
    border-color: transparent;
}
.horizontal-card-content {
    display: block;
}
.horizontal-card-content h3,
.horizontal-card-content h4 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .horizontal-card {
        text-align: center;
        padding: 3.5rem 1.5rem 1.5rem 1.5rem !important;
    }
    .horizontal-card .icon-large,
    .horizontal-card i[class^="fas"] {
        left: 50%;
        transform: translateX(-50%);
    }
    .horizontal-card:hover .icon-large,
    .horizontal-card:hover i[class^="fas"] {
        transform: translateX(-50%) translateY(-5px) scale(1.05) rotate(5deg);
    }
}

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; align-items: stretch; }
.process-step { position: relative; }
.step-number { 
    font-size: 3.5rem; /* Zmniejszono z 6rem */
    font-weight: 900; 
    color: rgba(211, 152, 48, 0.15); /* Nieco bardziej widoczne, ale mniejsze */
    position: absolute; 
    top: 10px; /* Odsunięto od krawędzi */
    right: 15px; 
    line-height: 1; 
    pointer-events: none; 
}

.stats-wrapper { display: flex; flex-direction: column; gap: 2rem; }
.stat-box { text-align: center; padding: 3rem; }
.stat-box h3 { font-size: 4.5rem; display: inline; color: var(--accent-color); font-weight: 900; }
.stat-box span { font-size: 2.5rem; font-weight: 800; color: var(--accent-color); }
.stat-box p { margin: 0; font-weight: 600; color: var(--text-color); font-size: 1.25rem; }

.reviews-wrapper { display: flex; align-items: center; }
.stars { color: #fbbf24; margin-bottom: 1.5rem; font-size: 1.25rem; letter-spacing: 2px; }
.review p { font-size: 1.25rem; font-style: italic; color: var(--text-color); }
.review strong { color: var(--accent-color); font-size: 1.125rem; }

.info-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.info-item i { font-size: 1.5rem; color: var(--accent-color); background: rgba(211, 152, 48, 0.1); padding: 1rem; border-radius: 4px; border: 1px solid rgba(211, 152, 48, 0.2); }
.info-item strong { display: block; color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.info-item a, .info-item span { color: var(--text-color); text-decoration: none; font-size: 1.25rem; font-weight: 700; transition: color 0.3s; }
.info-item a:hover { color: var(--accent-color); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-sm); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease; cursor: pointer; border: 1px solid var(--glass-border); }
.gallery-grid img:hover { transform: scale(1.02) translateY(-10px); box-shadow: var(--shadow-hover); z-index: 2; position: relative; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
input, textarea, select { width: 100%; padding: 1.25rem; background: #1a1a1a; border: 1px solid var(--glass-border); border-radius: 2px; color: #fff; font-family: var(--font-main); font-size: 1rem; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 15px rgba(246, 206, 74, 0.3); }
.alert { padding: 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 600; }
.alert.success { background: #dcfce7; border: 1px solid #22c55e; color: #166534; }
.alert.error { background: #fee2e2; border: 1px solid #ef4444; color: #991b1b; }

.site-footer { text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; font-size: 0.875rem; color: var(--text-muted); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Nowa animacja dla Hero na Desktopie */
@media (min-width: 769px) {
    .fade-in.slide-in-left {
        transform: translateX(-100px);
    }
    .fade-in.slide-in-left.visible {
        transform: translateX(0);
    }
}

.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; } .delay-6 { transition-delay: 0.6s; }

/* Mobile */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-menu { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: rgba(18, 18, 18, 0.98) !important; 
        backdrop-filter: blur(10px); 
        display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-in-out; 
        border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-lg); 
    }
    .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-menu li { display: block; width: 100%; }
    .navbar .nav-menu a { 
        color: var(--text-color) !important; text-shadow: none !important; 
        display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
        background: var(--section-bg-alt); border: 1px solid var(--glass-border);
        border-radius: 8px; padding: 1rem 1.25rem; text-align: left; gap: 12px;
        font-size: 0.85rem; height: 100%;
    }
    .navbar .nav-menu a i { font-size: 1.75rem; color: var(--accent-color); }
    .navbar .nav-menu a.btn-nav { background: var(--gold-gradient); color: #121212 !important; font-weight: 800; box-shadow: 0 0 15px rgba(246, 206, 74, 0.4); }
    .navbar .nav-menu a.btn-nav i { color: #121212; }
    
    .glass-panel, .glass-card { padding: 2rem; }
    h1 { font-size: 2.2rem; }
    .grid-2 { gap: 2rem; }
}
@media (max-width: 768px) {
    h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 0.75rem; }
    p { font-size: 1rem; margin-bottom: 1rem; line-height: 1.5; }
    .snap-section.hero { 
        padding-top: 30px; 
        padding-bottom: 60px;
        align-items: center;
    }
    .glass-panel.hero-panel {
        padding: 1.5rem;
    }
    .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; margin-top: 1.5rem; }
    
    .btn {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        white-space: normal;
        text-align: center;
    }
    .btn i {
        font-size: 1.1rem;
    }
    
    .info-item {
        gap: 1rem;
    }
    .info-item i {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    .info-item a, .info-item span {
        font-size: 1rem;
        word-break: break-word;
    }
}
/* Dark Tech Background with subtle texture */
.bg-platinum {
    background-color: var(--section-bg-alt);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}
/* Hero Bottom Stats */
.hero-bottom-stats {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(246, 206, 74, 0.2);
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    z-index: 998;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform: translateY(0);
    opacity: 1;
}
@media (min-width: 768px) {
    .hero-bottom-stats {
        grid-template-columns: repeat(4, 1fr);
        padding: 2rem;
    }
}
@media (max-width: 768px) {
    .hero-bottom-stats.hidden-stats {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }
    .hero-bottom-stats .stat-item:nth-child(1),
    .hero-bottom-stats .stat-item:nth-child(4) {
        display: none;
    }
}
.stat-item { 
    text-align: center; 
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
    border-right: none;
}
@media (max-width: 768px) {
    .stat-item:nth-child(2) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    .stat-item:nth-child(3) {
        border-right: none;
    }
}
.stat-icon { font-size: 1.5rem; color: var(--accent-color); margin-bottom: 0.5rem; display: block; }
.stat-value { color: var(--accent-hover); font-weight: 800; font-size: 1.25rem; }
.stat-label { color: #dcdcdc; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }

@media (max-width: 768px) {
    .stat-icon { font-size: 1.25rem; margin-bottom: 0.25rem; }
    .stat-value { font-size: 0.9rem; }
    .stat-label { font-size: 0.65rem; letter-spacing: 0.05em; margin-top: 0.25rem; }
}

/* Mobile Floating Bar */
.mobile-floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--section-bg-alt);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    padding: 0.75rem 0;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid var(--accent-color);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-floating-bar.visible-bar {
    transform: translateY(0);
}

.mobile-floating-bar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 6px;
    transition: color 0.3s;
}

.mobile-floating-bar a i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.mobile-floating-bar a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .mobile-floating-bar {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* Additional WOW effects */
.hero {
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero .container {
    z-index: 3;
    position: relative;
}
.hero-main-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: floatLogo 6s ease-in-out infinite;
    display: block;
}
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero h1 {
    color: #fff;
}
.hero p {
    color: #e2e8f0;
}
.hero .subtitle {
    color: var(--accent-color);
}
.glass-panel.hero-panel {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}

.image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.image-box img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.image-box:hover img {
    transform: scale(1.05);
}
.image-box-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--accent-color);
    color: #fff;
}
/* SVG Section Dividers */
.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}
.section-divider.top {
    top: 0;
    transform: translateY(-99%);
}
.section-divider.bottom {
    bottom: 0;
    transform: translateY(99%) rotate(180deg);
}
.section-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.section-divider .shape-fill-gold {
    fill: url(#goldGradDivider);
}
.section-divider .shape-fill-dark {
    fill: var(--text-color);
}
.section-divider .shape-fill-bg {
    fill: var(--bg-color);
}
.section-divider .shape-fill-alt {
    fill: var(--section-bg-alt);
}

@media (max-width: 992px) {
    .nav-logo { height: 35px; }
    .navbar.scrolled .nav-logo { height: 35px; }
    .hero-main-logo { max-width: 200px; }
}
.hero-buttons .btn { white-space: nowrap; }
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.section-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; }
.snap-section { position: relative; }
.container { position: relative; z-index: 2; }
.section-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 1; pointer-events: none; }
.section-divider.bottom { bottom: 0; transform: translateY(1px); }
.section-divider.top { top: 0; transform: translateY(-1px) rotate(180deg); }
.section-divider svg { display: block; width: calc(100% + 1.3px); height: 50px; }
.shape-fill-white { fill: #121212; }
.shape-fill-platinum { fill: #1a1a1a; }

/* Map Styles */
#osm-map {
    height: 400px;
    width: 100%;
    border-radius: 4px;
    z-index: 1;
    border: 1px solid var(--glass-border);
}
.leaflet-routing-container {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border-radius: 4px !important;
    color: var(--text-color) !important;
    max-height: 250px;
    overflow-y: auto;
}
@media (max-width: 768px) {
    #osm-map { height: 300px; }
    .leaflet-routing-container { display: none !important; }
}

/* --- Map CTA Grid Layout --- */
.map-cta-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}
.map-cta-content h3 { margin-bottom: 1rem; }
.map-cta-actions { display: flex; align-items: center; justify-content: flex-start; }
@media (min-width: 768px) {
    .map-cta-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .map-cta-content { flex: 1; padding-right: 3rem; }
    .map-cta-actions { flex-shrink: 0; }
}

/* --- Mobile Hero Animation --- */
.hero-mobile-anim {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(246, 206, 74, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-mobile-anim {
        display: block;
        animation: pulsePrestige 4s ease-in-out infinite alternate;
    }
}

@keyframes pulsePrestige {
    0% { transform: scale(1); opacity: 0.5; filter: hue-rotate(0deg); }
    100% { transform: scale(1.3); opacity: 0.9; filter: hue-rotate(15deg); }
}

/* --- Fullscreen Map Modal --- */
.map-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.map-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.map-modal-header {
    padding: 1rem 1.5rem;
    background: var(--section-bg-alt);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close-modal:hover {
    color: var(--accent-color);
}

.map-modal-body {
    flex: 1;
    position: relative;
    width: 100%;
}

#osm-map {
    height: 100% !important;
    width: 100% !important;
    border: none;
    border-radius: 0;
}

.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%) sepia(20%);
}

.map-modal-footer {
    padding: 1rem;
    background: var(--section-bg-alt);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.map-distance-info {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.map-distance-info span {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.map-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .map-modal-footer {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 2rem;
    }
    .map-actions {
        flex-direction: column;
    }
}

/* --- Epic Additions --- */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gold-gradient);
    z-index: 99999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(211, 152, 48, 0.8);
}

/* Static Strong Gradient Text */
.text-gradient-animated {
    background: linear-gradient(to right, #DBAA4D, #A46F19, #8A5A19);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 15px rgba(164, 111, 25, 0.4);
}

/* Epic Glow on Cards - Zmodyfikowane aby nie ucinać ikon */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(246, 206, 74, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
.glass-card:hover::before {
    opacity: 1;
}
.glass-card > * {
    position: relative;
    z-index: 1;
}
/* --- FAQ Agent Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    font-family: var(--font-main);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #fff;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(211, 152, 48, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulseChat 2s infinite;
    opacity: 0;
}

@keyframes pulseChat {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 25px rgba(211, 152, 48, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(246, 206, 74, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--section-bg-alt);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
}

.chat-header i.fa-robot {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.chat-close:hover {
    color: var(--accent-color);
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--section-bg-alt);
    scroll-behavior: smooth;
}

/* Scrollbar for chat */
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(211, 152, 48, 0.3); border-radius: 10px; }

.chat-msg {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes popIn {
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.agent {
    align-self: flex-start;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--gold-gradient);
    color: #121212;
    font-weight: 600;
    border-bottom-right-radius: 2px;
    box-shadow: 0 0 15px rgba(246, 206, 74, 0.3);
}

.chat-msg strong {
    color: var(--accent-color);
}
.chat-msg.user strong {
    color: #000;
}

.chat-options-container {
    padding: 1rem;
    background: #1a1a1a;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.chat-options-container::-webkit-scrollbar { width: 4px; }
.chat-options-container::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.chat-option-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 130px;
    background: var(--section-bg-alt);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-option-btn:hover {
    background: rgba(211, 152, 48, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    align-items: center;
    height: 24px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px; /* Powyżej mobile-floating-bar */
        right: 15px;
    }
    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 100001;
    }
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* Status Check Section */
.status-check {
    padding: 80px 0;
}
#status-result {
    animation: fadeInStatus 0.5s ease-out forwards;
}
.hidden {
    display: none !important;
}
@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.status-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: stretch;
}
.uppercase-input {
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .status-form-grid {
        grid-template-columns: 1fr;
    }
    .status-form-grid button {
        width: 100%;
    }
}
.ocr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ocr-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ocr-modal {
    background: var(--section-bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.ocr-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ocr-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ocr-upload-area {
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    background: rgba(211, 152, 48, 0.05);
}

.ocr-upload-area:hover {
    background: rgba(211, 152, 48, 0.1);
}

.ocr-preview-container {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: #000;
}

.ocr-preview-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.ocr-progress-container {
    width: 100%;
    background: #333;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.ocr-progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.ocr-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ocr-results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ocr-result-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ocr-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ocr-bubble {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ocr-bubble:hover {
    border-color: var(--accent-color);
}

.ocr-bubble.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-hover);
    font-weight: 600;
}
/* --- Print Optimization --- */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    .navbar, .sidebar, .hero-bottom-stats, .mobile-floating-bar, .chat-widget, .btn, button, .no-print {
        display: none !important;
    }
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
    .glass-card, .bg-\[\#1a1a1a\], .bg-\[\#121212\] {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    input, textarea, select {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #000 !important;
        color: #000 !important;
        padding: 2px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .print-page-break {
        page-break-before: always;
    }
    h1, h2, h3, h4 {
        color: #000 !important;
        text-shadow: none !important;
        page-break-after: avoid;
    }
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    th, td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        color: #000 !important;
    }
}

/* --- Globalna poprawka dla Selectów (biały tekst na białym tle) --- */
select, select.ajax-update {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    color-scheme: dark !important;
    border: 1px solid rgba(246, 206, 74, 0.3) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f6ce4a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}
select option {
    background-color: #121212 !important;
    color: #ffffff !important;
}

/* --- Powiększenie modala odczytu wiadomości e-mail (95% okna) --- */
#email-read-modal > div {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
}

#read-body {
    flex: 1 !important;
    overflow-y: auto !important;
}

#read-body iframe {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 4px !important;
}
/* Usunięto stare klasy slidera i popupu - przeniesiono do Tailwind w widoku */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* Blog Cards Fixes */
.blog-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card-wrapper:hover {
    transform: translateY(-5px);
}
/* Usunięto .blog-card-link::after - linkowanie przeniesione do HTML jako warstwa absolutna */
.blog-card-wrapper a {
    color: #ffffff;
    text-decoration: none;
}
.blog-card-wrapper a:hover {
    color: var(--accent-color);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}
.blog-card-wrapper:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark-gradient);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.blog-card-placeholder i {
    font-size: 3.5rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}
.blog-card-placeholder span {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}
.blog-card-content {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
}
.blog-card-date {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}
.blog-card-footer {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: auto;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-card-wrapper:hover .blog-card-footer {
    color: #fff;
}

/* --- Global Audit Styles --- */
#global-audit-container {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#global-audit-container.hidden {
    display: none !important;
}
#global-audit-container:not(.visible) {
    opacity: 0;
    transform: translateY(-20px);
}
#global-audit-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Search Icon Visibility --- */
#global-search-icon {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#global-search-input:disabled ~ #global-search-icon,
#global-search-input.hidden ~ #global-search-icon {
    opacity: 0;
    visibility: hidden;
}