/* Главный банер домашней страницы. Файл загружается только при наличии секции. */

.index-baner{
	position: relative;
	background-position: top;
	background-repeat: no-repeat;
	background-size: contain;
	background-attachment: fixed;
}
.index-baner:before{
	content: "";
	position: absolute;
	background: rgba(0, 0, 0, 0.2);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.hero-grid{
	position: relative;
	z-index: 2;
}

.index-baner .hero-copy--custom-width {
	grid-column: 1 / -1;
	width: min(100%, var(--hero-copy-width));
}

.index-baner .hero-copy--custom-width h1 {
	max-width: none;
}

.index-baner .hero-copy--custom-title h1 {
	font-size: var(--hero-title-size);
}

.index-baner .hero-copy--custom-width h1,
.index-baner .hero-copy--custom-title h1 {
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {
	.index-baner .hero-copy--custom-title h1 {
		font-size: min(var(--hero-title-size), max(1rem, 10vw));
	}
}
