/* ========== Главная страница ========== */
.page-home {
	overflow: hidden;
	gap: var(--padding-y);
}


/* ========== Медиа-слайдер ========== */
.media-slider__slide {
	position: relative;

	aspect-ratio: 100 / 44;
	max-height: calc(100vh - var(--header-height));

	overflow: hidden;
	background: var(--color-black-20a);
}

.media-slider__link,
.media-slider__slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

.media-slider__video,
.media-slider__img {
	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

/* ---------- Контент слайда ---------- */
.media-slider__content {
	position: absolute;
	inset: 0;

	width: 100%;
	max-width: 794px;
	height: 100%;
	padding: var(--padding-x);
	padding-bottom: calc(var(--padding-x) * 2);
	gap: 8px;
}

.media-slider__content.align_center {
	margin: 0 auto;
}

.media-slider__content .button-pink {
	margin-top: 16px;
}

/* ---------- Элементы управления ---------- */
.media-slider__controls {
	position: absolute;
	bottom: 20px;
	left: 0;

	width: 100%;
	padding: 0 var(--padding-x);
}

.media-slider__swiper .swiper-pagination-bullet {
	background-color: var(--color-white);
}

/* ---------- Анимация появления текста ---------- */
.media-slider__content .title-main,
.media-slider__content .title-l,
.media-slider__content .button-pink {
	opacity: 0.5;

	transform: translateY(12px) scale(0.98);
	transition:
		opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.media-slider__slide.swiper-slide-active .title-main {
	opacity: 1;

	transform: translateY(0) scale(1);
	transition-delay: 0.15s;
}

.media-slider__slide.swiper-slide-active .title-l {
	opacity: 1;

	transform: translateY(0) scale(1);
	transition-delay: 0.3s;
}

.media-slider__slide.swiper-slide-active .button-pink {
	opacity: 1;

	transform: translateY(0) scale(1);
	transition-delay: 0.45s;
}

@media (max-width: 1279px) {
	.media-slider__slide {
		aspect-ratio: 100 / 125.5;
	}

	.media-slider__content {
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.media-slider__slide {
		aspect-ratio: 100 / 154.7;
	}

	.media-slider__content {
		padding-bottom: 60px;
	}
}


/* ========== Слоган ========== */
.slogan__container {
	position: relative;

	width: 100%;
	height: 600px;

	background: var(--color-black-20a);
}

.slogan__container video {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

/* ---------- Блок с текстом ---------- */
.slogan__block {
	position: relative;
	z-index: 3;

	width: 568px;
	padding: 60px 40px;
	gap: 24px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 0 120px;
	overflow: hidden;

	background: linear-gradient(110deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 52.7%, rgba(255, 255, 255, 0.8) 99.12%);
	box-shadow: 0 0 20px 0 var(--color-apricot);
	backdrop-filter: blur(8px);
}

/* Декоративное свечение при наведении */
.slogan__block::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;

	border-radius: inherit;

	background: radial-gradient(ellipse at 40% 20%,
			rgba(255, 207, 135, 0.35) 0%,
			rgba(255, 180, 120, 0.15) 50%,
			transparent 70%);
	opacity: 0;

	transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}

.slogan__block:hover::after {
	opacity: 1;
}

@media (max-width: 767px) {
	.slogan__block {
		width: 100%;
		max-width: 500px;
		margin: auto var(--padding-x);
		padding: 40px 30px;
		gap: 12px;
	}
}


/* ========== Видео-блок ========== */
.video__container {
	position: relative;

	width: 100%;
	max-height: 100vh;
	aspect-ratio: 2 / 1;
	margin: 0 auto;

	overflow: hidden;
}

.video {
	position: absolute;
	top: 0;
	left: 0;
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

/* ---------- Кнопка управления звуком ---------- */
.sound-toggle {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: flex;
	justify-content: center;
	align-items: center;

	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;

	font-size: 0;
	line-height: 0;

	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(4px);
	outline: none;
	cursor: pointer;
	user-select: none;

	transition:
		transform 0.3s ease,
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.sound-toggle:hover {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

	transform: scale(1.02);
}

.sound-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	outline: 2px solid #fff;
	outline-offset: 2px;

	transform: scale(1.02);
}

/* Иконки звука */
.sound-toggle::before,
.sound-toggle::after {
	content: '';

	width: 80%;
	height: 80%;

	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;

	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

.sound-toggle::before {
	background-image: url('/assets/image/icon-sound-max.svg');
	opacity: 0;

	transform: scale(0.8);
}

.sound-toggle::after {
	background-image: url('/assets/image/icon-sound-mute.svg');
	opacity: 1;

	transform: scale(1);
}

/* Состояние «звук включен» */
.sound-toggle.sound-on::before {
	position: initial;
	opacity: 1;

	transform: scale(1);
}

.sound-toggle.sound-on::after {
	position: absolute;
	opacity: 0;

	transform: scale(0.8);
}

/* Состояние «звук выключен» */
.sound-toggle.sound-off::before {
	position: absolute;
	opacity: 0;

	transform: scale(0.8);
}

.sound-toggle.sound-off::after {
	position: initial;
	opacity: 1;

	transform: scale(1);
}

@media (max-width: 767px) {
	.sound-toggle {
		right: 8px;
		bottom: 8px;

		width: 24px;
		height: 24px;
	}
}


/* ========== Гармония ========== */
.garmony__container {
	display: grid;
	grid-template-columns: 590px 1fr;

	gap: 20px;

	background: var(--color-soft-rose);
}

.garmony__img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.garmony__container-block {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;

	padding: 16px 56px;
}

.garmony .title-xl {
	margin-bottom: 20px;
}

.garmony .button-pink {
	margin-top: 40px;
}

.garmony .txt-secondary {
	margin-top: 100px;
}

@media (max-width: 1279px) {
	.garmony__container {
		grid-template-columns: 44.8vw 1fr;
		gap: 0;
	}

	.garmony__container-block {
		justify-content: center;

		padding: 24px 16px 20px 16px;
	}

	.garmony .button-pink {
		width: 100%;
		margin-top: 24px;
	}

	.garmony .txt-secondary {
		margin-top: 3.1vw;
	}
}

@media (max-width: 767px) {
	.garmony__container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.garmony__container-block {
		justify-content: flex-start;

		padding: 0 var(--padding-x) var(--padding-x);
	}

	.garmony .txt-secondary {
		margin-top: 24px;
	}
}


/* ========== Большой баннер ========== */
.bnr-big {
	position: relative;

	width: 100%;
	height: 600px;

	overflow: hidden;

	background: var(--color-black-20a);
}

.bnr-big::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;

	background-image: url(/assets/image/bnr-big.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;

	transition:
		filter 0.3s ease,
		transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bnr-big:hover::before {
	filter: brightness(0.85);

	transform: scale(1.02);
}

.bnr-big__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	height: 100%;
	max-width: 685px;
	margin: 0 auto;
	gap: 24px;
}

@media (max-width: 1279px) {
	.bnr-big {
		height: 46.1vw;
	}

	.bnr-big__container {
		max-width: 455px;
	}
}

@media (max-width: 767px) {
	.bnr-big {
		height: 149.3vw;
		max-height: 560px;
	}

	.bnr-big::before {
		background-position: 70% center;
	}

	.bnr-big__container {
		max-width: 295px;
	}
}


/* ========== Категории ========== */
.category {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 1fr);

	gap: 20px;

	grid-auto-flow: row;
	grid-template-areas:
		"cat-one cat-one cat-two cat-three"
		"cat-one cat-one cat-six cat-six"
		"cat-four cat-five cat-six cat-six";
}

/* ---------- Распределение элементов по сетке ---------- */
.cat-one {
	grid-area: cat-one;
}

.cat-two {
	grid-area: cat-two;
}

.cat-three {
	grid-area: cat-three;
}

.cat-four {
	grid-area: cat-four;
}

.cat-five {
	grid-area: cat-five;
}

.cat-six {
	grid-area: cat-six;
}

.category__item {
	position: relative;

	min-height: 285px;

	background: var(--color-black-20a);

	transition: 0.3s ease;
	animation-duration: 0.9s;
}

.category__item-link {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;

	width: 100%;
	height: 100%;

	font-size: 40px;
	font-weight: 400;
	line-height: 48px;
	text-align: center;
	color: var(--color-white);
}

.category__item-img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.category__item:hover .category__item-img {
	filter: brightness(0.7);
}

.category__item:hover {
	background: #0000005e;
}

@media (max-width: 1279px) {
	.category__item {
		min-height: 20.3vw;
	}

	.category__item-link {
		font-size: 20px;
		line-height: 26px;
	}
}

@media (max-width: 767px) {
	.category {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(4, 1fr);

		gap: 12px;

		grid-template-areas:
			"cat-one cat-four"
			"cat-one cat-five"
			"cat-three cat-six"
			"cat-two cat-six";
	}
}