/* Всплывающая форма обратной связи */
.vega-modal[hidden] {
	display: none !important;
}

.vega-modal:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.vega-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 27, 41, 0.45);
	backdrop-filter: blur(2px);
}

.vega-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 420px;
	margin: 8vh auto;
	background: #fff;
	border-radius: var(--radius, 18px);
	box-shadow: var(--shadow-lg, 0 30px 70px -20px rgba(0, 74, 105, 0.28));
	padding: 28px 24px 26px;
	border: 1px solid var(--border, #dde6ee);
	animation: vega-modal-in 0.22s ease-out;
}

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

.vega-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: none;
	background: var(--primary-soft, #eaf3f8);
	color: var(--primary, #004a69);
	border-radius: var(--radius-xs, 8px);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.vega-modal__close:hover {
	background: var(--primary-tint, #d6e7f0);
}

.vega-modal__title {
	margin: 0 40px 8px 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text, #0e1b29);
	line-height: 1.25;
}

.vega-modal__lead {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--text-2, #2a3f54);
	line-height: 1.5;
}

.vega-modal__status {
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
}

.vega-modal__status.is-error {
	color: #b91c1c;
}

.vega-modal__status.is-ok {
	color: var(--primary-2, #0072a3);
}

.vega-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

body.vega-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.vega-modal__dialog {
		box-sizing: border-box;
		width: calc(100vw - 32px);
		max-width: 400px;
		margin: min(8vh, 40px) auto;
		padding: 22px 18px 20px;
	}
	.vega-modal__title {
		font-size: 1.15rem;
	}
}
