* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: #00b4d8;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
    color: white;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

/* FLASK ALERTS */
.alert {
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}
.alert.success { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* HEADER & NAV */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 15px 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0077b6;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a:not(.btn) {
    color: #475569;
    font-weight: 500;
}

nav a:not(.btn):hover {
    color: #00b4d8;
}

/* MAIN SECTION */
section {
    padding: 100px 20px; 
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    transition: background-color 0.4s ease;
}

section h2 {
    font-size: 36px;
    color: #0f172a;
    margin-bottom: 40px;
}

/* MAIN BANNER (HERO) */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 120px 20px;
    max-width: 100%;
}

.hero h1 {
    font-size: 48px;
    color: #0f172a;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* WHY US / SERVICES */
.features, .service-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-box, .card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-box:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.icon, .card-icon {
    font-size: 40px;
    color: #00b4d8;
    margin-bottom: 15px;
    display: inline-block;
}
/* NOWE PRZYCISKI W HERO */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #0077b6;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #0077b6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline:hover {
    background: #0077b6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* SEKCJA OFERTY (KAFELKI) */
.offer-section {
    background-color: transparent;
    padding: 80px 20px;
}

.offer-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.offer-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.offer-icon {
    font-size: 45px;
    color: #00b4d8;
    margin-bottom: 20px;
}

.offer-card h3 {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 15px;
}

.offer-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* WSPARCIE DLA TRYBU CIEMNEGO */
body.dark-mode .offer-section {
    background-color: #0f172a !important; /* Główne, ciemne tło strony */
}

body.dark-mode .offer-card {
    background-color: #1e293b !important; /* Jaśniejsze tło dla samych kafelków */
    border-color: #334155 !important;
}

body.dark-mode .offer-card h3 {
    color: #00b4d8 !important;
}

body.dark-mode .btn-outline {
    border-color: #00b4d8;
    color: #00b4d8;
}

body.dark-mode .btn-outline:hover {
    background: #00b4d8;
    color: white;
}
/* CONTACT FORM */
.contact {
    background-color: #ffffff;
    border-radius: 20px;
    margin-top: 50px;
    margin-bottom: 80px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 80px 40px !important;
    max-width: 800px;
}

.contact-sub {
    margin-bottom: 40px;
    color: #64748b;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
}

input[type="text"], 
input[type="email"], 
select, 
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

input:focus, select:focus, textarea:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}

.form-group.checkbox-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    margin-bottom: 20px;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto !important;
    flex: 0 0 auto;
    margin-top: 3px !important;
    cursor: pointer;
}

