.ahp-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 280ms ease;
}

.ahp-popup.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ahp-popup__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(11, 66, 97, 0.38), transparent 42%),
		radial-gradient(circle at 80% 80%, rgba(122, 31, 48, 0.26), transparent 40%),
		rgba(16, 28, 38, 0.6);
	backdrop-filter: blur(3px);
}

.ahp-popup__panel {
	position: relative;
	width: min(840px, 100%);
	max-height: min(85vh, 780px);
	overflow: auto;
	border-radius: 22px;
	padding: 34px 32px 28px;
	background: linear-gradient(145deg, #fdfcf9 0%, #fff 46%, #f6f3ee 100%);
	color: #16242f;
	box-shadow:
		0 38px 90px rgba(14, 25, 33, 0.28),
		0 0 0 1px rgba(189, 157, 98, 0.26) inset;
	animation: ahpPopupIn 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ahp-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	border: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(21, 34, 45, 0.08);
	color: #15222d;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.ahp-popup__close:hover {
	background: rgba(21, 34, 45, 0.15);
	transform: rotate(90deg);
}

.ahp-popup__eyebrow {
	margin: 0 0 8px;
	font: 700 12px/1.2 "Segoe UI", "Trebuchet MS", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8f5f14;
}

.ahp-popup__title {
	margin: 0 0 20px;
	font: 700 clamp(28px, 3.6vw, 42px) / 1.1 "Garamond", "Times New Roman", serif;
	color: #0c344b;
}

.ahp-popup__content p {
	margin: 0 0 16px;
	font: 400 clamp(16px, 2vw, 18px) / 1.72 "Cambria", "Palatino Linotype", serif;
	color: #1a2f3d;
}

.ahp-popup__content p:last-child {
	margin-bottom: 0;
}

.ahp-popup__content a {
	color: #0f5d7f;
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ahp-popup__signature {
	padding-top: 8px;
	font-style: italic;
	color: #3b4f5a;
}

.ahp-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(120deg, #0f5d7f, #0b4a66);
	color: #fff;
	font: 600 15px/1.2 "Segoe UI", "Trebuchet MS", sans-serif;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 16px 28px rgba(15, 93, 127, 0.32);
	transition: transform 170ms ease, box-shadow 170ms ease;
}

.ahp-popup__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 34px rgba(15, 93, 127, 0.36);
}

body.ahp-popup-open {
	overflow: hidden;
}

@keyframes ahpPopupIn {
	from {
		transform: translateY(14px) scale(0.98);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@media (max-width: 640px) {
	.ahp-popup {
		padding: 14px;
	}

	.ahp-popup__panel {
		padding: 26px 18px 20px;
		border-radius: 18px;
	}

	.ahp-popup__title {
		margin-right: 28px;
	}
}
