/* =========================================
   CZYSTY CORE & ZMIENNE (B2B PREMIUM)
   ========================================= */
:root {
    /* Płaskie, czyste kolory. Zero gradientów. */
    --color-blue: #0ea5e9;
    --color-blue-hover: #0284c7;
    --color-green: #10b981;
    
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-footer: #0f172a;
    
    --text-main: #334155;
    --text-light: #64748b;
    --text-heading: #0f172a;
    
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    
    --radius: 8px;
    --radius-sm: 4px;
    --font-sys: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sys);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   TYPOGRAFIA (CIENKA I CZYSTA)
   ========================================= */
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 400; }
p { margin-bottom: 1rem; color: var(--text-light); font-size: 1rem; font-weight: 300; }
strong { font-weight: 500; }

a { text-decoration: none; color: var(--color-blue); transition: color 0.2s ease; }
a:hover { color: var(--color-blue-hover); }

/* Narzędzia */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.max-w-800 { max-width: 800px; }
.w-100 { width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-alt { background-color: var(--bg-alt); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }

/* =========================================
   PRZYCISKI (PŁASKIE, BEZ POWIĘKSZANIA)
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 400; font-size: 1rem;
    cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

.btn-primary { background-color: var(--color-blue); color: #fff; }
.btn-primary:hover { background-color: var(--color-blue-hover); color: #fff; }

.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--color-blue); color: var(--color-blue); }

/* =========================================
   HEADER & MENU
   ========================================= */
.header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000; padding: 15px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-width: 160px; height: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; list-style: none; gap: 20px; }
.nav-list a { font-size: 0.9rem; font-weight: 400; color: var(--text-main); }
.nav-list a:hover { color: var(--color-blue); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }

/* =========================================
   HERO & WYNIKI
   ========================================= */
