*{
	margin: 0;
	padding: 0;

}

html{
	box-sizing: border-box;
}

body{
	background: rgb(174,220,238);
	background: radial-gradient(circle, rgba(174,220,238,1) 0%, rgba(59,89,168,1) 100%);
}

h1, h4 {
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
  }


/*
.top{
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 60%;
	margin: 0 auto;
}

.top img{
	width: 15vh;
	
}

.top a{
	color: rgb(0, 0, 0);
	text-decoration: none;
	display: inline-block;
	padding: 20px 5px;
	text-align: center;
	letter-spacing: 2px;
}*/

/* Додайте цей CSS код до вашого стилю */
header.top {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 20px;
  }
  
  .header-center h1 {
	font-size: 225%;
	font-weight: bold;
	margin: 0 20px;
	color: white;
  }
  
  .header-left img {
	width: 15vh;
	margin: 10px;
  }
  
  .header-right h4 {
	margin: 10px;
	font-size: 110%;
	font-weight: normal;
	color: white;
  }
  
  .header-right h4 i {
	margin-right: 10px;
  }
  
  .header-right {
	text-align: left;
  }




nav a{
	text-decoration: none;
	display: inline-block;
	padding: 20px 5px;
	text-align: center;
	letter-spacing: 2px;
}

nav a:hover {
	text-decoration: underline; /* Add underline on hover */
}

.flex-nav {
	position: -webkit-sticky; /* Для підтримки Safari */
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Додайте тінь для кращого вигляду */
}

.flex-nav ul{
	background-color: rgb(255, 242, 56);
	list-style: none;
	margin: 0px;
	padding: 0px 30%;
	display: flex;
	justify-content: center; /* Center-align menu items */
}

.flex-nav li{
	flex: 6;
}

.flex-nav .social{
	flex: 1;
}

.social a{
	color: rgb(0, 0, 0);
	text-decoration: none;
	display: inline-block;
}

.flex-nav li a{
	font-family: "Roboto", serif;
	font-weight: 500;
	font-style: normal;
	color: rgb(17, 32, 200);
}

.toggleNav{
	display: none;
	background-color: rgb(255, 242, 56);
}

#number{
	margin: 10px;
}




.wrapper{
	max-width: 1000px;
	margin: 0 auto;
	padding: 50px 0;
}

section{
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: rgb(0, 0, 0);
	text-align: justify;
}

p{
	margin-right: 20px;
	font-family: "Roboto", serif;
	font-weight: 400;
	font-style: normal;
}

center{
	margin: 30px 0;
}




.tiles{
	grid-column: 2 / -2;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 40px;
	margin-bottom: 50px;
}

.item {
	display: grid;
	grid-template-columns: 1;
	grid-template-rows: 1;
	overflow: hidden;
}

.item img {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item_overlay {
  background: rgba(0, 0, 0, 0.5);
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}
.tiles a{
	text-decoration: none;
	font-family: "Roboto", serif;
	font-weight: 350;
	font-style: normal;
	color: white;
}

.item:hover .item_img {
	transform: /*rotate(5deg)*/ scale(1.15);
	transition: 0.5s;
}


.choose{
	grid-column: 2 / -2;
	height: 15vh;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: flex-start;
	font-size: 20px;
}





.main-grid {
	display: grid;
	grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
	
}

.tiles{
	margin: 5vh auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
}


.contactsBlock {
	grid-column: 2 / -2;
	height: 15vh;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: flex-start;
	padding-top: 150px;
	padding-bottom: 150px;
}

#request {
	grid-column: 2 / -2;
	display: flex;
	flex-direction: column;
	margin: 20px 0;
	padding: 20px 0;
}

input  {
	box-sizing: border-box !important;
	width: 100%;
	border: none;
	border-bottom: 1px solid black;
	font-size: 18px;
	padding: 20px 5px;
	margin: 30px 0;
    background-color: inherit;
}

input:focus {
	outline: none;
}

#submit {
	width: 300px;
	border-radius: 40px;
	background: black;
	color: white;
	align-self: center;
	margin: 50px 0;
}

#submit:hover {
	cursor: pointer;
}

#map_desc {
	grid-column: 2 / -2;
	padding-top: 100px;
}

iframe {
	grid-column: 1 / -1;
	width: 100%;
	height: 50vh;
	margin-top: 20px;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  font-size: 18px;
  background-color: #ffcc00; /* Match site colors */
  color: #003366; /* Match site colors */
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#backToTop:hover {
  background-color: #ffd633; /* Slightly lighter shade */
}

footer {
	color: white;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.3);
	font-weight: 200;
	display: flex;
	justify-content: center;
	align-items: center;
}

footer li {
	color: white;
	text-decoration: none;
	display: inline-block;
	padding: 20px 5px;
	letter-spacing: 2px;
}

footer a {
	color: white;
	text-decoration: none;
}

footer li:hover {
	transform: scale(1.2);
}

@media all and (max-width: 1000px){
	.flex-nav ul{
		flex-wrap: wrap;
	}
	
	.flex-nav li{
		flex: 1 1 50%;
	}
	
	.flex-nav .social{
		flex: 1 1 25%;
	}

	section{
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
	}

	.text{
		margin: 5% 10%;
	}
}

@media all and (max-width: 500px) {
	.flex-nav li{
		flex-basis: 100%;
	}

	.wrapper{
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.wrapper > *{
		order: 999;
	}

	.flex-nav{
		order: 1;
	}

	.top{
		flex-direction: column;
		align-items:  center;
		justify-content: center;
	}

	.toggleNav{
		display: block;
	}

	.flex-nav ul{
		display: none;
	}

	.flex-nav ul.open{
		display: flex;
	}	
	.header-right {
		text-align: center;
	  }
}