@font-face {
	font-family: 'SFPro';
	src: url('./sf-pro/SFPRODISPLAYBOLD.OTF') format('opentype');
}
@font-face {
	font-family: 'SFPro';
	src: url('./sf-pro/SFPRODISPLAYMEDIUM.OTF') format('opentype');
}
@font-face {
	font-family: 'SFPro';
	src: url('./sf-pro/SFPRODISPLAYREGULAR.OTF') format('opentype');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'SFPro';
}
a {
	text-decoration: none;

}

body {
	background-color: rgba(10, 10, 10, 1);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

main {
	width: 95%;
	max-width: 1824px;
	margin-top: 42px;
}

@media screen and (max-width: 768px) {
	main {
		padding: 0 40px;
	}
	
}
#headerBack {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: -1;
}
h1 {
	color: white;
	font-weight: medium;
	font-size: 24px;

}
header {
	width: 100%;
	background-color: rgba(18, 18, 18, 1);
	padding: 24px;
	display: flex;
	justify-content: center; /* Изменено для центрирования */
	align-items: center;
	border-radius: 18px;
	position: relative; /* Добавлено для absolute positioning детей */
}

.containerHeader {
	display: flex;
	align-items: center;
	position: absolute; /* Добавлено */
	left: 24px; /* Добавлено */
}

nav {
	/* nav теперь будет в центре благодаря justify-content: center у header */
	ul {
		display: flex;
		gap: 32px;
		li {
			list-style: none;
			a {
				text-decoration: none;
				color: rgba(255, 255, 255, 0.3);
				font-weight: medium;
				font-size: 20px;
			}
		}
	}
}

#headrButtonContact {
	color: white;
	border: 1px solid #fff;
	padding: 9px 28px;
	border-radius: 1000px;
	text-decoration: none;
	font-size: 20px;
	font-weight: 500;
	position: absolute; 
	right: 24px;
}

.banner {
	margin-top: 48px;
	display: flex;
	width: 100%;
	justify-content: space-between;

}
.bannerLeftContainer {
	width: 40%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.bannerTitle {
	font-weight: 700;
	font-size: 96px;
}
.bannerText {
	color: rgba(255, 255, 255, 0.3);
	font-weight: 400;
	font-size: 20px;
}
#bannerLink {
	color: rgba(240, 95, 43, 1);
	font-weight: 500;
	font-size: 20px;
	text-decoration: none;
}

.About {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 128px;
	gap: 32px;

	h2 {
		color: white;
		font-weight: medium;
		font-size: 32px;
	}
}

.AboutContainer {
	background-color: black;
	padding: 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-radius: 24px;
}

.AboutContainerText {
	display: flex;
	align-items: end;
	flex-direction: column;
	justify-content: space-between;
	text-align: end;
	width: 40%;
}

#About {
	color: rgba(240, 95, 43, 1);
	border: 1px solid rgba(240, 95, 43, 1);
	padding: 12px 18px;
	border-radius: 10000px;
	margin-bottom: 32px;
}

.AboutTitle {
	color: white;
	font-weight: 600;
	font-size: 42px;
	margin-bottom: 24px;
}
.AboutText {
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
	font-size: 20px;
	margin-bottom: 32px;
}

#AboutShow {
	color: white;
	background-color: rgba(240, 95, 43, 1);
	border: 1px solid rgba(255, 255, 255, 0.5);
	padding: 13px 24px;
	border-radius: 1000px;
}

.Cases {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 76px;
	gap: 32px;
	color: white;
}

.CasesItem {
	display: flex;
	align-items: self-start;
	flex-direction: column;
	max-width: 33%;
	gap: 24px;

	img {
		width: 100%;
	}
}

.CasesLine {
	display: flex;
	width: 100%;
	/* flex-wrap: wrap; */
	align-items: center;
	justify-content: space-between;
}

.CasesTitle {
	font-weight: 500;
	font-size: 24px;
}
.CasesDate {
	color: rgba(255, 255, 255, 0.3);
	font-weight: 500;
	font-size: 20px;
}

footer {
	width: 100%;
	background-color: rgb(0, 0, 0);
	border-radius: 18px 18px 0 0;
	position: relative;
	padding: 93px 49px 47px 49px;
	margin-top: 209px;
	display: flex;
	justify-content: space-between;
}

.footerLogo {
	display: flex;
	flex-direction: column;

	p {
		color: rgba(255, 255, 255, 0.3);
		font-weight: 500;
		font-size: 16px;
		margin-top: 29px;
	}
}

.containerFooter {
	display: flex;
	align-items: center;
}

#bottomBack {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: -1;
}

.footerAddres {
	p {
		color: white;
		font-weight: 400;
		font-size: 18px;
	}
}

.footerLinks {
	display: flex;
	gap: 18px;
}

#footerButtonContact {
	border: 1px solid white;
	background-color: transparent;
	color: white;
	padding: 10px 28px;
	border-radius: 1000px;
	height: max-content;
	width: max-content;
	font-weight: 500;
	font-size: 18px;
}
.activeHeader {
	color: white;
}



.infoBlock {
	background-color: black;
	border-radius: 18px;
	padding: 48px;
	width: 100%;
	margin-top: 48px;
	color: white;

	p {
		font-weight: 400;
		font-size: 20px;
		max-width: 90%;
	}
}
#infoBlockTitle {
	font-size: 36px;
	font-weight: 500;
}

@media screen and (max-width: 1824px) {
	
}

@media screen and (max-width: 768px) {
	main {
		width: 100%;
		padding: 0 40px;
	}
	#LogoTitle {
		display: none;
	}
	header {
		padding: 15px;
		gap: 15px;
		flex-wrap: wrap;
		display: flex;
		justify-content: space-between;
	}

	.containerHeader {
		position: relative;
		left: 0;
	}

	#headrButtonContact {
		position: relative;
		right: 0;
		padding: 9px 15px;
		font-size: 16px;
	}
	.bannerLeftContainer {
		width: 100%;
	}

	nav {
		ul {
			li {
				a {
					font-size: 16px;
				}
			}
		}
	}

	.banner {
		flex-direction: column;
		img {
			margin-top: 30px;
		}
	}
	.bannerTitle {
		font-size: 76px;
	}

	.AboutContainer{		
		flex-direction: column-reverse;
		img {
			margin-top: 30px;
			width: 90%;
		}
	}
	.AboutContainerText {
		text-align: start;
		width: 100%;
		align-items: self-start;
	}

	.CasesLine {
		flex-direction: column;
		gap: 30px;
	}

	.CasesItem {
		max-width: 100%;
		img {
			width: 100%;
		}
	}

	footer {
		flex-direction: column;
		gap: 50px;
	}
}

html {
	scroll-behavior: smooth;
}