/* RESET */
html, body
{
	height: 100%;
	border:none;
	margin: 0px;
	padding: 0px;
}

hgroup, center,
h1, h2, h3, h4, h5, h6,
header, nav, main, footer, div, p, span,
dl, dt, dd, ol, ul, li,
form, fieldset, legend, input, label,
table, th, tr, td,
blockquote, pre, abbr, acronym, address, big,
cite, code, del, dfn, em, img, ins, kbd,
a, b, u, i, q, s, samp, small, strike, strong,
sub, sup, tt, var, applet, object, iframe,
caption, tbody, tfoot, thead,
article, aside, canvas, details, embed,
figure, figcaption, applet, object, iframe,
menu,  output, ruby, section, summary,
time, mark, audio, video
{
	margin: 0px;
	padding: 0px;
	border: 1px solid transparent;
	font-size: 100%;
	font: inherit;
}

table
{
	border-collapse: collapse;
	border-spacing: 0;
	width:100%;
}

table, tr, th, td {vertical-align:top;}
form, input, label, span {display:block;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
a
{
	display: block;
	text-decoration: none;
	cursor: pointer;
}

/* :before и :after */
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before,
h1:after, h2:after, h3:after, h4:after, h5:after, h6:after,
label:before, label:after, blockquote:before, blockquote:after,
i:before, i:after, dt:before, dt:after,
q:before, q:after, span:before, span:after, a:before, a:after
{
	content: '';
	content: none;
	font-family: icon;
	font-size: inherit;
	font-weight: normal;
}

:before {margin-right: 10px;}
:after {margin-left: 10px;}

input, textarea
{
	padding: 10px;
	border-width: 1px;
	color: Teal;
}



input[type="search"] {-webkit-appearance: textfield;}

input[type="submit"]
{
	padding: 20px 35px;
	cursor: pointer;
	letter-spacing: 1.2px;
	font-weight: bold;
}

input[placeholder], textarea[placeholder]
{	text-overflow:ellipsis;
	color: gray;
}

input::-moz-placeholder     {text-overflow:ellipsis;}
input:-moz-placeholder      {text-overflow:ellipsis;}
input:-ms-input-placeholder {text-overflow:ellipsis;}

input[type="text"], input[type="tel"]
{
	width: 100%;
	box-sizing: border-box;
}

legend
{padding: 5px 10px;}

label b
{color: red;}

textarea
{	box-sizing: border-box;
	min-width: 100%;
	max-width: 100%;
	border-color: LightCoral;
}

/* псевдоклассы для input */
input[type="time"]:valid, input[type="date"]:valid, input[type="tel"]:valid, input[type="text"]:valid, textarea:valid
{border-color: MediumAquamarine;}

input[type="time"]:invalid, input[type="date"]:invalid, input[type="tel"]:invalid, input[type="text"]:invalid, textarea:invalid
{border-color: red;}