/* Homepage — řady bannerů a sekce produktů v mřížce (templates/r3/homepage/*). Sdílí r3 i vo-riano. */

.hp-banners {
	margin: 30px 0;
}

.hp-banners__full {
	width: 100%;
}

.hp-banners__row {
	display: grid;
	gap: 15px;
	grid-template-columns: 1fr;
}

.hp-banners--l2 .hp-banners__row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-banners--l3 .hp-banners__row {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-banners--full .hp-banners__row {
	gap: 0;
}

.hp-banner {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.hp-banners--full .hp-banner {
	border-radius: 0;
}

.hp-banner img {
	display: block;
	width: 100%;
	height: auto;
}

a.hp-banner img {
	transition: transform .3s ease;
}

a.hp-banner:hover img {
	transform: scale(1.02);
}

/* mobil: dva i tři vedle sebe se skládají pod sebe, ať je text na banneru čitelný */
@media (max-width: 767px) {
	.hp-banners {
		margin: 20px 0;
	}

	.hp-banners--l2 .hp-banners__row,
	.hp-banners--l3 .hp-banners__row {
		grid-template-columns: 1fr;
	}
}

/* sekce produktů jako mřížka — stejný počet karet v řadě jako carousel */
.hp-grid {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 840px) {
	.hp-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1120px) {
	.hp-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.hp-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.hp-more {
	margin-top: 20px;
	text-align: center;
}

.hp-more__link {
	display: inline-block;
	padding: 10px 26px;
	border: 1px solid currentColor;
	border-radius: 30px;
	font-weight: 600;
	text-decoration: none;
}

.hp-more__link:hover {
	text-decoration: none;
	opacity: .8;
}
