/*
 * "Naše další služby" — Figma 197:818.
 *
 * Photo cards under a three-part navy scrim: a flat 40% wash plus a darkening
 * ramp from each end, which is what keeps the title legible at the top and the
 * link legible at the foot without dimming the middle of the photo.
 */

/*
 * Figma 197:817 — the block sits on a tinted #EAEDF3 panel, not directly on
 * the page. The 50px I first read as a container inset is the panel's own
 * padding (58px at the top).
 */
.other-services__panel {
	padding: 30px;
	border-radius: var(--radius-lg);
	background: #eaedf3;
}

.other-services__title {
	margin: 0 0 40px;
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: var(--h2-weight);
	line-height: var(--h2-lh);
}

.other-services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.other-card {
	position: relative;
	display: flex;
	min-height: 247px;
	padding: 20px;
	border-radius: 14px;
	overflow: hidden;
	isolation: isolate;
}

.other-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.other-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(26, 41, 74, 0) 49.798%, var(--color-primary) 100%),
		linear-gradient(to bottom, rgba(26, 41, 74, 0) 50.202%, var(--color-primary) 100%),
		rgba(26, 41, 74, 0.4);
}

.other-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-width: 0;
}

.other-card__name {
	color: #eaedf3;
	font-size: var(--h6-size);
	font-weight: var(--h6-weight);
	line-height: var(--h6-lh);
	letter-spacing: var(--h6-ls);
}

.other-card__photo { transition: transform 0.4s ease; }
.other-card:hover .other-card__photo { transform: scale(1.05); }

@media (min-width: 640px) {
	.other-services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.other-services__panel { padding: 58px 50px 50px; }
	.other-services__title { font-size: 32px; }
	.other-services__grid { grid-template-columns: repeat(5, 1fr); }
}
