/* Strona główna – style uzupełniające makietę (właściciel: A3).
 * Ładowany po styles.css (desktop) i mobile.css (mobile), bez ograniczenia media.
 * Nazwy produktów w działach to h3.link (w makiecie h2.link) – reset makiety zrównuje wygląd
 * nagłówków, a styl nadaje reguła .main-deps .dep-item-info .link a, więc nie wymaga poprawek.
 */

/* Działy: przy 1 lub 2 kolumnach kolumna ma szerokość jak przy 3 (inaczej rozciąga się do treści). */
@media (min-width: 1025px) {
	.main-deps--cols-1 .dep,
	.main-deps--cols-2 .dep {
		flex: 0 1 30.6%;
	}
}

/* Działy: blok tekstowy z edytora – nagłówki inne niż h3 wyglądają jak h3 z makiety. */
.main-deps .dep-item--alt-info h2,
.main-deps .dep-item--alt-info h4 {
	font-size: 1.25rem;
	font-weight: 600;
}

@media (max-width: 1024px) {
	.main-deps .dep-item--alt-info h2,
	.main-deps .dep-item--alt-info h4 {
		font-size: 1.125rem;
		line-height: 1.625rem;
		margin-bottom: 10px;
	}
}

/* Film: osadzenie oEmbed (iframe) responsywne 16:9 w miejscu grafiki zastępczej (896 px). */
.main-video-box--embed {
	display: block;
	width: 100%;
	max-width: 896px;
	margin-left: auto;
	margin-right: auto;
}

.main-video-box--embed iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* O nas: śródtytuły w treści z edytora (treść z produkcji ma własne h2). */
.aboutus-content h2,
.aboutus-content h3,
.aboutus-content h4 {
	color: #1c1958;
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 2rem;
	margin: 35px 0 15px;
}

.aboutus-content h3,
.aboutus-content h4 {
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.aboutus-content > :first-child {
	margin-top: 0;
}

@media (max-width: 1024px) {
	.aboutus-content h2 {
		font-size: 1.25rem;
		line-height: 1.75rem;
		margin: 30px 0 12px;
	}

	.aboutus-content h3,
	.aboutus-content h4 {
		font-size: 1.125rem;
		line-height: 1.625rem;
	}
}

/* Orkiestrator (Faza 3): punkty listy zalet nie mogą przełamywać się między kolumnami (columns: 3 w styles.css makiety). */
.why-agroinstal-grid ul li {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}
