/* =========================================================
 * MODUŁ: style.css (Główne style aplikacji)
 * DATA MODYFIKACJI: 2026-02-23 (PEŁNY KOD)
 * =========================================================
 * DOKUMENTACJA ZMIAN:
 * 1. ZASADA PEŁNEGO KODU.
 * 2. TEAM MODULE FIX: Dodano `max-width: 350px`.
 * 3. FIX PKT 3 (Scroll/CLS): Dodano globalne `scroll-margin-top` 
 * dla sekcji oraz wymuszono lepsze renderowanie obrazów.
 * 4. HOTFIX (AI Chat): Wymuszono `pointer-events: auto` na klasie 
 * .hero-center-circle, co naprawia błąd "przelatywania" kliknięcia
 * w tło (sekcję Budownictwo).
 * ========================================================= */

/* =========================================================
 0. RESET / GLOBAL
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg-main: #05090b; --bg-elevated: #0d151b; --bg-alt: #0f1b22;
  --accent: #37d66b; --accent-soft: #9fffa5; --accent-border: #2bcf62;
  --text-main: #e5f5f0; --text-muted: #9ba9b4; --border-soft: #1c2831; --danger: #ff6b81;
  --font-main: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 18px; --radius-md: 12px; --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --transition-fast: 0.18s ease-out; --transition-med: 0.3s ease-out;
}

body.page { margin: 0; padding: 0; min-height: 100vh; background: radial-gradient(circle at top, #102023 0, #05090b 55%, #020407 100%); color: var(--text-main); font-family: var(--font-main); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* FIX PKT 3: Natywne zabezpieczenie przed ucinaniem sekcji przez Sticky Header */
section[id] {
  scroll-margin-top: 80px; 
}
img {
  content-visibility: auto; /* Przyspiesza renderowanie, zmniejsza skoki layoutu */
}

.lang-pl, .lang-en, .lang-ua { display: none; }
html[lang="pl"] .lang-pl { display: inline; }
html[lang="en"] .lang-en { display: inline; }
html[lang="uk"] .lang-ua { display: inline; }

/* =========================================================
 2. HEADER & DYNAMIC SHRINK
========================================================= */
.site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(14px); background: linear-gradient(90deg, rgba(5, 9, 11, 0.94), rgba(8, 18, 22, 0.96)); border-bottom: 1px solid rgba(55, 214, 107, 0.18); transition: padding var(--transition-med), background var(--transition-med); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 16px; transition: padding var(--transition-med); }
.site-header.shrunk .header-inner { padding: 4px 16px; }
.site-header.shrunk { background: linear-gradient(90deg, rgba(2, 4, 6, 0.98), rgba(4, 9, 12, 0.99)); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; border: 1px solid rgba(55, 214, 107, 0.8); box-shadow: 0 0 12px rgba(55, 214, 107, 0.7); background: #020404; transition: width var(--transition-med), height var(--transition-med); }
.site-header.shrunk .brand-logo { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent-soft); }
.brand-tagline { font-size: 0.7rem; color: var(--text-muted); }
.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-link { border: none; background: transparent; color: var(--text-muted); padding: 6px 10px; border-radius: 999px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; cursor: pointer; transition: color var(--transition-fast), background-color var(--transition-fast); }
.nav-link:hover { color: var(--accent-soft); background: rgba(55, 214, 107, 0.12); }

/* DROPDOWN */
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropbtn { background-color: transparent; color: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; gap: 4px; }
.lang-dropbtn:hover { background-color: rgba(55, 214, 107, 0.15); box-shadow: 0 0 8px rgba(55, 214, 107, 0.4); }
.lang-dropdown-content { display: none; position: absolute; right: 0; top: calc(100% + 4px); background-color: var(--bg-elevated); min-width: 120px; box-shadow: 0 8px 16px rgba(0,0,0,0.8); border: 1px solid var(--border-soft); border-radius: 8px; z-index: 2000; }
.lang-dropdown-content::before { content: ""; position: absolute; top: -8px; left: 0; width: 100%; height: 8px; background: transparent; }
.lang-dropdown:hover .lang-dropdown-content, .lang-dropdown-content.show { display: block; }
.lang-btn { color: var(--text-main); padding: 10px 16px; text-decoration: none; display: block; background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: background var(--transition-fast); }
.lang-btn:hover { background-color: var(--border-soft); color: var(--accent-soft); }
.lang-btn:first-child { border-top-left-radius: 7px; border-top-right-radius: 7px; }
.lang-btn:last-child { border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; }