.hero { padding: 140px 0 100px; background-color: var(--bg-main); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-desc { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-capsules { display: flex; flex-wrap: wrap; gap: 10px; }
.capsule { background: var(--bg-alt); border: 1px solid var(--border-color); color: var(--text-light); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 400; }

.results-panel { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.results-title { font-size: 1.1rem; margin-bottom: 25px; color: var(--text-heading); border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.result-item { display: flex; gap: 15px; margin-bottom: 20px; }
.result-item:last-child { margin-bottom: 0; }
.result-icon { color: var(--color-green); flex-shrink: 0; margin-top: 2px; }
.result-text strong { display: block; font-size: 1rem; color: var(--text-heading); margin-bottom: 2px; font-weight: 400; }
.result-text span { font-size: 0.9rem; color: var(--text-light); }

/* =========================================
   STATUS BAR
   ========================================= */
.status-bar { background: var(--bg-alt); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 15px 0; overflow-x: auto; white-space: nowrap; }
.status-bar-inner { display: flex; justify-content: space-between; gap: 20px; }
.status-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); }
.status-dot { width: 6px; height: 6px; background: var(--color-green); border-radius: 50%; }

/* =========================================
   KARTY & GRIDY (CIENKIE)
   ========================================= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.grid-2-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.card {
    background: #fff; padding: 30px 25px; border-radius: var(--radius);
    border: 1px solid var(--border-color); transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--color-blue); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-heading); }
.card p { font-size: 0.9rem; margin: 0; }

/* =========================================
   EKSPERT
   ========================================= */
.expert-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.expert-image-col { text-align: center; }
.expert-img { width: 100%; max-width: 300px; border-radius: 50%; border: 1px solid var(--border-color); padding: 10px; background: #fff; }
.expert-subtitle { color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.expert-title { font-size: 2rem; margin-bottom: 20px; }
.expert-quote p { font-size: 1.1rem; font-style: italic; border-left: 2px solid var(--color-blue); padding-left: 20px; margin-bottom: 30px; }
.expert-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.expert-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.expert-features li::before { content: '•'; color: var(--color-green); font-size: 1.5rem; line-height: 1; }

/* =========================================
   LICZNIKI
   ========================================= */
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.counter-card { background: #fff; padding: 40px 20px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border-color); }
.counter-val-wrap { margin-bottom: 10px; color: var(--text-heading); }
.counter-val { font-size: 3rem; font-weight: 300; line-height: 1; }
.counter-suffix { font-size: 1.5rem; font-weight: 300; }
.disclaimer-text { font-size: 0.8rem; color: #94a3b8; margin-top: 10px; }

/* =========================================
   FAQ & FORM
   ========================================= */
.faq-wrapper { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.faq-q { width: 100%; text-align: left; padding: 15px 20px; background: none; border: none; font-size: 1rem; font-weight: 400; color: var(--text-heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-sys); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--text-light); transition: transform 0.2s; font-weight: 300; }
.faq-q.active::after { transform: rotate(45deg); color: var(--color-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 20px 15px; margin: 0; font-size: 0.95rem; }

.form-wrapper-clean { background: #fff; padding: 35px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.form-title { margin-bottom: 25px; font-size: 1.2rem; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: var(--text-main); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-sys); font-size: 0.95rem; outline: none; transition: border-color 0.2s; background: #fff; font-weight: 300; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-blue); }
.form-row { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }

/* =========================================
   KORPORACYJNA STOPKA
   ========================================= */
.footer { background: var(--bg-footer); color: #e2e8f0; padding: 60px 0 20px; font-weight: 300; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { max-width: 150px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-about { font-size: 0.9rem; color: #94a3b8; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 400; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-text { font-size: 0.9rem; color: #94a3b8; margin-bottom: 10px; }
.footer-link-highlight { color: var(--color-blue); font-size: 1.1rem; }
.footer-link-highlight:hover { color: #fff; }
.footer-disclaimer { font-size: 0.8rem; color: #475569; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #64748b; }

/* =========================================
   FLOATING UI (CZAT, BACK TO TOP, COOKIES)
   ========================================= */
.chat-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: #fff; color: var(--color-blue); border: 1px solid var(--border-color); border-radius: 50%;
    cursor: pointer; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
    z-index: 999; transition: border-color 0.2s;
}
.chat-btn:hover { border-color: var(--color-blue); }

.back-to-top {
    position: fixed; bottom: 35px; right: 95px; /* Po lewej od czatu */
    width: 40px; height: 40px; background: #fff; color: var(--text-light);
    border: 1px solid var(--border-color); border-radius: 50%; cursor: pointer;
    box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
    z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--color-blue); border-color: var(--color-blue); }

.chat-modal {
    position: fixed; bottom: 90px; right: 30px; width: 320px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color); z-index: 999;
    display: none; flex-direction: column; overflow: hidden;
}
.chat-modal.active { display: flex; }

.chat-header { background: var(--bg-alt); border-bottom: 1px solid var(--border-color); padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-header-user { display: flex; align-items: center; gap: 10px; }
.chat-icon { color: var(--color-blue); }
.chat-header h4 { margin: 0; font-size: 1rem; color: var(--text-heading); }
.chat-close { background: none; border: none; color: var(--text-light); cursor: pointer; display: flex; align-items: center; }
.chat-close:hover { color: var(--text-heading); }

.chat-body { padding: 20px; font-size: 0.9rem; display: flex; flex-direction: column; gap: 10px; }
.chat-footer { padding: 15px; background: #fff; border-top: 1px solid var(--border-color); }

/* Cookies Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; border-top: 1px solid var(--border-color);
    padding: 15px 0; z-index: 1000; display: none; box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-content p { margin: 0; font-size: 0.85rem; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */
@media (max-width: 1024px) {
    .grid-4, .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2-layout, .expert-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-list { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-color); display: none; }
    .main-nav.active { display: flex; }
    .nav-list { display: flex; flex-direction: column; width: 100%; text-align: center; gap: 15px; }
    
    .cookie-content { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .back-to-top { right: 30px; bottom: 90px; }
}

@media (max-width: 480px) {
    .grid-4, .counters-grid { grid-template-columns: 1fr; }
    .hero { padding: 100px 0 60px; }
    .section { padding: 60px 0; }
    .chat-modal { width: calc(100% - 40px); right: 20px; bottom: 90px; }
}