:root {
    --color-white: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.25);
    --z-background: 0;
    --z-overlay: 1;
    --z-content: 10;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Onest', sans-serif;
    color: var(--color-white);
    background-color: #000;
    overflow-x: hidden;
}

/* Фоновое видео */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);

	background-position: center;
	background-repeat: no-repeat;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-image: url("/poster.webp");
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Обёртка контента */
.content-wrapper {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    min-height: 100dvh;
}

/* Шапка (Логотип и Звук) */
.header {
    position: absolute;
    top: clamp(15px, 2.87vh, 31px);
    left: clamp(20px, 1.35vw, 26px);
    right: clamp(20px, 1.35vw, 26px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
	font-size: 0;
}

.logo img {
    width: clamp(150px, 11.4vw, 219px);
    height: auto;
}

.mute-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-family: 'Onest', sans-serif;
    font-size: clamp(16px, 1.25vw, 24px);
    line-height: 1.5em;
    letter-spacing: -0.01em;
    transition: opacity 0.3s ease;
}

.mute-btn:hover {
    opacity: 0.8;
}

.mute-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-icon svg {
    width: clamp(24px, 1.66vw, 32px);
    height: clamp(24px, 1.66vw, 32px);
}

.mute-btn.is-muted .wave {
    opacity: 0;
}

.mute-btn:not(.is-muted) .cross-line {
    opacity: 0;
}

/* Главный заголовок */
.hero-title {
    position: absolute;
    left: clamp(20px, 3.33vw, 64px);
	bottom: clamp(2.85rem, 14.4dvh, 8.75rem);
    width: clamp(300px, 90vw, 1725px);
    height: auto;
    max-width: calc(100vw - 40px);
}

.hero-title svg {
    width: 100%;
    height: auto;
    display: block;
}


/* Описание */
.hero-description {
    position: absolute;
    left: 50vw;
	bottom: clamp(3.5rem, 19dvh, 11.5rem);
    width: calc(50% - 5.75rem);
    font-size: clamp(14px, 1.04vw, 20px);
    line-height: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* Подвал / Копирайт */
.footer {
    position: absolute;
    left: clamp(20px, 3.33vw, 64px);
    bottom: clamp(15px, 2.87dvh, 31px);
}

.copyright {
    font-size: clamp(12px, 1.04vw, 14px);
    line-height: 1.5em;
}

.copyright a {
	color: var(--color-white);
}

.copyright a:hover {
	text-decoration: none;
}

/* Адаптивность для мобильных экранов: Сбор в столбик, переопределение absolute */

@media screen and (max-width: 1279px) {
    .header {
        position: relative;
        left: unset;
        top: unset;
        right: unset;
        padding: 20px;
    }

    .hero-title {
        position: relative;
        left: unset;
        top: unset;
		bottom: unset;
        margin-top: 40px;
        padding: 0 20px;
    }

    .hero-description {
        position: relative;
        left: unset;
        top: unset;
		bottom: unset;
        width: auto;
		font-size: 13px;
        padding: 0 20px;
        margin-top: clamp(10px, 2dvh, 40px);
    }

	@media (max-aspect-ratio: 1/1) {
		.main-content {
			position: absolute;
			top: 50%;
		}

		.hero-title {
			max-width: unset;
			width: 100%;
			margin-top: 0;
		}

		.hero-description {
			font-size: 16px;
		}

		@media (max-height: 700px) {
			.main-content {
				top: unset;
				bottom: 80px;
			}
		}
	}

	.footer {
		left: 20px;
	}
}


/* Анимации */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}