/* =========================================================
 3. HERO FIX & BACKGROUND ZOOM 
========================================================= */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-split-section { padding: 0; }
.hero-split-frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; pointer-events: none; }
.hero-split-side { pointer-events: auto; display: flex; align-items: center; justify-content: center; text-align: center !important; position: relative; z-index: 1; overflow: hidden; }
.hero-split-label { margin: 0 auto; width: 100%; max-width: 340px; text-align: center; position: relative; z-index: 2; }
.hero-split-title { width: 100%; display: block; margin: 0 auto 8px auto; text-align: center !important; letter-spacing: 0.12em; }
.hero-split-subtitle { text-align: center !important; width: 100%; }
.hero-split-left { border-right: 1px solid rgba(55, 214, 107, 0.35); }
.hero-split-left::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/bg/hero-budownictwo-pcb.svg") center/cover no-repeat; transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hero-split-left::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(0, 0, 0, 0.86), rgba(5, 9, 11, 0.82)); }
.hero-split-left:hover::before { transform: scale(1.08); }
.hero-split-right { border-left: 1px solid rgba(55, 214, 107, 0.32); }
.hero-split-right::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/bg/hero-ogrodnictwo-pcb.svg") center/cover no-repeat; transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hero-split-right::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(55, 214, 107, 0.38), rgba(3, 14, 7, 0.95)); }
.hero-split-right:hover::before { transform: scale(1.08); }

/* [HOTFIX - Błąd 1]: Przywrócenie klikalności dla przycisku wyzwalającego czat */
.hero-center-circle { pointer-events: auto !important; z-index: 50 !important; cursor: pointer; }

/* =========================================================
 SCROLL REVEAL ANIMATIONS
========================================================= */
.reveal-hidden { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); will-change: opacity, transform; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
 SEKCJE
