html {
	height: 100%;
}

body {
	overflow-x: hidden;
	margin: 0px;
	height: 100%;
	background-color: rgb(20, 20, 20);
	color: white;
	font-family: "Rubik", sans-serif;
	font-optical-sizing: auto;
	font-size: 17px;
}

/* Заголовок */
header {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Общие стили для навбаров */
.long-navbar {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	width: 1200px;

	@media all and (min-width: 0px) and (max-width: 1200px) {
		width: 100vw;
	}
	@media all and (min-width: 1200px) {
		width: 1200px;
	}

	@media all and (min-width: 0px) and (max-width: 643px) {
		display: none;
	}
	@media all and (min-width: 643px) {
		display: flex;
	}
}

/* Верхний навбар */
.upper nav {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	padding-bottom: 5px;
	margin-bottom: 5px;

	border-bottom: 1px solid white;
}

.upper nav a {
	display: flex;
	align-items: center;
	height: 50px;
	text-decoration: none;
	color: white;
}

.upper nav a * {
	margin-inline: 5px;
}

.upper nav a .social-media-logo {
	height: 50px;
	filter: none;
}

.upper nav a:hover .social-media-logo {
	filter: brightness(0) saturate(100%) invert(56%) sepia(55%) saturate(625%) hue-rotate(6deg) brightness(104%) contrast(92%);
}

.upper #logo {
	width: 200px;
	margin-bottom: -200px;
}

/* Нижний навбар */
.lower #logo-void-space {
	display: flex;
	width: 200px;
	flex-shrink: 1;
}

.lower nav {
	width: 100%;
	min-width: 537px;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	margin-top: 5px;
	position: relative; 
}

.lower nav a {
	display: flex;
	flex-direction: column;
	/*align-items: left;*/
	text-decoration: none;
	color: white;
	vertical-align: middle;
	border-bottom: 1px solid transparent;
}

.lower nav a * {
	margin-inline: 5px;
}

.long-navbar nav a:hover {
	color: rgb(211, 161, 25);
}

/* Контейнер выпадающего меню */
.navbox {
	position: relative;
	float: left;

}

/* Родительская вкладка выпадающего меню */
.subnavparent {
	display: flex;
	font-size: 16px;
	border: none;
	outline: none;
	background-color: inherit;
	font-family: inherit;
	margin: 0;
}

/* Выпадающее меню (по умолчанию скрыто) */
.subnav {
	display: block;
	position: absolute;
	top: 110%;
	background-color: rgb(20, 20, 20);
	min-width: 200px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1000;
	max-height: 0;
	transition: max-height 0.5s ease-in-out;
	overflow: hidden;
	border-radius: 10px;
}

/* Показываем выпадающее меню при наведении */
.navbox:hover .subnav {
	max-height: 500px;
}

/* Стили для ссылок в выпадающем меню */
.subnav a {
	float: none;
	color: white;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
	white-space: nowrap;
}

.subnav a:hover {
	background-color: #202020;
	color: rgb(211, 161, 25);
}

.mobile {
	display: none;
	@media all and (min-width: 0px) and (max-width: 643px) {
		display: flex;
	}
	@media all and (min-width: 643px) {
		display: none;
	}
}

#mobile-logo a img {
	display: none;
	position: absolute;
	height: 86px;
	left: 0px;
	top: 0px;

	@media all and (min-width: 0px) and (max-width: 350px) {
		display: none;
	}
	@media all and (min-width: 350px) and (max-width: 643px) {
		display: flex;
	}
	@media all and (min-width: 643px) {
		display: none;
	}
}

#small-mobile-logo a img {
	display: none;
	position: absolute;
	height: 86px;
	left: 0px;
	top: 0px;

	@media all and (min-width: 0px) and (max-width: 350px) {
		display: flex;
	}
	@media all and (min-width: 350px) {
		display: none;
	}
}


#mobile-menu-toggle {
	position: absolute;
	z-index: 11;
	height: 86px;
	right: 10px;
	top: 5px;
	@media all and (min-width: 0px) and (max-width: 643px) {
		display: block;
	}
	@media all and (min-width: 643px) {
		display: none;
	}
}

#mobile-menu-toggle a img {
	height: 80px;
}

#mobile-menu {
	background-color: rgb(20, 20, 20);
	position: fixed;
	height: 100vh;
	width: 100vw;
	z-index: 10;
	box-shadow: inset 0 0 0 1px rgb(211, 161, 25);

	display: block;
	max-height: 0;

	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

#mobile-menu .shrinkable {
	display: block;

	@media all and (min-height: 0px) and (max-height: 500px) {
		display: inline-block;
	}
	@media all and (min-height: 500px) {
		display: block;
	}
}

#mobile-menu .shrinkable span {
	display: inline-block;

	@media all and (min-height: 0px) and (max-height: 500px) {
		display: none;
	}
	@media all and (min-height: 500px) {
		display: inline-block;
	}
}

.mobile-menu-item img {
	max-height: 20px;
	height:40px;
	transition: 0.03s filter ease-in-out;
	filter: none;
}

/* Сброс цвета на золотистый при наведении */
.mobile-menu-item:hover img {
	filter: brightness(0) saturate(100%) invert(0%) sepia(7%) saturate(0%) hue-rotate(45deg) brightness(90%) contrast(106%);
}

.mobile-menu-item {
	color: white;
	padding: 5px 16px;
	text-decoration: none;
	font-size: 1.3em;
	display: block;
}

.mobile-menu-item.toggle {
	background: black;
	border: gray 2px solid;
	position: fixed;
	padding: 14px 16px;
	z-index: 11;
	right: 30px;
	top: 30px;

	@media all and (min-width: 0px) and (max-width: 850px) {
		display: block;
	}
	@media all and (min-width: 850px) {
		display: none;
	}
}

.mobile-menu-item:hover {
	background-color: #ddd;
	color: black;
}



/* Свойства футера */
footer {
	display: flex;
	justify-content: center;
	width: 100%;
	box-shadow: 0 50vh 0 50vh rgb(20,20,20);
}
footer #footer-content {
	font-size: 1rem;
	margin-top: 50px;
	display: flex;
	justify-content: center;
	width: 80%;
	align-items: center;
	margin-inline: 10px;
	margin-bottom: 20px;
	@media all and (min-width: 0px) and (max-width: 900px) {
		flex-direction: column;
	}
	@media all and (min-width: 600px) {
		flex-direction: row;
	}
}
footer p {
	margin-block: 8px;
	margin-inline: 10px;
}
footer #footer-logo {
	height: 40px;
	margin-inline: 10px;
}