/**
 * Попап заявки (Fancybox HTML) — в стиле подвала сайта.
 * Подключать после jquery.fancybox.css и style.css.
 */

.rv-popup-src{
    display: none;
}

.fancybox-slide--html {
	padding: 16px;
}

.fancybox-slide--html .fancybox-content {
	padding: 0;
	margin: 0;
	background: transparent;
	overflow: visible;
	max-width: min(100vw - 32px, 420px);
	vertical-align: middle;
}

.fancybox-slide--html .fancybox-close-small {
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	opacity: 1;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.fancybox-slide--html .fancybox-close-small:hover {
	background: rgba(205, 44, 44, 0.85);
	opacity: 1;
}

.fancybox-slide--html .fancybox-close-small:focus {
	outline: 2px solid rgba(205, 44, 44, 0.5);
	outline-offset: 2px;
}

.rv-popup {
	position: relative;
	background: #1c1c1c url(../img/footer/bg.jpg) right center no-repeat;
	background-size: cover;
	border-radius: 4px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	text-align: left;
}

.rv-popup::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.rv-popup__inner {
	position: relative;
	z-index: 1;
	padding: 32px 28px 28px;
}

.rv-popup__subtitle {
	margin: 0 0 8px;
	font-weight: 500;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	text-transform: lowercase;
}

.rv-popup__title {
	margin: 0 0 12px;
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	color: #fff;
}

.rv-popup__text {
	margin: 0 0 24px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
}

.rv-popup .feedback {
	max-width: none;
}

.rv-popup .rv-form-message {
	margin-bottom: 12px;
}

.rv-popup .rv-form-message_dynamic[hidden] {
	display: none !important;
}

.rv-popup .rv-feedback-consent {
	margin-top: 12px;
}

@media (max-width: 480px) {
	.rv-popup__inner {
		padding: 28px 20px 24px;
	}

	.rv-popup__title {
		font-size: 24px;
		padding-right: 36px;
	}
}
