/* Основные стили */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background-color: #000;
	color: #fff;
}

/* Шапка */
header {
	background-color: transparent;
	padding: 0.1rem;
	width: 100%;
	top: 0;
	position: fixed;
	z-index: 100;
	transform: translateY(-100%);
	transition: all ease 0.4s;
}

.fix_panel {
	transform: translateY(0);
}

@keyframes slide-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: -1;
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding: 1rem 3rem;
	gap: 2rem;
	height: 100px;
}

.logo-group-left,
.logo-group-right {
	display: flex;
	align-items: center;
	pointer-events: none;
	position: relative;
	z-index: 1;
}

.logo,
.teppo-logo {
	position: relative;
	z-index: 2;
	cursor: pointer;
}

.title-image {
	height: 90px;
	object-fit: contain;
	pointer-events: none;
}

.teppo-logo {
	height: 80px;
	object-fit: contain;
	filter: brightness(0.9);
	pointer-events: auto;
	transition: transform 0.3s ease;
}

.teppo-logo:hover,
.teppo-logo:active {
	transform: scale(1.1);
}

.logo {
	height: 110px;
	object-fit: contain;
	filter: brightness(0.9);
	pointer-events: auto;
	transition: transform 0.3s ease;
}

.logo:hover,
.logo:active {
	transform: scale(1.1);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 120px;
	padding-bottom: 100px;
	overflow: visible;
	background-image: url("BG.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	margin-top: 50px;
}

/* Слайдшоу */
/* .slideshow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

@media (max-width: 768px) {
	.slide img.mobile-bg {
		width: 100%;
		height: 100vh;
		object-fit: cover;
		object-position: center;
	}
}

.mobile-bg,
.mobile-only {
	display: none;
}

.desktop-only {
	display: block;
}

@media (max-width: 768px) {
	.desktop-bg,
	.desktop-only {
		display: none;
	}

	.mobile-bg,
	.mobile-only {
		display: block;
	}
}

/* Стили для текста */
.hero-description {
	margin-top: 3rem;
	padding: 0 2rem;
	max-width: 800px;
	margin-left: 0;
}

.hero-description p {
	font-size: 1.2rem;
	line-height: 1.6;
	color: #ffffff;
	text-align: left;
	margin-bottom: 1.5rem;
	opacity: 0;
	transform: translateX(-100px);
	transition: all 0.8s ease-out;
	position: relative;
	padding: 1rem 1.5rem;
}

.hero-description p::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(5px);
	border-radius: 10px;
	z-index: -1;
}

.hero-description p.active {
	opacity: 1;
	transform: translateX(0);
}

.hero-description p.active::before {
	opacity: 1;
}

/* Стили для слайдера */
.content-slider {
	width: 100%;
	max-width: 400px;
	margin: 2rem auto;
	border-radius: 10px;
	opacity: 0;
	transform: translateX(-100px);
	transition: all 0.8s ease-out;
	height: 450px;
	padding: 50px 0;
}

.swiper-slide {
	width: 300px;
	height: 400px;
	position: relative;
}

.content-slider.active {
	opacity: 1;
	transform: translateX(0);
}

.swiper-slide {
	background: black;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 450px;
}

.swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.swiper-slide img:fullscreen {
	object-fit: contain;
	background: black;
	width: 100vw !important;
	height: 100vh !important;
}

@media (max-width: 768px) {
	.swiper-slide img:fullscreen {
		object-fit: cover;
	}
}

.swiper-button-next,
.swiper-button-prev {
	color: white !important;
}

.swiper-pagination-bullet {
	background: white !important;
}

.swiper-pagination-bullet-active {
	background: #fff !important;
}

/* Задержки для каждого параграфа */
.paragraph-1.active {
	transition-delay: 0.1s;
}

.paragraph-2 {
	margin-top: 10vh;
}

.paragraph-2.active {
	transition-delay: 0.2s;
}

.video-container {
	width: 100%;
	max-width: 350px;
	margin: 2rem auto;
	height: 622px;
	opacity: 0;
	transform: translateX(-100px);
	transition: all 0.8s ease-out;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.video-container.active {
	opacity: 1;
	transform: translateX(0);
}

.video-slider {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.video-swiper .swiper-slide {
	width: 100%;
	height: 622px;
	overflow: hidden;
	border-radius: 10px;
	position: relative;
}

.video-swiper .swiper-slide iframe {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	position: absolute;
	top: 0;
	left: 0;
}

.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
	color: white;
	background: rgba(0, 0, 0, 0.5);
	padding: 30px;
	border-radius: 5px;
}

.video-swiper .swiper-button-next::after,
.video-swiper .swiper-button-prev::after {
	font-size: 20px;
}

.paragraph-3.active {
	transition-delay: 0.3s;
}

/* CSS переменные */
:root {
	--primary-red: #8b0000;
	--dark-bg: #000000;
}

/* Футер */
footer {
	background-color: transparent;
	padding: 2rem;
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 100;
}

footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: -1;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 0 2rem;
}

