:root {
    --navy: #09131C;
    --navy2: #0E1A29;
    --gold: #D4AF37;
    --gold2: #B38F24;
    --light: #F4F6F8;
    --white: #F8FAFC;
    --gray: #A3B1BE;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--navy); color: var(--white); overflow-x: hidden; line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased; }
p { max-width: 80ch; }

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(232, 130, 26, 0.12); border: 1px solid rgba(232, 130, 26, 0.25); padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-title span { color: var(--gold); }
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 580px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--white); box-shadow: 0 8px 30px rgba(232, 130, 26, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232, 130, 26, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

/* Forms */
.form-input { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px 16px; border-radius: 8px; font-family: 'Inter', sans-serif; margin-bottom: 15px; width: 100%; transition: border 0.3s; }
.form-input:focus { outline: none; border-color: var(--gold); }
.rodo-checkbox { display: flex; gap: 10px; font-size: 0.8rem; color: #8896A4; align-items: flex-start; cursor: pointer; }
.rodo-checkbox a { color: var(--gold); text-decoration: underline; }

/* NavBar */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all var(--transition); }
nav.scrolled { background: rgba(13, 27, 42, 0.97); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--white); }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 0.95rem; opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { background: var(--gold); padding: 8px 18px; border-radius: 8px; color: #fff !important; font-weight: bold; opacity: 1 !important; }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
/* Animacja X gdy menu otwarte */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: rgba(9, 19, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.mobile-menu a { padding: 14px 12px; font-weight: 600; font-family: 'Outfit'; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.05); border-radius: 8px; transition: background 0.2s, color 0.2s; }
.mobile-menu a:hover { background: rgba(212,175,55,0.08); color: var(--gold); }
.mobile-menu a:last-of-type { border-bottom: none; }


/* Hero */
#home { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,27,42,1) 0%, rgba(13,27,42,0.6) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding-top: 80px; }
.hero-badge { display: inline-block; background: rgba(232, 130, 26, 0.15); border: 1px solid var(--gold); color: var(--gold); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: bold; margin-bottom: 20px; }
h1.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 20px; }
.hero-desc { font-size: 1.15rem; color: #aaa; margin-bottom: 40px; }

/* Cookie Banner (RODO) */
.cookie-consent { position: fixed; bottom: -200px; left: 0; right: 0; background: #fff; color: #000; z-index: 9999; padding: 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.2); transition: bottom 0.5s ease; border-top: 4px solid var(--gold); }
.cookie-consent.show { bottom: 0; }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.cookie-content h4 { font-size: 1.2rem; margin: 0; color: var(--navy); }
.cookie-content p { font-size: 0.9rem; color: #555; margin: 0; }
.cookie-content a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons .btn-primary { padding: 8px 16px; font-size: 0.9rem; }
.cookie-buttons .btn-outline { border-color: #ccc; color: #333; padding: 8px 16px; font-size: 0.9rem; }

/* Footer */
footer { background: var(--navy); padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.f-col h4 { margin-bottom: 20px; font-size: 1.2rem; }
.f-col ul { display: flex; flex-direction: column; gap: 10px; }
.f-col ul li { color: #8896A4; font-size: 0.9rem; }
.f-col ul li a:hover { color: var(--gold); }
.f-desc { color: #8896A4; font-size: 0.9rem; margin-top: 20px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; color: #666; font-size: 0.85rem; }

/* =============================================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================================= */
@media(max-width: 1024px) {
    h1.hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); }

    /* index – hero float card – ukryj na tablet */
    .hero-float-card { display: none !important; }

    /* index – sekcja "O nas" – 2 col → 1 col */
    .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .about-visual { display: none !important; }

    /* wspolpraca – 2-col grid → 1 col */
    .b2b-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* =============================================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================================= */
@media(max-width: 768px) {
    /* NAV */
    .nav-links { display: none !important; }
    .hamburger { display: flex; }

    /* LAYOUT */
    .container { padding: 0 16px; }
    .forms-grid { grid-template-columns: 1fr !important; }

    /* TYPOGRAPHY */
    h1.hero-title { font-size: 2rem !important; line-height: 1.15 !important; }
    .section-title { font-size: 1.75rem !important; }
    .section-title[style] { font-size: 1.75rem !important; }
    h2[style*="font-size"] { font-size: 1.8rem !important; }
    h3[style*="font-size"] { font-size: 1.4rem !important; }
    p { font-size: 0.95rem; }

    /* HERO */
    #home { min-height: 100svh; padding-top: 80px; }
    .hero-content { padding-top: 40px !important; max-width: 100% !important; }
    .hero-btns { flex-direction: column !important; gap: 12px !important; }
    .hero-btns .btn { width: 100%; padding: 16px 20px !important; font-size: 1rem !important; text-align: center; justify-content: center; }
    .hero-float-card { display: none !important; }

    /* SEKCJE – padding */
    section { padding: 60px 0 !important; }
    section[style*="padding: 180px"] { padding-top: 120px !important; }
    section[style*="padding: 140px"] { padding-top: 80px !important; }

    /* INDEX – "O nas" */
    .about-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .about-visual { display: none !important; }
    .about-stats { flex-direction: row !important; gap: 30px !important; flex-wrap: wrap; }

    /* OFERTA – karty produktów */
    .offer-hubs { grid-template-columns: 1fr !important; gap: 20px !important; }

    /* WSPOLPRACA – B2B grid */
    .b2b-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .b2b-grid > div { padding: 30px 20px !important; }
    /* inline flex z 2 polami w jednym rzędzie → kolumna */
    .b2b-inline-fields { flex-direction: column !important; }
    .b2b-inline-fields .form-input { width: 100% !important; }

    /* KONTAKT – formularz */
    .kontakt-form-wrap { padding: 30px 20px !important; }

    /* REALIZACJE – siatka */
    .realizacje-grid { grid-template-columns: 1fr !important; }

    /* PRODUCENCI / O NAS */
    .producenci-grid { grid-template-columns: 1fr 1fr !important; }

    /* KALKULATOR */
    #calculator-app { padding: 30px 16px !important; }
    #calculator-app .btn-primary,
    #calculator-app .btn-outline { width: 100%; padding: 15px; text-align: center; justify-content: center; margin-bottom: 12px; }
    #formularzZapytania { padding: 25px 15px !important; }

    /* FOOTER */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-grid .f-col { align-items: center; display: flex; flex-direction: column; }
    footer { padding: 50px 0 24px; }

    /* FAB */
    #fab-contact { width: 50px; height: 50px; font-size: 1.4rem; bottom: 20px; right: 16px; }

    /* COOKIE */
    .cookie-content { flex-direction: column; }
    .cookie-buttons { flex-wrap: wrap; }
}

/* =============================================
   RESPONSIVE – SMALL MOBILE (≤ 480px)
   ============================================= */
@media(max-width: 480px) {
    h1.hero-title { font-size: 1.75rem !important; }
    .section-title { font-size: 1.5rem !important; }
    .section-title[style] { font-size: 1.5rem !important; }
    h2[style*="font-size"] { font-size: 1.5rem !important; }
    h3[style*="font-size"] { font-size: 1.25rem !important; }

    .hero-btns .btn { font-size: 0.95rem !important; }

    /* Kontakt karty oddziałów – minmax zbyt duże */
    .oddzialy-grid { grid-template-columns: 1fr !important; }

    /* Producenci */
    .producenci-grid { grid-template-columns: 1fr !important; }

    /* Nav + menu – mniejsza wysokość */
    .nav-inner { height: 68px; }
    .logo img { height: 38px !important; }
    .mobile-menu { top: 68px; max-height: calc(100vh - 68px); }
}


@keyframes slowZoom {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media print {
    nav, footer, .cookie-consent, #preloader, #fab-contact, .no-print, .hero-overlay, .hero-bg {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .print-only {
        display: block !important;
    }
}
