:root {--bg-light: #ffffff; --bg-alt: #f1f5f9; --accent: #2563eb; --accent-dark: #1d4ed8; --text-main: #0f172a; 
    --text-dim: #64748b; --glass-border: rgba(0, 0, 0, 0.08); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 25px; }

/* Nawigacja */
.glass-nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1100px; padding: 15px 40px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 50px;    
    display: flex; justify-content: space-between; align-items: center; z-index: 1000; }
.logo { font-weight: 800; font-size: 1.4rem; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('img/biuro-rachunkowe.jpg');
    /*url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1200');*/
    background-size: cover; background-position: center; background-attachment: fixed; color: white; }
.hero-content { padding-top: 40px; }
.gradient-text { background: linear-gradient(90deg, #5093df, #2563eb); -webkit-background-clip: text; background-clip: text; 
    -webkit-text-fill-color: transparent; }
.hero-content h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.25rem; color: #cbd5e1; max-width: 750px; margin: 0 auto 40px; }
.btn-primary { background: var(--accent); color: white; padding: 16px 36px; border-radius: 12px; text-decoration: none; font-weight: 600; 
    transition: 0.3s; display: inline-block; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4); }

/* Stany początkowe dla animacji wejścia */
.hero-content h1, 
.hero-content p, 
.hero-content .btn-primary,
.glass-nav { opacity: 0; transition: all 1s cubic-bezier(0.22, 1, 0.36, 1); }
/* H1 wjeżdża z lewej */
.hero-content h1 { transform: translateX(-50px);}
/* Opis (P) wjeżdża z prawej */
.hero-content p { transform: translateX(50px);}
/* Przycisk wjeżdża z dołu */
.hero-content .btn-primary { transform: translateY(30px);}
/* Nawigacja wjeżdża z góry */
.glass-nav { transform: translate(-50%, -30px); /* Uwaga na transform: -50% bo nav jest centrowany */}

/* Aktywacja animacji po zdjęciu klasy loading z body */
body:not(.loading) .glass-nav { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.2s; }
body:not(.loading) .hero-content h1 { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }
body:not(.loading) .hero-content p { opacity: 1; transform: translateX(0); transition-delay: 0.7s;}
body:not(.loading) .hero-content .btn-primary { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }

/* Sekcje i O firmie */
.full-width-section { padding: 100px 0;}
.bg-alt { background: var(--bg-alt); }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 50px; }
.about-image img { width: 100%; height:100%; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }

/* Bento Usługi - Interakcja */
.bento-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: start; }
.bento-item { background: white; border: 1px solid var(--glass-border); border-radius: 30px; padding: 40px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; overflow: hidden; position: relative; }
.bento-icon { width: 35px; height: 35px; color: var(--accent); transition: 0.4s; }
.bento-item h3 { margin-top: 15px; font-size: 1.4rem; transition: 0.4s; }
.bento-item p { max-height: 0; opacity: 0; margin-top: 0; transition: all 0.5s ease; color: var(--text-dim); }
.bento-item:hover { background: var(--accent); transform: translateY(-10px) scale(1.03); z-index: 5; }
.bento-item:hover h3, .bento-item:hover .bento-icon, .bento-item:hover p { color: white; }
.bento-item:hover p { max-height: 250px; opacity: 1; margin-top: 15px; }

/* FAQ */
.faq-image-bg { background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&q=80&w=1200');
    background-size: cover; background-position: center; background-attachment: fixed; color: white; }
.accordion-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; margin-bottom: 10px; overflow: hidden; }
.accordion-header { width: 100%; padding: 20px; background: none; border: none; color: white; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.accordion-content { max-height: 0; overflow: hidden; transition: 0.4s; background: rgba(255, 255, 255, 0.03); }
.accordion-content p { padding: 20px; color: #cbd5e1; }
.accordion-item.active .accordion-content { max-height: 150px; }

/* Kontakt - Symetryczny Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; }
.info-item { background: var(--bg-alt); padding: 20px; border-radius: 12px; margin-bottom: 15px; border-left: 5px solid var(--accent); }
.info-item strong { display: block; font-size: 0.8rem; color: var(--accent); text-transform: uppercase; margin-bottom: 5px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border-radius: 12px; border: 0; }

/* Bazowe ustawienia dla animowanych stron kontaktu */
.reveal-left, .reveal-right { opacity: 0; transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
/* Stan początkowy - lewa strona wysunięta w lewo */
.reveal-left { transform: translateX(-80px); }
/* Stan początkowy - prawa strona wysunięta w prawo */
.reveal-right { transform: translateX(80px); }
/* Klasa .active nadawana przez JS sprawia, że elementy wracają na miejsce */
.reveal-left.active, .reveal-right.active { opacity: 1;transform: translateX(0); }
/* Opcjonalnie: lekkie opóźnienie dla mapy, żeby nie wchodziły idealnie równo */
.reveal-right.active { transition-delay: 0.2s;}

/* Przycisk Back To Top - Mniejszy i Hover */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 42px; height: 42px; background: var(--accent); color: white; 
    border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; 
    visibility: hidden; transition: all 0.3s ease; transform: translateY(20px); z-index: 1000; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-5px); }

/* Mobile */
.mobile-nav { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; background: #0f172a; border-radius: 25px; padding: 15px; z-index: 2000; justify-content: space-around; }
.mobile-nav a { color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.footer-simple { background: #0f172a; color: #94a3b8; padding: 35px 0; text-align: center; }
@media (max-width: 900px) { .glass-nav { display: none; } .mobile-nav { display: flex; }
    .contact-grid, .bento-container { grid-template-columns: 1fr; } .back-to-top { bottom: 90px; } .full-width-section { padding: 80px 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: 1.2s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* PAGE LOADER */
#page-loader { position: fixed;inset: 0; background: #0f172a; display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s ease; }
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; width: 300px; }
.loader-logo { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 30px; letter-spacing: 2px; }
.loader-logo span { color: var(--accent); }
.loader-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.15); border-radius: 10px; overflow: hidden; }
.loader-progress { height: 100%; width: 0%; background: linear-gradient(90deg,#2563eb,#1d4ed8); animation: loadingBar 1.8s ease forwards; }
@keyframes loadingBar {to { width: 100%; } }
main, nav, footer { transition: all 0.8s ease; }