/* Reset marginesów i paddingu dla html i body */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.075) 0%, transparent 80%),
        linear-gradient(to bottom right, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        #121212;
    /* Główny kolor bazowy */
    background-size: cover;
    background-attachment: fixed;
    /* Opcjonalnie, aby tło było stałe przy przewijaniu */
}

/* Hero Banner Video Styles */
.hero-banner {
    position: relative;
    width: 100%;
    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-banner-min-height {
    min-height: 350px;
}

.hero-banner-width-100 {
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.7);
    transform: translateX(-50%);
}

.product-img-background-title {
    filter: brightness(0.4);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    color: #fff;
    background-color: #1212121e;
    padding: 0 2.5vw 3vw 2.5vw;
    max-width: 700px;
    margin-left: 3vw;
    margin-bottom: 2vw;
}

.hero-overlay-no-background {
    background-color: #12121200;
}

.hero-overlay-middle {
    text-align: center;
    max-width: fit-content;
    margin: auto;
    padding: 1.2vw 1.2vw 1.2vw 1.2vw;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-overlay h2 {
    font-size: 1.5rem;
    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.1rem;
    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,
.hero-btn-secondary {
    background: #417F90;
    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,
.hero-btn.hero-btn-secondary:hover {
    background: #e6f6fa !important;
    color: #222 !important;
}

.hero-btn-secondary:hover {
    background: #4a90a4;
    color: #fff;
}

@media (max-width: 1000px) {
    .hero-overlay h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-overlay h2 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
    }
}

@media (max-width: 700px) {
    .hero-banner {
        height: 47vh;
        /* było 32vh, zwiększono 1.5x */
        min-height: 270px;
        /* było 180px, zwiększono 1.5x */
        margin: 0;
        /* usunięto marginesy na mobile */
        align-items: flex-end;
        justify-content: flex-start;
    }

    .hero-overlay {
        padding: 1.2rem 0.5rem;
        margin-left: 0.5vw;
        max-width: 98vw;
        margin-bottom: 1vw;
    }

    .hero-overlay h1 {
        font-size: 1.1rem;
        line-height: 1.15;
    }

    .hero-overlay h2 {
        font-size: 0.98rem;
        margin-bottom: 0.5rem;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-btn,
    .hero-btn-secondary {
        font-size: 0.98rem;
        padding: 0.7em 1.2em;
    }
}