/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #F3F0E8;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   HOME
========================= */

.home {
    width: 100%;
    height: 100vh;

    display: grid;
    grid-template-columns: 40% 60%;

    overflow: hidden;
}


/* =========================
   LEWA STRONA
========================= */

.home-image {
    width: 100%;
    height: 100vh;

    overflow: hidden;
}

.home-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;
}


/* =========================
   PRAWA STRONA
========================= */

.home-right {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #F3F0E8;
}


/* =========================
   NAVBAR
========================= */

.main-nav {
    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    border-bottom: 1px solid #D8D3C8;
}

.main-nav a {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        opacity 0.25s ease,
        color 0.25s ease;
}

.main-nav a:hover {
    opacity: 0.45;
}


/* =========================
   IMIĘ I NAZWISKO
========================= */

.home-name {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 0 5%;

    transform: translateY(-6%);
}


/* =========================
   IMIĘ
========================= */

.home-name p {
    margin: 0;

    font-size: clamp(3.2rem, 5vw, 5.8rem);

    line-height: 0.85;

    font-weight: 700;

    letter-spacing: -0.045em;

    text-transform: uppercase;
}


/* =========================
   NAZWISKO
========================= */

.home-name h1 {
    margin: 8px 0 0 0;

    font-size: clamp(4.5rem, 7.5vw, 8.8rem);

    line-height: 0.82;

    font-weight: 700;

    font-style: italic;

    letter-spacing: -0.065em;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================
   PODPIS
========================= */

.home-name span {
    margin-top: 28px;

    font-size: 10px;

    font-weight: 400;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: #77736A;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .home {
        grid-template-columns: 40% 60%;
    }

    .main-nav {
        min-height: 64px;

        padding: 0 20px;
    }

    .main-nav a {
        font-size: 9px;
    }

    .home-name {
        padding: 0 4%;

        transform: translateY(-5%);
    }

    .home-name p {
        font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    }

    .home-name h1 {
        font-size: clamp(3.5rem, 7vw, 6.8rem);
    }

    .home-name span {
        font-size: 9px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    body {
        overflow: auto;
    }

    .home {
        width: 100%;
        height: auto;
        min-height: 100vh;

        display: flex;
        flex-direction: column;

        overflow: visible;
    }


    /* IMAGE */

    .home-image {
        width: 100%;
        height: 52vh;

        min-height: 350px;
    }

    .home-image img {
        object-position: center center;
    }


    /* RIGHT */

    .home-right {
        width: 100%;
        height: auto;

        min-height: 48vh;
    }


    /* =========================
   NAVBAR
========================= */

.main-nav {
    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: stretch;

    padding: 0;

    border-bottom: 1px solid #D8D3C8;
}


.nav-item {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    color: #252525;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.nav-item div {
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    text-align: center;
}


.nav-item:hover {
    background: #E8E4DB;
}

    /* TYPOGRAFIA */

    .home-name {
        min-height: 390px;

        justify-content: center;

        padding: 50px 20px 60px 20px;

        transform: none;
    }

    .home-name p {
        margin: 0;

        font-size: 2.8rem;

        line-height: 0.85;
    }

    .home-name h1 {
        margin-top: 7px;

        font-size: clamp(3.3rem, 15vw, 5.2rem);

        line-height: 0.82;

        letter-spacing: -0.065em;

        white-space: normal;
    }

    .home-name span {
        margin-top: 25px;

        font-size: 8px;
    }



    
}

.main-nav {
    position: relative;
    z-index: 9999;
}

.nav-item {
    position: relative;
    z-index: 10000;

    pointer-events: auto;
    cursor: pointer;
}