========================================================= */
.section { padding: 40px 0; }
.section-alt { background: radial-gradient(circle at top left, #12252b 0, #04080b 45%); }
.section-header h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; }
.section-header p { margin: 0; color: var(--text-muted); max-width: 560px; font-size: 0.95rem; line-height: 1.6; }

/* KAFELKI MODUŁÓW */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.module-card { background: linear-gradient(145deg, rgba(10, 18, 24, 0.96), rgba(6, 15, 17, 0.98)); border-radius: var(--radius-lg); padding: 20px 18px; border: 1px solid rgba(55, 214, 107, 0.2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); cursor: pointer; transition: transform var(--transition-med), border-color var(--transition-med); }
.module-card:hover { transform: translateY(-4px); border-color: var(--accent-border); }

/* KARTY OFERT PRACY */
.jobs-list-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.job-card { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; transition: transform var(--transition-fast), border-color var(--transition-fast); display: flex; flex-direction: column; }
.job-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.job-title { color: var(--accent); margin: 0 0 12px 0; font-size: 1.15rem; font-weight: 700; }
.job-detail { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500;}
.job-detail i { color: var(--accent-soft); width: 16px; text-align: center; }
.job-reqs { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 0.85rem; color: var(--text-main); line-height: 1.5; }
.job-reqs ul { padding-left: 18px; margin: 6px 0 0 0; }

/* O NAS / STOPKA */
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; line-height: 1.6; }
.about-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.highlight { background: #071018; border-radius: var(--radius-md); padding: 16px; border: 1px solid rgba(55, 214, 107, 0.2); }
.highlight-label { font-size: 0.75rem; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 8px; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; line-height: 1.6; }
.site-footer { border-top: 1px solid rgba(55, 214, 107, 0.22); background: #05090b; }
.footer-bottom { padding: 16px 0 20px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* SOCIAL */
.social-links-list { list-style: none; padding: 0; display: flex; gap: 10px; }
.social-link { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(55, 214, 107, 0.45); background: #05090b; color: var(--accent-soft); font-size: 1.25rem; transition: transform var(--transition-fast); }
.social-link:hover { background: var(--accent-soft); color: #020406; transform: translateY(-3px); }

/* MAPA DOJAZDU */
.transport-map-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; margin-top: 24px; }
.transport-map { width: 100%; min-height: 320px; height: 380px; border-radius: var(--radius-lg); border: 1px solid rgba(55, 214, 107, 0.35); background: #020406; z-index: 1; cursor: crosshair; }
.leaflet-tile-pane { filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(105%); }
.leaflet-control-attribution { background: rgba(2, 4, 6, 0.8) !important; color: var(--text-muted) !important; padding: 2px 6px !important; }
.leaflet-control-attribution a { color: var(--accent-soft) !important; text-decoration: none; }
.distance-tooltip { background: var(--bg-elevated) !important; border: 1px solid var(--accent) !important; color: var(--accent-soft) !important; font-weight: 700 !important; font-family: var(--font-main) !important; border-radius: 6px !important; padding: 4px 10px !important; box-shadow: 0 4px 14px rgba(0,0,0,0.8) !important; pointer-events: none; }
.leaflet-tooltip-left::before, .leaflet-tooltip-right::before, .leaflet-tooltip-top::before, .leaflet-tooltip-bottom::before { display: none !important; }
.transport-legend { border-radius: var(--radius-lg); border: 1px solid var(--border-soft); background: radial-gradient(circle at top left, #101b22 0, #05090c 55%); padding: 16px 20px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }
.transport-legend h3 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
.transport-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.transport-legend-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-main); }
.legend-color { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, 0.5); }
.legend-a { background: rgba(55, 214, 107, 0.8); } .legend-b { background: rgba(255, 183, 77, 0.85); } .legend-out { background: rgba(148, 163, 184, 0.9); }

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) { .transport-map-layout { grid-template-columns: 1fr; } .transport-map { height: 320px; } }
@media (max-width: 768px) { .hero-split-frame { grid-template-columns: 1fr; } .hero-center-circle { top: 30%; transform: translate(-50%, -30%); } .hero-split-side { padding: 30px 18px 70px; } .about-grid { grid-template-columns: 1fr; } }

/* TŁA PCB MODUŁÓW */
#bud-pricing-block { background: url("assets/bg/module-budownictwo-pcb.svg") center/cover no-repeat, radial-gradient(circle at top left, #071015 0, #020406 60%); border-radius: var(--radius-lg); border: 1px solid rgba(55, 214, 107, 0.28); padding: 24px; }
#garden-services { background: url("assets/bg/module-ogrodnictwo-pcb.svg") center/cover no-repeat, radial-gradient(circle at top, #071a10 0, #020406 60%); border-radius: var(--radius-lg); border: 1px solid rgba(159, 255, 165, 0.26); padding: 24px; }

/* =========================================================
 11. COOKIE BANNER
========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(8, 15, 20, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--accent);
  z-index: 9999;
  padding: 24px 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  color: var(--text-main);
  transform: translateY(0);
  transition: transform 0.4s ease-out;
}
.cookie-banner-hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-banner-main { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner-title { margin: 0; font-size: 1.25rem; color: var(--accent-soft); font-weight: 800; }
.cookie-banner-text { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 800px; }
.cookie-banner-categories { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.cookie-category { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.cookie-category strong { color: var(--text-main); font-weight: 700; }
.cookie-category p { margin: 0; color: var(--text-muted); font-size: 0.75rem; }

.cookie-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-direction: row; }
.cookie-checkbox input {
  appearance: none; width: 20px; height: 20px; border: 2px solid var(--border-soft); border-radius: 6px;
  background: var(--bg-alt); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
}
.cookie-checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.cookie-checkbox input:checked::after { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #000; font-size: 12px; }
.cookie-label-text { font-weight: 600; color: var(--text-main); }

.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cookie-btn { padding: 10px 24px; border-radius: 999px; font-family: var(--font-main); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s; }
.cookie-btn-primary { background: var(--accent); color: #000; border: none; }
.cookie-btn-primary:hover { background: var(--accent-soft); transform: scale(1.05); }
.cookie-btn-secondary { background: transparent; border: 1px solid var(--border-soft); color: var(--text-muted); }
.cookie-btn-secondary:hover { border-color: var(--accent); color: var(--accent-soft); }
.cookie-btn[data-cookie-save="selection"] { background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--text-main); }
.cookie-btn[data-cookie-save="selection"]:hover { border-color: var(--accent); color: var(--accent-soft); }

/* =========================================================
 15. KALKULATOR / CENNIK PREMIUM
========================================================= */
.price-list-container { display: flex; flex-direction: column; gap: 8px; }
.price-list-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: rgba(255, 255, 255, 0.02); border-radius: 8px; border-left: 3px solid transparent;
  transition: all 0.2s ease; cursor: pointer; user-select: none;
}
.price-list-item:hover { background: rgba(55, 214, 107, 0.06); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.price-list-item.selected { border-left-color: var(--accent); background: rgba(55, 214, 107, 0.1); }
.price-item-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.price-item-details { display: flex; flex-direction: column; }
.price-item-name { font-weight: 700; font-size: 1rem; color: var(--text-main); }
.price-item-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; max-width: 90%; }
.price-item-right { display: flex; align-items: center; gap: 16px; }
.price-item-cost { font-family: monospace; font-size: 1.1rem; color: var(--accent-soft); font-weight: 700; text-align: right; white-space: nowrap; }
.price-item-unit { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-main); margin-left: 4px; }
.price-qty-wrapper { display: none; align-items: center; gap: 8px; }
.price-list-item.selected .price-qty-wrapper { display: flex; animation: fadeIn 0.3s forwards; }
.price-qty-input { width: 70px; background: var(--bg-main); border: 1px solid var(--border-soft); color: var(--text-main); border-radius: 6px; padding: 6px 10px; text-align: right; font-family: monospace; font-size: 1rem;}
.price-qty-input:focus { outline: none; border-color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* =========================================================
   UI: KALKULATOR SUMMARY BAR
========================================================= */
#calc-summary-bar {
    position: relative; 
    margin: 40px auto 0 auto;
    width: 100%;
    max-width: 800px; 
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: none; 
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10; 
}

#calc-summary-bar.visible {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (min-width: 768px) {
    #calc-summary-bar.visible {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

#calc-summary-bar:hover {
    transform: translateY(-4px); 
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(55, 214, 107, 0.15);
}

