@charset "utf-8";
/* CSS Document */

@media all {
	
	form p, h1 {
		color: #0b1661;
	}

	h1:first-child {
		color: white;
	}

	.cont-photo {
		display: flex;
		align-items: stretch;
		justify-content: center;
		width: 900px;
		margin: auto;
		margin-top: 4em;
	}
	
	#contacts-main {
		margin: 3em auto;
		display: flex;	
		align-items: stretch;
		flex-wrap: wrap;
		justify-content: space-between;
		flex-grow: 1;
	}

	.cont-block {
		text-align: center;
		*min-width: 200px;
		flex-grow: 1;
	}
	
	#personal-photo {
		background-image: url(img/photo/3.jpg);
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		flex-shrink: 0;
		flex-grow: 1;
		*box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
		*border-radius: 5px;
	}
	
	.cont-title {
		font-weight: bold;
	}

	.cont-info {
		*font-size: 18px;
		margin: 20px;
	}

	.cont-info a img {
		height: 20px;
		width: 20px;
		*margin: 3px;
		box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
	}

	.cont-separator {
		height: 25px;
		width: 1px;
		background-color: black;
	}

	#contacts-form {
		width: 900px;
		margin-top: 50px;
		margin-left: auto;
		margin-right: auto;
	}
	
	textarea {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		width: 900px;
		*height: 70px;
		resize: vertical;
	}
	
	hr {
		display: none;
	}
}
	
@media all AND (max-width: 1023px) {
	#contacts-form {
		width: 90%;
	}
	
	#contacts-main {
		*width: 90%;
		display: block;
		margin: 2em auto;
	}
	
	.cont-photo {
		flex-direction: column;
		width: 90%;
		margin: auto;
		margin-top: 1em;
	}
	
	
	#personal-photo {
		width: auto;
		height: 500px;
	}
	
	.cont-separator {
		display: none;
	}
	
	textarea {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		width: 90%;
		resize: vertical;
	}
	
	hr {
		display: none;
		margin: 30px auto;
		width: 10%;
		color: black;
		background-color: black;
		border: 0px none;
		height: 2px;
		clear: both;
	}
	
	.cont-info a img {
		height: 60px;
		width: 60px;
		margin: 5px 10px;
	}
}

