.arc-popup {
	position: fixed;
	inset: 0;
	z-index: 10040;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.arc-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.arc-popup[hidden] {
	display: none;
}

.arc-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 21, 22, 0.62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.arc-popup__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: min(88vh, 760px);
	overflow: auto;
	background: #faf8f6;
	border: 1px solid #d5c6bc;
	box-shadow: 0 28px 72px rgba(24, 21, 22, 0.22);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.28s ease;
}

.arc-popup.is-open .arc-popup__dialog {
	transform: none;
}

.arc-popup.is-image .arc-popup__dialog {
	width: min(640px, 100%);
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
}

.arc-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #181516;
	color: #ede8e6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.arc-popup.is-image .arc-popup__close {
	top: -10px;
	right: -10px;
	background: #181516;
	box-shadow: 0 8px 20px rgba(24, 21, 22, 0.28);
}

.arc-popup__close:hover {
	background: #b1947f;
	transform: scale(1.04);
}

.arc-popup__close .icon-cross {
	font-size: 12px;
	line-height: 1;
}

.arc-popup__body {
	padding: 44px 32px 32px;
}

.arc-popup.is-image .arc-popup__body {
	padding: 0;
}

.arc-popup__html {
	color: #181516;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	line-height: 1.65;
}

.arc-popup__html h1,
.arc-popup__html h2,
.arc-popup__html h3 {
	font-family: Karrik, sans-serif;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 0.6rem;
	color: #181516;
}

.arc-popup__html p {
	margin: 0 0 0.85rem;
}

.arc-popup__html a {
	color: #594436;
}

.arc-popup__html img {
	max-width: 100%;
	height: auto;
}

.arc-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	min-height: 48px;
	padding: 0 22px;
	background: #b1947f;
	color: #181516;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.arc-popup__cta:hover {
	background: #d5c6bc;
}

.arc-popup__image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #d5c6bc;
	box-shadow: 0 24px 64px rgba(24, 21, 22, 0.2);
}

.arc-popup__image-link {
	display: block;
}

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

.arc-popup .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.arc-popup {
		padding: 16px 12px;
		align-items: flex-end;
	}

	.arc-popup__dialog {
		width: 100%;
		max-height: 86vh;
	}

	.arc-popup__body {
		padding: 40px 20px 24px;
	}

	.arc-popup.is-image .arc-popup__close {
		top: 8px;
		right: 8px;
	}
}
