.materials-page {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 132px 100px 120px;
	background: #000;
	color: #fff;
}

.materials-page__inner {
	position: relative;
	z-index: 1;
	width: min(100%, 1240px);
	margin: 0 auto;
}

.materials-page__banner {
	position: relative;
	display: grid;
	min-height: clamp(250px, 24vw, 330px);
	place-items: center;
	overflow: hidden;
	margin-bottom: 72px;
	border-radius: 28px;
	background:
		linear-gradient(0deg, var(--banner-overlay-dark), var(--banner-overlay-dark)),
		linear-gradient(90deg, var(--banner-overlay-gold), var(--banner-overlay-gold-end)),
		var(--materials-banner-image, none) center / cover no-repeat,
		#050507;
	text-align: center;
}

.materials-page__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 46%, var(--banner-radial-gold), transparent 56%),
		linear-gradient(180deg, var(--banner-vignette-top), var(--banner-vignette-bottom));
	pointer-events: none;
}

.materials-page__banner-copy {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 16px;
	max-width: 760px;
	padding: 42px;
}

.materials-page__banner h1 {
	margin: 0;
	color: #fff;
	font-family: var(--font-body);
	font-size: clamp(44px, 5vw, 72px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.06em;
	white-space: nowrap;
}

.materials-page__banner p {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 15px;
	line-height: 1.45;
}

.materials-page__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.materials-page__tile {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 28px;
	min-height: 336px;
	height: 336px;
	padding: 34px 36px 36px;
	overflow: hidden;
	border: 1px solid rgba(255, 204, 123, 0.12);
	border-radius: 24px;
	background: #070708;
}

.materials-page__tile-grain {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	overflow: hidden;
}

.materials-page__tile-grain::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--materials-tile-texture) left center / 200px 200px repeat;
	-webkit-mask-image: linear-gradient(
		90deg,
		#000 0%,
		#000 12%,
		rgba(0, 0, 0, 0.96) 24%,
		rgba(0, 0, 0, 0.82) 36%,
		rgba(0, 0, 0, 0.58) 50%,
		rgba(0, 0, 0, 0.32) 64%,
		rgba(0, 0, 0, 0.12) 76%,
		rgba(0, 0, 0, 0.03) 86%,
		transparent 96%
	);
	mask-image: linear-gradient(
		90deg,
		#000 0%,
		#000 12%,
		rgba(0, 0, 0, 0.96) 24%,
		rgba(0, 0, 0, 0.82) 36%,
		rgba(0, 0, 0, 0.58) 50%,
		rgba(0, 0, 0, 0.32) 64%,
		rgba(0, 0, 0, 0.12) 76%,
		rgba(0, 0, 0, 0.03) 86%,
		transparent 96%
	);
}

.materials-page__tile-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(255, 204, 123, 0.08) 0%,
		rgba(255, 204, 123, 0.04) 22%,
		rgba(255, 204, 123, 0.015) 38%,
		rgba(7, 7, 8, 0) 52%,
		rgba(7, 7, 8, 0.18) 66%,
		rgba(7, 7, 8, 0.48) 78%,
		rgba(7, 7, 8, 0.82) 90%,
		#070708 100%
	);
}

.materials-page__tile-head,
.materials-page__tile-text {
	position: relative;
	z-index: 1;
}

.materials-page__tile:not(:nth-child(2n))::after {
	content: "";
	position: absolute;
	top: 24px;
	right: -15px;
	bottom: 24px;
	width: 0;
	border-right: 1px dashed rgba(255, 204, 123, 0.24);
	pointer-events: none;
}

.materials-page__tile:not(:nth-last-child(-n+2))::before {
	content: "";
	position: absolute;
	right: 24px;
	bottom: -15px;
	left: 24px;
	height: 0;
	border-bottom: 1px dashed rgba(255, 204, 123, 0.24);
	pointer-events: none;
}

.materials-page__tile-head {
	display: grid;
	grid-template-columns: 98px minmax(0, 1fr);
	align-items: center;
	gap: 22px;
}

.materials-page__tile-icon {
	display: grid;
	place-items: center;
	width: 98px;
	height: 98px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 50% 42%, rgba(255, 204, 123, 0.22), rgba(255, 204, 123, 0.04) 58%, rgba(7, 7, 8, 0.92) 100%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 204, 123, 0.18),
		0 0 42px rgba(255, 204, 123, 0.08);
}

.materials-page__tile-icon svg {
	width: 34px;
	height: 34px;
	color: var(--color-gold);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.materials-page__tile-title {
	margin: 0;
	color: #fff;
	font-family: var(--font-body);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.materials-page__tile-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
}

@media (max-width: 1180px) {
	.materials-page {
		padding-right: 64px;
		padding-left: 64px;
	}

	.materials-page__tile {
		height: auto;
		min-height: 320px;
	}
}

@media (max-width: 900px) {
	.materials-page__tiles {
		grid-template-columns: 1fr;
	}

	.materials-page__tile::before,
	.materials-page__tile::after {
		display: none;
	}

	.materials-page__tile:not(:last-child) {
		border-bottom: 1px dashed rgba(255, 204, 123, 0.2);
		margin-bottom: 0;
		padding-bottom: 36px;
	}
}

@media (max-width: 760px) {
	.materials-page {
		padding: 118px 24px 92px;
	}

	.materials-page__banner {
		margin-bottom: 48px;
		border-radius: 20px;
	}

	.materials-page__banner-copy {
		padding: 32px 24px;
		text-align: left;
	}

	.materials-page__banner h1 {
		white-space: normal;
	}

	.materials-page__tile {
		min-height: 0;
		padding: 28px 24px 30px;
		border-radius: 20px;
	}

	.materials-page__tile-head {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 16px;
	}

	.materials-page__tile-icon {
		width: 72px;
		height: 72px;
	}

	.materials-page__tile-icon svg {
		width: 28px;
		height: 28px;
	}

	.materials-page__tile-title {
		font-size: 22px;
	}

	.materials-page__tile-text {
		font-size: 16px;
		line-height: 1.5;
	}
}

@media (max-width: 560px) {
	.materials-page {
		padding-right: 18px;
		padding-left: 18px;
	}
}
