/* Установка */
@font-face {
	font-family: 'KosolapaScript';
	src: url('/storage/fonts/KosolapaScript-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Sacramento';
	src: url('/storage/fonts/Sacramento.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'FuturaNow';
	src: url('/storage/fonts/zhuan_FuturaNowScript-Rg.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Глобально */
* {
	margin: 0;
	padding: 0;
	font-style: normal;
	box-sizing: border-box;
}

/* Тело */
body {
	position: relative;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden !important;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('/storage/media/imgs/css/background.jpg') center/cover
		no-repeat;
	opacity: 0.15;
	z-index: -1;
}

/* Голова */
header {
	font-family: 'KosolapaScript', sans-serif;
	position: sticky;
	top: 0;
	z-index: 7777;
	margin-bottom: 25px;
	background-color: #fde5e7;

	box-shadow: inset 0 -5px 20px rgba(0, 0, 0, 0.15),
		0 15px 20px rgba(0, 0, 0, 0.15);
}

nav {
	margin: 0 auto;
	padding: 16px 20px;
	padding-bottom: 0;
	width: 80%;
	display: flex;
	justify-content: space-between;
}

nav .logo {
	font-size: 35px;
	letter-spacing: 5px;
	font-weight: bold;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	min-width: 400px;
	overflow-x: auto;
	padding-bottom: 20px;
}
nav ul li {
	padding: 6px;
	background-color: #ebd4d5;
	margin: 0 16px;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	max-width: 50px;
}
nav ul li a {
	width: 100%;
	text-align: center;
}

nav ul li:hover {
	background-color: #f0cccd;
	transition: 0.05s ease-out;
}

nav ul a {
	font-size: 27px;
	color: #000;
	text-decoration: none;
}

/* Мейн */
main {
	font-family: 'FuturaNow';
	flex: 1;
}

/* Футер */
footer {
	font-family: 'FuturaNow';
	margin-top: 25px;
	background-color: #fde5e74b;

	box-shadow: inset 0 -5px 20px rgba(0, 0, 0, 0.08),
		0 15px 20px rgba(0, 0, 0, 0.08);
}

footer p {
	text-indent: 0px;
	font-size: 13px;
	text-align: center;
	width: 80%;
	margin: 0 auto;
}

footer span {
	font-size: 13px;
}

@media (max-width: 1160px) {
	nav,
	footer p {
		width: 100%;
	}
}
@media (max-width: 570px) {
	nav ul {
		width: 100%;
		display: flex;
		flex-direction: space-around;
	}
	nav ul li {
		margin: 0 auto;
	}
	.logo {
		display: none;
	}
}
@media (max-width: 455px) {
	nav {
		overflow-x: scroll;
	}
}
