html:has(.hero-block) {
	overflow-x: clip;
}

@media (max-width: 576px) {
	body:has(.header__top):has(.hero-block) .site-main {
		margin-top: 107px;
	}
	.hero-block {
		margin-top: 0;
		padding-top: 0;
	}
}

.hero-block {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	color: inherit;
	margin-top: -86px;
	padding-top: 86px;
}
.hero-block + .author {
	margin-top: 15px;
}

.hero-block__inner {
	width: 100%;
	max-width: 1056px;
	margin: 0 auto;
	padding: 30px 16px;
	box-sizing: border-box;
}

.hero-block__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.hero-block__title {
	margin: 0 0 14px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.12;
	color: inherit;
}

.hero-block__title span {
	color: var(--hero-accent, inherit);
}

.hero-block__text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: inherit;
}

.hero-block__text > :first-child {
	margin-top: 0;
}

.hero-block__text > :last-child {
	margin-bottom: 0 !important;
}

.hero-block__text p {
	margin: 0 0 0.75em;
}

.hero-block__text p:last-child {
	margin-bottom: 0 !important;
}

.hero-block__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
}

.hero-adv {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 118px;
	padding: 24px 16px;
	border-radius: 16px;
	box-sizing: border-box;
	background-color: var(--hero-card-bg, transparent);
	color: var(--hero-card-color, inherit);
	transition: background-color 0.2s ease;
}

.hero-adv__top {
	display: flex;
	align-items: end;
	gap: 8px;
	min-height: 52px;
}

.hero-adv__photo {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}

.hero-adv__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	height: auto;
	margin-left: auto;
	border: 0;
	background: none;
	color: inherit;
	line-height: 0;
	text-decoration: none;
}

.hero-adv__arrow svg {
	display: block;
	width: 22px;
	height: 22px;
}

.hero-adv__hit {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.hero-block a.hero-adv__hit,
.hero-block a.hero-adv__hit:hover {
	color: inherit;
	text-decoration: none;
}

.hero-adv__info {
	position: absolute;
	top: 15px;
	right: 15px;
	left: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	line-height: 0;
	cursor: help;
	transform: none;
	appearance: none;
}

.hero-adv__info svg {
	display: block;
	width: 22px;
	height: 22px;
}

.hero-adv__info:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.hero-adv__tip {
	position: absolute;
	top: calc(100% + 10px);
	right: -12px;
	left: auto;
	z-index: 30;
	box-sizing: border-box;
	width: max-content;
	max-width: 220px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #f3f1ed;
	color: #111111;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
	--hero-tip-x: 0px;
	transform: translateX(var(--hero-tip-x)) translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.hero-adv__tip::before {
	content: "";
	position: absolute;
	top: -7px;
	right: var(--hero-tip-arrow, 16px);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 7px 8px;
	border-color: transparent transparent #f3f1ed;
}

.hero-adv__tip p {
	margin: 0 !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.hero-adv__tip a {
	color: #111111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (min-width: 960px) {
	.hero-adv__info:hover .hero-adv__tip,
	.hero-adv__info:focus-visible .hero-adv__tip {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(var(--hero-tip-x)) translateY(0);
	}
}

.hero-adv__tip.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.hero-adv:hover,
.hero-adv:focus-within {
	z-index: 3;
	background-color: var(--hero-card-hover, var(--hero-card-bg, transparent));
}

.hero-adv__foot {
	display: grid;
	grid-template-columns: 1fr 60px;
	align-items: end;
	gap: 10px;
}

.hero-adv__name,
.hero-adv__num {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.hero-adv__num {
	flex-shrink: 0;
	color: var(--hero-accent, currentColor);
	white-space: nowrap;
	text-align: right;
	font-size: 29px;
}

.hero-block__placeholder {
	margin: 0;
	padding: 24px;
	border: 1px dashed currentColor;
	text-align: center;
}

@media (min-width: 960px) {
	.hero-block__layout--split {
		grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
		gap: 32px 40px;
	}

	.hero-block__title {
		font-size: 46px;
	}

	.hero-block__grid {
		gap: 14px;
	}
}

@media (max-width: 575px) {
	.hero-block__title {
		font-size: 28px;
	}

	.hero-adv {
		min-height: 108px;
		padding: 10px;
		border-radius: 10px;
	}

	.hero-adv__foot {
		grid-template-columns: 1fr 45px;
		gap: 5px;
	}

	.hero-adv__photo {
		width: 44px;
		height: 44px;
	}

	.hero-adv__arrow svg {
		width: 20px;
		height: 20px;
	}

	.hero-adv__name {
		font-size: 12px;
	}

	.hero-adv__num {
		font-size: 25px;
	}

	.hero-adv__info {
		top: 10px;
		right: 10px;
	}
	.hero-block__layout {
		gap: 16px;
	}
}


.editor-styles-wrapper .hero-block,
.acf-block-preview .hero-block,
.block-editor-block-list__layout .hero-block {
	width: auto;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