.social-container {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.social-links {
	display: flex;
	gap: 1rem;
}

.social-links a {
	color: #fff;
	font-size: 2rem;
	transition: color 0.3s, transform 0.3s ease;
}

.social-links a:hover {
	color: var(--primary-red);
	transform: scale(1.2);
}

.social-links a:active {
	color: var(--primary-red);
	transform: scale(1.2);
}

.social-links a.touched {
	animation: resetColor 0.7s forwards;
}

@keyframes resetColor {
	0% {
		color: var(--primary-red);
		transform: scale(1.2);
	}
	100% {
		color: #fff;
		transform: scale(1);
	}
}

/* Социальное всплывающее окно */
.social-popup {
	display: none;
	position: fixed;
	z-index: 1000;
}

.teppo-popup .popup-content {
	right: 20px;
	left: auto;
}

.popup-content {
	position: fixed;
	top: 100px;
	left: 20px;
	padding: 1rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(5px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-social-links {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 1rem 0.5rem;
}

.popup-social-links a {
	color: #fff;
	font-size: 1.8rem;
	transition: color 0.3s, transform 0.3s;
}

.popup-social-links a:hover {
	color: var(--primary-red);
	transform: scale(1.1);
}

.social-popup.active {
	display: block;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		filter: brightness(0.9);
	}
	50% {
		transform: scale(1.1);
		filter: brightness(1);
	}
	100% {
		transform: scale(1);
		filter: brightness(0.9);
	}
}

@keyframes wave {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}

/* Блокировка горизонтальной ориентации */
@media screen and (orientation: landscape) and (max-width: 900px) {
	body::before {
		content: "Пожалуйста, переверните устройство в вертикальное положение";
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: black;
		color: white;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 20px;
		z-index: 9999;
		font-size: 1.2rem;
	}

	.hero,
	header,
	footer {
		display: none;
	}
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
	.logo::before,
	.teppo-logo::before,
	.logo::after,
	.teppo-logo::after {
		display: none;
	}

	.logo,
	.teppo-logo {
		animation: pulse 2s infinite, wave 4s infinite;
	}

	.logo:active,
	.teppo-logo:active,
	.social-popup.active ~ .logo,
	.social-popup.active ~ .teppo-logo {
		animation: none;
	}
	.header-container {
		flex-direction: row;
		padding: 1rem 1.5rem;
		margin-top: 0.8rem;
		gap: 0.1rem;
		align-items: center;
		justify-content: space-between;
		height: 80px;
	}

	.title-image {
		height: 60px;
		margin: 0 auto;
	}

	.logo-group {
		gap: 8px;
	}

	.teppo-logo {
		height: 45px;
	}

	.logo {
		height: 55px;
	}

	.typewriter {
		font-size: 1.1rem;
		width: 100% !important;
		animation: none;
		white-space: normal;
		padding: 0 10px;
		line-height: 1.4;
	}

	.hero {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.hero-description {
		padding: 0 15px;
		margin-top: 1rem;
	}

	.hero-description p {
		font-size: 0.95rem;
		padding: 1rem;
		margin-bottom: 1rem;
		line-height: 1.5;
		text-align: justify;
	}

	.hero-description p::before {
		border-radius: 8px;
		background: rgba(0, 0, 0, 0.5);
	}

	.content-slider {
		width: calc(100% - 30px);
		margin: 1rem 15px;
		position: relative;
		border-radius: 10px;
		overflow: hidden;
		display: block;
	}

	.slider-container {
		padding-top: 75%;
		position: relative;
		width: 100%;
	}

	.slider-image {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		opacity: 0;
		transition: opacity 0.5s ease-in-out;
	}

	.slider-image.active {
		opacity: 1;
	}

	.slider-arrow {
		padding: 0.5rem;
		font-size: 1rem;
		display: block;
	}

	.footer-content {
		padding: 0.1rem 1rem;
	}

	.footer {
		padding: 0.5rem;
	}

	.contact-info h3 {
		font-size: 1.1rem;
		margin-bottom: 0.5rem;
	}

	.social-container {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
		flex-wrap: wrap;
	}

	.social-container span {
		font-size: 0.9rem;
	}

	.social-links {
		gap: 1.5rem;
	}

	.social-links a {
		font-size: 1.8rem;
	}

	/* Дополнительные улучшения для очень маленьких экранов */
	@media (max-width: 380px) {
		.header-container {
			padding: 0.8rem;
		}

		.title-image {
			height: 55px;
		}

		.teppo-logo {
			height: 35px;
		}

		.logo {
			height: 50px;
		}

		.typewriter {
			font-size: 1rem;
		}

		.hero-description p {
			font-size: 0.9rem;
			padding: 0.8rem;
		}
	}
}

.section-animate {
	opacity: 0;
	transform: translateX(-100px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	will-change: opacity, transform;
}

.section-animate.active {
	opacity: 1;
	transform: translateX(0);
}

.hero-description p,
.content-slider,
.video-container {
	opacity: 0;
	transform: translateX(-100px);
	transition: all 0.8s ease-out;
}

.hero-description p.active,
.content-slider.active,
.video-container.active {
	opacity: 1;
	transform: translateX(0);
}

.swiper-slide {
	background-color: transparent;
}
