:root {
	--secondary-color: rgba(0, 0, 0, 0.8);
	--secondary-inv: rgba(255, 255, 255, 0.8);
	--primary-color: #000;
	--primary-inv: #ffffff;
	--globe-color: #f8f8f8;
	--tetriary-color: rgba(0, 0, 0, 0.6);
	--tetriary-inv: rgba(255, 255, 255, 0.6);
	--accent: #3a8c80;
	--h1: 8.738vw;
	--h2: 6.796vw;
	--h3: 5.825vw;
	--h4: 4.854vw;
	--text: 3.883vw;
	--text-small: 1.094vw;
	--navigation: 3.398vw;
}

* {
	margin: 0;
	padding: 0;
	line-height: 120%;
}

.unselectable {
	-moz-user-select: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.container {
	width: fit-content;
	display: flex;
	height: fit-content;
}

.row {
	flex-direction: row;
}

.center {
	align-items: center;
	justify-content: center;
}

html,
body {
	max-width: 100vw;
	width: 100%;
	height: auto;
	min-height: 100vh;
	background-color: var(--globe-color);
	position: relative;
}

@font-face {
	font-family: "Muller";
	src: url("/fonts/FontfabricMullerRegular.otf") format("opentype"), url("/fonts/MullerTrialRegular.woff2") format("woff2"),
		url("/fonts/MullerTrialRegular.woff") format("woff"), url("/fonts/MullerTrialRegular.ttf") format("truetype");
	font-weight: normal;
}

@font-face {
	font-family: "Muller";
	src: url("/fonts/FontfabricMullerBold.otf") format("opentype"), url("/fonts/MullerTrialBold.woff2") format("woff2"),
		url("/fonts/MullerTrialBold.woff") format("woff"), url("/fonts/MullerTrialBlack.ttf") format("truetype");
	font-weight: bold;
}

@font-face {
	font-family: "Muller";
	src: url("/fonts/FontfabricMullerMedium.otf") format("opentype"), url("/fonts/MullerTrialMedium.woff2") format("woff2"),
		url("/fonts/MullerTrialMedium.woff") format("woff"), url("/fonts/MullerTrialMedium.ttf") format("truetype");
	font-weight: 500;
}

@font-face {
	font-family: "TT Tsars B";
	src: url("/fonts/TTTsarsBRegular.ttf") format("truetype");
	font-weight: normal;
}

@font-face {
	font-family: "TT Tsars B";
	src: url("/fonts/TTTsarsB-Black.ttf") format("truetype");
	font-weight: bold;
}

@font-face {
	font-family: "Inter Semi";
	src: url("/fonts/InterMedium.ttf") format("truetype");
	font-weight: normal;
}

@font-face {
	font-family: "Inter Semi";
	src: url("/fonts/InterBold.ttf") format("truetype");
	font-weight: bold;
}

header {
	position: sticky;
	display: flex;
	flex-direction: row;
	padding: 1.316vh 5.825vw 1.316vh 5.825vw;
	justify-content: space-between;
	width: auto;
	align-items: center;
	z-index: 4;
	top: 0;
	background-color: var(--globe-color);
}

a {
	text-decoration: none;
	color: inherit;
}

header::after {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: calc(100% + 1.554vh);
	overflow-y: visible;
	overflow-x: hidden;
	background-image: url("/assets/header-background.png");
	background-clip: border-box;
	background-size: contain;
	background-repeat: repeat-x;
	content: "";
	z-index: -1;
}

details[open]>summary>img {
	rotate: 180deg;
}

.branding {
	gap: 3.883vw;
}

.logos {
	display: flex;
	flex-direction: row;
	gap: 2.913vw;
	flex-wrap: nowrap;
}

.logo {
	height: fit-content;
	display: flex;
}

.logo img:first-child {
	width: 8.981vw;
}

.logo img:last-child {
	width: 8.252vw;
}

.name {
	flex-direction: column;
	text-wrap: nowrap;
	white-space: nowrap;
	height: 100%;
	box-sizing: border-box;
	font-size: var(--navigation);
	font-family: "Muller";
	font-weight: bold;
	line-height: 120%;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--primary-color);
}

.menu {
	width: 3.883vw;
	padding: 2.913vw;
}

menu button img {
	opacity: 0.6;
}

menu a:hover,
menu details summary:hover {
	color: var(--primary-color);
}

menu a[data-activeLink] {
	color: var(--accent);
}

footer {
	background-color: var(--accent);
	padding: 5.234vh 4.854vw 5.234vh 4.854vw;
	position: relative;
	width: calc(100% - 4.854vw * 2);
}

footer::before {
	content: "";
	background-color: var(--accent);
	width: 100%;
	height: 10vh;
	z-index: -1;
	position: absolute;
	top: -9vh;
	left: 0;
	overflow: hidden;
}

