/* Згенеровано tools/port_mockup.py з mockup/assets/css/catgrid.css. Руками не правити. */
.uhc .uhc-cats {
	display: grid;
	grid-template-columns: repeat(var(--uhc-cols, 5), minmax(0, 1fr));
	gap: 14px;
}
.uhc .uhc-cat {
	display: block;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 24px -18px rgba(16, 24, 40, .18);
	transition: transform var(--uhc-dur-base) var(--uhc-ease-hover), box-shadow var(--uhc-dur-base) var(--uhc-ease);
}
.uhc .uhc-cat:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 18px 40px -22px rgba(16, 24, 40, .28);
}
.uhc .uhc-cat:active { transform: translateY(-1px) scale(.992); }
.uhc .uhc-cat__media {
	display: block;
	position: relative;
	z-index: 1;
	aspect-ratio: 4 / 3;
	border-radius: inherit;
	overflow: hidden;
}
.uhc .uhc-cat__media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(9, 18, 33, .8) 0%, rgba(9, 18, 33, .18) 52%, transparent 74%);
}
.uhc .uhc-cat__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit;
	transition: transform var(--uhc-dur-slow) var(--uhc-ease-out);
}
.uhc .uhc-cat:hover .uhc-cat__media img { transform: scale(1.05); }
.uhc .uhc-cat__grid { display: none; }
.uhc .uhc-cat__tag {
	position: absolute;
	top: 18px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	padding: 4px 9px 4px 30px;
	border-radius: 7px;
	font-family: 'Geologica', 'Onest', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}
.uhc .uhc-cat__tag::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 2px;
	background: currentColor;
	opacity: .8;
}
.uhc .uhc-cat__tag--tr { right: 16px; }
.uhc .uhc-cat__tag--tl { left: 16px; }
.uhc .uhc-cat__tag.is-gold   { background: var(--uhc-gold); color: var(--uhc-ink); }
.uhc .uhc-cat__tag.is-orange { background: #fff; color: #c35500; box-shadow: inset 0 0 0 1px #f26b00; }
.uhc .uhc-cat__tag.is-teal   { background: #fff; color: #197e8a; box-shadow: inset 0 0 0 1px #2196a5; }
.uhc .uhc-cat__tag.is-red    { background: #fff; color: #e03131; box-shadow: inset 0 0 0 1px #e03131; }
.uhc .uhc-cat__tag.is-custom { background: var(--uhc-gold); color: var(--uhc-ink); }
.uhc .uhc-cat__b {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: 0 14px 16px;
	background: linear-gradient(to top, rgba(10, 18, 32, .9) 0, rgba(10, 18, 32, .55) 55%, rgba(10, 18, 32, 0) 100%);
}
.uhc .uhc-cat__n {
	display: block;
	width: 100%;
	min-width: 0;
	text-align: center;
}
.uhc .uhc-cat__n b {
	display: block;
	color: var(--uhc-gold);
	font-family: 'Geologica', 'Onest', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.005em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.uhc .uhc-cat__n span {
	display: block;
	color: rgba(255, 255, 255, .9);
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	margin-top: 2px;
}
.uhc .uhc-cat__go { display: none; }
@media (max-width: 1180px) { .uhc .uhc-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .uhc .uhc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .uhc .uhc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
	.uhc .uhc-cat,
	.uhc .uhc-cat__media img { transition: none; }
	.uhc .uhc-cat:hover { transform: none; }
	.uhc .uhc-cat:hover .uhc-cat__media img { transform: none; }
}