.calc-summary-text {
    text-align: center;
    flex: 1;
}

.calc-count {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.calc-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.calc-btn {
    padding: 18px 36px; 
    font-size: 1.15rem;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.pdf-btn { 
    background: var(--accent); 
    color: #000; 
    border: none;
    box-shadow: 0 6px 20px rgba(55, 214, 107, 0.25);
}
.pdf-btn:hover { 
    background: var(--accent-soft); 
    transform: scale(1.03); 
}

.ai-btn { 
    background: transparent; 
    border: 2px solid var(--accent); 
    color: var(--accent); 
}
.ai-btn:hover { 
    background: rgba(55, 214, 107, 0.1); 
    transform: scale(1.03); 
}

/* =========================================================
 16. AI WIDŻET CHATU
========================================================= */
#ai-widget-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; }
#ai-chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #15853b); border: none; color: #000; font-size: 1.8rem; cursor: pointer; box-shadow: 0 8px 24px rgba(55, 214, 107, 0.4); transition: transform 0.3s; display: flex; justify-content: center; align-items: center; }
#ai-chat-toggle:hover { transform: scale(1.1); }
#ai-chat-window { width: 350px; height: 450px; background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.8); margin-bottom: 16px; transform-origin: bottom right; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
#ai-chat-window.chat-hidden { transform: scale(0); opacity: 0; pointer-events: none; }
.chat-header { background: #071018; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
#ai-chat-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg-main); }
.chat-message { padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; max-width: 85%; }
.chat-message.bot { background: rgba(55, 214, 107, 0.1); border-bottom-left-radius: 2px; color: var(--accent-soft); align-self: flex-start; }
.chat-message.user { background: var(--border-soft); border-bottom-right-radius: 2px; color: var(--text-main); align-self: flex-end; }
.chat-input-area { padding: 12px; background: #071018; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; }
#ai-chat-input { flex: 1; background: var(--bg-main); border: 1px solid var(--border-soft); color: var(--text-main); border-radius: 8px; padding: 10px; font-family: var(--font-main); font-size: 0.9rem; }
#ai-chat-input:focus { outline: none; border-color: var(--accent); }
#ai-chat-send { background: var(--accent); color: #000; border: none; border-radius: 8px; width: 40px; cursor: pointer; transition: background 0.2s; }
#ai-chat-send:hover { background: var(--accent-soft); }

@media (max-width: 500px) {
  #ai-chat-window { width: calc(100vw - 32px); position: fixed; bottom: 90px; right: 16px; }
}

/* =========================================================
 17. PORTFOLIO / REALIZACJE 
========================================================= */
.portfolio-filters-container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.portfolio-filter-btn { background: transparent; border: 1px solid var(--border-soft); color: var(--text-muted); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.portfolio-filter-btn:hover { border-color: var(--accent); color: var(--text-main); }
.portfolio-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }

.portfolio-grid { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 20px;
  margin-top: 24px; 
}

.portfolio-folder { 
  position: relative; 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  border: 1px solid var(--border-soft); 
  background: var(--bg-elevated); 
  cursor: pointer; 
  transition: transform var(--transition-med), border-color var(--transition-med); 
  display: flex; 
  flex-direction: column; 
  width: 100%;
  max-width: 260px;
}
.portfolio-folder:hover { transform: translateY(-4px); border-color: var(--accent); }

.portfolio-folder-main-img { 
  width: 100%; 
  height: 150px;
  object-fit: cover; 
  object-position: center;
  display: block; 
  flex-shrink: 0; 
}

.portfolio-folder-thumbnails { 
  display: flex; 
  gap: 4px; 
  padding: 4px; 
  background: var(--bg-main); 
  flex-shrink: 0;
}
.portfolio-folder-thumbnails img { 
  flex: 1; 
  height: 48px;
  object-fit: cover; 
  border-radius: 4px; 
  opacity: 0.7; 
  transition: 0.2s; 
}
.portfolio-folder-thumbnails img:hover { opacity: 1; }

.portfolio-folder-info { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-elevated); margin-top: auto; }
.portfolio-folder-title { font-weight: 700; color: var(--text-main); font-size: 0.9rem; margin: 0; }
.portfolio-folder-count { font-size: 0.75rem; color: var(--accent-soft); background: rgba(55,214,107,0.1); padding: 4px 8px; border-radius: 12px; }

/* =========================================================
 18. OPINIE KLIENTÓW Z GOOGLE
========================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.review-card { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s; }
.review-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; }
.review-author { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-stars { font-size: 0.9rem; margin-bottom: 4px; }
.review-text { font-size: 0.9rem; color: var(--text-muted); font-style: italic; line-height: 1.5; margin: 0; flex: 1; }
.review-source { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); margin-top: 10px; }

/* =========================================================
 19. GLOBALNY SLIDER PRZED / PO
========================================================= */
.ba-slider-container { 
    position: relative; 
    display: inline-block; 
    max-width: 90vw; 
    max-height: 85vh; 
    overflow: hidden; 
    border-radius: 12px; 
    border: 1px solid var(--border-soft); 
    margin: 0 auto; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}
.ba-slider-container img { 
    display: block; 
    max-width: 100%; 
    max-height: 85vh; 
    width: auto; 
    height: auto; 
    pointer-events: none; 
}
.ba-img-before { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); 
    z-index: 2; 
}
.ba-slider-input { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 15; 
    opacity: 0; 
    cursor: ew-resize; 
    margin: 0; 
}
.ba-slider-container::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: var(--slider-pos, 50%);
    width: 4px; 
    height: 100%; 
    background: #fff; 
    z-index: 2; 
    transform: translateX(-50%); 
    pointer-events: none; 
    box-shadow: 0 0 10px rgba(0,0,0,0.5); 
}

/* =========================================================
 20. MODAL REKRUTACYJNY
========================================================= */
#job-apply-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); opacity: 1; transition: opacity 0.3s; }
#job-apply-modal.modal-hidden { opacity: 0; pointer-events: none; }
.job-modal-content { background: var(--bg-elevated); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 30px; width: 90%; max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.job-modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: var(--text-muted); transition: 0.2s; }
.job-modal-close:hover { color: var(--danger); transform: scale(1.1); }
.job-modal-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.job-modal-form input[type="text"], .job-modal-form input[type="tel"], .job-modal-form input[type="email"] { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-soft); background: var(--bg-main); color: var(--text-main); font-family: var(--font-main); font-size: 1rem; }
.job-modal-form input:focus { outline: none; border-color: var(--accent); }
.job-skill-row { display: flex; flex-direction: column; gap: 10px; background: var(--bg-main); padding: 15px; border-radius: 8px; border: 1px solid var(--border-soft); }
.job-skill-name { font-weight: 700; color: var(--accent-soft); font-size: 0.95rem; }
.job-skill-scale { display: flex; gap: 5px; font-size: 0.8rem; justify-content: space-between; }
.job-skill-scale label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; color: var(--text-muted); flex: 1; transition: 0.2s; }
.job-skill-scale label:hover { color: var(--text-main); }
.job-skill-scale input[type="radio"] { accent-color: var(--accent); transform: scale(1.3); cursor: pointer; }
.job-skill-scale input[type="radio"]:checked + span { color: var(--accent); font-weight: 800; }