footer>div:first-child {
	display: grid;
	grid-template-columns: 1fr 5.825vw 1fr;
	grid-template-rows: fit-content 1fr 2fr 2fr 0.545vh 2fr;
	row-gap: 2.726vh;
}

footer .branding {
	grid-row: 1;
	grid-column: span 3;
}

footer .name {
	font-size: 3.883vw;
	color: var(--primary-inv);
}

footer a:hover,
footer a>span:hover {
	color: var(--globe-color);
}

.contacts {
	grid-area: contacts;
	flex-direction: column;
	gap: 2.617vh;
	grid-row: 2;
	grid-column: 1;
}

.contacts span {
	font-size: var(--navigation);
	text-transform: uppercase;
	color: var(--secondary-inv);
	font-family: "Muller";
}

.contacts div {
	flex-direction: column;
	display: flex;
}

.contacts a {
	text-decoration: none;
	font-size: var(--navigation);
	color: var(--tetriary-inv);
	font-family: "Muller";
}

.links {
	flex-direction: column;
	grid-row: 3;
	grid-column: 1;
	gap: 3.053vh;
}

.linked {
	gap: 0.436vh;
	flex-direction: column;
}

.linked a {
	height: fit-content;
	align-items: center;
	gap: 1.942vw;
	text-decoration: none;
	font-size: var(--navigation);
	font-family: "Muller";
	color: var(--secondary-inv);
}

.linked a svg {
	width: 4.369vw;
	fill: var(--accent);
	background-color: var(--primary-inv);
	border-radius: 100%;
	padding: 0.728vw;
	height: auto;
}

footer .linked a:last-child svg {
	width: 3.277vw;
	padding: 1.274vw;
}

.navigation {
	font-family: "Muller";
	grid-column: 3;
	grid-row: span 2;
	font-size: var(--navigation);
	flex-direction: column;
	gap: 2.617vh;
}

.navigation span {
	text-transform: uppercase;
	color: var(--secondary-inv);
}

.navigation div {
	flex-direction: column;
	gap: 0.872vh;
}

.navigation a {
	text-decoration: none;
	color: var(--tetriary-inv);
}

.madeby {
	flex-direction: column;
	gap: 0.872vh;
	row-gap: 4;
	grid-row: 5;
	grid-column: span 3;
	font-family: "Muller";
	font-size: var(--navigation);
}

.madeby span {
	color: var(--secondary-inv);
}

.madeby a {
	color: var(--tetriary-inv);
	text-decoration: none;
}

#policy {
	display: flex;
}

#policy a {
	padding-top: 24px;
	text-decoration: none;
	color: var(--tetriary-inv);
	font-size: var(--navigation);
	font-family: "Muller";
}

#menu-mob {
	position: fixed;
	overflow-x: hidden;
	flex-direction: column;
	align-items: center;
	z-index: 5;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--globe-color);
}

.hdr {
	padding: 1.316vh 5.825vw 1.316vh 5.825vw;
	width: calc(100% - 5.825vw * 2);
	justify-content: space-between;
}

.hdr .menu {
	height: 1.745vh;
}

.dialog {
	width: calc(100% - 5.825vw * 2);
	height: 100%;
	margin: 0.545vh 5.825vw 13.959vh 5.825vw;
	font-family: "Muller";
	display: flex;
	flex-direction: column;
}

details {
	display: flex;
	flex-direction: column;
	font-size: var(--text);
	height: auto;
}

.dialog summary {
	padding-bottom: 1.309vh;
	padding-top: 2.617vh;
	display: flex;
	justify-content: space-between;
	color: var(--primary-color);
}

.dialog details div {
	flex-direction: column;
	width: 100%;
}

.dialog details a {
	padding-bottom: 1.309vh;
	padding-top: 1.309vh;
	text-decoration: none;
	color: var(--secondary-color);
}

.dialog details a:last-child {
	margin-bottom: 2.617vh;
}

summary::-webkit-details-marker {
	display: none;
}

summary::marker {
	content: "";
}

.dialog hr {
	background-color: #0000004d;
	width: 100vw;
	transform: translateX(-5.825vw);
}

.dialog .links {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: auto;
}

.dialog span,
dialog a {
	font-size: var(--text);
	width: 100%;
}

.dialog .urls {
	flex-direction: column;
	width: 100%;
	color: var(--tetriary-color);
}

.dialog .urls a {
	padding: 1.478vh 0;
	font-size: var(--text);
	color: var(--tetriary-color);
	text-decoration: none;
}

.dialog .linked {
	gap: 2.617vh;
	width: 100%;
}

.dialog .linked a {
	gap: 1.092vw;
	width: 100%;
}

