/* Глобальные переменные --- */

@media screen and (min-width: 1200px) {
	:root {
		--container-size: 1140px;
	}
}

@media screen and (max-width: 1199px) {
	:root {
		--container-size: 960px;
	}
}

@media screen and (max-width: 991px) {
	:root {
		--container-size: 720px;
	}
}

@media screen and (max-width: 767px) {
	:root {
		--container-size: 540px;
	}
}

@media screen and (max-width: 575px) {
	:root {
		--container-size: 95vw;
	}
}

:root {
	--container-padding: calc((100% - var(--container-size)) / 2);

	--color-background-darker: #2d2d2d;
	--color-background-dark: #292929;
	--color-background-darkest: #252525;
	--color-logo: #085dec;
	--color-highlight: #0fa7fa;
	--color-selection: #57bdf5;
}

/* --- Глобальные переменные */


/* Шрифты --- */

@font-face {
	font-family: "Press Start";
	src:
		local("Press Start 2P Regular"),
		url("/assets/fonts/press-start.ttf") format("opentype");
}

@font-face {
	font-family: "Roboto";
	font-weight: 400;
	src:
		local("Roboto Regular")
		url("/assets/fonts/roboto-regular.ttf") format("opentype");
}

@font-face {
	font-family: "Roboto";
	font-weight: 700;
	src:
		local("Roboto Bold")
		url("/assets/fonts/roboto-bold.ttf") format("opentype");
}

/* --- Шрифты */


/* Базовые стили --- */

html {
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	font-family: "Roboto";
	background-color: var(--color-background-dark);
	color: white;
}

body * {
	position: relative;
	max-width: 100%;
	box-sizing: border-box;
}
body *:focus, body *:active {
	outline: none;
}
body *::-moz-focus-inner {
	border: none;
}

body > * {
	padding: 30px var(--container-padding);
}

::selection {
	text-shadow: none;
	text-decoration-color: var(--color-selection);
	background-color: black;
	color: var(--color-selection);
}

/* --- Базовые стили */


/* Основные элементы --- */

a {
	color: inherit;
	color: #bbb;
	transition-duration: .3s;
	transition-property: text-shadow, color;
}
a:hover {
	text-shadow: 0 0 5px var(--color-highlight);
	color: var(--color-highlight);
}

h1, h2, h3, h4, h5, h6, p {
	margin: 0;
}

button {
	padding: 0;
	border: none;
	background-color: transparent;
	color: inherit;
}
button:hover {
	cursor: pointer;
}

body > section {
	background-color: var(--color-background-darker);
}
body > section + section {
	margin-top: 1px;
}

/* --- Основные элементы */


/* Соц. сети --- */

.youtube {
	--social-color: #ff0000;
	--social-icon: "\f167";
}

.telegram {
	--social-color: #2da5dd;
	--social-icon: "\f3fe";
}

.instagram {
	--social-color: #e33364;
	--social-icon: "\f16d";
}

.discord {
	--social-color: #738bd7;
	--social-icon: "\f392";
}

.soundcloud {
	--social-color: #ff5102;
	--social-icon: "\f1be";
}

.itunes {
	--social-color: #7c60ff;
	--social-icon: "\f3b5";
}

/* --- Соц. сети */


/* Адаптивные фреймы с видео --- */

.video {
	overflow: hidden;
	padding-top: var(--aspect-ratio, 56.25%); /* Соотношение сторон (16:9 по умолчанию) */
	background-color: black; /* Фон на время загрузки */
}

.video > iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- Адаптивные фреймы с видео */



/* Хэдэр --- */

#header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 2;
	background-color: var(--color-background-darkest);
}
#header:before { /* Слой с фоном для корректной анимации меню */
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: var(--color-background-darkest);
}

#header > * {
	z-index: 1;
}

/* Логотип --- */
#header > .logo {
	display: flex;
	align-items: center;
	height: 100%;
	text-decoration: none;
	text-shadow: 2px 2px 0 var(--color-logo);
	font: 20px "Press Start";
	color: white;
	transition: .1s text-shadow;
}
#header > .logo:hover {
	text-shadow: 0px 2px 0 var(--color-logo);
}

#header > .logo > img {
	display: inline-block;
	height: 100%;
	border-radius: 100%;
	margin-right: 10px;
}
/* --- Логотип */