/* =========================================================
 21. PORTFOLIO LIGHTBOX
========================================================= */
#portfolio-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); opacity: 1; transition: opacity 0.3s; }
#portfolio-lightbox.modal-hidden { opacity: 0; pointer-events: none; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: var(--text-main); cursor: pointer; z-index: 10001; transition: 0.2s; }
.lightbox-close:hover { color: var(--danger); transform: scale(1.1); }

.lightbox-top-controls { position: absolute; top: -50px; right: 0; display: flex; gap: 15px; z-index: 10001; }
.lightbox-btn { background: rgba(0,0,0,0.5); border: 1px solid var(--border-soft); color: var(--text-main); width: 40px; height: 40px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; backdrop-filter: blur(4px); }
.lightbox-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.lightbox-content { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.lightbox-content > img { display: block; max-width: 90vw; max-height: 85vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(5, 9, 11, 0.7); color: var(--accent); border: 1px solid var(--accent); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10001; transition: 0.2s; }
.lightbox-nav:hover { background: var(--accent); color: #000; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter { margin-top: 16px; color: var(--text-muted); font-size: 1rem; letter-spacing: 0.1em; font-weight: 700; text-align: center; }

.ba-label { position: absolute; top: 20px; padding: 6px 16px; background: rgba(5, 9, 11, 0.75); color: #fff; font-weight: 800; font-size: 0.85rem; border-radius: 6px; z-index: 10; pointer-events: none; letter-spacing: 0.1em; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); transition: opacity 0.2s; }
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; background: rgba(55, 214, 107, 0.85); color: #000; border-color: rgba(55, 214, 107, 1); }

/* =========================================================
 22. NOWE ELEMENTY MODALA REKRUTACYJNEGO
========================================================= */
.job-file-upload { 
    margin-top: 15px; border: 1px dashed var(--border-soft); 
    border-radius: 8px; padding: 16px; text-align: center; 
    cursor: pointer; transition: 0.2s; background: var(--bg-main); 
}
.job-file-upload:hover { border-color: var(--accent); background: rgba(55,214,107,0.05); }
.file-upload-label { cursor: pointer; color: var(--text-main); font-size: 0.9rem; display: block; width: 100%; }
.job-consents { margin-top: 15px; border-top: 1px solid var(--border-soft); padding-top: 15px; }

.job-group-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem; color: var(--text-main); font-weight: 700;
    margin: 20px 0 10px 0; border-bottom: 1px solid var(--border-soft);
    padding-bottom: 6px;
}
.job-group-title i { color: var(--accent-soft); }
.spontaneous-promo { text-align: center; padding: 30px 20px; background: var(--bg-elevated); border-radius: var(--radius-md); border: 1px solid var(--border-soft); }

/* =========================================================
 23. WIZUALNY KOSZTORYSANT AI
========================================================= */
.chat-input-toolbar {
    display: flex; gap: 8px; padding: 0 12px 10px; background: #071018; 
    align-items: center; border-bottom: 1px solid var(--border-soft);
}
#ai-chat-img-btn {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: 0.2s;
    font-size: 0.85rem; display: flex; align-items: center; gap: 6px;
}
#ai-chat-img-btn:hover { background: rgba(55, 214, 107, 0.15); }
.ai-image-preview-container {
    position: relative; display: none; padding: 10px; background: var(--bg-main);
    border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.ai-image-preview-container.active { display: block; }
#ai-image-preview-img { height: 60px; width: auto; border-radius: 6px; border: 1px solid var(--border-soft); }
#ai-remove-img {
    position: absolute; top: 5px; left: 65px; background: var(--danger); color: #fff;
    border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 10px;
}

/* =========================================================
 24. MODUŁ NASZ ZESPÓŁ (Wizytówki pracowników)
========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); /* Zaktualizowano */
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px; /* FIX Pkt 6: Zmniejszono z 350px na złoty standard portretowy 280px */
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(55, 214, 107, 0.4);
}

