@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap&subset=cyrillic');

.gl-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 6, 4, .5);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}

.gl-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.gl-modal {
	font-family: Georgia, serif;
	color: #222;
	--gold: #e6cf9d;
	--gold-deep: #c9a96a;
	--red: #e0343a;
	position: relative;
	width: min(480px, 100%, calc((100vh - 32px) * 2 / 3));
	aspect-ratio: 9 / 16;
	border: 1px solid var(--gold-deep);
	border-radius: 6px;
	/*overflow: hidden;*/
	background: #0c0a08;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	transform: translateY(20px) scale(.96);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	color: var(--gold);
}

.gl-overlay.is-open .gl-modal {
	transform: none;
}

.gl-bg {
	position: absolute;
	inset: 0;
	background: url("/images/galinel-modal-bg.jpg") center bottom no-repeat;
	background-size: cover;
}

.gl-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 6, 4, .96) 0%, rgba(8, 6, 4, .88) 2%, rgba(8, 6, 4, .45) 45%, rgba(8, 6, 4, 0) 62%, rgba(8, 6, 4, 0) 80%, rgba(8, 6, 4, .35) 100%)
}

.gl-content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 29px 29px;
	text-align: center;
}

.gl-logo {
	font-size: 41px;
	font-weight: 500;
	letter-spacing: .22em;
	margin: 0;
	padding-left: .22em;
	line-height: 1;
}

.gl-logo-line {
	width: 43px;
	height: 1px;
	background: var(--gold-deep);
	margin: 8px 0;
}

.gl-tagline {
	font-size: 12px;
	letter-spacing: .38em;
	padding-left: .38em;
	text-transform: uppercase;
	margin: 0;
}

.gl-percent {
	font-size: 120px;
	line-height: 1;
	font-weight: 500;
	color: var(--red);
	margin: 14px 0 0;
	letter-spacing: -.01em;
}

.gl-title {
	font-size: 60px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: .08em;
	padding-left: .08em;
	margin: 0;
	text-transform: uppercase;
}

.gl-sub {
	font-size: 20px;
	letter-spacing: .08em;
	margin: 16px 0 0;
}

.gl-season {
	font-size: 27px;
	letter-spacing: .2em;
	padding-left: .2em;
	margin: 3px 0 0;
	font-weight: 500;
}

.gl-season-line {
	width: 43px;
	height: 1px;
	background: var(--gold-deep);
	margin: 12px 0 15px;
}

.gl-code {
	font-family: "Times New Roman", serif;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 43px;
	border: 1px solid var(--gold-deep);
	border-radius: 4px;
	background: rgba(0, 0, 0, .78);
	color: var(--gold);
	font-size: 24px;
	letter-spacing: .18em;
}

.gl-delivery {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 17px 0 0;
	font-size: 18px;
	color: #f1e4c4;
}

.gl-delivery svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.gl-cta {
	font-family: "Times New Roman", serif;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 19px;
	border: 1px solid var(--gold-deep);
	border-radius: 4px;
	background: linear-gradient(180deg, #d9c18c, #bd9d5e);
	color: #1a140a;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 24px;
	font-weight: 800;
	transition: filter .2s, transform .2s;
}

.gl-cta:hover {
	filter: brightness(1.08);

}

.gl-cta svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.gl-close {
	position: absolute;
	top: 16px;
	right: 17px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--gold);
	transition: transform .25s, color .2s;
}

.gl-close:hover {
	transform: rotate(90deg);
	color: #fff;
}

.gl-close svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-width: 1.6;
	fill: none;
	stroke-linecap: square;
}

.gl-close:focus-visible,
.gl-cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 520px),
(max-height: 760px) {
	.gl-modal {
		width: min(360px, 100%, calc((100vh - 32px) * 2 / 3));
	}

	.gl-content {
		padding: 18px 22px 22px;
	}

	.gl-logo {
		font-size: 31px;
	}

	.gl-logo-line,
	.gl-season-line {
		width: 32px;
	}

	.gl-logo-line {
		margin: 6px 0;
	}

	.gl-tagline {
		font-size: 9px;
	}

	.gl-percent {
		font-size: 110px;
		margin-top: 0px;
		line-height: 40px;
		margin-bottom: 5px
	}

	.gl-percent small {
		font-size: 50px;
	}

	.gl-title {
		font-size: 30px;
	}

	.gl-sub {
		font-size: 15px;
		margin-top: 0px;
	}

	.gl-season {
		font-size: 20px;
		margin-top: 2px;
	}

	.gl-season-line {
		margin: 9px 0 11px;
	}

	.gl-code {
		font-size: 18px;
		padding: 5px 32px;
		gap: 9px;
		font-weight: 600
	}

	.gl-delivery {
		font-size: 13px;
		gap: 8px;
		margin-top: 5px;
	}

	.gl-delivery svg {
		width: 18px;
		height: 18px;
	}

	.gl-cta {
		font-size: 18px;
		padding-top: 9px;
		padding-right: 14px;
		padding-left: 14px;
		padding-bottom: 9px;
		gap: 9px;
	}

	.gl-cta svg {
		width: 18px;
		height: 18px;
	}

	.gl-close {
		top: 12px;
		right: 13px;
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gl-overlay,
	.gl-modal {
		transition: none;
	}
}