@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&display=swap');

:root {
    --czarny: #000;
    --bialy: #fff;
    --szary: #d9d9d9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1.6rem;
    background: var(--bialy);
    color: var(--czarny);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAV */

nav {
    width: 100%;
    height: clamp(6rem, 6vw, 8rem);
    background: var(--czarny);
    color: var(--bialy);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 clamp(1.5rem, 4vw, 5rem);
}

.nav-lewa,
.nav-prawa {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 3vw, 3rem);
    font-size: clamp(2rem, 3vw, 3rem);
}

.nav-prawa {
    justify-content: flex-end;
}

.burger {
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    cursor: pointer;
}

.logo {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: .1rem;
}

/* MENU */

.nakladka {
    background: var(--czarny);
    color: var(--bialy);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    width: 0;
    height: 100vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: .4s ease;
}

.nakladka ol {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.nakladka a {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
}

.zamknijX {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 5rem;
    cursor: pointer;
}

/* GLOBAL */

section {
    width: 100%;
    scroll-margin-top: clamp(6rem, 6vw, 8rem);
}

.zawartosc {
    width: min(100% - 4rem, 1400px);
    margin: 0 auto;
}

/* HERO */

#pierwsza {
    padding-top: clamp(6rem, 6vw, 8rem);
}

.hero {
    width: 100%;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
}

/* PRODUKTY */

#druga {
    padding: clamp(3rem, 7vw, 8rem) clamp(1.5rem, 5vw, 6rem) clamp(7rem, 12vw, 16rem);
}

#druga h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.produkty {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 4rem);
}

.produkt-zdjecie {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.produkt-zdjecie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produkt-opis {
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .08rem;
    text-transform: uppercase;
    text-align: center;
}

/* BANNER */

.banner {
    min-height: clamp(45rem, 60vw, 70rem);
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* POLECANE */

#czwarta {
    padding: clamp(3rem, 7vw, 8rem) clamp(1.5rem, 5vw, 6rem);
}

.polecane {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

.polecane article {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.polecane article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polecane article span {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--bialy);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: .15rem;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(0, 0, 0, .7);
}

/* NEWSLETTER */

.newsletter {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: clamp(50rem, 55vw, 70rem);
}

.newsletter-zdjecie {
    overflow: hidden;
}

.newsletter-zdjecie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-formularz {
    background: #cfcfcf;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 5vw, 6rem);
}

.newsletter-formularz h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 900;
    line-height: 110%;
    margin-bottom: clamp(2.5rem, 4vw, 5rem);
}

.newsletter-formularz form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.newsletter-formularz label {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.newsletter-formularz input {
    width: 100%;
    height: 5rem;
    border: none;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.newsletter-formularz button {
    background: var(--czarny);
    color: var(--bialy);
    border: none;
    padding: 1.5rem 3rem;
    cursor: pointer;
}

/* STOPKA */

#stopka {
    min-height: 10rem;
    background: var(--czarny);
    color: var(--bialy);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 3rem 2rem;
}

.stopka-linki {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    flex-wrap: wrap;
}

.stopka-linki a {
    font-size: clamp(1.1rem, 1.5vw, 1.7rem);
    font-weight: 900;
}

/* LAPTOP */

@media (max-width: 1200px) {
    .produkty {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TABLET */

@media (max-width: 900px) {
    .produkty {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        grid-template-columns: 1fr;
    }

    .newsletter-zdjecie {
        min-height: 45rem;
    }

    .newsletter-formularz {
        background: var(--bialy);
    }
}

/* MOBILE */

@media (max-width: 600px) {

    nav {
        height: 4rem;
        padding: 0 1rem;
    }

    .nav-lewa,
    .nav-prawa {
        gap: 1rem;
        font-size: 1.8rem;
    }

    .burger {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    section {
        scroll-margin-top: 4rem;
    }

    #pierwsza {
        padding-top: 4rem;
    }

    .zawartosc {
        width: calc(100% - 1rem);
    }

    #druga {
        padding: 1.5rem 0 3rem;
    }

    #druga h2 {
        font-size: 1.3rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        padding-left: 1rem;
    }

    .produkty {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    .produkt-zdjecie {
        aspect-ratio: 1 / 1.15;
    }

    .produkt-opis {
        height: 3rem;
        font-size: .95rem;
        line-height: 1.1;
        padding: 0 .3rem;
    }

    .banner {
        min-height: 18rem;
    }

    #czwarta {
        padding: 2rem 0 2.5rem;
    }

    .polecane {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .polecane article {
        width: 82%;
        height: 30rem;
        aspect-ratio: auto;
    }

    .polecane article span {
        font-size: 2rem;
        letter-spacing: .13rem;
    }

    .newsletter {
        display: flex;
        flex-direction: column;
    }

    .newsletter-zdjecie {
        min-height: 22rem;
    }

    .newsletter-formularz {
        background: var(--bialy);
        padding: 2rem;
    }

    .newsletter-formularz h2 {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 2rem;
    }

    .newsletter-formularz label {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .newsletter-formularz input {
        height: 3.5rem;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        padding: 0 1rem;
    }

    .newsletter-formularz button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    #stopka {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .stopka-linki {
        gap: .5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stopka-linki a {
        font-size: .8rem;
    }
}