.team-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #050a0f;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-image {
    transform: scale(1.08);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 9, 11, 0.95) 0%, rgba(5, 9, 11, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-med);
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-overlay i {
    color: var(--accent);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(55, 214, 107, 0.6));
}

.team-card-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-card-name {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.05em;
}

.team-card-role {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: var(--accent-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================
   24B. BRAKUJĄCE STYLE KARTY GRUPOWEJ (CAŁY ZESPÓŁ)
========================================================= */
.team-group-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.team-group-image-wrapper {
    width: 100%;
    background: #050a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}

.team-group-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.team-group-info {
    padding: 30px 20px;
    text-align: center;
}

.team-group-title {
    color: var(--accent);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.team-group-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}


/* =========================================================
 25. FAT FOOTER PREMIUM (Stopka SEO)
========================================================= */
.site-footer {
    border-top: 1px solid rgba(55, 214, 107, 0.22);
    background: #04080b; /* Ciemniejsze tło oddzielające stopkę */
    padding-top: 40px;
}

.fat-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-soft);
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li button,
.footer-links li a {
    text-decoration: none;
    transition: color 0.2s;
    text-align: left;
}

.footer-links li button:hover,
.footer-links li a:hover {
    color: var(--accent);
    background: transparent;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .fat-footer-inner { gap: 25px; }
}
/* =========================================================
 26. SEKCJA BOOKING (KALENDARZ MS BOOKINGS)
========================================================= */
.booking-wrapper {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-placeholder {
    text-align: center;
    padding: 40px 20px;
}
.booking-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(55, 214, 107, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--accent);
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(55, 214, 107, 0.2);
}
.booking-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 600px;
}
/* =========================================================
 27. EFEKT FIZYKI ISKIER (HERO CENTER)
========================================================= */
/* Elementy latających iskier */
.hero-spark {
    position: absolute;
    inset: -4px; /* Orbita odrobinę szersza niż sam przycisk */
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
}

.hero-spark::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

/* Iskra 1: Cięższa, główna (Zielona) */
.hero-spark-1::after {
    width: 8px; 
    height: 8px;
    background: #37d66b;
    box-shadow: 0 0 15px 5px rgba(55, 214, 107, 0.8), 0 0 30px 10px rgba(55, 214, 107, 0.4);
}

/* Iskra 2: Lżejsza, szybsza (Biała) */
.hero-spark-2::after {
    width: 4px; 
    height: 4px; 
    background: #ffffff;
    box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.9), 0 0 20px 8px rgba(55, 214, 107, 0.5);
}

/* Element Rozbłysku (Niewidoczny, czeka na zderzenie) */
.hero-spark-flash {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.15s ease-out; /* Szybkie wygaszanie */
    mix-blend-mode: screen; /* Nakładanie światła */
}

/* Kula świetlna rozbłysku */
.hero-spark-flash::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) scale(0.3);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffffff 0%, rgba(55, 214, 107, 0.9) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Aktywacja kolizji (Klasa dodawana przez JS) */
.hero-spark-flash.flash-active {
    opacity: 1;
    transition: opacity 0.05s ease-in; /* Błyskawiczne zapalenie */
}
.hero-spark-flash.flash-active::after {
    transform: translateX(-50%) scale(1.3); /* Eksplozja rozmiaru */
}