@charset "utf-8";
* {
	margin: 0;
	padding: 0;
	outline: none;
}

html {height: 100%}

header {
	width: 98%;
	background-color: #fff;
	float: left;
	border-bottom: : 2px solid silver;
	padding: 1%;
}

footer {
	padding: 1%;
	border-top: 2px solid silver;
	margin-top: 10px;
	padding-bottom: 1%;
	width: 98%;
	background-color: #fff;
	float: left;
}


body {
	width: 100%;
	height: 100%;
	color: #333;
	background: #f7f7f7;
	font-size: 1em;
	font-family: "Seqoe UI", sans-serif;
	line-height: 135%;
}

a {
	color: #f58b8b;
	text-decoration: none;
	transition: all.6s ease;
	-moz-transition: all.6s ease;
	-webkit-transition: all.6s ease;
	-ms-transition: all.6s ease;
}	

a:hover {
	color: #8ce4a6;
	text-decoration: none;
	transition: all.6s ease;
	-moz-transition: all.6s ease;
	-webkit-transition: all.6s ease;
	-ms-transition: all.6s ease;
}

a:activ {color: #8ce4a6}

/* Selection block*/

::selection {background: #f58b8b; color: #fff;}
::-moz-selection {background: #f58b8b; color: #fff;}

#logo {
	font-size: 2em;
	font-family: Comic Sans MS, sans-serif;
	color: silver;
}

img {
	max-width: 100%;
	height: auto;
	width: auto\9;
}

.contact {
	font-size: 1.5em;
	font-family: Comic Sans MS, sans-serif;
	margin-left: 20px;
}
input[type=text].field {
	border-radius: 5px;
	border: 2px solid silver;
	padding: 5px;
	margin-left: 20px;
}

input[type=text].field:focus {border: 2px solid #f58b8b} 

.right {float: right}
.left {float: left}
.clear {clear: both} 

/* Стили для футера */

#menu {
	color: #666;
	font-family: Comic Sant MS, sans-serif;
	font-size: 2.0em;
}

#menu hr {
	width: 700px;
	max-width: 100%;
	margin-top: 5px;
	margin-bottom: 10px;
}

#menuHrefs a {
	padding: 5px 10px;
	border-radius: 5px;
	margin-right: 5px;
	color: #626262; 
	font-family: Comic Sant MS, sans-serif;
	font-size: 1.5em;
}

#menuHrefs a:hover {
	background-color: #D2CECE;
}

/* основные стили дпя сайта */
#wrapper {
	float: left;
	width: 100%;
	margin-top: 20px;
}
#wrapper #articles {
	float: left;
	width: 80%;
	margin-left: 10%;
}

#wrapper #articles article {
	float: left;
	width: 31.3%;
	border: 1px solid silver;
	box-sizing: border-box;
	border-radius: 5px;
	background-color: #fafafa;
	margin-right: 2%;
	min-height: 450px;
}

#wrapper #articles article img {
	widows: 100%;
	height: 300px;
	border-radius: 5px 5px 0px 0px;
	border-bottom: 1px solid silver;
	margin-bottom: 10px;
}

#wrapper #articles article h1 {
	width: 90%;
	margin-left: 5%;
	font-weight: normal;
	font-size: 1.7em;
	color: #464545;
}

#wrapper #articles article p {
	width: 80%;
	margin-left: 10%;
	margin-top: 5px; 
	font-weight: normal;
	font-family: Comic Sant MS, sans-serif;
}

#wrapper #articles article button {
	padding: 10px 5px;
	background-color: #EFABAB;
	margin-left: 5%;
	border-radius: 5px;
	color: #fff;
	float: left;
	margin-top: 15px;
	margin-bottom: 10px;
	font-size: 1.2em;
}

#wrapper #articles article #reset {
	padding: 10px 5px;
	background-color: #ABEFC1;
	margin-right:5%;
	border-radius: 5px;
	color: #fff;
	float: right;
	margin-top: 15px;
	margin-bottom: 10px;
	font-size: 1.2em;
}

#wrapper #articles article a:hover{background-color: #88E4D4}
#wrapper #articles article button:hover{background-color: #88E4D4}
#wrapper #articles article #reset:hover{background-color: #88E4D4}

/* Центральный блок сайта */

#main_soc_block {
	width: 100%;
	padding: 2% 0;
	border-bottom: 2px solid silver;
	border-top: 2px solid silver;
	margin: 20px 0;
	float: left;
	background: url('../img/image_fone.ico') repeat center;
	height: 300px;
}

#main_soc_block_in {
	text-align: center;
	padding: 1%;
	width: 600px;
	height: 250px;
	margin-top: 30px;
	background: #B7B4B4;
	border-radius: 8px;
	border-bottom: 4px solid silver;
	border-top: 4px solid silver;
} 

#main_soc_block_in button, #gal {
	padding: 10px 10px;
	background-color: #8C9292;
	border-radius: 5px;
	font-size: 1.7em;
	font-family: cursive;
	color: #fff;
}

#main_soc_block_in p {margin: 30px}
#main_soc_block_in button:hover {background-color: #E4DEDD; 	color: #4A4545;}
#main_soc_block_in #gal:hover {background-color: #E4DEDD; 	color: #4A4545;}

/* Стили для подвала сайта*/

footer img {width: 20%; float: left; margin-right: 10px}

#page-wrap:after {
	content: "";
	display: block;
}

footer, #page-wrap:after {height: 10px} 

#page-wrap {
	min-height: 670px;
	margin-bottom: -10px;
}

/* Стили для форм ввода*/

form {
	width: 40%;
	float: left;
	margin-left: 33%;
	margin-top: 3%;
}

form label{
	float: left;
	margin-bottom: 10px;
	width: 100%;
	/*margin-left: 150px;*/
}

form input {
	border-radius: 5px;
	border: 2px solid silver;
	padding: 5px;
	margin-bottom: 10px;
	width: 40%;
	float: left;
	/*margin-left: 150px;*/
}

form input:focus {border: 2px solid #f58b8b} 

form #submit{
	cursor: pointer;
}

#textar {
	float: left;
	margin-bottom: 10px;
	width: 60%;
	height: 100px;
	border-radius: 5px;
	border: 2px solid silver;
	padding: 5px;
	/*margin-left: 150px;*/
	font-size: 1.2em;
}

#textar:focus {border: 2px solid #f58b8b}