/* --- RESET I BAZA --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #555;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 24px;
}

/* --- NAWIGACJA (DESKTOP) --- */
nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #21cdec;
    letter-spacing: 0.5px;
}

nav ul li a:hover { color: #005a8c; }

nav ul li:last-child a {
    color: #444;
    font-size: 14px;
}

/* --- MENU HAMBURGER (STYLES) --- */
.hamburger-icon {
    display: none; 
    font-size: 24px;
    cursor: pointer;
    color: #444; 
}

.mobile-menu {
    display: none; 
    position: absolute;
    top: 68px; 
    left: 0;
    width: 100%;
    background-color: #222; 
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.mobile-menu ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.mobile-menu ul li a {
    color: #f1f1f1; 
    font-size: 14px;
    padding: 15px;
    display: block;
    width: 100%;
    border-bottom: 1px solid #333; 
    text-transform: none; 
    font-weight: 400;
}

.mobile-menu ul li:last-child a { border-bottom: none; }

.mobile-menu ul li a:hover {
    background-color: #333;
    color: #009ee2;
}

.mobile-menu.open {
    display: block; 
}


/* --- HERO (SLIDER) --- */
.hero {
    position: relative;
    width: 100%;
    height: 385px;
    background-image: url('img/wawa.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* Przyciemnienie */
.hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.15); 
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    font-style: italic;
    font-family: serif; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-top: -10px;
}

/* Strzałki slidera */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 20px;
    z-index: 3;
}
.slider-arrow:hover { color: #fff; }
.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* Kropki slidera (na dole) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 10px; height: 10px; background: rgba(255,255,255,0.5);
    border-radius: 50%;
}
.dot.active { background: #fff; }


/* --- IKONY (OFERTA / PROMOCJE) --- */
.features {
    padding: 60px 0;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.feature-item {
    flex: 0 1 300px;
    color: inherit;
    text-decoration: none; 
    display: block; 
}

.feature-item:hover {
    cursor: pointer;
    text-decoration: none;
}

.feature-item h3 {
    color: #00c3ff; 
}

.feature-item p {
    color: #00c3ff;
}

.icon-circle {
    width: 90px;
    height: 90px;
    background-color: #f7f7f7;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b; 
    font-size: 32px;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    border: 2px solid #fff; 
    box-shadow: 0 0 0 2px #f7f7f7; 
}

/* Zmodyfikowany styl hover dla ikony */
.feature-item:hover .icon-circle { 
    background-color: #ff6b6b; 
    color: #fff; 
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #ff6b6b; 
}

.feature-item h3 {
    color: #00c3ff; 
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item p {
    color: #00c3ff;
    font-size: 13px;
}

/* --- PASEK MAREK (SLIDER) - ZMODYFIKOWANY POD OBRAZ.PNG --- */
.brands-section {
    background-color: #f9f9f9;
    overflow: hidden; 
}

.brands-slider {
    white-space: nowrap; 
    position: relative;
}

.slide-track {
    display: flex;
    width: fit-content; 
    animation: scroll 40s linear infinite; 
}

.slide {
    height: 140px; /* ZMIENIONO: Dostosowanie do 140px */
    width: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    opacity: 1; 
}

.slide img {
    max-width: 100%;
    max-height: 140px; /* ZMIENIONO: Dostosowanie max. wysokości do 140px */
    filter: grayscale(0%); 
}

/* Definicja animacji przewijania */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1500px); } 
}

/* --- MAPA --- */
.map-container {
    width: 100%;
    height: 350px;
    position: relative;
    background: #ddd; 
}
.map-container iframe {
    width: 100%; height: 100%; border: 0;
    filter: grayscale(0.2); 
}

/* --- KONTAKT (FORMULARZ + DANE) --- */
.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
}

.contact-left, .contact-right {
    flex: 1;
}

/* Styl dla logo w kontakcie */
.contact-logo {
    max-width: 300px; 
    height: auto;
    margin-bottom: 25px; 
}

