/* Иконка видео на баннере и попап с плеером */

.banner-video-link {
    position: absolute;
    bottom: 400px;
    right: 150px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 64px);
    padding: 8px 18px 8px 8px;
    margin: 0;
    border: 0;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.94);
    color: #2d3040;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.banner-video-link:hover,
.banner-video-link:focus-visible {
	background: #fff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
	transform: translateY(-2px);
	outline: none;
}

.banner-video-link:focus-visible {
	box-shadow: 0 0 0 3px rgba(212, 173, 55, 0.55), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.banner-video-link__icon-wrapper {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
}

.banner-video-link__icon {
	position: relative;
	z-index: 2;
	display: block;
	width: 30px;
	height: auto;
}

.banner-video-link__wave {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(212, 173, 55, 0.35);
	animation: banner-video-wave 2s ease-out infinite;
	pointer-events: none;
}

@keyframes banner-video-wave {
	0% {
		opacity: 0.9;
		transform: scale(0.7);
	}
	70% {
		opacity: 0;
		transform: scale(1.45);
	}
	100% {
		opacity: 0;
		transform: scale(1.45);
	}
}

.banner-video-link__title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
}

.banner-video-link__size {
	font-weight: 400;
	font-size: 12px;
	line-height: 1.2;
	color: #8a8f9c;
	white-space: nowrap;
}

/* Попап */

.banner-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.banner-video-modal.is-open {
	display: flex;
}

.banner-video-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.banner-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1200px, 100%);
	max-height: calc(100vh - 48px);
	border-radius: 12px;
	background: #000;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	animation: banner-video-modal-in 0.25s ease;
}

@keyframes banner-video-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.banner-video-modal__content {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: calc(100vh - 48px);
	background: #000;
}

.banner-video-modal__content iframe,
.banner-video-modal__content video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.banner-video-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.banner-video-modal__close:hover,
.banner-video-modal__close:focus-visible {
	background: rgba(0, 0, 0, 0.9);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.banner-video-link,
	.banner-video-modal__dialog {
		animation: none;
		transition: none;
	}

	.banner-video-link__wave {
		animation: none;
	}
}

body.banner-video-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.banner-video-link {
		left: 16px;
		bottom: 60px;
		max-width: calc(100% - 32px);
		padding: 6px 14px 6px 6px;
		gap: 8px;
	}

	.banner-video-link__icon-wrapper {
		width: 44px;
		height: 44px;
	}

	.banner-video-link__icon {
		width: 26px;
	}

	.banner-video-link__title {
		font-size: 13px;
	}

	.banner-video-modal {
		padding: 12px;
	}

	.banner-video-modal__dialog {
		border-radius: 8px;
	}

	.banner-video-modal__close {
		top: 8px;
		right: 8px;
		width: 36px;
		height: 36px;
	}
}
