:root {
	--main-font: 'Cormorant Garamond', serif;
	--title-font: 'Marcellus', serif;
}

html {
	scroll-behavior: smooth;
}

a {
	color: inherit;
	text-decoration: none;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
	color: inherit;
	text-decoration: none;
}

* {
	margin: 0;
	padding: 0;
}

body {
	background-image: url('./img/main-back.webp');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	font: 16px/1.4 sans-serif;
	font-family: var(--main-font);
	min-height: 100%;
}

a:visited {
	text-decoration: none;
	color: white;
}

.map_iframe {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.main-title {
	text-align: center;
	margin: 100px 0;
	font-size: 70px;
}

.about-maps {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 80%;
	margin: 20px auto 10px auto;
}

.about-maps__arrow img {
	width: 70px;
}

.about-maps {
	font-size: 20px;
}

.about-img {
	width: 100%;
}

.wrap {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 16px;
}
.grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
}

.col:nth-child(1) {
	/*border: 1px solid black; */
}

.col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.col:nth-child(1),
.col:nth-child(3) {
	margin-top: 100px;
}

.hero {
	background: url('./img/hero__back.png') center/cover no-repeat;
	min-height: 560px;
	position: relative;
	color: #fff;
	font-size: 32px;
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.portfolio {
	padding: 20px;
	border: 1px solid black;
	background-color: white;
	height: 455px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
}

.portfolio__img-wrapper {
	width: 90%;
	height: 200px;
	overflow: hidden;
	margin: 20px auto;
}

.portfolio__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.about-card {
	background-color: #99948e;
	padding-bottom: 160px;
	border: 1px solid black;
	color: #faf7f2;
}

.about-me {
	width: 300px;
	margin: 30px auto 0px auto;
}

.about-me .title {
	font-size: 55px;
}

.about-me__list {
	list-style: none;
	font-size: 20px;
}

.services .title {
	width: 300px;
	margin: 0 auto;
	font-size: 40px;
	text-align: left;
}

.separator-line {
	width: 95%;
	height: 1.5px;
	background-color: #ffffff75;
	margin: 5px auto;
}

.col:nth-child(2) {
	border: unset;
}

.col:nth-child(2) > section {
	border: 1px solid black;
}

.services__list {
	margin: 10px 10px 40px 10px;
	list-style: none;
}

.services__item {
	margin: 5px 0;
}

.services__item__num {
	font-size: 40px;
}

.services__item__title {
	font-size: 28px;
}

.services__item__desc {
	font-size: 18px;
}

.services__item__separator {
	width: 95%;
	height: 1px;
	background-color: #faf7f286;
	margin: 5px 0;
}

.hero__header {
	display: flex;
	user-select: none;
	justify-content: space-between;
}

.hero__link {
	font-size: 22px;
	font-weight: 700;
}
.hero__link:hover {
	color: rgb(221, 221, 221);
}

.hero__name-wrapper {
	margin-top: auto;
}

.hero__name-title {
	font-size: 45px;
}

.hero__secondname {
	text-align: end;
}

.contacts {
	background-color: #fff;
	padding: 30px 0;
}

.contacts__links {
	display: flex;
	flex-direction: column;
}

.contacts__link__arrow {
	width: 30px;
	height: 30px;
}

.contacts__link__icon {
	width: 35px;
	height: 35px;
}

.contacts__title {
	width: 80%;
	margin: 0 auto 20px auto;
	font-size: 34px;
	text-align: center;
}

.contacts__link:hover {
	cursor: pointer;
	color: rgb(223, 222, 222) !important;
}

.contacts__link {
	user-select: none;
	color: white;
	background-color: #99948e;
	border: 1px solid #b7afa6;
	margin: 5px auto;
	display: flex;
	font-family: 'Cormorant';
	justify-content: space-between;
	padding: 10px;
	height: 35px;
	align-items: center;
	font-size: 26px;
	width: 80%;
}

.study {
	background-color: #fff;
	border: 1px solid black;
	padding: 40px 0;
}

.study__img {
	width: 100%;
	height: 100%;
	border: 1px solid gray;
}

.study__img-wrapper {
	width: 90%;
	margin: 20px auto;
}

.study__title {
	font-size: 40px;
	text-align: center;
}

.study__desc {
	font-size: 18px;
	font-weight: 400;
	margin: 10px auto;
	width: 90%;
}

.study__link {
	padding: 10px 5px;
	background-color: #99948e;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	color: white !important;
	margin: 0 auto 20px auto;
	width: 100px;
}

.study__subtitle {
	width: 80%;
	margin: 10px auto;
	text-align: center;
	font-size: 22px;
}

.study__list {
	width: 80%;
	margin: 10px auto;
	font-size: 18px;
}

.contacts__address {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-top: 20px;
	cursor: pointer;
}

.seo-block {
	background-color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 1px solid black;
	height: 450px;
}

.seo-block p {
	font-size: 20px;
	text-wrap: pretty;
	padding: 0 30px;
	margin-top: 20px;
}

.seo-block h2 {
	font-size: 35px;
	text-align: center;
}

.contacts__address__img {
	width: 25px;
	height: 25px;
}

.mobile {
	display: none;
}

.contacts__address__title {
	font-size: 20px;
	font-weight: 500;
}

iframe {
	width: 400px;
}

@media (max-width: 1000px) {
	.col:nth-child(1),
	.col:nth-child(3) {
		margin-top: 0;
	}
	.about-card {
		padding: 0;
	}
	.about-me__item {
		font-size: 24 px;
	}

	.services__item__desc {
		font-size: 23px;
	}

	.mobile {
		display: block;
	}

	.main-title {
		font-size: 55px;
	}
	.seo-block {
		height: auto;
		padding: 30px 0;
	}

	.desktop {
		display: none;
	}
	.grid {
		grid-template-columns: 1fr;
		place-items: center;
	}

	.grid > div:nth-child(2) {
		order: -1;
	}

	.col {
		max-width: 500px;
		min-width: 500px;
	}
}
@media (max-width: 600px) {
	.portfolio__img-wrapper {
		height: 250px;
	}
	.main-title {
		display: none;
	}
	iframe {
		width: 400px;
	}
	.hero__name-title {
		font-size: 35px;
	}
	.grid {
		grid-template-columns: 1fr;
		place-items: unset;
	}
	.col {
		max-width: unset;
		min-width: unset;
	}
}

@media (max-width: 400px) {
	iframe {
		width: 300px;
	}
	.wrap {
		padding: 0;
	}
}
