@charset "utf-8";

* {
	margin: 0;
	padding: 0;
	outline: none;
}

html {
	height: 100%;
}

body {
	width: 100%;
	height: 100%;
	color: #333;
	background: #f7f7f7;
	font-size: 1em;
	font-family: "Segor UI", sans-serif;
	line-height: 135%;
}

a {
	color: #00ff00;
	text-decoration: none;
	transition: all.6s ease;
	-moz-transition: all.6s ease;
}

a:hover {
	color: #ff8000;
	text-decoration: none;
	transition: all.6s ease;
	-moz-transition: all.6s ease;
}

a:active {
	color: #ff0000;
	text-decoration: none;
	transition: all.6s ease;
	-moz-transition: all.6s ease;
}

img {
	max-width: 100%;
	height: auto;
	width: auto\9;
}

hr {
	display: block;
	border: 0;
	height: 1px;
	border-top: 1px solid #ccc;
	padding: 0;
}

.right {
	float: right;
}

.left {
	float: left;
}

.center {
	text-align: center;
}

.clear {
	clear: both;
}

/* Selection Block */

::selection { background: #ff8000; }
::-moz-selection { background: #ff8000; }

header, footer {
	width: 98%;
	background-color: silver;
	min-height: 20px;
	padding: 1%;
	float: left;
}

header {
	border-bottom: 2px solid blue;
	margin-top: 10px;
	margin-bottom: 10px;
}

#logo {
	font-size: 2em;
	font-family: Comic Sans MS, sans-serif;
}

.contact {
	font-size: 1.5em;
	font-family: Comic Sans MS, sans-serif;
	margin-left: 20px;
}

input[type=text].field {
	border-radius: 4px;
	border: 2px solid blue;
	padding: 5px;
	margin-left: 20px;
}

input[type=text].field:focus {
	border: 2px solid #00ff00;
}

#menu {
	font-family: Comic Sans MS, sans-serif;
	font-size: 1.7em;
}

#menu hr {
	width: 500px;
	max-width: 100%;
	margin-top: 5px;
	margin-bottom: 10px; 
	margin-left: auto;
	margin-right: auto;
}

#menuHrefs a {
	padding: 5px 10px;
	border-radius: 5px;
	margin-right: 5px;
	color: #0d0d0d;
}

#menuHrefs a:hover {
	background-color: #e6e6e6;
}

/* Основные стили для сайта */

#wrapper {
	float: left;
	width: 100%;
}


#wrapper #articles {
	float: left;
	width: 80%;
	margin-left: 10%;
	padding-top: 10px;
}

#wrapper #articles article {
	float: left;
	box-sizing: border-box;
	border-radius: 5px;
	background-color: #408080;
	border: 1px solid blue;
	min-height: 400px;
}

@media (min-width: 721px) {
#wrapper #articles article {
	width: 31.3%;
	margin-right: 2%;
}}

/* @media (min-width: 700px) and (max-height: 899px) {
#wrapper #articles article {
	width: 80%;
	margin-left: 10%;
	margin-bottom: 10px;
}} */

@media (max-width: 720px) {
#wrapper #articles article {
	width: 100%;
	margin-bottom: 10px;
}}

#wrapper #articles article img {
	width: 100%;
	height: 200px;
	border-radius: 5px 5px 0px 0px;
	margin-bottom: 10px;
}

#wrapper #articles article h2 {
	width: 90%;
	margin-left:5%;
	font-weight: normal;
	font-size: 1.7em;
}

#wrapper #articles article p {
	width: 80%;
	margin-left: 10%;
	text-indent: 1em;
	padding-top: 10px; 
}

#wrapper #articles article a {
	padding: 5px;
	background-color: maroon;
	margin-left: 5%;
	border-radius: 5px; 
	float: left;
	color: #fff;
	padding-top: 5px;
	margin-bottom: 10px;
}

#wrapper #articles article a:hover {
	background-color: green;
}

/* Стили для страницы О нас */

#about_us {
	width: 60%;
	float: left;
	background-color: #fafafa;
	border-radius: 5px;
	border: 1px solid blue;
	box-sizing: border-box;
	padding: 1%;
}

#columRight {
	width: 30%;
	float: left;
	margin-left: 5%;
	background-color: #fafafa;
	border-radius: 5px;
	border: 1px solid blue;
	box-sizing: border-box;
	padding: 1%;
}

/* Стили для формы */
form {
	width: 60%;
	margin-left: 20%;
	float: left;
}

form label {
	float: left;
	width: 100%;
	margin-bottom: 5px;
}

form input {
	border-radius: 4px;
	border: 2px solid blue;
	background-color: #fafafa;
	padding: 5px;
	float: left;
	clear: both;
	margin-bottom: 10px;
	width: 40%;
}

form input:focus, form textarea:focus {
	border: 2px solid #00ff00;
}

form textarea {
	width: 60%;
	float: left;
	clear: both;
	background-color: #fafafa;
	border: 2px solid blue;
	border-radius: 5px;
	padding: 10px;
	font-size: 1.2em;
	height: 80px;
}

form #send {
	float: left;
	padding: 10px;
	background-color: #ff8080;
	cursor: pointer;
	border-radius: 5px;
	margin-top: 10px;
	font-size: 1.5em;
	color: #fff;
}

form #send:hover {
	background-color: #00ff00;
}
/*Центральный блок сайта*/

#main_soc_block {
	width: 100%;
	padding: 2% 0;
	border-top: 2px solid blue;
	border-bottom: 2px; solid blue;
	margin: 20px 0;
	float: left;
	background: url("/edu/lessons/site_news/img/soc_back.jpg") repeat-x center 0;
	height: 150px;
}

#main_soc_block_in {
	text-align: center;
	padding: 1%;
	height: 200px;
	background-color: #fafafa;
	border: 1px solid blue;
	box-sizing: border-box;
	border-radius: 7px;
	width: 500px;
	margin: auto;
	max-width: 98%;
	max-height: 100%;
}

#main_soc_block_in a {
	float: left;
	padding: 5px 10px;
	background-color: #0000ff;
	border-radius: 6px;
	color: #fff;
	margin-left: 38%;
	margin-top: 10px;
}

/* Стили для футера*/

footer {
	border-top: 2px solid blue;
	margin-top: 10px;
}

footer img {
	width: 7%;
	float: left;
	margin-right: 5px;
}

#page-wrap:after {
	content: "";
	display: block;
}

footer, #page-wrap:after {
	height: 10px;
}

#page-wrap {
	min-height: 94%;
	margin-bottom: -20px;
	/*border: 2px solid red;*/
}