/* Formularz */
.form-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    background-color: #f2f2f2; 
    border: none;
    padding: 12px 15px;
    font-size: 13px;
    margin-bottom: 15px;
    outline: none;
    color: #555;
}

.form-input:focus { background-color: #e9e9e9; }

textarea.form-input {
    height: 150px;
    resize: none;
}

/* Dane firmy */
.company-details p {
    margin-bottom: 2px;
    font-size: 13px;
    color: #444;
}
.company-details { margin-bottom: 30px; }

.address-header {
    font-size: 18px;
    font-family: 'Times New Roman', serif;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.address-cols {
    display: flex;
    gap: 30px;
}
.col-half { flex: 1; font-size: 13px; color: #444; }

.col-half strong {
    display: block;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 50px 0 0;
    font-size: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}
.footer-col ul li:last-child { border-bottom: none; }

.footer-col ul li a:hover { color: #fff; }

/* Wyszukiwarka w stopce */
.search-form { display: flex; }
.search-form input {
    background: #fff; border: none; padding: 8px; width: 70%; outline:none; font-size:11px;
}
.search-form button {
    background: #00c3ff; border: none; width: 30%; color: #fff; cursor: pointer; font-size: 11px; font-weight: bold; text-transform: uppercase;
}

/* Dolny pasek */
.footer-bottom {
    background: #111;
    padding: 20px 0;
    border-top: 1px solid #222;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: #666; margin-left: 15px; font-size: 14px;
}
.socials a:hover { color: #fff; }

/* --- NOWA SEKCJA TREŚCI --- */
.main-content {
    padding: 5px 0;
    background-color: #f8f8f8;
}

/* NOWE STYLOWANIE DLA OSTATNIO WKLEJONEGO TEKSTU */
.main-content p, 
.main-content p span {
    color: #676767;
    font-family: "OpenSansRegular", 'Open Sans', sans-serif; 
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}   

/* Styl dla paragrafów w nowej treści */
.main-content p {
    margin-bottom: 20px;
    text-align: left;
}
.main-content table {
    margin: 0 0 20px;
    padding: 0;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    border-top: 1px solid #ececec;
}
.main-content td {
    border-color: #ececec;
    border-top-color: rgb(236, 236, 236);
    border-left-color: rgb(236, 236, 236);
    border-left: none;
    border-left-width: medium;
    border-left-style: none;
    border-style: none solid solid none;
    border-top-style: none;
    border-top: medium none;
    border-top-width: medium;
    border-width: medium 1px 1px medium;
    font-size: 13px;
    padding: 10px;
}
.main-content table tr:nth-child(2n+1) {
    background-color: #fcfcfc;
}
/* --- SCROLL TO TOP --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #00c3ff; /* Kolor przewodni strony */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9999; /* Musi być nad mapą i innymi elementami */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-top-btn:hover {
    background-color: #009ee2; /* Ciemniejszy odcień przy najechaniu */
    transform: translateY(-3px); /* Lekki efekt uniesienia */
    color: #fff;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Dostosowanie dla urządzeń mobilnych - przycisk nieco mniejszy */
@media (max-width: 600px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}        
/* --- RWD --- */
@media (max-width: 900px) {
    .header-inner { 
        flex-direction: row; 
        justify-content: space-between;
    }
    nav { display: none; } 
    .hamburger-icon { display: block; } 
    
    .features-grid { flex-direction: column; align-items: center; }
    .contact-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    /* TUTA WPROWADZONO ZMIANĘ - ignorowanie flex: 0 1 300px na mobilkach */
    .feature-item {
        flex: 0 1 auto;
        width: 100%; /* Opcjonalnie, dla pewności zajmowania szerokości */
    }            
    /* RWD dla slidera: zmniejszenie szerokości slajdu */
    .slide { width: 150px; }
    @keyframes scroll {
        100% { transform: translateX(-900px); } /* 150px * 6 = 900px */
    }
}
/* Nowa reguła dla wersji PC (od 901px) - padding 90px z lewej i prawej */
@media (min-width: 901px) {
    .container {
        padding: 0 90px;
    }
}