/* Reset marginesów i paddingu dla html i body */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
}

/* Hero Banner Video Styles */
.hero-banner {
    position: relative;
    width: 100vw;
    height: 90vh; /* było 60vh, zwiększono 1.5x */
    min-height: 510px; /* było 340px, zwiększono 1.5x */
    max-height: 1050px; /* było 700px, zwiększono 1.5x */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(1) contrast(1.08) saturate(1.15);
    transform: translateX(-50%);
}
.hero-overlay {
     position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    color: #fff;
    padding: 0 2.5vw 3vw 2.5vw;
    max-width: 700px;
    margin-left: 3vw;
    margin-bottom: 2vw;
    background: rgba(18, 24, 32, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}
.hero-overlay h1 {
     font-size: clamp(1.8rem, 4vw, 3.2rem); /* Responsywny rozmiar */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-overlay h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); /* Responsywny rozmiar */
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.3;
    margin-bottom: 1.2rem;
}
.hero-overlay p {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.2rem 0 0.7rem 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-overlay p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero-btn {
    background: #2c5f6f;
    color: #fff;
    padding: 0.7rem 2.2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
    display: inline-block;
}
.hero-btn:hover {
    background: #1a4854;
    color: #fff;
}
.hero-btn-secondary {
    background: #fff;
    color: #1a4854;
    border: 2px solid #4a90a4;
}
.hero-btn-secondary:hover {
    background: #f0f8ff;
    color: #1a4854;
}
@media (max-width: 1000px) {
    .hero-overlay h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    .hero-overlay h2 {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }
    .hero-overlay p {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
    }
}
/* Poprawka hero overlay na urządzeniach mobilnych */
@media (max-width: 700px) {
    .hero-banner {
        height: 45vh; /* Zmniejszono z 48vh */
        min-height: 250px; /* Zmniejszono z 270px */
        margin-top: 60px; /* Dodano margines na wysokość navbara */
        padding-top: 0;
        align-items: flex-end;
        justify-content: flex-start;
    }
    
    .hero-overlay {
        padding: 1rem 0.8rem 1.2rem 0.8rem; /* Lepszy padding */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 1rem;
        max-width: calc(100vw - 1rem); /* Uwzględnia marginesy */
        background: rgba(18, 24, 32, 0.25); /* Nieco więcej przezroczystości */
    }
    
    .hero-overlay h1 {
        font-size: 1.4rem; /* Zmniejszono z 1.5rem */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-overlay h2 {
        font-size: 1rem; /* Zmniejszono z 1.1rem */
        margin-bottom: 0.4rem;
        line-height: 1.25;
    }
    
    .hero-overlay p {
        font-size: 0.9rem; /* Zmniejszono z 1rem */
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-cta {
        flex-direction: row; /* Zmieniono z column na row */
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .hero-btn, .hero-btn-secondary {
        font-size: 0.9rem; /* Zmniejszono z 0.98rem */
        padding: 0.6rem 1.1rem; /* Kompaktowy padding */
        border-radius: 25px; /* Mniejszy border-radius */
    }
}

/* Dodatkowa poprawka dla bardzo małych ekranów */
@media (max-width: 480px) {
    .hero-banner {
        height: 40vh;
        min-height: 220px;
        margin-top: 50px; /* Mniejszy margines dla bardzo małych ekranów */
    }
    
    .hero-overlay {
        padding: 0.8rem 0.6rem 1rem 0.6rem;
        margin: 0.3rem;
        max-width: calc(100vw - 0.6rem);
    }
    
    .hero-overlay h1 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-overlay h2 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-overlay p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-btn, .hero-btn-secondary {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}