:root 
{
  --main-bg-color: #95afd6;
}

@font-face 
{
    font-family: Raleway; /* Èìÿ øðèôòà */
    src: url(/templates/fonts/Raleway-VariableFont_wght.ttf); /* Ïóòü ê ôàéëó ñî øðèôòîì */
}

.imgsList
{
	grid-area: imgsList;
	width:100%;
	margin:0;
	padding:0;
	height:150px;
	transform: translateY(20px);
}

.imgsList>div
{
	display:flex;
}

.bigImg
{
	grid-area: bigImg;
	margin:0;
	padding:0;
	width:100%;
	border-bottom: 1px solid lightgray;
}

.bigImg>div{
	height:100%;
}

figure.zoom
{
	height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.bigImgItem
{
	z-index:1;
}

h1.title
{
	grid-area: hOne;
	margin:0;
	padding:0 0 0 10px;
	display: flex;
    justify-content: center;
    align-items: baseline;
	transform: translateX(10px);
	font-size: 3em;
    font-weight: 600;
	border-bottom: 1px solid lightgray;
}

h1,div,p,a
{
	font-family: Raleway; /* Èìÿ øðèôòà */
    src: url(/templates/fonts/Raleway-VariableFont_wght.ttf); /* Ïóòü ê ôàéëó ñî øðèôòîì */
}

html, body 
{
    height:100%;
	width:100%;
	margin:0 auto;
}

.contactsWrapper
{
	grid-area: contactsWrapper;
	width:100%;
	height:100%;
	margin:0;
	padding:0;
}

.links
{
	grid-area: links;
	width: 100%;
	margin:0;
	padding:0;
}

.links>div,.contactsWrapper
{
	height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.text
{
	grid-area: text;
	width: 95%;
    margin:0 auto;
	padding:50px 0;
	transform: translateX(10px);
	border-bottom: 1px solid lightgray;
	overflow: auto;
}

.hideScroll>div::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #e9e9e9;
}

/* ???????? ?????????? */
.hideScroll>div::-webkit-scrollbar-thumb {
    background-color: #979797;
}

.hideScroll>div::-webkit-scrollbar-thumb:hover {
    background-color: #5c5c5c;
}

main
{
	position:relative;
	display:grid;
	grid-template-areas: 
		"hOne bigImg contactsWrapper"
		"hOne bigImg sotialWrap"
		"imgsList imgsList imgsList"
		"text text text";
	grid-template-columns: 1fr 50% 1fr;
	grid-template-rows: auto 50vh 150px auto;
	grid-gap: 40px;
	padding:50px 0 0 0;
	min-height:100%;
	margin:0 auto;
	width:100%;
	height:auto;
}

.sotialWrap
{
	text-align: left;
    display: block;
	border-bottom: 1px solid lightgray;
	width:95%;
}

.imgItem
{
	width:auto;
	height:150px;
}

.imgsList>div
{
	overflow-y: hidden;
    overflow-x: scroll;
	padding-bottom: 30px;
}

.imgsList>div.whiteScroll,.img-zoom-result
{
	display:none;
}

.contactItem>div
{
	display:block;
	padding: 0 20px 0 0;
}

.bold 
{
	width:100%;
	padding:0;
}

.sotialWrap>.sotial
{
	padding: 0;
}

#myimage,figure.zoom
{
    max-height: calc(250px + 10vh + 35vh);
}

.bigImg>div
{
	height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

figure.zoom
{
	position: relative;
    top: auto;
    transform: none;
    left: auto;
}

.imgsList>div>div
{
	border: none;
    border-radius: none;
}

@media screen and (max-width: 1400px)
{
	main
	{
		grid-template-areas: 
			"hOne"
			"bigImg"
			"imgsList"
			"text"
			"contactsWrapper"
			"sotialWrap";
		grid-template-columns: 100%;
		grid-template-rows: auto 50vh 150px 1fr auto auto;
		width:90%;
	}
	
	.contactItem
	{
		text-align:center;
	}
	
	.sotialWrap {
		flex-wrap: wrap;
		margin: 0 auto;
	}
	
	.sotialWrap>.sotial
	{
		justify-content: center;
	}
	
	#myimage,figure.zoom
	{
		max-height: calc(50vh - 20px);
	}
	
	.bigImg,.text
	{
		border-bottom:none;
	}
	
	.imgsList,.contactsWrapper
	{
		border-top: 1px solid lightgray;
	}
	
	h1.title
	{
		padding: 30px 0;
	}
}

@media screen and (max-width: 1000px)
{
	.links {
		height: 100%;
		overflow:hidden;
	}
	
	.contactItem
	{
		padding:0;
		margin:0;
	}
	
	.links>div>div
	{
		padding:0;
	}
	
	.text{
		text-align:left;
	}
}