*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    padding-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    font-size: .8rem;
    line-height: 1.4;
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    /*text-wrap: balance;*/
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

& h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

#root, #__next {
    isolation: isolate;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --primary: #C9C4A1;
}

::selection {
    background-color: var(--primary);
}

.container {
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 1200px;
}

.spacer {
    padding: 2rem 0;
    border: none;
}

.warning {
    margin-bottom: 5rem;
    padding: 1.5rem 2rem;
    background-color: var(--primary);

    p {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.5;
    }

    & a {
        color: var(--black);
    }
}

.nav {
    display: inline-flex;
    width: 100%;
    flex-direction: row-reverse;

    & .logo {
        position: absolute;
        left: 0;
        width: 50%;
        max-width: 18rem;
        z-index: 99;
    }

    & .infos {
        display: inline-flex;
        padding-top: 10rem;
        max-width: 50%;
        flex-direction: column;
        justify-content: flex-start;
        gap: .3rem;

        & span:first-child {
            font-size: 2rem;
            font-weight: 100;
            text-transform: uppercase;
        }
    }
}

.hero {
    position: relative;
    margin-bottom: 6rem;
    padding: 8rem 0 6rem;
    color: var(--white);
    background-image: url('imgs/olives.jpg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    
    & .hero-content {
        position: relative;
        margin-left: auto;
        width: fit-content;
        z-index: 1;


        & h1 {
            width: fit-content;
            font-size: 3rem;
            font-weight: 700;
            line-height: 1;
        }

        & .hero-thin {
            font-weight: 200;
        }

        & .hero-small {
            font-size: 1.4rem;
            font-weight: 200;
        }

        & .hero-primary {
            color: var(--primary);

            &::selection {
                background-color: var(--black);
            }
        }

        & .contacts {
            display: flex;
            margin-top: 3rem;
            width: fit-content;
            flex-direction: column;
            gap: 0;

            & div:nth-child(2) {
                display: inline-flex;
                gap: 2rem;
            }
        }

        & a {
            color: var(--white) !important;
            text-decoration: none;
        }
    }

    & .hero-gradient {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgb(0 0 0 / .8), rgb(0 0 0 / 0));
    }
}

.blocks {
    display: inline-flex;
    flex-direction: column;
    margin-top: 2rem;
    justify-content: flex-start;
    align-items: self-start;
    gap: 3.5rem;

    & div {
        display: inline-flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: .8rem;
        flex: 1 1 0;
    }
}

.logos {
    display: inline-flex;
    margin-top: 2rem;
    width: 100%;
    justify-content: flex-start;
    align-items: baseline;
    gap: 3rem;
}

.terms {
    & .hero {
        & .contacts {
            margin-top: 1rem;
        }

        & a {
            font-size: 1rem;
            font-weight: 200;
        }
    }

    & p {
        margin-bottom: 1rem;
    }

    & h2 {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
}

footer {
    display: inline-flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 3rem;
    font-weight: 200;
    font-size: .8rem;

    & a {
        color: var(--black);
        text-decoration: none;
    }
}


@media (min-width: 320px) {

}

@media (min-width: 768px) {
    .nav {
        & .logo {
            width: 25%;
        }

        & .infos {
            & span:first-child {
                font-size: 3rem;
            }
        }
    }

    .blocks {
        flex-direction: row;
    }

    footer {
        flex-direction: row;
    }

    & .hero {
        & .hero-content {
            & h1 {
                font-size: 4rem;
            }

            & .hero-small {
                font-size: 1.4rem;
            }
        }

        & .hero-gradient {
            display: none;
        }
    }
}

@media (min-width: 992px) {}

@media (min-width: 1200px) {
}