/* ---------------------- */
/* --- Глобальный CSS --- */
/* ---------------------- */

*
{
	margin: 0;
	padding: 0;
	z-index: 0;
}

body
{
	text-align: center;
}

@font-face
{
    font-family: 'wf_SegoeUILight';
    src:url('https://i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.eot');
    src:url('https://i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.eot?#iefix') format('embedded-opentype'),
           url('https://i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.woff') format('woff'),
           url('https://i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.ttf') format('truetype'),
           url('https://i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.svg#web') format('svg');
    font-weight: normal;
    font-style: normal;
}

a 
{
	color: #58b;
	text-decoration: none;
	border-bottom: 1px solid #ccd;
}

.local-link
{
	border-bottom: 1px dashed #58b;
}

label.with-radio
{
	white-space: nowrap;
}

body,
input,
button,
select
{
	font-family: "Roboto";/*"wf_SegoeUILight";*/
}

input,
button,
select
{
	padding: 0.2em 0.5em;
}

input[type="submit"],
button,
select
{
	cursor: pointer;
}

input[type="radio"],
input[type="checkbox"]
{
	margin-right: 0.5em;
	position: relative;
	top: 1px;
}

input[type="edit"]
{
	margin-left: 1em;
}

h1, h2, h3, h4, h5,
p, .section
{
	padding: 1em 0 0.5em;
}

p, .section
{
	text-align: left;
}

.select
{
	cursor: pointer;
	position: relative;
	display: inline-block;
	margin-left: 1em;
	color: #58b;
}

.select label:after
{
	content: "\25BF";
	padding-left: 0.5em;
	font-size: 0.8em;
}

.select ul
{
 	display: none;
	position: absolute;
	list-style: none;
	-webkit-box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
	z-index: 100;
}

.select li
{
	padding: 0.5em 1em;
	white-space: nowrap;
	background-color: #fff;
}

.select li:hover
{
	background-color: #f7f7f7;
	color: #777 !important;
}

.select li[selected]
{
	color: #ddd;
	cursor: default;
}

.select.css-check input[type=checkbox]
{
/*    position: absolute;
    top: -9999px;
    left: -9999px;
*/    display: none;
}

.select.css-check input[type=checkbox]:checked ~ ul
{
    display: block !important;
}

.select.css-span:focus ~ ul {
    display: block !important;
}

label
{
	cursor: pointer;
}

/* -------------------------------------- */
/* --- CSS для локального отображения --- */
/* -------------------------------------- */

h1, h2, h3, h4, h5
{
	display: inline-block;
}

a
{
	margin: 0.5em 1em 0.5em 0;
}

p, .section
{
	margin: 0 auto;
	width: 100%;
}

#radio-group
{
	margin: 1em 0 0.5em;
}

#radio-group label
{
	display: block;
}

form
{
	margin-bottom: 10em;
}

button,
input[type="submit"]
{
	margin: 0.5em 0 1em;
}

#check-group
{
	margin: 1em 0 0.5em;
}

#check-group label
{
	display: block;
}

#fixed-menu
{
	background-color: #555;
	color: #fff;
	position: fixed;
	width: 100%;
	overflow: auto;
	z-index: 100;
	top: 0;
	height: 3em;
}

#fixed-menu li
{
	padding: 0 1em;
	display: none;
	height: 100%;
	font-size: 1.5em;
	line-height: 2em;
	/* display: inline-block; */
}

#fixed-menu li:hover
{
	background-color: #eee;
	color: #555;
	cursor: pointer;
}


#sticky-menu
{
	background-color: rgba(100,200,100,0.5);
	color: #373;
	position: absolute;
	top: 3em;
	width: 100%;
	height: 2.4em;
}

#sticky-menu li
{
	padding: 0 0.8em;
	display: none;
	font-size: 1.2em;
	height: 100%;
	line-height: 2em;
}

#sticky-menu .current,
#sticky-menu li:hover
{
	background-color: #eee;
	color: #555;
	cursor: pointer;
}

.inline-check,
.inline-radio
{
	display: inline-block;
	margin-right: 1em;
}

body
{
/* 	background-image: url('main-logo.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	padding-top: 5em;
*/
}
 
@media screen and (max-width: 639px){
	p, .section
	{
		max-width: 80%;
	}

	#fixed-menu li.current,
	#sticky-menu li.current
	{
		display: block;
	}
	
	#sticky-menu li.current
	{
		background-color: rgba(100,200,100,0.5);
	}
}

@media screen and (min-width: 640px){
	p, .section
	{
		max-width: 70%;
	}

	#fixed-menu li
	{
		display: inline-block;
	}
	
	#fixed-menu li.all
	{
		display: none;
	}

	#sticky-menu li.current
	{
		display: block;
		background-color: rgba(100,200,100,0.5);
	}
}

@media screen and (min-width: 1024px){
	p, .section
	{
		max-width: 800px;
	}

	#fixed-menu li
	{
		display: inline-block;
	}

	#sticky-menu li
	{
		display: inline-block !important;
	}
	
	#fixed-menu li.all,
	#sticky-menu li.all
	{
		display: none !important;
	}

	#sticky-menu li.current
	{
		background-color: #eee;
	}
}