.an-related-matrix {
	--an-rm-background: var(--an-t-canvas, #fff);
	--an-rm-surface: var(--an-t-surface, #fff);
	--an-rm-text: var(--an-t-text, #17202b);
	--an-rm-muted: var(--an-t-muted, #687386);
	--an-rm-accent: var(--an-t-accent, #b70e29);
	--an-rm-accent-text: var(--an-t-accent_text, #fff);
	--an-rm-border: var(--an-t-border, #d8dde5);
	--an-rm-hover: var(--an-t-hover, #f1f3f6);
	--an-rm-shadow: var(--an-t-shadow, 0 5px 18px #0001);
	--an-rm-gap: 28px;
	--an-rm-ratio: 1.65;
	--an-rm-radius: var(--an-t-radius, 14px);
	overflow: hidden;
	background: var(--an-rm-background);
	color: var(--an-rm-text);
	container-type: inline-size;
	min-height: 0;
	height: auto;
}

.an-related-matrix * {
	box-sizing: border-box;
}

.an-related-matrix__heading {
	margin: 0;
	padding: clamp(30px, 4.5vw, 68px) clamp(20px, 5vw, 76px) clamp(22px, 2.7vw, 42px);
	background: transparent;
	color: var(--an-rm-text);
	font-size: clamp(34px, 4.4vw, 68px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: .95;
	text-transform: uppercase;
}

.an-related-matrix__tabs-wrap {
	position: relative;
}

.an-related-matrix__tabs {
	display: flex;
	overflow-x: auto;
	padding: 0 clamp(20px, 5vw, 76px);
	border-bottom: 1px solid var(--an-rm-border);
	background: transparent;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
	scroll-snap-type: inline proximity;
}

.an-related-matrix__prev,
.an-related-matrix__next {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	transform: translateY(-50%);
	border: 1px solid var(--an-rm-border);
	border-radius: 50%;
	background: var(--an-rm-surface);
	box-shadow: 0 8px 24px #0002;
	color: var(--an-rm-accent);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.an-related-matrix__prev {
	left: 14px;
}

.an-related-matrix__next {
	right: 14px;
}

.an-related-matrix .an-related-matrix__prev[hidden],
.an-related-matrix .an-related-matrix__next[hidden] {
	display: none !important;
}

.an-related-matrix__prev:hover,
.an-related-matrix__next:hover {
	transform: translateY(-50%) scale(1.06);
	box-shadow: 0 10px 28px #0003;
}

.an-related-matrix__prev svg,
.an-related-matrix__next svg {
	width: 22px;
	height: 22px;
}

.an-related-matrix__tab {
	flex: 0 0 auto;
	min-height: 64px;
	padding: 14px 22px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--an-rm-muted);
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	scroll-snap-align: start;
}

.an-related-matrix__tab[aria-selected="true"] {
	border-radius: var(--an-rm-active-tab-radius, 0) var(--an-rm-active-tab-radius, 0) 0 0;
	background: var(--an-rm-accent);
	color: var(--an-rm-accent-text);
}

.an-related-matrix__tab:hover:not([aria-selected="true"]) {
	border-radius: var(--an-rm-active-tab-radius, 0) var(--an-rm-active-tab-radius, 0) 0 0;
	background: var(--an-rm-hover);
	color: var(--an-rm-text);
}

.an-related-matrix__tab:focus-visible,
.an-related-matrix__prev:focus-visible,
.an-related-matrix__next:focus-visible,
.an-related-matrix__more:focus-visible,
.an-related-matrix__archive:focus-visible,
.an-related-matrix__card a:focus-visible {
	outline: 3px solid var(--an-rm-accent);
	outline-offset: -3px;
}

.an-related-matrix__panels {
	padding: clamp(24px, 4vw, 58px) clamp(20px, 5vw, 76px) clamp(36px, 5vw, 72px);
}

.an-related-matrix__panel[hidden] {
	display: none;
}

.an-related-matrix__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(34px, 4vw, 58px) var(--an-rm-gap);
}

.an-related-matrix__empty {
	margin: 0;
	color: var(--an-rm-muted);
}

.an-related-matrix__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--an-rm-border);
	border-radius: var(--an-rm-radius);
	background: var(--an-rm-surface);
	box-shadow: var(--an-rm-shadow);
	transition: background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.an-related-matrix__card:focus-within {
	background: var(--an-rm-hover);
	box-shadow: 0 14px 32px #0004;
}

@media (hover: hover) and (pointer: fine) {
	.an-related-matrix__card:hover {
		background: var(--an-rm-hover);
		transform: translateY(-3px);
		box-shadow: 0 14px 32px #0004;
	}
}

.an-related-matrix__image {
	position: relative;
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	aspect-ratio: var(--an-rm-ratio);
	background: var(--an-rm-hover);
}

.an-related-matrix__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}

.an-related-matrix__image:hover img,
.an-related-matrix__image:focus-visible img {
	filter: saturate(1.08) contrast(1.03);
	transform: scale(1.035);
}

.an-related-matrix__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: var(--an-rm-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.an-related-matrix__photos {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 11px;
	border-radius: 9px;
	background: #e00000;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	pointer-events: none;
}

.an-related-matrix__photos svg {
	width: 17px;
	height: 17px;
	flex: none;
}

.an-related-matrix__body {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: min(var(--an-t-padding, 20px), 4vw);
	color: var(--an-rm-text);
	transition: background-color .2s ease;
}

.an-related-matrix__body::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(135deg, var(--an-rm-accent), transparent 75%);
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity .24s ease;
}

.an-related-matrix__card:hover .an-related-matrix__body,
.an-related-matrix__card:focus-within .an-related-matrix__body {
	background: var(--an-rm-hover);
}

.an-related-matrix__card:hover .an-related-matrix__body::before,
.an-related-matrix__card:focus-within .an-related-matrix__body::before {
	opacity: .12;
}

.an-related-matrix__category {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
}

.an-related-matrix__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	padding-top: 12px;
}

.an-related-matrix__title {
	margin: 0;
	color: var(--an-rm-text);
	font-size: clamp(19px, 1.45vw, 27px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.an-related-matrix .an-related-matrix__title a:is(:link, :visited, :hover, :focus) {
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
	text-decoration: none !important;
}

.an-related-matrix .an-related-matrix__title a:hover {
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.an-related-matrix time {
	display: block;
	margin-bottom: 12px;
	color: var(--an-rm-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.an-related-matrix__archive {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: clamp(36px, 4.5vw, 64px);
	color: var(--an-rm-text);
	font-size: 16px;
	font-weight: 900;
	text-decoration: none;
}

.an-related-matrix .an-related-matrix__pagination {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100%;
	height: auto !important;
	gap: 12px;
	margin-top: clamp(28px, 4vw, 48px);
}

.an-related-matrix .an-related-matrix__more {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	gap: 18px;
	min-height: 52px;
	margin: 0 !important;
	padding: 12px 24px !important;
	border: 0 !important;
	border-radius: 12px;
	background: var(--an-rm-accent) !important;
	color: var(--an-rm-accent-text) !important;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25 !important;
	text-align: center;
	transition: filter .2s ease, transform .2s ease;
}

.an-related-matrix .an-related-matrix__more[hidden] {
	display: none !important;
}

.an-related-matrix__more:hover:not(:disabled) {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.an-related-matrix__more:disabled {
	cursor: wait;
	opacity: .65;
}

.an-related-matrix .an-related-matrix__more svg {
	display: block !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	fill: none !important;
	stroke: currentColor !important;
}

.an-related-matrix__progress {
	color: var(--an-rm-muted);
	font-size: 13px;
}

.an-related-matrix__error {
	color: var(--an-rm-accent);
	font-size: 14px;
}

.an-related-matrix__sentinel {
	width: 1px;
	height: 1px;
}

.an-related-matrix__archive span:last-child {
	color: var(--an-rm-accent);
	font-size: 24px;
	transition: transform .2s ease;
}

.an-related-matrix__archive:hover span:last-child,
.an-related-matrix__archive:focus-visible span:last-child {
	transform: translateX(5px);
}

@container (max-width: 840px) {
	.an-related-matrix__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 540px) {
	.an-related-matrix__heading {
		padding-bottom: 20px;
		font-size: clamp(31px, 11vw, 48px);
	}

	.an-related-matrix__tabs {
		padding-inline: 14px;
	}

	.an-related-matrix__prev,
	.an-related-matrix__next {
		display: none;
	}

	.an-related-matrix__tab {
		min-height: 58px;
		padding-inline: 17px;
	}

	.an-related-matrix__panels {
		padding-inline: 18px;
		padding-block: 18px 22px;
	}

	.an-related-matrix .an-related-matrix__pagination {
		margin-top: 22px;
	}

	.an-related-matrix__archive {
		margin-top: 20px;
	}

	.an-related-matrix__grid {
		grid-template-columns: 1fr;
	}

	.an-related-matrix__title {
		font-size: clamp(22px, 6.5vw, 30px);
	}
}

@media (max-width: 767px) {
	.elementor-widget-autonoviny-related-matrix,
	.elementor-widget-autonoviny-related-matrix > .elementor-widget-container,
	.e-con:has(> .elementor-widget-autonoviny-related-matrix),
	.e-con:has(> .e-con-inner > .elementor-widget-autonoviny-related-matrix),
	.e-con-inner:has(> .elementor-widget-autonoviny-related-matrix) {
		min-height: 0 !important;
		height: auto !important;
	}

	.elementor-widget-autonoviny-related-matrix {
		flex-grow: 0 !important;
		flex-basis: auto !important;
	}

	.e-con:has(> .elementor-widget-autonoviny-related-matrix:last-child),
	.e-con:has(> .e-con-inner > .elementor-widget-autonoviny-related-matrix:last-child) {
		flex-grow: 0 !important;
		flex-basis: auto !important;
	}

	.elementor-widget-autonoviny-related-matrix > .elementor-widget-container,
	.e-con:has(> .elementor-widget-autonoviny-related-matrix:last-child),
	.e-con:has(> .e-con-inner > .elementor-widget-autonoviny-related-matrix:last-child),
	.e-con-inner:has(> .elementor-widget-autonoviny-related-matrix:last-child) {
		padding-bottom: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.an-related-matrix__card,
	.an-related-matrix__body,
	.an-related-matrix__body::before,
	.an-related-matrix__image img,
	.an-related-matrix__archive span:last-child,
	.an-related-matrix__more,
	.an-related-matrix__prev,
	.an-related-matrix__next {
		transition: none;
	}
}
.an-related-matrix .an-related-matrix__category {
	padding: 4px 8px;
	border: var(--an-badge-width, 2px) solid var(--an-rm-category, var(--an-rm-accent));
	border-radius: var(--an-badge-radius, 6px);
	text-decoration: none !important;
	transition: background-color .16s ease, color .16s ease;
}

.an-related-matrix[data-badge-style="outline"] .an-related-matrix__category {
	background: transparent;
	color: var(--an-rm-text) !important;
	-webkit-text-fill-color: currentColor !important;
}

.an-related-matrix[data-badge-style="filled"] .an-related-matrix__category {
	background: var(--an-rm-category, var(--an-rm-accent));
	color: var(--an-rm-category-text, #fff) !important;
	-webkit-text-fill-color: currentColor !important;
}

.an-related-matrix[data-badge-style] .an-related-matrix__category:is(:hover, :focus-visible) {
	background: var(--an-rm-category, var(--an-rm-accent));
	color: var(--an-rm-category-text, #fff) !important;
	-webkit-text-fill-color: currentColor !important;
}
