/*  ==========================================================================
	Сброс стилей
    ========================================================================== */

/*
	Отступы
    ===================================== */
* {
	margin:0;
	padding:0;
}

/*
	Расчет ширины и высоты элементов
    ===================================== */
* {
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}

/*
	Шрифты
    ===================================== */
html {
	font-size:100%;
}
html,
button,
input,
select,
textarea {
	font-family:sans-serif;
}
body {
	-webkit-font-smoothing:antialiased;
}

/*
	Изображения
    ===================================== */
img {
	border:0;
	vertical-align:middle;
	max-width:100%;
	height:auto;
	-ms-interpolation-mode:bicubic;
}
p img[align="center"],
img[align="middle"] {
	display:block;
	margin:0 auto;
}
p img[align="left"] {
	float:left;
}
p img[align="right"] {
	float:right;
}

/*
	Таблицы
    ===================================== */
table {
	border-collapse:collapse;
	border-spacing:0;
}

/*
	Гиперссылки, рамки фокуса
    ===================================== */
a {
	text-decoration:underline;
	color:#08c;
}
a:hover {
	text-decoration:none;
}
a:active,
a:hover {
	outline:0;
}
a:focus,
:focus {
	outline:none;
}
/*
::-moz-selection {
	text-shadow:none;
}
::selection {
	text-shadow:none;
}
*/

/*
	Заголовки
    ===================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family:inherit;
	color:inherit;
	text-rendering:optimizelegibility;
}
h1 {
	font-size:2em;
	margin:.67em 0;
}
h2 {
	font-size:1.5em;
	margin:.83em 0;
}
h3 {
	font-size:1.17em;
	margin:1em 0;
}
h4 {
	font-size:1em;
	margin:1.33em 0;
}
h5 {
	font-size:.83em;
	margin:1.67em 0;
}
h6 {
	font-size:.67em;
	margin:2.33em 0;
}

/*
	Формы
    ===================================== */
form{
	margin:0;
}
button,
input,
select,
textarea {
	font-size:100%;
	margin:0;
	vertical-align:baseline;
	*vertical-align:middle;
}
button,
input {
	line-height:normal;
}
button,
select {
	text-transform:none;
}
select {
	cursor:pointer;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance:button;
	cursor:pointer;
	*overflow:visible;
}
button[disabled],
html input[disabled] {
	cursor:default;
}
input[type="checkbox"],
input[type="radio"] {
	box-sizing:border-box;
	padding:0;
	*height:13px;
	*width:13px;
}
input[type="search"] {
	-webkit-appearance:textfield;
	-moz-box-sizing:content-box;
	-webkit-box-sizing:content-box;
	box-sizing:content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance:none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
	border:0;
	padding:0;
}
textarea {
	overflow:auto;
	resize:vertical;
	vertical-align:top;
}
input,
textarea {
	outline:none;
}
input:active,
textarea:active {
	outline:none;
}