* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--index: calc(1vw + 1vh);
	--text: #e7e7e0;
	--transition: transform .75s cubic-bezier(.075, .5, 0, 1);
}
@font-face {
	font-family: raleway_f;
	src: url(assets/fonts/Zabava_mari_chenak.ttf);
}
@font-face {
	font-family: raleway_f;
	src: url(assets/fonts/Zabava_mari_chenak.ttf);
	font-weight: 900;
}
body {
	background-color: #010101;
	font-family: raleway_f, sans-serif;
	line-height: 1.55;
}

.logo {
    display: flex;
    position: fixed;
    z-index: 11;
    left: 50%;
    width: auto;
    top: 23px;
    transform: translateX(-50%);
    pointer-events: none;
}

.logo img {
    width: 18vh;
    margin: 0;
}

.main-header {
	position: relative;
}
.main-header::after {
	content: '';
	position: absolute;
	z-index: 100;
	width: 100%;
	height: calc(var(--index) * 10);
	background-image: url(assets/img/ground.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	bottom: calc(var(--index) * -4.5);
}
.layers {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	position: relative;
}
.layer {
	height: 100%;
	width: 100%;
	position: absolute;
	background-size: cover;
	background-position: center;
	will-change: transform;
	z-index: 2;
	transition: var(--transition);
}
.layers__base {
	transform: translate3d(0, calc(var(--scrollTop) / 1.6), 0);
	z-index: 0;
}
.layers__middle {
	transform: translate3d(0, calc(var(--scrollTop) / 2.5), 0);
	opacity: 0.9;
}
.layers__front {
	transform: translate3d(0, calc(var(--scrollTop) / 5.7), 0);
}
.layer__header {
	z-index: 3;
	transform: translate3d(0, calc(var(--scrollTop) / 2), 0);
	transition: var(--transition);
	will-change: transform;
	text-transform: uppercase;
	font-weight: 900;
	color: var(--text);
	text-shadow: 0 0 15px #000000;
}
.layers__title {
	font-size: calc(var(--index) * 2.65);
	letter-spacing: calc(var(--index) / 2.25);
}
.layers__caption {
	font-size: calc(var(--index) / 1.175);
	letter-spacing: calc(var(--index) / 3.5);
	margin-top: calc(var(--index) * -.75);
}
.main-article {
	--main-article-transform: translate3d(0, calc(var(--scrollTop) / -7.5), 0);
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	color: var(--text);
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	text-align: center;
	/* Update: */
	top: -1px;
	z-index: 10;
}

.main-article::after {
    content: '';
    position: absolute;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-image: url(assets/img/ground2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    bottom: -513px;
}

.main-article__header {
	text-transform: uppercase;
	font-size: calc(var(--index) * 1.8);
	letter-spacing: calc(var(--index) / 7.5);
	transform: var(--main-article-transform);
	transition: var(--transition);
	will-change: transform;
}
.main-article__paragraph {
	font-size: 30px;
	max-width: calc(var(--index) * 30);
	/* margin-top: calc(var(--index) / 1.25); */
	margin-top: 370px;
	transform: var(--main-article-transform);
	transition: var(--transition);
	will-change: transform;
	text-shadow: 1px 1px 0 #000, 2px 2px 5px rgba(0, 0, 0, 0.5)
}
.content {
	will-change: transform;
}
.copy {
	position: absolute;
	bottom: calc(var(--index) * 2.5);
	opacity: .45;
	font-size: calc(var(--index) * .75);
	letter-spacing: calc(var(--index) / 37.5);
}

.main-footer {
	position: relative;
	height: 100vh;
	overflow: hidden;
}

.main-footer .layers {
	height: 100%;
	position: relative;
}

.main-footer .layer {
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.main-footer .layer__header {
	position: relative;
	z-index: 10;
	text-align: center;
	top: 40%;
	transform: translateY(-50%);
	color: #fff;
}

.layers__caption {
	margin-top: 15vh;
	font-size: 30px;
	letter-spacing: 5px;
	text-transform: uppercase;
}

.layers__title {
	font-size: 60px;
	font-weight: bold;
}

.footer {
    font-family: monospace;
    color: #fff;
    text-align: center;
    display: block;
}

.footer div{
    margin: 5px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    //border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 768px) {

    .header.menu-open {
        z-index: 12;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        display: flex;
        flex-direction: column;
        gap: 0;

        background: rgb(57 57 57 / 73%);
        backdrop-filter: blur(12px);

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav a {
        padding: 18px 20px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
}
