.about-loft {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.about-loft__content {
	display: flex;
	flex-direction: column;
	gap: 60px;
	flex: 0 1 50%;
}

.loft-content__advantages {
	display: flex;
	flex-wrap: wrap;
	margin-top: auto;
	margin-top: 5px;
}

.advantage-item {
	padding: 15px;
	border: 5px solid var(--site-accent-color);
	color: var(--site-accent-color);
	border-radius: var(--site-extra-border-radius);
	margin-top: -5px;
}

.about-loft__video {
	flex: 0 1 50%;
	position: relative;
	overflow: hidden;
}

.about-loft__video video {
	width: 100%;
	height: fit-content;
	object-fit: cover;
	border-radius: var(--site-border-radius);
	aspect-ratio: 3/2;
}

/* TODO: убрать стили видео, вынести все в отдельный компонент */
.custom-video {
	position: relative;
	border-radius: var(--site-border-radius);
	overflow: hidden;
}

.custom-video-player {
	width: 100%;
	display: block;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* OVERLAY */
.custom-video__play {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	color: #fff;
}

.custom-video__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--site-transition);
}

/* когда видео играет — overlay скрыт */
.custom-video.is-playing .custom-video__overlay {
	opacity: 0;
	pointer-events: none;
}

/* когда overlay должен быть виден */
.custom-video.overlay-visible .custom-video__overlay {
	opacity: 1;
	pointer-events: auto;
}

/* controls */
.custom-video-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	display: flex;
	gap: 15px;
	align-items: center;
	opacity: 0;
	transition: var(--site-transition);
}

.custom-video:hover .custom-video-controls {
	opacity: 1;
}

.custom-video .icon-play,
.custom-video .icon-pause {
	width: 80px;
	height: 80px;
	fill: var(--site-accent-color);
	transition: var(--site-transition);
}

.custom-video .icon-pause {
	width: 50px;
	height: 50px;
}

.custom-video .icon-play:hover {
	fill: var(--site-white-color);
}

.custom-video .icon-pause {
	display: none;
}
.custom-video.is-playing .icon-pause {
	display: block;
}
.custom-video.is-playing .icon-play {
	display: none;
}

.custom-video .icon-play:hover {
	fill: var(--site-white-color);
}

@media (max-width: 767px) {
	.about-loft {
		flex-direction: column-reverse;
		gap: 30px;
	}

	.about-loft__content {
		display: flex;
		flex-direction: column;
		gap: 60px;
		flex: 0 1 50%;
	}

	.loft-content__advantages {
		margin-top: 3px;
	}

	.advantage-item {
		padding: 7px;
		border: 3px solid var(--site-accent-color);
		border-radius: 30px;
		margin-top: -3px;
	}

	.about-loft__video {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}

	.custom-video__play {
		width: 80px;
		height: 80px;
	}

	.custom-video .icon-play {
		width: 60px;
		height: 60px;
	}

	.custom-video .icon-pause {
		width: 40px;
		height: 40px;
	}
}
