/* Поп-ап (popups.php): карточка в левом нижнем углу, не перекрывает страницу и не блокирует прокрутку */

.bv-popup {
	position: fixed;
	left: 1.5rem;
	bottom: 1.5rem;
	z-index: 9990;
	width: min(24rem, calc(100vw - 2rem));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--_theme---background, #252525);
	color: var(--_theme---text, #fff);
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .4);
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.bv-popup[hidden] { display: none; }
.bv-popup.is-open { opacity: 1; transform: none; }

.bv-popup_media { aspect-ratio: 16 / 9; background: #1a1a1a; }
.bv-popup_img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bv-popup_body { display: grid; gap: .75rem; padding: 1.25rem 1.25rem 1.5rem; }
.bv-popup_title {
	margin: 0;
	padding-right: 2rem;
	font-family: var(--_typography---font--secondary-family, Impact, sans-serif);
	font-size: 2rem;
	line-height: .95;
	text-transform: uppercase;
	color: var(--_swatch---brand--300-bright, #55ff9a);
}
.bv-popup:not(.bv-popup--no-media) .bv-popup_title { padding-right: 0; }
.bv-popup_text { margin: 0; font-size: .875rem; line-height: 1.45; opacity: .85; }

.bv-popup_actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.bv-popup_btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: .5rem 1rem;
	border: 1px solid var(--_theme---button-secondary--border, #00cd53);
	font-size: .75rem;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--_theme---button-secondary--text, #00cd53);
	background: transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.bv-popup_btn:hover, .bv-popup_btn:focus-visible { background: var(--_theme---button-secondary--background-hover, #00cd53); color: var(--_theme---button-secondary--text-hover, #252525); }
.bv-popup_btn--primary {
	background: var(--_theme---button-primary--background, #00cd53);
	border-color: var(--_theme---button-primary--border, #00cd53);
	color: var(--_theme---button-primary--text, #252525);
}
.bv-popup_btn--primary:hover, .bv-popup_btn--primary:focus-visible {
	background: var(--_theme---button-primary--background-hover, #008536);
	border-color: var(--_theme---button-primary--border-hover, #008536);
	color: var(--_theme---button-primary--text-hover, #252525);
}
.bv-popup_btn:focus-visible, .bv-popup_close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bv-popup_close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(18, 18, 18, .6);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.bv-popup_close:hover { background: rgba(18, 18, 18, .9); }

/* Телефон: компактная полоса внизу — фото квадратом слева */
@media (max-width: 767px) {
	.bv-popup {
		left: .75rem;
		right: .75rem;
		bottom: .75rem;
		width: auto;
		flex-direction: row;
	}
	.bv-popup_media { flex: 0 0 7rem; aspect-ratio: auto; }
	.bv-popup_body { flex: 1 1 auto; min-width: 0; gap: .5rem; padding: .875rem 2.75rem .875rem .875rem; }
	.bv-popup_title { font-size: 1.375rem; padding-right: 0; }
	.bv-popup_text { font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.bv-popup_actions { gap: .375rem; }
	.bv-popup_btn { min-height: 2.25rem; padding: .375rem .625rem; font-size: .625rem; }
	.bv-popup_close { top: .25rem; right: .25rem; width: 2.25rem; height: 2.25rem; background: transparent; }
	.bv-popup_close:hover { background: rgba(255, 255, 255, .1); }
}

@media (prefers-reduced-motion: reduce) {
	.bv-popup { transition: none; transform: none; }
}
