:root {
    --bg-dark: #0a0a0a;
    --bg-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #333333;
    --primary-gradient: linear-gradient(90deg, #ff007f, #007fff);
    --secondary-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* FIX: Twarda blokada pływania poziomego */
    width: 100%;
    position: relative;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}
.logo-w { color: #ff007f; }
.logo-fusion { color: #007fff; }

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* =========================================
   HAMBURGER MENU I KONTENER (DESKTOP)
   ========================================= */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hamburger {
    display: none; /* Ukryte na dużych ekranach */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid #555;
    color: white;
}
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

/* Sections Base */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 800;
}
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
#home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
}
.hero-content {
    max-width: 50%;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 30px;
}

/* Oferta (Light bg) */
#oferta {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.oferta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.oferta-card {
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* Cennik */
#cennik {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.cennik-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}
.cennik-tabela, .cennik-dodatki {
    flex: 1;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.price-val {
    font-size: 24px;
    font-weight: 800;
    color: #e6007e;
}

/* Kontakt */
#kontakt {
    background-color: var(--secondary-bg);
    display: flex;
    gap: 50px;
}
.contact-info {
    flex: 1;
}
.contact-form {
    flex: 1;
    background: #000;
    padding: 40px;
    border-radius: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #000;
    padding: 50px 10% 20px;
    border-top: 1px solid #222;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 12px;
    color: #777;
}
.footer-nav h4 {
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #007fff;
}

/* =========================================
   IKONY - OFERTA
   ========================================= */
.ikona-oferta {
    height: 180px;
    width: auto;
    margin-bottom: 20px;
}

/* =========================================
   PROCES REALIZACJI
   ========================================= */
.proces-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
}

.proces-step {
    flex: 1;
    position: relative;
}

/* Kółko z ikoną */
.ikona-kolo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.ikona-kolo img {
    height: 110px;
    width: auto;
}

/* Liniowy gradient łączący kroki w procesie */
.proces-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 90px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    z-index: 1;
    opacity: 0.6;
}

.proces-step h4 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
}

.proces-step p {
    font-size: 13px;
    color: #666;
}

/* =========================================
   CIASTECZKA (COOKIE BANNER) - NAPRAWIONE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0; /* FIX: Przyklejone do prawej zamiast width 100% */
    max-width: 100vw;
    box-sizing: border-box !important;
    background: #111;
    color: #fff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-top: 1px solid #333;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    max-width: 70%;
}

.cookie-banner a {
    color: #007fff;
    text-decoration: none;
    font-weight: 800;
}

.cookie-banner a:hover {
    color: #ff007f;
}

/* =========================================
   QR KOD W STOPCE
   ========================================= */
.qr-footer {
    width: 180px;
    height: auto;
    margin-top: 15px;
    border-radius: 8px;
    border: 2px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.qr-footer:hover {
    transform: scale(1.05);
    border-color: #e6007e;
}

/* Tablety i mniejsze ekrany (poniżej 1192px) */
@media (max-width: 1192px) {
    .navbar {
        padding: 20px;
    }
    .navbar nav ul {
        gap: 15px;
    }
    .navbar nav a {
        font-size: 12px;
        white-space: nowrap;
    }

    .oferta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proces-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 15px;
    }
    
    .proces-step {
        flex: 0 0 30%;
        min-width: 140px;
    }
    .proces-step:nth-child(3)::after {
        display: none;
    }
}

/* =========================================
   ŁATANIE ROZJEŻDŻAJĄCYCH SIĘ SEKCJI (FLEXBOX)
   ========================================= */
@media (max-width: 992px) {
    #home, 
    .cennik-container, 
    #kontakt {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .hero-content {
        max-width: 100% !important;
        text-align: center;
        margin-top: 40px;
    }
    
    .contact-info, 
    .contact-form,
    .cennik-tabela, 
    .cennik-dodatki {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Smartfony (poniżej 768px) */
@media (max-width: 768px) {
    /* Mniejsze marginesy boczne dla całych sekcji */
    section {
        padding: 60px 20px; 
    }

    /* Wymuszamy jedną kolumnę w sekcji Oferta */
    .oferta-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }

    /* Wywalamy uciekające w prawo linie na telefonie */
    .proces-step::after {
        display: none !important;
    }

    .navbar {
        flex-direction: row;
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid #333;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
    }

    .navbar nav ul li {
        width: 100%;
    }

    .nav-menu .btn {
        width: 100%;
        text-align: center;
    }

    .logo img {
        height: 30px;
    }

    .footer-logo img {
        height: 45px; 
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    #proces > div {
        flex-direction: column;
        gap: 30px;
    }

    .cennik-tabela, .cennik-dodatki {
        padding: 20px;
    }

    .price-row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Ciastka na telefonie - totalna blokada wgniatania */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cookie-banner p {
        max-width: 100%;
    }
    .cookie-banner .btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   ANIMACJE SCROLLOWANIA (JS)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-logo img {
    height: 180px;
    width: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =========================================
   SILNIK ANIMACJI WJEŻDŻAJĄCYCH (CSS)
   ========================================= */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.hero-content h1, 
.hero-content p, 
.hero-content div,
.hero-image {
    animation: fadeSlideUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content p  { animation-delay: 0.3s; }
.hero-content div { animation-delay: 0.5s; }
.hero-image       { animation-delay: 0s; }

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}