:root {
	--accent-color: #a91817;
}

html {
	background-color: black;
	font-family: "Montserrat", sans-serif;
	scroll-behavior: smooth;
}

/* PRELOADER */

#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
	width: 50px;
	height: 50px;
	border: 6px solid #9c3a3a;
	border-top-color: var(--accent-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* NAV */

.nav-button {
	position: fixed;
	top: 15px;
	left: 15px;
	background: rgb(35, 35, 35);
	border-radius: 7px;
	cursor: pointer;
	z-index: 1001;
	height: 40px;
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity 0.1s ease-out;
}

.nav-button img {
	height: 35px;
	width: 35px;
}

.nav-button-novisible {
	opacity: 0;
	cursor: default;
}

.menu {
	position: fixed;
	top: 0;
	left: -380px;
	width: 350px;
	height: 100vh;
	background: rgb(35, 35, 35);
	transition: left 0.3s ease;
	z-index: 1000;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 75px 15px;
}

.nav-close-button {
	position: absolute; /* абсолютное позиционирование */
	top: 15px; /* 15px от верхней границы .menu */
	right: 15px;
	background: rgb(35, 35, 35);
	border-radius: 7px;
	cursor: pointer;
	z-index: 1001;
	height: 40px;
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-close-button img {
	height: 35px;
	width: 35px;
}

.menu-h1 {
	font-family: "Russo One", sans-serif;
}

.menu-h1 a {
	text-decoration: none;
	color: white;
}

.menu-h2 {
	font-weight: 500;
	text-shadow: 1px 1px 0px var(--accent-color);
	padding-left: 15px;
}

.menu-h2 a {
	text-decoration: none;
	color: white;
}

.menu-open {
	left: 0;
}

/* HEADER */

.header {
	background-image: url("../img/header.jpeg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	width: 100%;
	height: calc(var(--vh, 1vh) * 100);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-color);
	font-size: clamp(30px, 7.5vw, 59px);
	font-family: "Russo One", sans-serif;
	font-weight: 400;
	font-style: normal;
	text-align: center;
	line-height: 1em;
	letter-spacing: 0.05em;
	position: relative;
	z-index: 2;
}

.header div {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s ease, transform 1s ease;
}

.header.visible div {
	opacity: 1;
	transform: translateY(0);
	animation: pulse-red 2s ease-out 1;
	animation-delay: 0.5s;
}

@keyframes pulse-red {
	0% {
		color: var(--accent-color);
		text-shadow: 0 0 0px var(--accent-color);
	}
	50% {
		color: #ff0000;
		text-shadow: 0 0 15px #ff0000;
	}
	100% {
		color: var(--accent-color);
		text-shadow: 0 0 0px var(--accent-color);
	}
}

@media (max-width: 660px) {
	.header {
		background-image: url("../img/header_m.jpg");
	}
}

/* CONTAINER */

.container {
	max-width: 1200px;
	margin: 0px auto;
	padding: 50px 30px;
}

/* MAIN */

.main {
	background: none;
	color: white;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(16px, 4vw, 24px);
	position: relative;
	z-index: 0;
	line-height: 1.5;
}

.main::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-image: url("../img/fon.jpg");
	z-index: -1;
}

.m1,
.m2,
.m3,
.m4 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 35px;
}

.m1 p,
.m2 p,
.m3 p,
.m4 p {
	width: 100%;
}

.m2,
.m3,
.m4 {
	margin-top: 50px;
}

h1 {
	text-align: center;
	font-size: clamp(22px, 5vw, 30px);
	font-weight: 600;
	font-family: "Russo One", sans-serif;
	letter-spacing: 0.05em;
}

h2 {
	font-weight: 600;
	font-size: clamp(19px, 4vw, 27px);
	text-shadow: 3px 3px 0px var(--accent-color);
	text-align: center;
}

.q-span {
	font-style: italic;
}

.q-span-k {
	color: var(--accent-color);
}

.m-image {
	max-width: 800px;
	width: 100%;
	box-shadow: 0px 0px 14px 6px var(--accent-color);
}

.quote-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	color: var(--accent-color);
}

.quote-box {
	position: relative;
	border: 2px solid var(--accent-color);
	border-radius: 5px;
	padding: 20px;
	max-width: 750px;
	font-style: italic;
	font-weight: 500;
}

.quote-box::before {
	content: "„";
	position: absolute;
	top: -44px;
	left: 15px;
	font-size: 50px;
	font-weight: bold;
	font-style: normal;
	line-height: 1;
	color: var(--accent-color);
	padding: 0 0.2em;
}

.quote-box::after {
	content: "";
	position: absolute;
	bottom: -25px;
	left: 25px;
	width: 0;
	height: 0;
	border-left: 16px solid transparent;
	border-right: 16px solid transparent;
	border-top: 25px solid var(--accent-color);
}

