
	/* ===== ОБЩЕЕ ===== */
	.card {
		width: 100%;
		aspect-ratio: 4 / 3;
		position: relative;
		overflow: hidden;
		border-radius: 12px;
		cursor: pointer;
	}

	/* ===== ВАРИАНТ 1: CSS (без JS) ===== */
	.css-gallery .ph {
		position: absolute; inset: 0;
		width: 100%; height: 100%;
		object-fit: cover;
		opacity: 0;
		transition: opacity .15s;
	}
	/* первая картинка видна, пока мышь вне карточки */
	.css-gallery .ph:nth-of-type(1) { opacity: 1; }
	/* пока курсор на зоне — первую прячем */
	.css-gallery .zone:hover ~ .ph:nth-of-type(1) { opacity: 0; }
	/* зоны: 5 полос по 20% ширины, стоят ПЕРВЫМИ в разметке */
	.css-gallery .zone { position: absolute; top: 0; height: 100%; width: 20%; z-index: 2; }
	.z1 { left: 10%; } .z2 { left: 25%; } .z3 { left: 45%; } .z4 { left: 65%; } .z5 { left: 100%; }
	/* hover по зоне показывает свою картинку */
	.z1:hover ~ .ph:nth-of-type(2),
	.z2:hover ~ .ph:nth-of-type(3),
	.z3:hover ~ .ph:nth-of-type(4),
	.z4:hover ~ .ph:nth-of-type(5) { opacity: 1; }
	/* пятая картинка = первая, возвращаем её на зоне z5 */
	.z5:hover ~ .ph:nth-of-type(1) { opacity: 1; }

	/* ===== ВАРИАНТ 2: JS ===== */
	.js-gallery img {
		position: absolute; inset: 0;
		width: 100%; height: 100%;
		object-fit: cover;
		transition: opacity .15s;
	}
	.js-gallery .dots {
		position: absolute; top: 10px; left: 10px; right: 10px;
		display: flex; gap: 4px;
		opacity: 0; transition: opacity .2s;
	}
	.js-gallery:hover .dots { opacity: 1; }
	.js-gallery .dots span {
		flex: 1; height: 3px; border-radius: 2px;
		background: rgba(255,255,255,.5);
	}
	.js-gallery .dots span.on { background: #fff; }