/* Zmienne CSS - Modern Infographic Theme */
:root {
    --blue: #0066ff;
    --blue-hover: #0052cc;
    --navy: #0a192f;
    --navy-light: #112240;
    --yellow: #ffcc00;
    --green: #00cc66;
    --bg-main: #ffffff;
    --bg-light: #f0f7ff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --radius: 24px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 102, 255, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(10, 25, 47, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Typografia */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
p { color: var(--text-light); margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: var(--text-main); font-weight: 500; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-light-blue { color: #b3d4ff; }

/* Układ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; z-index: 2; }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--navy); }
.bg-light-blue { background-color: #e6f0ff; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3.5rem; }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    border: 2px solid transparent; transition: var(--transition);
}
.btn-blue { background-color: var(--blue); color: #fff; }
.btn-blue:hover { background-color: var(--blue-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background-color: var(--bg-light); }
.btn-outline-light { background-color: transparent; border-color: rgba(255,255,255,0.2); color: #fff; }
.btn-outline-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.header {
    position: sticky; top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 0.95rem; color: var(--text-light);
}
.nav-link svg { stroke: var(--blue); opacity: 0.8; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover svg, .nav-link.active svg { opacity: 1; }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative; z-index: 1001;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 3px; background-color: var(--navy);
    position: absolute; transition: var(--transition); border-radius: 2px;
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 10px; }
.mobile-menu-btn span:nth-child(3) { top: 20px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* Hero */
.hero { padding: 80px 0 120px; background-color: var(--bg-main); overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-capsules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.capsule { background-color: var(--bg-light); color: var(--blue); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; border: 1px solid #cce0ff; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Hero Visual (Infographic) - NAPRAWIONE WARSTWY */
.hero-visual { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.info-graphic { position: relative; width: 100%; height: 100%; }

.ig-bg-shape {
    position: absolute; top: 10%; right: -10%; width: 400px; height: 400px;
    background: var(--blue); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1; opacity: 0.1; animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.ig-navy-card {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg);
    width: 280px; background: var(--navy); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-lg); z-index: 2; /* Z-INDEX 2 - POD SPODEM */
}
.ig-header { font-size: 0.8rem; color: var(--yellow); font-weight: 800; letter-spacing: 1px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.ig-list { display: flex; flex-direction: column; gap: 12px; }
.ig-item { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 0.95rem; font-weight: 600; }
.ig-dot { width: 10px; height: 10px; border-radius: 50%; }
.ig-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(0, 204, 102, 0.5); }
.ig-dot.yellow { background: var(--yellow); }
.ig-dot.blue { background: var(--blue); }

.ig-float-card {
    position: absolute; background: var(--bg-main); border: 1px solid var(--border-color);
    padding: 12px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-md); z-index: 3; /* Z-INDEX 3 - NA WIERZCHU */
}
.fc-1 { top: 15%; left: 0; animation: float 4s ease-in-out infinite; }
.fc-2 { bottom: 20%; right: -20px; animation: float 5s ease-in-out infinite 1s; }
.fc-icon { width: 36px; height: 36px; background: var(--bg-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.fc-text strong { display: block; font-size: 0.9rem; color: var(--navy); }
.fc-text span { font-size: 0.8rem; color: var(--text-light); }

.ig-circle-chart {
    position: absolute; top: 20%; right: 10%; width: 80px; height: 80px;
    background: var(--bg-main); border-radius: 50%; box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center; z-index: 3; /* Z-INDEX 3 - NA WIERZCHU */
    animation: float 4.5s ease-in-out infinite 0.5s;
}
.circular-chart { display: block; margin: 0 auto; max-width: 80%; max-height: 250px; }
.circle-bg { fill: none; stroke: #e6f0ff; stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; animation: progress 1s ease-out forwards; }
.circular-chart.blue .circle { stroke: var(--blue); }
.chart-text { position: absolute; font-size: 0.8rem; font-weight: 800; color: var(--navy); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes progress { 0% { stroke-dasharray: 0 100; } }

/* Grid System */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Karty Ogólne */
.card {
    background-color: var(--bg-main); padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--border-color);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.card-icon { color: var(--blue); margin-bottom: 16px; }

/* Keypoints Section */
.keypoint-card { background: var(--navy-light); border: 1px solid rgba(255,255,255,0.1); padding: 24px; border-radius: var(--radius-sm); transition: var(--transition); }
.keypoint-card:hover { background: #1a2f55; border-color: var(--yellow); transform: translateY(-4px); }
.keypoint-card h3 { color: var(--yellow); font-size: 1.1rem; margin-bottom: 8px; }
.keypoint-card p { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 0; }
.kp-icon { color: var(--blue); margin-bottom: 16px; }

/* Scope Cards */
.scope-card { background: var(--bg-main); padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.scope-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.scope-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.scope-card p { font-size: 0.95rem; margin-bottom: 0; }
.sc-icon { width: 40px; height: 40px; background: var(--bg-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 16px; }

/* Simple Cards */
.card-simple { padding: 24px; }
.card-simple h3 { font-size: 1.1rem; }

/* Element Cards */
.card-element { padding: 24px; border-left: 4px solid var(--blue); }
.card-element strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.card-element p { font-size: 0.9rem; margin-bottom: 0; }

/* Sekcja WP/Woo */
.woo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.woo-content strong { color: var(--blue); font-weight: 700; }
.status-panel-dark { background: var(--navy); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); color: #fff; }
.sp-header { font-weight: 800; font-size: 1.2rem; color: var(--yellow); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.sp-icon { color: var(--green); font-weight: bold; }

/* Live Indicators */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.live-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.live-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lc-header strong { color: var(--navy); font-size: 1.05rem; }
.lc-dot { width: 12px; height: 12px; border-radius: 50%; }
.lc-dot.green { background: var(--green); }
.lc-dot.blue { background: var(--blue); }
.lc-dot.yellow { background: var(--yellow); }
.lc-dot.pulse { animation: pulse-green 2s infinite; }
.lc-bar { width: 100%; height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.lc-fill { height: 100%; border-radius: 3px; }
.lc-fill.green { background: var(--green); }
.lc-fill.blue { background: var(--blue); }
.lc-fill.yellow { background: var(--yellow); }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 204, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 204, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 204, 102, 0); }
}

/* Process Path */
.process-path { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; position: relative; }
.process-path::before { content: ''; position: absolute; top: 0; left: 24px; width: 2px; height: 100%; background: var(--blue); opacity: 0.2; }
.path-node { display: flex; gap: 32px; padding: 24px 0; position: relative; z-index: 1; }
.node-num {
    width: 50px; height: 50px; background: var(--bg-main); border: 2px solid var(--blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; color: var(--blue); flex-shrink: 0;
}
.node-box { background: var(--bg-main); border: 1px solid var(--border-color); padding: 24px; border-radius: var(--radius-sm); width: 100%; transition: var(--transition); }
.node-box:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.node-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.node-box p { margin-bottom: 0; font-size: 0.95rem; }

/* Edukacja */
.text-block { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.text-block p { margin-bottom: 1.8rem; }
.text-block strong { color: var(--navy); font-weight: 700; }

/* CTA Middle */
.cta-middle { background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 80px 0; }
.cta-middle p { margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 16px; }
.faq-item summary { padding: 24px; font-weight: 700; font-size: 1.1rem; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 50px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-content { padding: 0 24px 24px; }
.faq-content p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.contact-form-wrapper { background: var(--bg-main); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: var(--bg-light); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: var(--bg-main); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1); }
.hidden { display: none !important; }
.form-message { text-align: center; padding: 20px 0; }
.msg-icon { display: flex; justify-content: center; margin-bottom: 16px; }

/* Floating UI (Chat & Back to Top) */
.chat-wrapper { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; }
.chat-tooltip {
    background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; position: relative;
    opacity: 0; transform: translateY(10px); transition: all 0.4s ease; pointer-events: none;
}
.chat-tooltip::after {
    content: ''; position: absolute; bottom: -6px; right: 20px;
    border-width: 6px 6px 0; border-style: solid; border-color: var(--navy) transparent transparent transparent;
}
.chat-tooltip.show { opacity: 1; transform: translateY(0); }

.chat-trigger {
    width: 60px; height: 60px; background: var(--blue); color: #fff; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-md); transition: var(--transition); position: relative;
}
.chat-trigger:hover { transform: scale(1.05); }
.online-dot {
    position: absolute; top: 2px; right: 2px; width: 14px; height: 14px;
    background: var(--green); border: 2px solid var(--bg-main); border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.chat-modal {
    position: fixed; bottom: 100px; right: 30px; width: 320px;
    background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 999; overflow: hidden;
    transform-origin: bottom right; transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat-modal.hidden { transform: scale(0.8); opacity: 0; pointer-events: none; }
.chat-header { background: var(--navy); padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #fff; }
.status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }
.chat-close { background: none; border: none; color: #cbd5e1; cursor: pointer; }
.chat-close:hover { color: #fff; }
.chat-body { padding: 20px; font-size: 0.95rem; }
.chat-body p { margin-bottom: 10px; color: var(--text-main); }
.chat-footer { padding: 16px; background: var(--bg-light); border-top: 1px solid var(--border-color); }

.back-to-top {
    position: fixed; bottom: 100px; right: 38px; width: 44px; height: 44px;
    background: var(--bg-main); color: var(--navy); border: 1px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 998; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.back-to-top:hover { border-color: var(--blue); color: var(--blue); }
.back-to-top.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* Footer */
.footer { background-color: var(--bg-light); border-top: 1px solid var(--border-color); padding: 60px 0 30px; }
.footer-content { margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { max-width: 500px; }
.footer-brand a { color: var(--blue); font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; text-align: center; font-size: 0.9rem; }
.disclaimer { margin-top: 8px; font-size: 0.8rem; color: var(--text-light); }

/* Responsywność */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .live-grid { grid-template-columns: repeat(2, 1fr); }
    .woo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-capsules { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 400px; }
    .ig-navy-card { transform: translate(-50%, -50%) scale(0.9); }
    
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    
    .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav {
        position: fixed; top: 80px; left: 0; width: 100%;
        background-color: var(--bg-main); padding: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%); transition: transform 0.3s ease;
        flex-direction: column; align-items: flex-start;
    }
    .nav.active { transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
    .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--bg-light); }
    
    .chat-wrapper { bottom: 20px; right: 20px; }
    .chat-modal { right: 20px; bottom: 90px; width: calc(100% - 40px); }
    .back-to-top { right: 28px; bottom: 90px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero { padding: 40px 0 60px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .contact-form-wrapper { padding: 24px; }
    .process-path::before { left: 24px; }
    .node-num { width: 40px; height: 40px; font-size: 1rem; }
    .path-node { gap: 20px; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
}
.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

/* Responsywność dla bannera cookies */
@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 40px);
        flex-direction: column;
        text-align: center;
        gap: 12px;
        bottom: 16px;
    }
    .cookie-banner p {
        white-space: normal;
    }
    .cookie-banner button {
        width: 100%;
    }
}