:root
{
    --bg: #121212;
    --sbg: #232323;
    --font: #EDEDED;
    --sfont: #767676;
    --primary: #E2C275;
    --accent: #C0A257;
    font-size: 16px;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg);
    color: var(--font);
}

a
{
    color: inherit;
    text-decoration: none;
}

main
{
    max-width: 93rem;
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

@media only screen and (max-width: 64rem)
{
    main
    {
        width: 100%;
        padding: 0 1rem;
    }
}


.grid
{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: center;
}

@media only screen and (max-width: 64rem)
{
    .grid
    {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media only screen and (max-width: 48rem)
{
    .grid
    {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sectionItem
{
    padding: 1.5rem;
    border-radius: 3rem;
    max-width: 90rem !important;
    width: 100%;
    margin: 1rem auto;
    background-color: var(--sbg);
}

@media only screen and (max-width: 64rem)
{
    .sectionItem
    {
        padding: 1rem;
        border-radius: 2rem;
    }
}

.hamburger
{
    display: none;
    cursor: pointer;
    z-index: 910;
}

.hamburger-item1, .hamburger-item2, .hamburger-item3
{
    width: 1.2rem;
    height: 0.2rem;
    margin: 0.26rem 0;
    transition: 0.5s;
    background-color: var(--font);
}

.change .hamburger-item1
{
    transform: translate(0, 0.46rem) rotate(-45deg);
}

.change .hamburger-item2
{
    opacity: 0;
}

.change .hamburger-item3
{
    transform: translate(0, -0.46rem) rotate(45deg);
}

/*** KLASY ***/

.colorFont
{
    color: var(--font);
}

.colorSFont
{
    color: var(--sfont);
}

.colorBg
{
    color: var(--bg);
}

.colorSBg
{
    color: var(--sbg);
}

.colorPrimary
{
    color: var(--primary);
}

.colorAccent
{
    color: var(--accent);
}

.colorGradient
{
    background-image: linear-gradient(to right top, #e2c275, #d9ba6d, #d1b266, #c8aa5e, #c0a257);
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

.textSmall
{
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: normal;
}

.textSmallBold
{
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.text
{
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: normal;
}

.textBold
{
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.textSmallBig
{
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
}

.textSmallBigBold
{
    font-size: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.025rem;
    font-weight: 600;
}

.textMid
{
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: normal;
}

.textMidBold
{
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: 600;
}

.textMidBig
{
    font-size: 2.75rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: normal;
}

.textMidBigBold
{
    font-size: 2.75rem;
    line-height: 1.3;
    letter-spacing: 0.045rem;
    font-weight: 600;
}

.textBig
{
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.06rem;
    font-weight: normal;
}

.textBigBold
{
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.06rem;
    font-weight: 600;
}


/*** NAV ***/

header
{
    max-width: 90rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: 3rem;
    z-index: 900;
    top: 0rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%);
    margin: 0 1rem 0 0;
    width: calc(100% - 2rem);
}

.logo
{
    grid-column: span 2;
    text-transform: uppercase;
}

.blankSpace
{
    grid-column: span 6;
}

header > nav > ol 
{
    display: contents;
    list-style-type: none;
}

header > nav > ol > li
{
    grid-column: span 1;
    text-align: center;
    transition: 0.5s;
}

header > nav > ol > li:hover
{
    color: var(--primary);
}

@media only screen and (max-width: 64rem)
{
    header
    {
        padding: 1rem;
        border-radius: 2rem;
    }

    header > nav
    {
        grid-template-columns: repeat(8, 1fr);
    }

    .blankSpace
    {
        grid-column: span 5;
    }

    .hamburger
    {
        display: block;
        grid-column: span 1;
        margin: 0 auto;
        
    }

    header > nav > ol 
    {
        display: none;
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        position: fixed;
        z-index: 905;
        top: -100%;
        left: -1rem;
        width: calc(100% + 2rem);
        height: calc(100vh + 3rem);
        background-color: rgba(0, 0, 0, 0.8)
    }

    header > nav > ol > li
    {
        font-weight: bold;
        font-size: 1.3rem;
        text-transform: uppercase;
        text-align: left;
    }
}

@media only screen and (max-width: 48rem)
{
    .blankSpace
    {
        grid-column: span 1;
    }
}

/*** TOP ***/

#top
{
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem;
    background-image: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0, 0, 0, 0.8)), url("img/cars/25.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.topContent
{
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    row-gap: 2rem;
    background-color: inherit;
}

.topContent > h1
{
    grid-column: span 8;
    text-transform: uppercase;
    font-weight: bold;
}

.blankSpaceTop1
{
    grid-column: span 4;
}

.topContent > p
{
    grid-column: span 6;
}

.blankSpaceTop2
{
    grid-column: span 6;
}

.topLink
{
    grid-column: span 2;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: 0.5s;
}

.topLink1
{
    background-color: var(--accent);
}

.topLink1:hover
{
    background-color: var(--primary);
}

.topLink2
{
    border: 1px solid var(--font);
}

.topLink2:hover
{
    background-color: var(--font);
    color: var(--bg);
}

@media only screen and (max-width: 64rem)
{
    #top
    {
        padding: 1rem;
    }

    .blankSpaceTop2
    {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 48rem)
{
    .topContent > h1
    {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 30rem)
{
    .topContent > h1
    {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 24rem)
{
    .topContent > h1
    {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 20rem)
{
    .topContent > h1
    {
        font-size: 1.5rem;
    }
}

/*** ABOUT ***/

#about
{
    margin-top: 1.5rem;
}

.aboutCont
{
    grid-column: span 6;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.aboutCont > h1
{
    font-weight: 600;
    text-transform: uppercase;
    grid-column: span 3;
}

.aboutCont > h2
{
    grid-column: span 6;
}

.aboutCont > p
{
    grid-column: span 5;
    margin-top: 1rem;
}

.blankSpaceAbout1
{
    grid-column: span 3;
}


.aboutImg
{
    aspect-ratio: 3/2;
    grid-column: span 6;
    overflow: hidden;
    border-radius: 1.5rem;
}

.aboutImg > img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 64rem)
{
    .aboutImg
    {
        border-radius: 1rem;
    }

    .aboutCont
    {
        grid-column: span 8;
        grid-template-columns: repeat(8, 1fr);
    }

    .aboutCont > h2
    {
        grid-column: span 8;
    }

    .aboutCont > p
    {
        grid-column: span 8;
    }

    .aboutImg
    {
        grid-column: span 8;
    }
}

@media only screen and (max-width: 48rem)
{
    .aboutCont > h2
    {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 30rem)
{
    .aboutCont > h2
    {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 24rem)
{
    .aboutCont > h2
    {
        font-size: 1.8rem;
    }
}

/*** STATS ***/

#stats
{
    background-color: inherit;
    padding: 0 !important;
}

.statsItem
{
    background-color: var(--sbg);
    padding: 1.5rem;
    border-radius: 3rem;
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media only screen and (max-width: 64rem)
{
    .statsItem
    {
        grid-column: span 8;
    }
}

/*** Gallery ***/

#gallery
{
    background-color: inherit;
    margin-top: 5rem;
}

#gallery > h1
{
    text-transform: uppercase;
    grid-column: span 2;
}

.blankSpaceGallery
{
    grid-column: span 10;
}

.galleryContent
{
    display: contents;
}

.galleryImg
{
    aspect-ratio: 1/1;
    grid-column: span 3;
    overflow: hidden;
    border-radius: 1.5rem;
}

.galleryImg:nth-child(3),
.galleryImg:nth-child(4)
{
    grid-column: span 6;
    aspect-ratio: 2/1;
}

.galleryImg > img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galleryMore
{
    grid-column: span 12;
    text-align: center;
    margin-top: 2rem;
}

.galleryMore > a
{
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: 0.5s;
    border: 1px solid var(--accent);
}

.galleryMore > a:hover
{
    background-color: var(--primary);
}


@media only screen and (max-width: 64rem)
{
    .galleryMore
    {
        grid-column: span 8;
    }

    .galleryImg
    {
        grid-column: span 2;
    }

    .galleryImg:nth-child(3),
    .galleryImg:nth-child(4)
    {
        grid-column: span 4;
    }
}

@media only screen and (max-width: 48rem)
{
    .galleryImg
    {
        grid-column: span 12 !important;
    }

    .galleryImg:nth-child(3),
    .galleryImg:nth-child(4)
    {
        grid-column: span 12 !important;
        aspect-ratio: 1/1;
    }
}

/*** Kontakt ***/

#contact
{
    margin-top: 5rem;
}

#contact > h1
{
    grid-column: span 12;
    text-align: center;
    margin-bottom: 2rem;
}

.contactCont
{
    display: contents;
}

.contactItems
{
    grid-column: span 6;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.contactItem
{
    grid-column: span 4;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}

.contactItem > i
{
    padding: 1.5rem;
    border-radius: 50%;
    background-color: var(--accent);
}

.contactItemText
{
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 0.5rem;
}

.contactItemText > p
{
    text-transform: uppercase;
}

.contactMap
{
    aspect-ratio: 2/1;
    grid-column: span 6;
    overflow: hidden;
    border-radius: 1.5rem;
}

.contactMap > iframe
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 64rem)
{
    .contactItems
    {
        grid-column: span 8;
        grid-template-columns: repeat(8, 1fr);
    }

    .contactItem
    {
        grid-column: span 8;
    }

    .contactMap
    {
        grid-column: span 12;
    }
}

@media only screen and (max-width: 48rem)
{
    #contact > h1
    {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 30rem)
{
    #contact > h1
    {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 24rem)
{
    #contact > h1
    {
        font-size: 1.8rem;
    }

    .contactItem > i
    {
        display: none;
    }
}


/*** FOOTER ***/

footer
{
    background-color: inherit !important;
    margin-top: 5rem !important;
}

footer > p
{
    grid-column: span 6;
}

footer > p:last-child
{
    text-align: right;
}

@media only screen and (max-width: 64rem)
{
    footer > p
    {
        grid-column: span 8;
    }
        
    footer > p:last-child
    {
        text-align: left;
    }
}