.hnm-homepage-content {
	box-sizing: border-box;
	padding: 42px 22px;
	width: 100%;
}

.hnm-homepage-content__inner {
	background: #fff;
	border: 1px solid rgba(20, 30, 40, 0.09);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(20, 30, 40, 0.07);
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1100px;
	padding: 36px 40px;
}

.hnm-homepage-content__inner > :first-child {
	margin-top: 0;
}

.hnm-homepage-content__inner > :last-child {
	margin-bottom: 0;
}

.hnm-homepage-content__inner img {
	height: auto;
	max-width: 100%;
}

.hnm-homepage-content__inner ul,
.hnm-homepage-content__inner ol {
	padding-left: 1.35em;
}

.hnm-popup {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.22s ease;
	visibility: hidden;
	z-index: 999999;
}

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

.hnm-popup__backdrop {
	background: rgba(7, 12, 16, 0.76);
	inset: 0;
	position: absolute;
}

.hnm-popup__dialog {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	max-height: calc(100vh - 48px);
	max-width: min(820px, calc(100vw - 40px));
	position: relative;
	transform: translateY(12px) scale(0.985);
	transition: transform 0.25s ease;
	width: auto;
	z-index: 1;
}

.hnm-popup.is-visible .hnm-popup__dialog {
	transform: translateY(0) scale(1);
}

.hnm-popup__dialog img {
	border-radius: 12px;
	display: block;
	height: auto;
	max-height: calc(100vh - 48px);
	max-width: min(820px, calc(100vw - 40px));
	object-fit: contain;
	width: auto;
}

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

.hnm-popup__close {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	color: #1d2327;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 28px;
	font-weight: 400;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: -14px;
	top: -14px;
	width: 40px;
	z-index: 2;
}

.hnm-popup__close:hover,
.hnm-popup__close:focus {
	background: #f0f0f1;
	color: #000;
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

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

@media (max-width: 600px) {
	.hnm-homepage-content {
		padding: 28px 15px;
	}

	.hnm-homepage-content__inner {
		border-radius: 9px;
		padding: 26px 22px;
	}

	.hnm-popup__dialog,
	.hnm-popup__dialog img {
		max-height: calc(100vh - 32px);
		max-width: calc(100vw - 24px);
	}

	.hnm-popup__close {
		right: 6px;
		top: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hnm-popup,
	.hnm-popup__dialog {
		transition: none;
	}
}
