* {
    margin: 0;
}

body {
    font-family: Open Sans, sans-serif;
    color: rgb(24, 24, 24);
    background-color: black;
    background-image: url('bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    background-color: white;
}

header nav span {
    font-size: 1.5rem;
}
header nav span, h1 {
    font-family: 'DIN Neuzeit Grotesk LT W01 BdCn', sans-serif;
}

@media (max-width: 768px) {
    .hcontact {
        display: flex;
        flex-direction: column;
    }
}

.topcontact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
    max-width: 65%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .topcontact {
        max-width: 90%;
    }
}

.topcontact svg {
    display: none;
}

@media (max-width: 768px) {
    .topcontact svg {
        display: block;
    }
}

h1 {
    font-size: 88px;
    line-height: 2;
}

.hero span {
    font-family: 'DIN Next Rounded LT W01 Light', sans-serif;
    font-size: 20px;
}

.container {
    height: 100vh;
    overflow-y: auto;
    /*overflow-y: hidden;*/
    overflow-x: hidden;
    perspective: 10px;
}

.header {
    position: relative;
    /*transform-style: preserve-3d;*/
    z-index: -1;
    height: 100%;
    /*overflow: hidden;*/
}

img.bg {
    position: absolute;
    /*height: 100%;*/
    width: 100%;
    object-fit: cover;

    /*transform: translateZ(-20px) scale(3);*/
}

.content {
    /*transform: translateY(-100vh);*/
    /*background-color: #fff;*/
}

.pcontainer {
    max-width: 65%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pcontainer {
        max-width: 90%;
    }
}

header {
    /*background-color: #fff;*/
    font-size: 14px;
}

nav {
    display: flex;
    align-items: center;
    padding: 2rem;
}
nav ul {
    margin-left: auto;
}
nav ul {
    display: flex;
    gap: 1rem;
}
ul {
    list-style: none;
}

.hcontact {
    padding-block: 1rem;
    font-size: 14px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-20px) scale(3);
    background-color: rgba(51, 51, 59, 0.23); /* Ciemna, 45% przezroczystości */
    z-index: 0;
}

.hcontact span {
    margin-left: 1rem;
}
@media (max-width: 768px) {
    .hcontact span {
        margin-left: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.hero {
    color: white;
    padding-left: 20vh;
    padding-top: 30vh;
    padding-bottom: 5vw;
    background-color: transparent;
}

main {
    background-color: #456ba3;
    padding-bottom: 10rem;
}

main > div:nth-child(2) {
    display: flex;
    justify-content: space-between;
}

.box {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.box h3 {
    font-family: 'DIN Neuzeit Grotesk LT W01 BdCn', sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.box span {
    font-family: 'DIN Next Rounded LT W01 Light', sans-serif;
}

.box:nth-child(2) {
    flex-direction: column-reverse;
}

.box > div {
    padding-block: 3rem;
    text-align: center;
}

h3 {
    font-size: 2rem;
    padding-block: 2rem;
}

.main {
    text-align: center;
    padding-block: 5rem;
    color: white;
    font-family: 'DIN Next Rounded LT W01 Light', sans-serif;
    font-size: 20px;
}

.main h2 {
    font-family: 'DIN Neuzeit Grotesk LT W01 BdCn', sans-serif;
    font-size: 40px;
    line-height: 2;
}

footer div {
    text-align: center;
    background-color: #fff;
    padding-block: 2rem;
}
footer ul {
    padding-left: 0;
    font-family: 'DIN Next Rounded LT W01 Light', sans-serif;
    line-height: 1.5;
}
footer > div:nth-child(2) {
    background-color: #456ba3;
    text-align: center;
    color: white;
    padding-block: 0.5rem;
}

footer span {
    display: inline-block;
    padding-block: 1.5rem;
    font-size: 24px;
    font-family: 'DIN Neuzeit Grotesk LT W01 BdCn', sans-serif;
}

#menu ul li {
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    main .pcontainer:nth-child(2) {
        flex-direction: column;
        gap: 2rem;
    }
    h1 {
        font-size: 40px;
    }
    .hero {
        padding-left: 0;
        padding-block: 3rem;
    }
    .menu {
        display: block;
        background-color: black;
        color: white;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        max-width: 100%;
        padding: 2rem 0;
    }
    .menu img {
        display: none;
    }
    .menu span:nth-of-type(1) {
        display: none;
    }
    .menu .close {
        display: inline-block;
        width: 90%;
        text-align: right;
    }
    .menu ul {
        padding: 0;
        display: block;
        text-align: center;
        line-height: 3;
        font-size: 1rem;
    }

    #hamburger {
        cursor: pointer;
    }

    .close {
        cursor: pointer;
    }

    .noover {
        overflow-y: hidden !important;
    }
}