/* Навигация --- */
#header > .menu-toggle { /* Кнопка для меню на мобилках */
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	width: 40px;
	height: 40px;
	padding: 5px;
	visibility: hidden;
	transition: .3s color;
}
#header > .menu-toggle:hover {
	box-shadow: 0 0 10px 5px var(--color-highlight);
}

#header > .menu-toggle > span {
	width: 30px;
	height: 2px;
	background-color: white;
	transition-duration: .3s;
	transition-property: opacity, background-color, transform;
}
#header > .menu-toggle:hover > span {
	background-color: var(--color-highlight);
}
#header > .menu-toggle.active > span:nth-child(1) {
	transform: translateY(10px) rotate(45deg);
}
#header > .menu-toggle.active > span:nth-child(2) {
	opacity: 0;
}
#header > .menu-toggle.active > span:nth-child(3) {
	transform: translateY(-10px) rotate(-45deg);
}

#header > nav {
	display: flex;
	justify-content: space-between;
	width: 500px;
	margin-left: 50px;
}

#header > nav > a {
	padding: 10px;
	margin: 0 20px;
	text-decoration: none;
	font-size: 18px;
	color: white;
	transition-property: box-shadow, text-shadow, color;
}
#header > nav > a:hover {
	color: var(--color-highlight);
	box-shadow: 0 0 10px 5px var(--color-highlight);
	text-shadow: 0 0 10px var(--color-highlight);
}

#header > nav > a:first-child {
	margin-left: 0;
}
#header > nav > a:last-child {
	margin-right: 0;
}
/* --- Навигация */

/* --- Хэдэр */


/* Превью-блоки --- */

.presentation {
	--theme: var(--color-highlight);
	display: flex;
	align-items: center;
	min-height: 500px;
	background-repeat: no-repeat;
}

.presentation:not(.no-bg) > .content {
	padding: 20px;
	border: 2px solid var(--theme);
	box-shadow: 0 0 10px 0 var(--theme);
	background-color: #0009;
}

.presentation > .content.left {
	margin-right: 55%;
}
.presentation > .content.right {
	margin-left: 55%;
}

.presentation > .content > h1 {
	margin-bottom: 20px;
	font-size: 40px;
}

.presentation > .content > p {
	font-size: 17px;
	margin: 10px 0;
}

.presentation > .content > .btn-bottom {
	display: block;
	max-width: none;
	height: 50px;
	border-top: 2px solid var(--theme);
	margin: 15px -20px -20px -20px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	color: white;
	transition-property: text-shadow, background-color, color;
}
.presentation > .content > .btn-bottom:hover {
	text-shadow: 0 0 10px var(--theme);
	background-color: #111;
	color: var(--theme);
}

#about {
	background: url("/img/about.jpg") left / auto 100% no-repeat var(--color-background-dark);
}

#interwiew {
	--theme: #f2fa41;
	background: url("/img/interwiew.jpg") top / cover;
}

#know {
	--theme: #d1072d;
	background: url("/img/know.jpg") top left / cover;
}

/* --- Превью-блоки */


/* Блок "остальное" --- */

#other > h1 {
	margin-bottom: 25px;
	font-size: 30px;
	text-align: center;
}

#other > .content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#other > .content > .article {
	display: block;
	width: 32%;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	background-color: var(--color-background-darkest);
	color: white;
	transition-duration: .5s;
	transition-property: box-shadow, background-color, color, transform;
}
#other > .content > .article:hover {
	box-shadow: 0 0 10px 5px var(--color-highlight);
	color: var(--color-highlight);
	transform: translateY(-10px);
}

#other > .content > .article > img {
	height: 256px;
	object-fit: contain;
}

#other > .content > .article > h1 {
	margin-bottom: 5px;
	font-size: 25px;
}

#other > .content > .article > p {
	font-size: 17px;
}

/* Ссылка на канал --- */
#other > footer {
	--message-show-time: 2000;
	margin-top: 30px;
}

#other > footer > .copy {
	font-size: 20px;
	transition-property: text-shadow, color;
	transition-duration: .3s;
}
#other > footer > .copy:before {
	content: "\f0c5";
	font-family: "FA Pro";
}
#other > footer > .copy:hover {
	text-shadow: 0 0 10px var(--color-highlight);
	color: var(--color-highlight);
}