.author {
	display: flex;
	align-items: center;
	margin-top: 30px;
	margin-left: 11px;
}

.avatar {
	width: 60px;
	height: 60px;
	border: 2px solid var(--accent-color);
	border-radius: 50%;
	margin-right: 15px;
	overflow: hidden;
}

.name {
	font-weight: 600;
	font-size: clamp(16px, 4vw, 24px);
}

@media (max-width: 430px) {
	.author {
		margin-left: 21px;
	}
	.avatar {
		height: 40px;
		width: 40px;
	}
}

.interview-p {
	padding: 10px 10px;
	border: 2px solid white;
	border-radius: 5px;
	text-align: center;
}

.interview-href {
	color: var(--accent-color);
	text-decoration: none;
	transition: all 0.2s linear;
}

.interview-href:hover {
	color: red;
	text-shadow: 0 0 10px #ff0000;
}

/* FFJ */

.ffj {
	font-family: "Russo One", sans-serif;
	font-size: 55px;
	color: var(--accent-color);
}

.ffj span {
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.ffj span.ffj-visible {
	opacity: 1;
}

.ffj span.ffj-pulse {
	animation: ffjPulse 2s ease-out;
}

@keyframes ffjPulse {
	0%,
	100% {
		color: var(--accent-color);
		text-shadow: 0 0 0px #ff0000;
	}
	15%,
	85% {
		color: #ff0000;
		text-shadow: 0 0 15px #ff0000;
	}
}

/* Footer */

.footer {
	height: 150px;
	width: 100vw;
	background-color: rgb(20, 20, 20);
	position: relative;
	z-index: 2;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 500;
	border-top: 1px solid white;
}

.footer span {
	max-width: 1200px;
	padding: 0px 30px;
	text-align: center;
	line-height: 1.5;
}

/* Анимация при скролле */

.scroll-text {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-text.scroll-visible {
	opacity: 1;
	transform: translateY(0);
}

.scroll-img.scroll-visible {
	animation: img-pulse 1s ease-out 1;
}

@keyframes img-pulse {
	0% {
		box-shadow: 0px 0px 14px 6px var(--accent-color);
	}
	50% {
		box-shadow: 0px 0px 18px 10px #ff0000;
	}
	100% {
		box-shadow: 0px 0px 14px 6px var(--accent-color);
	}
}

.quote-block.scroll-visible {
	animation: quote-pulse-block 1s ease-out 1;
}

.quote-block.scroll-visible .quote-box::before {
	animation: quote-pulse-block 1s ease-out 1;
}

.quote-block.scroll-visible .quote-box {
	animation: quote-pulse-box-avatar 1s ease-out 1;
}

.quote-block.scroll-visible .avatar {
	animation: quote-pulse-box-avatar 1s ease-out 1;
}

.quote-block.scroll-visible .quote-box::after {
	animation: quote-pulse-after 1s ease-out 1;
}

@keyframes quote-pulse-block {
	0%,
	100% {
		color: var(--accent-color);
		text-shadow: 0 0 0px #ff0000;
	}
	50% {
		color: red;
		text-shadow: 0 0 10px #ff0000;
	}
}

@keyframes quote-pulse-box-avatar {
	0%,
	100% {
		border-color: var(--accent-color);
		box-shadow: 0 0 0px 0px red;
	}
	50% {
		border-color: red;
		box-shadow: 0 0 10px 4px red;
	}
}

@keyframes quote-pulse-after {
	0%,
	100% {
		border-top-color: var(--accent-color);
	}
	50% {
		border-top-color: red;
	}
}

/* =====================================
                Интервью 
 =====================================               
                */

.header-int {
	font-size: clamp(25px, 6.5vw, 54px);
}

.m-int {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
}

.m-int p {
	width: 100%;
}

.m-interview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	border: 2px solid white;
	border-radius: 5px;
	padding: 20px 20px;
}

.m-interview img {
	margin: 15px 0px;
}

.speaker-1 {
	font-style: italic;
}

.back-button {
	position: fixed;
	top: 15px;
	left: 15px;
	background: rgb(35, 35, 35);
	border-radius: 7px;
	z-index: 1001;
	height: 40px;
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.back-button img {
	height: 35px;
	width: 35px;
}

.m-back-button {
	color: var(--accent-color);
	text-decoration: none;
	padding: 15px 15px;
	border: 2px solid var(--accent-color);
	font-weight: 500;
	border-radius: 7px;
	transition: all 0.2s linear;
}

.m-back-button:hover {
	border-color: red;
	box-shadow: 0 0 15px 4px red;
	color: red;
	text-shadow: 0 0 10px #ff0000;
}
