.journal-home-hero {
	--hero-accent: #ef5b40;
	--hero-border: #e5e7eb;
	--hero-ink: #171717;
	background: #f5f3f2;
	padding: 24px 0;
}

.journal-home-hero *,
.journal-home-hero *::before,
.journal-home-hero *::after {
	box-sizing: border-box;
}

.journal-home-hero--full .journal-home-hero__inner {
	width: 100%;
}

/* Match the outer 1280px homepage content grid. */
.journal-home-hero--fixed .journal-home-hero__inner.container {
	width: 100%;
	max-width: 1280px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 0;
	padding-left: 0;
}

.journal-home-hero__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(310px, auto);
	background: #fff;
	border-top: 1px solid var(--hero-border);
	border-left: 1px solid var(--hero-border);
}

.journal-home-hero__card {
	min-width: 0;
	background: #fff;
	border-right: 1px solid var(--hero-border);
	border-bottom: 1px solid var(--hero-border);
}

.journal-home-hero__card--lead {
	grid-column: span 2;
}

/* Optional fourth-cell RTB unit. Keep third-party markup inside the showcase grid. */
.journal-home-hero__card--ad {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.journal-home-hero__ad-shell {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 310px;
	padding: 18px 20px 20px;
}

.journal-home-hero__ad-label {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 12px;
	color: var(--hero-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.journal-home-hero__ad-content {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 250px;
	overflow: hidden;
}

.journal-home-hero__ad-content > div,
.journal-home-hero__ad-content > [id^="yandex_rtb_"] {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
}

.journal-home-hero__ad-content iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	border: 0;
}

.journal-home-hero__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--hero-ink);
	text-decoration: none !important;
}

.journal-home-hero__media {
	position: relative;
	aspect-ratio: 3 / 2;
	height: auto;
	min-height: 0;
	overflow: hidden;
	background: #ddd;
}

.journal-home-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.journal-home-hero__link:hover .journal-home-hero__media img {
	transform: scale(1.025);
}

.journal-home-hero__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 20px;
}

.journal-home-hero__category {
	margin-bottom: 8px;
	color: var(--hero-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.journal-home-hero__title {
	margin: 0;
	color: var(--hero-ink);
	font-size: clamp(22px, 1.6vw, 32px);
	font-weight: 700;
	line-height: 1.18;
}

.journal-home-hero__excerpt {
	margin: 12px 0 0;
	color: #5f6368;
	font-size: 16px;
	line-height: 1.45;
}

.journal-home-hero__meta {
	margin-top: auto;
	padding-top: 22px;
	color: #777;
	font-size: 14px;
}

.journal-home-hero__card--lead .journal-home-hero__link,
.journal-home-hero__stage .journal-home-hero__link {
	position: relative;
	min-height: 560px;
}

.journal-home-hero__card--lead .journal-home-hero__media,
.journal-home-hero__stage .journal-home-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.journal-home-hero__card--lead .journal-home-hero__media::after,
.journal-home-hero__stage .journal-home-hero__media::after {
	position: absolute;
	inset: 28% 0 0;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .88));
	content: "";
}

.journal-home-hero__card--lead .journal-home-hero__content,
.journal-home-hero__stage .journal-home-hero__content {
	position: relative;
	z-index: 1;
	justify-content: flex-end;
	max-width: 85%;
	padding: 32px;
}

.journal-home-hero__card--lead .journal-home-hero__title,
.journal-home-hero__stage .journal-home-hero__title {
	color: #fff;
	font-size: clamp(32px, 3vw, 52px);
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.journal-home-hero__card--lead .journal-home-hero__excerpt,
.journal-home-hero__card--lead .journal-home-hero__meta,
.journal-home-hero__stage .journal-home-hero__excerpt,
.journal-home-hero__stage .journal-home-hero__meta {
	color: rgba(255, 255, 255, .9);
}

.journal-home-hero__stage {
	position: relative;
	overflow: hidden;
	background: #171717;
}

.journal-home-hero__slides {
	position: relative;
	min-height: 560px;
}

.journal-home-hero__slide {
	position: absolute;
	inset: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity .35s ease, visibility .35s ease;
}

.journal-home-hero__slide.is-active {
	visibility: visible;
	opacity: 1;
}

.journal-home-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	width: 52px;
	height: 52px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #171717;
	font-size: 26px;
	line-height: 1;
	place-items: center;
}

.journal-home-hero__arrow--prev { left: 22px; }
.journal-home-hero__arrow--next { right: 22px; }

.journal-home-hero__dots {
	position: absolute;
	right: 0;
	bottom: 22px;
	left: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.journal-home-hero__dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
}

.journal-home-hero__dots button.is-active { background: var(--hero-accent); }

.journal-home-hero__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin-top: 1px;
	background: var(--hero-border);
}

.journal-home-hero__thumb {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	align-items: center;
	min-width: 0;
	min-height: 92px;
	padding: 10px;
	border: 0;
	background: #fff;
	color: var(--hero-ink);
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	gap: 12px;
}

.journal-home-hero__thumb img {
	width: 84px;
	height: 68px;
	object-fit: cover;
}

.journal-home-hero__thumb.is-active { box-shadow: inset 0 4px 0 var(--hero-accent); }

@media (max-width: 991px) {
	.journal-home-hero { padding: 16px 0; }
	.journal-home-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.journal-home-hero__card--lead { grid-column: 1 / -1; }
	.journal-home-hero__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.journal-home-hero {
		padding: 12px 15px;
		background: #fff;
	}

	.journal-home-hero--fixed .journal-home-hero__inner.container { width: 100%; padding: 0; }
	.journal-home-hero__grid { display: block; border: 0; }
	.journal-home-hero__card { border: 1px solid var(--hero-border); border-radius: 0; }
	.journal-home-hero__card + .journal-home-hero__card { margin-top: 12px; }
	.journal-home-hero__card--lead .journal-home-hero__link,
	.journal-home-hero__stage .journal-home-hero__link,
	.journal-home-hero__slides { min-height: 430px; }
	.journal-home-hero__card--lead .journal-home-hero__content,
	.journal-home-hero__stage .journal-home-hero__content { max-width: 100%; padding: 22px; }
	.journal-home-hero__card--lead .journal-home-hero__title,
	.journal-home-hero__stage .journal-home-hero__title { font-size: 30px; }
	.journal-home-hero__title { font-size: 23px; }
	.journal-home-hero__thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.journal-home-hero__thumb { flex: 0 0 82%; scroll-snap-align: start; }
	.journal-home-hero__arrow { width: 44px; height: 44px; }
	.journal-home-hero__arrow--prev { left: 12px; }
	.journal-home-hero__arrow--next { right: 12px; }
	.journal-home-hero__ad-shell { min-height: 320px; padding: 16px; }
	.journal-home-hero__ad-content { min-height: 260px; }
}
