:root {
	--avl-ink: #18211d;
	--avl-muted: #5d6862;
	--avl-border: #d9ded9;
	--avl-accent: #12805c;
	--avl-accent-dark: #0b5e43;
	--avl-surface: #ffffff;
	--avl-page: #eef3ef;
}

body.avl-popup-page {
	margin: 0;
	background: var(--avl-page);
	color: var(--avl-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.avl-popup-open,
body.avl-popup-open {
	overflow: hidden;
}

.avl-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	min-height: 100vh;
	padding: 28px;
	display: grid;
	place-items: center;
	background: rgba(10, 21, 17, 0.62);
	box-sizing: border-box;
	overflow: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.avl-modal {
	position: relative;
	width: min(720px, 100%);
	max-height: calc(100vh - 56px);
	background: var(--avl-surface);
	border-radius: 8px;
	overflow: auto;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.avl-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--avl-ink);
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.avl-content {
	padding: 38px;
}

.avl-kicker {
	margin: 0 0 8px;
	color: var(--avl-accent-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.avl-content h1 {
	margin: 0 38px 12px 0;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.06;
	letter-spacing: 0;
	color: var(--avl-ink);
}

.avl-excerpt {
	margin: 0 0 20px;
	color: var(--avl-muted);
	font-size: 17px;
	line-height: 1.55;
}

.avl-details {
	color: var(--avl-ink);
	font-size: 15px;
	line-height: 1.65;
}

.avl-details img {
	max-width: 100%;
	height: auto;
}

.avl-form {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--avl-border);
	text-align: center;
}

.avl-form-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
}

.avl-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--avl-ink);
}

.avl-form input {
	min-height: 46px;
	border: 1px solid var(--avl-border);
	border-radius: 6px;
	padding: 0 13px;
	font: inherit;
	color: var(--avl-ink);
	background: #fff;
	box-sizing: border-box;
}

.avl-form input:focus {
	border-color: var(--avl-accent);
	outline: 2px solid rgba(18, 128, 92, 0.18);
}

.avl-form .avl-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 220px;
	max-width: 100%;
	min-height: 50px;
	margin: 16px auto 0 !important;
	padding: 0 28px !important;
	border: none !important;
	border-radius: 6px !important;
	background: #12805c !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.avl-form .avl-submit:hover,
.avl-form .avl-submit:focus {
	background: #0b5e43 !important;
	color: #fff !important;
}

@media (max-width: 760px) {
	.avl-overlay {
		padding: 12px;
		align-items: start;
	}

	.avl-modal {
		max-height: none;
	}

	.avl-content {
		padding: 26px 20px;
	}

	.avl-content h1 {
		margin-right: 34px;
		font-size: 30px;
	}

	.avl-form-grid {
		grid-template-columns: 1fr;
	}
}
