/* Video reviews modal (Превью / VK / Rutube) — avantsb.ru */
.vr-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.vr-modal.is-open {
	display: flex;
}
.vr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}
.vr-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	padding: 0 0 28px;
	box-sizing: border-box;
}
.vr-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #2D2D2D;
	z-index: 2;
}
.vr-modal__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 24px 28px 16px;
	padding-right: 56px;
	margin: 0 0 20px;
	border-bottom: 1px solid #E3E7EA;
	background-image: url('/local/templates/new_avantis/images/avantis-brand-video.svg');
	background-repeat: no-repeat;
	background-position: 28px top;
	background-size: auto 100%;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}
.vr-modal__title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: #2D2D2D;
}
.vr-modal__platforms {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.vr-modal__platform {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid #2195D2;
	border-radius: 13px;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;
	color: #2D2D2D;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.vr-modal__platform img {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	object-fit: contain;
	border-radius: 4px;
}
.vr-modal__platform:hover,
.vr-modal__platform.is-active {
	background: #2195D2;
	color: #FFFFFF;
}
.vr-modal__body {
	padding: 0 28px;
}
.vr-modal__player {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
}
.vr-modal__player iframe,
.vr-modal__player .vr-modal__file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.vr-modal__player .vr-modal__file {
	display: none;
	object-fit: contain;
	background: #000;
}
.vr-modal__dialog.is-preview .vr-modal__thumbs,
.vr-modal__dialog.is-preview .vr-modal__video-title {
	display: none !important;
}
.vr-modal__video-title {
	margin: 16px 0 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #171237;
}
.vr-modal__thumbs {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 16px 0 4px;
	-webkit-overflow-scrolling: touch;
}
.vr-modal__thumb {
	flex: 0 0 auto;
	width: 196px;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 13px;
	background: #F1F4F6;
	padding: 10px;
	text-align: left;
	box-sizing: border-box;
}
.vr-modal__thumb.is-active {
	border-color: #2195D2;
}
.vr-modal__thumb-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	box-sizing: border-box;
}
.vr-modal__thumb img,
.vr-modal__thumb iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.vr-modal__thumb iframe {
	pointer-events: none;
	position: absolute;
	inset: 0;
}
.vr-modal__thumb-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin-top: 8px;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
	color: #2D2D2D;
	background: transparent;
}
.vr-modal__empty {
	padding: 24px;
	text-align: center;
	color: #666;
}
@media (max-width: 640px) {
	.vr-modal__dialog {
		padding: 0 0 18px;
	}
	.vr-modal__header {
		padding: 16px 14px 14px;
		padding-right: 44px;
		margin-bottom: 16px;
		background-position: 14px top;
	}
	.vr-modal__body {
		padding: 0 14px;
	}
	.vr-modal__title {
		font-size: 24px;
	}
	.vr-modal__platform {
		font-size: 14px;
		padding: 7px 14px;
	}
	.vr-modal__video-title {
		font-size: 18px;
	}
	.vr-modal__thumb {
		width: 156px;
	}
}