#other > footer > .copy-success {
	display: inline-block;
	visibility: hidden;
	text-shadow: 0 0 5px var(--color-highlight);
	color: var(--color-highlight);
}
#other > footer.copied > .copy-success {
	visibility: inherit;
	animation: 1s 2 forwards fade;
}
/* --- Ссылка на канал */

/* --- Блок "остальное" */


/* Футер --- */

#footer {
	flex: auto;
	display: flex;
	padding-top: 50px;
	padding-bottom: 50px;
	background-color: var(--color-background-darkest);
	color: white;
}

/* Текст --- */
#footer > .text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 50%;
}

#footer > .text > p,
#footer > .text > a {
	margin: 10px 0;
}

#footer > .text > p,
#footer > .text > a:first-child {
	margin-top: 0;
}
#footer > .text > p,
#footer > .text > a:last-child {
	margin-bottom: 0;
}
/* --- Текст */

/* Соц. сети --- */
#footer > .social {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	width: calc(50% + 15px);
	margin: -15px -15px -15px 0;
}

#footer > .social > a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border: 2px solid white;
	margin: 15px;
	text-decoration: none;
	color: white;
	transition-duration: .3s;
	transition-property: border-color, box-shadow, color;
}
#footer > .social > a:before {
	content: var(--social-icon);
	display: inline-block;
	font: 25px "FA Brands";
}
#footer > .social > a:hover {
	border-color: var(--social-color);
	box-shadow: 0 0 5px 5px var(--social-color);
	text-shadow: none;
	color: var(--social-color);
}
/* --- Соц. сети */

/* --- Футер */



/* Адаптив --- */

@media screen and (max-width: 991px) {
	/* Превью-блоки --- */

	.presentation > .content.left {
		margin-right: 50%;
	}
	.presentation > .content.right {
		margin-left: 50%;
	}

	/* --- Превью-блоки */


	/* Блок "остальное" --- */

	#other > .content {
		flex-direction: column;
	}

	#other > .content > .article {
		width: 100%;
	}
	#other > .content > .article + .article {
		margin-top: 10px;
	}
	#other > .content > .article:hover {
		box-shadow: none;
		transform: none;
	}

	#other > .content > .article > img {
		height: auto;
		max-height: 256px;
	}

	/* --- Блок "остальное" */
}


@media screen and (max-width: 767px) {
	/* Хэдэр --- */

	#header > .menu-toggle {
		position: relative;
		visibility: inherit;
	}

	#header > nav {
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		padding: 10px;
		margin: 0;
		z-index: 0;
		background-color: var(--color-background-darkest);
		transform: translateY(-100%);
		transition: .5s transform;
	}
	#header > nav.opened {
		visibility: inherit;
		transform: none;
	}

	#header > nav > a {
		flex: auto;
		margin: 0;
		text-align: center;
	}
	#header > nav > a:hover {
		box-shadow: 0 0 5px 5px var(--color-highlight);
	}

	/* --- Хэдэр */


	/* Превью-блоки --- */

	.presentation.no-bg {
		padding: 0;
	}

	.presentation.no-bg > .content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 500px;
		padding: 30px var(--container-padding);
		background-color: #0007;
	}
	.presentation:not(.no-bg) > .content {
		padding: 20px 5px;
		border-width: 2px 0;
		box-shadow: none;
	}

	.presentation > .content.left,
	.presentation > .content.right {
		margin: 0;
	}

	.presentation > .content > .btn-bottom {
		margin: 15px -5px -20px -5px;
	}

	/* --- Превью-блоки */
}


@media screen and (max-width: 575px) {
	/* Хэдэр --- */

	#header > .logo {
		font-size: 16px;
	}

	#header > nav {
		flex-direction: column;
	}

	/* --- Хэдэр */


	/* Превью-блоки --- */

	.presentation:before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.presentation > .content {
		padding: 20px 10px;
		text-align: center;
	}

	#interwiew {
		background-position: 25% 0;
	}

	#know {
		background-position: 15% 0;
	}

	/* --- Превью-блоки */


	/* Футер --- */

	#footer {
		flex-direction: column;
	}

	#footer > .text,
	#footer > .social {
		width: 100%;
	}

	#footer > .text {
		order: 1;
		align-items: center;
		text-align: center;
	}

	#footer > .social {
		justify-content: center;
		margin: 0 0 10px 0;
	}

	/* --- Футер */
}

/* --- Адаптив */



/* Анимации --- */

@keyframes fade {
	from {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* --- Анимации */