/* Products page: real factory capability gallery. */
.products-factory {
	padding: clamp(56px, 5.5vw, 84px) 0;
	background: var(--white);
}

.products-factory__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
	gap: clamp(48px, 7vw, 128px);
	align-items: center;
}

.products-factory__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.2vw, 18px);
}

.products-factory__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: #dfe7e9;
	aspect-ratio: 16 / 9;
}

.products-factory__item--main {
	grid-column: span 3;
}

.products-factory__item--selector {
	display: block;
	padding: 0;
	border: 0;
	appearance: none;
	cursor: pointer;
	transition: opacity .24s ease, outline-color .24s ease, transform .24s ease;
}

.products-factory__gallery.has-factory-selection .products-factory__item--selector:not(.is-active) {
	opacity: .58;
}

.products-factory__item--selector.is-active {
	outline: 2px solid var(--orange);
	outline-offset: 3px;
	transform: translateY(-3px);
}

.products-factory__item--selector:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
}

.products-factory__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.products-factory__content {
	width: 100%;
	max-width: none;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0;
}

.products-factory__content h2 {
	margin: 0;
	color: #0f211d;
	font-size: clamp(34px, 2.5vw, 44px);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.15;
}

.products-factory__content > p {
	max-width: 570px;
	margin: 38px 0 0;
	color: #3d514c;
	font-size: 17px;
	line-height: 1.7;
}

.products-factory__points {
	display: grid;
	gap: 13px;
	margin: 48px 0 0;
	padding: 0;
	color: #2e4540;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
}

.products-factory__points li {
	display: flex;
	gap: 14px;
	align-items: center;
}

.products-factory__points span {
	display: inline-grid;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 6px;
	background: var(--orange);
	color: var(--white);
}

.products-factory__points svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

@media (max-width: 980px) {
	.products-factory {
		padding: 62px 0;
	}

	.products-factory__layout {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.products-factory__content {
		max-width: 680px;
	}
}

@media (max-width: 520px) {
	.products-factory__content h2 {
		font-size: 34px;
	}

	.products-factory__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.products-factory__item--main {
		grid-column: span 2;
	}

	.products-factory__gallery .products-factory__item:last-child {
		grid-column: span 2;
	}

	.products-factory__content > p {
		margin-top: 24px;
		font-size: 16px;
	}

	.products-factory__points {
		gap: 11px;
		margin-top: 30px;
		font-size: 15px;
	}

	.products-factory__points li {
		align-items: flex-start;
	}

	.products-factory__points span {
		margin-top: -2px;
	}
}

@media (hover: hover) {
	.products-factory__item--selector:hover {
		transform: translateY(-3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.products-factory__item--selector {
		transition: none;
	}
}
