.lead-magnet {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.48);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lead-magnet.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lead-magnet__inner {
	position: relative;
	width: min(92vw, 1280px);
	max-height: calc(100vh - 40px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lead-magnet__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.lead-magnet__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 40px);
	object-fit: contain;
}

.lead-magnet__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.lead-magnet__close:before,
.lead-magnet__close:after {
	position: absolute;
	top: 50%;
	left: 50%;
	content: '';
	width: 24px;
	height: 4px;
	border-radius: 999px;
	background: #9B7652;
	transform-origin: center;
}

.lead-magnet__close:before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.lead-magnet__close:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.lead-magnet__close:hover {
	transform: scale(1.06);
	background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 767.98px) {
	.lead-magnet {
		padding: 12px;
	}

	.lead-magnet__inner {
		width: min(92vw, 420px);
		max-height: calc(100vh - 24px);
		border-radius: 16px;
	}

	.lead-magnet__image {
		max-height: calc(100vh - 24px);
	}

	.lead-magnet__close {
		top: 10px;
		right: 10px;
		width: 42px;
		height: 42px;
	}

	.lead-magnet__close:before,
	.lead-magnet__close:after {
		width: 22px;
		height: 4px;
	}
}