.form-group.checkbox-group label {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

/* LEGAL FOOTER */
.footer-legal {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 60px 20px 30px 20px;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.company-details {
    flex: 1;
    min-width: 300px;
}

.company-name {
    font-weight: 700;
    font-size: 18px;
    color: #00b4d8;
    margin-bottom: 15px;
}

.company-details p {
    font-size: 13px;
    margin: 8px 0;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ceidg-note {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 15px !important;
}

.legal-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.legal-link {
    color: #f8fafc;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-link:hover {
    background: #00b4d8;
    border-color: #00b4d8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.2);
}

.legal-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #64748b;
    width: 100%;
}
textarea {
    resize: vertical !important; 
    min-height: 120px; 
    max-height: 400px; 
    max-width: 100% !important; 
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

/* BANER COOKIES */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    color: #f8fafc;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    border-top: 1px solid #1e293b;
    transition: background-color 0.4s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    font-size: 12px;
}

.decline-btn {
    background-color: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.decline-btn:hover {
    background-color: #1e293b;
    border-color: #cbd5e1;
}

/* DARK MODE */

/* WYGLĄD SUWAKA */
.theme-switch {
    display: inline-block;
    height: 30px;
    position: relative;
    width: 60px;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: #cbd5e1;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}
.slider:before {
    background-color: white;
    bottom: 3px;
    content: "";
    height: 24px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 24px;
    border-radius: 50%;
    z-index: 2;
}
input:checked + .slider {
    background-color: #0f172a;
    border: 1px solid #334155;
}
input:checked + .slider:before {
    transform: translateX(30px);
    background-color: #00b4d8;
}
.slider i {
    font-size: 14px !important;
}

/* PODSTRONY PRAWNE */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
}

.legal-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0077b6;
    font-size: 20px;
}

.legal-content p, 
.legal-content ul {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/*  NADPISYWANIE KOLORÓW DLA TRYBU CIEMNEGO  */

body.dark-mode,
body.dark-mode main,
body.dark-mode section,
body.dark-mode .hero,
body.dark-mode .why-us,
body.dark-mode .services,
body.dark-mode .contact {
    background-color: #0f172a !important;
    background-image: none !important; 
}

/* Header */
body.dark-mode header {
    background-color: #0f172a !important; 
    border-bottom: 1px solid #1e293b !important;
}

body.dark-mode header nav a:not(.btn) {
    color: #f8fafc !important;
}

body.dark-mode .logo {
    color: #00b4d8 !important; 
}

body.dark-mode .logo a {
    color: #00b4d8 !important;
}
body.dark-mode .legal-content {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .legal-content h3 {
    color: #00b4d8 !important;
}

body.dark-mode .legal-content p,
body.dark-mode .legal-content li {
    color: #cbd5e1 !important;
}
/* TEKSTY I NAGŁÓWKI */
body.dark-mode .hero h1,
body.dark-mode section h2,
body.dark-mode main h1,
body.dark-mode main h2,
body.dark-mode main h3 {
    color: #00b4d8 !important;
}

body.dark-mode p, 
body.dark-mode label {
    color: #cbd5e1 !important;
}

/* FORMULARZ */
body.dark-mode .feature-box, 
body.dark-mode .card,
body.dark-mode .contact {
    background-color: #1e293b !important; 
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* POLA W FORMULARZU */
body.dark-mode input[type="text"], 
body.dark-mode input[type="email"], 
body.dark-mode select, 
body.dark-mode textarea {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

body.dark-mode input:focus, 
body.dark-mode select:focus, 
body.dark-mode textarea:focus {
    border-color: #00b4d8 !important;
}

/* BANER COOKIES  */
body.dark-mode .cookie-banner {
    background-color: #1e293b !important;
    border-top: 1px solid #334155 !important;
}
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.feature-box {
    flex: 1 1 calc(50% - 40px) !important;
    min-width: 400px !important;
    padding: 40px !important;
}

/* RESPONSYWNOŚĆ (TELEFONY I TABLETY) */
@media (max-width: 768px) {
    /* HEADER - Układ centralny i wyśrodkowany */
    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px !important;
        gap: 15px !important;
    }

    .logo-wrapper {
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo {
        font-size: 18px !important;
    }

    nav {
        width: 100% !important;
        gap: 15px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    nav a:not(.btn) {
        font-size: 13px !important;
        padding: 5px 10px !important;
    }

    .btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* HERO - Leciutkooo powiększony baner */
    .hero {
        padding: 45px 15px !important; /* Zwiększyliśmy padding, dając oddech */
        min-height: auto !important;
    }

    .hero h1 {
        font-size: 22px !important; /* Minimalnie większa czcionka dla lepszego balansu */
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    /* Reszta bez komentarzy, czysty kod */
    .feature-box {
        flex: 1 1 100% !important; 
        min-width: 100% !important; 
        padding: 25px 20px !important;
    }

    .form-group.checkbox-group {
        gap: 12px !important;
        margin-bottom: 25px !important;
    }

    .form-group.checkbox-group input[type="checkbox"] {
        transform: scale(1.4); 
    }

    .form-group.checkbox-group label {
        font-size: 13px !important;
    }
}
/* WYRÓWNANIE SUWAKA W PIONIE */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px); 
}

.theme-switch {
    display: block !important;
    margin: 0 !important;
}

.logo-wrapper {
    align-items: center !important;
}
body.dark-mode .hero-btns a[style*="transparent"] {
    color: #00b4d8 !important;
}