:root {
    --primary: #f40424;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f9f9f9;
    --text: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text);
    background-color: var(--light);
}

/* Nowoczesne Menu */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-size: 24px;
    font-weight: 900;
}

.logo span {
    color: var(--primary);
}
/* Styl dla samego obrazka logo */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 8px; 
}
.logo span {
    color: var(--primary);
    margin-left: 1px; /* To przysunie ".pl" jeszcze bliżej słowa PEDAŁ */
}

/* Delikatny efekt po najechaniu na logo */
.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

/* Poprawka dla mobile - żeby logo nie było za duże na małych ekranach */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    .logo {
        font-size: 20px;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Sekcja Hero */
.hero-slider {
    position: relative;
    height: 80vh; /* Zwiększona wysokość dla lepszego efektu */
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.8s ease;
    position: relative; /* Wymagane, aby z-index zadziałał */
    z-index: 10;        /* Wyższa wartość niż tło slajdu */
    text-align: center;
}

.slide.active .hero-content {
    transform: translateY(0);
}

/* Przyciski */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: 0.3s;
    border-radius: 0 5px 5px 0;
}

.next { right: 0; border-radius: 5px 0 0 5px; }
.prev:hover, .next:hover { background: var(--primary); }

/* Kropki */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active { background: var(--primary); width: 30px; border-radius: 10px; }

/* Sekcje z grafiką */
.content-section {
    padding: 50px 5%;
}

.section-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.reverse .section-grid {
    direction: rtl;
}

.reverse .text-side {
    direction: ltr;
}

.image-side img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* Kontakt i Stopka */
.contact-section {
    background: var(--gray);
    padding: 70px 5%;
    text-align: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .section-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Uproszczenie dla mobile */
}
/* Nowy układ sekcji kontaktowej */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Karty zajmują mniej miejsca niż mapa */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 450px;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.map-link:hover {
    transform: translateX(5px);
}

/* Responsywność dla mapy */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Na tabletach i telefonach mapa pod kartami */
    }
    
    .map-container {
        min-height: 300px;
    }
}
/* Przycisk w górnym menu */
.nav-fb-btn {
    background-color: #1877F2;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px;
    margin-left: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.nav-fb-btn:hover {
    background-color: #145dbf;
    transform: scale(1.05);
}

/* Przycisk w stopce */
.footer-socials {
    margin-top: 20px;
}

.footer-socials p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #bbb;
}

.footer-fb-btn {
    display: inline-block;
    background-color: #1877F2;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-fb-btn i {
    margin-right: 10px;
}

.footer-fb-btn:hover {
    background-color: #145dbf;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

/* Responsywność dla małych ekranów */
@media (max-width: 768px) {
    .nav-fb-btn {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}
/* Ukryj przycisk na komputerze */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Responsywność - dla ekranów poniżej 768px */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Pokaż hamburger */
    }

    .nav-links {
        display: none; /* Schowaj standardowe menu */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex; /* Pokaż po kliknięciu */
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
    }
}

/* Styl dla plakietki nad nagłówkiem */
.badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Przycisk alternatywny dla serwisu (ciemniejszy) */
.btn-alt {
    background: #333 !important;
    border: 2px solid var(--primary);
}
.hero-content .btn {
    display: inline-block;
    background-color: var(--primary); /* Pomarańczowy kolor akcentowy */
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    opacity: 1 !important;   /* Wymuszamy widoczność */
    visibility: visible !important;
}
/* Przycisk alternatywny (jeśli używasz) */
.btn-alt {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid white !important;
}

.hero-content .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Ulepszenie tekstu w sliderze */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Poprawka dla mniejszych ekranów */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-slider { height: 60vh; }
}