/* ============================================
   BISERWIS.PL - COMPLETE UNIFIED STYLES
   Version: 3.0 - Auto-fixed
   ============================================ */

:root {
    /* Corporate Tech Colors - Teal Theme with WCAG AA Compliance */
    --accent-primary: #0f766e;
    --accent-secondary: #115e59;
    --accent-dark: #134e4a;
    --accent-light: #5eead4;
    --accent-bg: rgba(15, 118, 110, 0.08);
    --accent-border: rgba(15, 118, 110, 0.2);
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-card: #ffffff;
    
    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-accent: 0 4px 14px 0 rgba(15, 118, 110, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 79px, var(--gray-100) 81px, var(--gray-100) 82px, transparent 84px),
        linear-gradient(0deg, transparent 79px, var(--gray-100) 81px, var(--gray-100) 82px, transparent 84px);
    background-size: 84px 84px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.logo::before {
    content: '';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo::after {
    content: 'BI';
    position: absolute;
    left: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: var(--accent-bg);
}

.nav-links a.active {
    color: var(--accent-primary);
    background: var(--accent-bg);
    font-weight: 600;
}

.nav-links a[href*="status"],
.nav-links a[href*="zdalna"] {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-links a[href*="status"]:hover,
.nav-links a[href*="zdalna"]:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}



main {
    margin-top: 72px;
    flex: 1;
    width: 100%;
}

.hero {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, var(--accent-bg));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero .subtitle {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-header,
.form-container,
.contact-info {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-button-secondary:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}



footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}



footer h3,
footer h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p,
footer li {
    color: var(--gray-400);
    line-height: 1.6;
    font-size: 0.95rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-light);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.status-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



    

    footer .container,
    
}

/* Additional styles for all components */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--gray-200); border-radius: 12px; font-size: 1rem; background: white; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-bg); }
.card { background: var(--bg-card); border: 1px solid var(--gray-200); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-md); }
.success-message { background: #d1fae5; border: 2px solid #10b981; color: #047857; padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; display: none; }
.success-message.show { display: block; }
.error-message { background: #fee2e2; border: 2px solid #ef4444; color: #991b1b; padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }


/* CORRECTED FOOTER STYLES */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    margin-top: auto;
    width: 100%;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3,
footer h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p,
footer li {
    color: var(--gray-400);
    line-height: 1.6;
    font-size: 0.95rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-light);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Mobile footer fix */
@media (max-width: 768px) {
    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    footer {
        padding: 3rem 0 2rem;
    }
}
/* Menu mobile breakpoint - dla 7 elementów */

}
/* Mobile breakpoint - pokaż hamburger, ukryj menu */

    
    .nav-links.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--gray-200, #e2e8f0);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active a {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
        font-size: 1rem;
        width: 100%;
        display: block;
    }
    
    .nav-links.active a:hover {
        background: var(--accent-bg, rgba(15, 118, 110, 0.08));
        color: var(--accent-primary, #0f766e);
    }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
    .nav-links.active {
        padding: 1.5rem;
    }
    
    .nav-links.active a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}
/* ===== MENU FIX - FINAL ===== */
/* Hamburger - UKRYTY na desktop, WIDOCZNY na mobile */
.mobile-menu {
    display: none !important; /* UKRYTY domyślnie */
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--gray-300, #cbd5e1);
    color: var(--text-secondary, #475569);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Mobile breakpoint - POKAŻ hamburger, UKRYJ normalne menu */
@media (max-width: 1080px) {
    .mobile-menu {
        display: block !important; /* POKAŻ na mobile */
    }
    
    .nav-links {
        display: none !important; /* UKRYJ normalne menu */
    }
    
    /* Dropdown menu po kliknięciu hamburger */
    .nav-links.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--gray-200, #e2e8f0);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.active a {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
        font-size: 1rem;
        width: 100%;
        display: block;
    }
    
    .nav-links.active a:hover {
        background: var(--accent-bg, rgba(15, 118, 110, 0.08));
        color: var(--accent-primary, #0f766e);
    }
    
    .nav-links.active a[href*="status"],
    .nav-links.active a[href*="zdalna"] {
        background: var(--accent-primary, #0f766e);
        color: white;
        font-weight: 600;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
    .nav-links.active {
        padding: 1.5rem;
    }
    
    .nav-links.active a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}
/* ===== COOKIE BANNER - HIGH CONTRAST ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-top: 3px solid var(--accent-primary, #0f766e);
    backdrop-filter: blur(10px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.6;
    min-width: 300px;
}

.cookie-banner-text strong {
    color: #ffffff;
    font-weight: 600;
}

.cookie-banner-text a {
    color: var(--accent-light, #5eead4);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #ffffff;
    text-decoration: none;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-banner-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    letter-spacing: 0.25px;
    min-width: 120px;
    justify-content: center;
}

.cookie-banner-accept {
    background: var(--accent-primary, #0f766e);
    color: #ffffff;
    border: 2px solid var(--accent-primary, #0f766e);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.cookie-banner-accept:hover {
    background: var(--accent-secondary, #115e59);
    border-color: var(--accent-secondary, #115e59);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
    color: #ffffff;
}

.cookie-banner-decline {
    background: transparent;
    color: #f1f5f9;
    border: 2px solid #64748b;
}

.cookie-banner-decline:hover {
    background: #64748b;
    color: #ffffff;
    border-color: #64748b;
    transform: translateY(-1px);
}

.cookie-banner-settings {
    background: transparent;
    color: var(--accent-light, #5eead4);
    border: 2px solid var(--accent-light, #5eead4);
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    min-width: auto;
}

.cookie-banner-settings:hover {
    background: var(--accent-light, #5eead4);
    color: #1e293b;
    border-color: var(--accent-light, #5eead4);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-banner-button {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }
    
    .cookie-banner-settings {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000000;
        border-top-width: 5px;
    }
    
    .cookie-banner-text {
        color: #ffffff;
    }
    
    .cookie-banner-accept {
        background: #ffffff;
        color: #000000;
        border-color: #ffffff;
    }
    
    .cookie-banner-decline {
        border-color: #ffffff;
        color: #ffffff;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner {
    animation: slideUp 0.3s ease-out;
}

/* Focus states for accessibility */
.cookie-banner-button:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.cookie-banner-text a:focus {
    outline: 2px solid var(--accent-light, #5eead4);
    outline-offset: 2px;
    border-radius: 2px;
}