.dialog .linked svg {
	fill: var(--globe-color);
	background-color: var(--accent);
	width: 5.097vw;
	height: auto;
	padding: 0.85vw;
}

.dialog .linked svg:last-child {
	width: 3.883vw;
	padding: 1.488vw;
}

.dialog .linked span {
	color: var(--accent);
}

@media screen and (orientation: landscape) {
	:root {
		--h1: 4.688vw;
		--h2: 2.813vw;
		--h3: 2.188vw;
		--h4: 0.971vw;
		--text: 1.25vw;
		--text-small: 1.094vw;
		--navigation: 1.094vw;
	}

	header {
		width: auto;
		padding: 2.163vh 2.5vw;
	}

	header::after {
		height: calc(100% + 1.649vh);
	}

	.branding {
		gap: 1.875vw;
	}

	.logos {
		gap: 1.25vw;
	}

	.logo img:first-child {
		width: 3.984vw;
	}

	.logo img:last-child {
		width: 3.75vw;
	}

	.name {
		font-size: 1.25vw;
	}

	.menu {
		display: none;
	}

	menu {
		font-family: Muller;
		font-size: 1.683vh;
		gap: 1.875vw;
		flex-direction: row;
		flex-wrap: nowrap;
		text-transform: uppercase;
		display: flex;
		justify-items: center;
		align-items: center;
	}

	.pages {
		display: flex;
		z-index: 10;
	}

	menu a {
		color: var(--tetriary-color);
		text-decoration: none;
		height: 1.923vh;
	}

	menu details {
		position: relative;
		cursor: pointer;
	}

	menu summary {
		font-size: 1.683vh;
		font-family: Muller;
		color: var(--tetriary-color);
		text-decoration: none;
		height: fit-content;
		text-transform: uppercase;
		background-color: transparent;
		border: none;
		color: none;
		display: flex;
		align-items: center;
	}

	menu details img {
		height: 0.601vh;
		margin: 1.322vh;
		opacity: 0.6;
	}

	menu details div {
		position: absolute;
		margin-top: 1.07vh;
		gap: 0.985vh;
		flex-direction: column;
		background-color: #fff;
		border-radius: 0.781vw;
		padding: 2.463vh 1.563vw;
		margin-left: -25%;
		box-shadow: 0.246vh 0.246vh 2.463vh rgba(153, 153, 153, 0.25), 0.246vh -0.246vh 2.463vh rgba(153, 153, 153, 0.25);
	}

	menu details a {
		font-size: var(--navigation);
		font-family: "Muller";
		color: var(--tetriary-color);
		text-transform: uppercase;
		text-decoration: none;
		text-wrap: nowrap;
		word-wrap: nowrap;
		height: auto;
	}

	menu details a:hover {
		color: var(--primary-color);
	}

	menu .vk {
		display: flex;
		height: 2.5vw;
		background-color: var(--accent);
		width: 2.5vw;
		border-radius: 100%;
	}

	menu .vk svg {
		position: relative;
		height: 3.079vh;
		width: 1.875vw;
		fill: var(--primary-inv);
	}

	footer {
		padding: 6.01vh 2.5vw 7.212vh 2.5vw;
		width: calc(100% - 2.5vw * 2);
	}

	footer>div:first-child {
		grid-template-columns: 2fr 16.719vw 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		row-gap: 0;
	}

	footer .branding {
		grid-row: 1;
		grid-column: 1;
	}

	footer .name {
		font-size: 1.563vw;
	}

	.contacts {
		gap: 2.617vh;
		grid-row: 1;
		grid-column: 4;
	}

	.navigation {
		grid-column: 3;
		grid-row: span 2;
		width: 100%;
	}

	.links {
		gap: 3.125vw;
		flex-direction: row;
		grid-row: 2;
		grid-column: 1;
		width: 100%;
		height: 100%;
		align-items: end;
	}

	.links:first-child .linked:last-child span {
		content: "Группа города ВКонтакте";
	}

	.linked a {
		gap: 0.625vw;
	}

	.linked a svg {
		width: 1.406vw;
		padding: 0.234vw;
	}

	footer .linked a:last-child svg {
		width: 1.055vw;
		padding: 0.41vw;
	}

	#town-group {
		display: none;
	}

	#town-group-desc {
		display: block;
	}

	.madeby {
		grid-row: 2;
		grid-column: 4;
		width: 100%;
		height: 100%;
		justify-content: end;
	}

	#policy {
		flex-direction: column;
		margin-top: 40px;
	}

	#policy>div {
		display: block;
		height: 2px;
		width: calc(100% + 2.5vw * 2);
		background-color: #FFFFFF10;
		transform: translateX(-2.5vw);
	}

	#menu {
		display: none;
	}
}