html { height: 100%; overflow-y: scroll; min-width: 320px;}
body { margin: 0px; padding: 0px; height: 100%; font-family: Tahoma; font-size: 15px; color: #333333; line-height: 1.6;}
img { border: none; }
a { color: #333333; text-decoration: underline; }
a:hover { text-decoration: none; color: #D87D1A; }
form { margin: 0px; }

h1 { font-weight: bold; font-size: 48px; color: #151515; text-align: center; line-height: 1.2; margin-bottom: 20px;}
h2 { font-weight: bold; font-size: 36px; color: #D87D1A; text-align: center; line-height: 1.2; padding: 0; margin: 0; padding-bottom: 20px; }
h3 { font-weight: normal; font-size: 36px; color: #333; text-align: center; }


/* Общие стили */

button, a.button
{
	background: #D87D1A;
	color: #FFF; 
	text-decoration: none; 
	font-size: 15px; 
	text-align: center;
	cursor: pointer; 
	/*box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);*/
	min-width: 170px;
	text-transform: uppercase;
	padding: 10px;
	border: 2px solid #D87D1A;
	font-weight: bold;
}
button:hover, a.button:hover { background: #FFF; color: #D87D1A; }

a.button
{
	display: block;
	width: 188px; 
	height: 39px;
	line-height: 39px;
	margin: 0 auto;
	padding: 0;
}

.modalShadowLayout 
{
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0.6;
}

#loginForm { display: table; margin-left: auto; margin-right: auto; }
#loginForm input[type=text] { width: 330px; }
#loginForm input[type=password] { width: 330px; }
#loginForm a { float: right; margin-top: 8px; }
#loginForm .form-messages { max-width: 330px; }

/* Специализированные стили */

#page { min-height: calc(100% - 300px); position: relative; min-width: 300px; margin: 0 auto; padding: 0px; }
head { height: 55px; padding: 0px; margin: 0 auto;  position: fixed; z-index: 1000; left: 0; right: 0; }
header { }
main {  }
footer { position: absolute; bottom: -250px; height: 250px; left: 0; right: 0; box-shadow: 8px -4px 4px rgba(100, 77, 36, 0.8); }
footer a { }
footer a:hover {  }

.site-path { max-width: 1200px; margin: 15px auto 25px auto; color: #666666; padding: 0 5px; }
.site-path a {color: #666666;}

/* Карточки статей и новостей */

.item-card { display: block; width: 280px; height: 280px; margin: 10px; float: left; position: relative; box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8); text-decoration: none;}
.item-card:hover { text-decoration: none; box-shadow: 0px 0px 10px #666; }
.item-card:hover .item-card-name { color: #D87D1A; }
.item-card-image { display: block; width: 280px; height: 187px; border-bottom: 3px solid #D87D1A; }
.item-card-name { text-align: center; font-size: 18px; color: #151515; text-decoration: none; display: table-cell; height: 90px; width: 270px; vertical-align: middle; line-height: 1.2; padding: 0 5px; }
.item-card-name a { color: #151515; text-decoration: none;}
.cards { position: absolute;  top: 10px; right: -10px; float: none; }
.img-cards { width: 30px; height: 30px; position: absolute; top: 10px; left: 10px; }

/* Карточки разделов каталога и подразделов и общий блок разделов ***********************************************/

.catalog-sections { overflow: hidden; margin: 0 auto; margin-top: 30px;}

.section-sections-item { display: block; float: left; width: 280px; height: 280px; margin: 20px 10px; text-decoration: none;  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8); position: relative; }
.section-sections-item:hover { text-decoration: none; box-shadow: 0px 0px 10px #666; background-color: #D87D1A; }
.section-sections-item:hover .section-sections-item-name, .section-sections-item-description { color: #FFF; }
.section-sections-item:hover .section-sections-item-description { display: block; }

.section-sections-item-image { height: 187px; border-bottom: 3px solid #D87D1A;	}
.section-sections-item-name { text-align: center; font-size: 20px; color: #644D24;  line-height: 25px; margin-top: 20px; }

.section-sections-item-description { display: none; position: absolute; top: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.7); height: 187px;  font-size: 14px; text-align: center; overflow: hidden; color: #333;}
.section-sections-item-description span { display: table-cell; vertical-align: middle; width: 280px; height: 187px; padding: 5px; box-sizing: border-box;}

@media screen and (max-width: 1217px)
{
	.catalog-sections { width: 900px; }
}


@media screen and (max-width: 1190px)
{
	/*.section-sections-item { margin: 1vw; }*/
}

@media screen and (max-width: 918px)
{
	.catalog-sections { width: 600px; }
}

@media screen and (max-width: 620px)
{
	.catalog-sections { width: 95%; }
	.section-sections-item { float: none; margin: 20px auto; }
}

@media screen and (max-width: 570px)
{
	.index-top-sections { padding: 20px 0; }
	.catalog-sections { margin-top: 10px;}
}

@media screen and (max-width: 400px)
{
	.section-sections-item { float: none; margin: 20px auto; }
	.section-sections-item-image { }
	.section-sections-item-name {} 
	#img { display: none;}
}


/*****************************************************************************************/

@media screen and (max-width: 793px)
{
	footer { bottom: -450px; height: 450px;}
}

@media screen and (max-width: 616px)
{
	.item-card { float: none; margin: 20px auto; }
}

@media screen and (max-width: 580px)
{
	h1 { font-size: 40px;}
	h2 { font-size: 28px;}
	h3 { font-size: 28px;}
}

@media screen and (max-width: 525px)
{
	h1 { font-size: 40px;}
	h2 { font-size: 28px;}
	h3 { font-size: 28px;}
	footer { bottom: -580px; height: 580px;}
}

@media screen and (max-width: 500px)
{
	h1 { font-size: 36px;}
	h2 { font-size: 24px;}
	h3 { font-size: 24px;}
}

@media screen and (max-width: 445px)
{
	h1 { font-size: 32px; margin-bottom: 10px;}
	h2 { font-size: 24px;}
	h3 { font-size: 24px;}
	footer { bottom: -600px; height: 600px;}
}

@media screen and (max-width: 400px)
{
	h1 { font-size: 30px;}
	h2 { font-size: 20px;}
	h3 { font-size: 20px;}
}

@media screen and (max-width: 375px)
{
	h1 { font-size: 28px;}

}

@media screen and (max-width: 350px)
{
	h1 { font-size: 26px;}
	a.button { height: 33px; line-height: 33px; width: 180px;}
	
}
.auto-complete { background: #FAFAFA; border: 1px solid #333333; }
.auto-complete-item { display: block; cursor: pointer; color: #000000; padding: 4px; background: #FFFFFF; white-space: nowrap; }
.auto-complete-selected { display: block; cursor: pointer; color: #000000; padding: 4px; background: #DDDDDD; white-space: nowrap; }

.nmb { margin: 0 auto; width: 420px; background: #FAFAFA; border: 1px solid #DBDBDB; }
.nmb td.photo { padding: 10px; }
.nmb a.photo:hover { opacity: 0.9; filter: alpha(opacity=90); }
.nmb td.text { font-size: 15px; padding-left: 15px; width: 100%; text-align: center; padding: 10px; }
.nmb a { color: #000000; text-decoration: none; }
.nmb a:hover { color: #666666; }

table.data { border-collapse: collapse; border: #E2E2E2 solid 1px; font-size: 16px;}
table.data th { color: #003A48; background: #00B0AD; padding: 7px 15px; border-bottom: 2px solid #59698A; border-right: 1px solid #E2E2E2; text-align: center; font-weight: normal; font-size: 18px; }
table.data td { padding: 7px 15px; border-bottom: #E2E2E2 solid 1px; border-right: #E2E2E2 solid 1px; color: #333333; line-height: 1.4; max-width: 400px;}

#cartModalForm { background: #FAFAFA; border: 1px solid #DBDBDB; padding: 20px; width: 800px; margin: 30px auto; }
#cartModalForm h1 { margin-bottom: 15px; }
#cart-summary span { font-size: 17px; }

.cart { border-collapse: collapse; width: 100%; }
.cart th { background: white; padding: 6px 10px; border: #D6D6E9 solid 1px; text-align: center; font-weight: normal; white-space: nowrap; }
.cart td { background: white; padding: 6px 10px; border: #D6D6E9 solid 1px; line-height: 1.4; height: 45px; }
.cart td.summary { text-align: right; }
.cart td.name { width: 100%; }
.cart td.price { white-space: nowrap; text-align: right; }
.cart td.qty { white-space: nowrap; text-align: center; }
.cart td.qty input { width: 30px; }
.cart td.discount { white-space: nowrap; text-align: center; }
.cart td.amount { white-space: nowrap; text-align: right; }
.cart td.total-amount { font-weight: bold; font-size: 14px; font-family: Arial; }
.cart img { display: block; margin: 0; }

.cart-close-button, .cart-checkout-button 
{
	display: block;
	float: left;
}

.cart-checkout-button { margin-right: 10px; }

#path a { font-size: 18px; }
#path span { color: white; font-size: 25px; text-decoration: none; }

#sitePath { color: #5C5C5C; margin-left: 1px; margin-bottom: 20px; }
#sitePath a { color: #5C5C5C; text-decoration: underline; }
#sitePath a:hover { text-decoration: none; }

.modalForm { padding: 15px; background: #FAFAFA; border: 5px solid #444; }

.uploadStatus { width: 330px; margin-left: auto; margin-right: auto; background: #FAFAFA; border: 1px solid #DBDBDB; padding: 10px 0px; text-align: center; }
.uploadStatus table { border-collapse: collapse; font-size: 11px; width: 300px; margin: 0 auto; margin-bottom: 12px; }
.uploadStatus th { border: 1px solid #CCCCCC; padding: 2px; }
.uploadStatus td { border: 1px solid #CCCCCC; padding: 2px; }
.uploadStatus th { text-align: left; font-weight: normal; }
.uploadStatus td { text-align: center; }

#uploadProgessBar { margin: 2px auto; width: 300px; height: 20px; border: 1px inset; background: #EEEEEE; text-align: left; margin-bottom: 15px; margin-top: 5px; }
#uploadProgessBarDone { float: left; text-align: left; width: 0px; height: 20px; background: #0099CC; }
#uploadStatusLabel { font-size: 13px; }

.pn a { display: block; padding: 0px 12px 0px 0px; color: #666; text-decoration: none; font-size: 14px; }
.pn a:hover { text-decoration: underline; }
.pn a.selected { font-size: 16px; font-weight: bold; color: #000000; }
.pn a.np { text-decoration: none; color: #999999; font-size: 14px; }
.pn a.np:hover { text-decoration: underline; }

.commonForm { background: none; margin: 0 auto; padding: 0 5px 30px 5px; }
.commonForm h1 { margin-bottom: 20px; }
.commonForm legend { margin-left: 1em; color: #000000; font-weight: bold; padding: 0 10px; margin: 0 auto; display: none;  }
.commonForm label { float: left; width: 12em; margin-right: 1em; text-align: left; min-width: 160px;} 
.commonForm select { margin: 0; border: 1px solid #BBB; padding: 3px 3px 3px 1px; } 
.commonForm input { margin: 5px 0; border: 0px solid #B90004; border-radius: 4px; box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25); outline: none; } 
.commonForm textarea { margin: 5px 0; width: 20em; border: 0px solid #B90004; border-radius: 4px; box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25)} 
.commonForm input[type='text'] { width: 20em; padding: 8px; border: 2px solid #D87D1A;} 
.commonForm input[type='password'] { width: 20em; padding: 8px; border: 2px solid #D87D1A; border-radius: 4px; box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25)} 
.commonForm input[type='checkbox'] { vertical-align: middle; margin-top: -3px; }
.commonForm fieldset { margin: 0 0 0 0; padding: 0; border: 0px solid #DEDEDE; }
.commonForm fieldset ol { padding: 0; margin-bottom: 0; list-style: none; }
.commonForm fieldset li { padding-bottom: 0.5em; }
.commonForm fieldset ol ol { margin-left: 12em; margin-top: 1em; overflow: hidden; }
.commonForm fieldset ol ol label { float: none; }
.commonForm fieldset ol ol li { float: left; width: 100%; }
.commonForm fieldset.submit { float: none; width: auto; border: 0 none #FFF; padding-left: 14em; }  
.commonForm .errors { padding-left: 11em; color: red; padding-top: 10px; }
.commonForm .form-messages { padding-bottom: 20px; padding-top: 5px; line-height: 1.3; }
.commonForm .form-buttons, .commonForm .form-messages, .commonForm fieldset ol ol, .commonForm .form-right { margin-left: 12em; padding-left: 12px; }
.commonForm .form-error-message { color: red; }
.commonForm .element-error-message { font-size: 11px; color: red; margin-top: 3px; margin-left: 13em; }
.commonForm .required { float: right; color: #888; margin-right: -5px; }

a.cube { display: block; float: left; color: #666666; border: 1px solid #E1E1E1; width: 180px; height: 30px; padding-top: 15px; text-align: center; margin: 0px 10px 10px 0px; text-decoration: none; }
a.cube:hover { border: 1px solid #D1D1D1; color: #333333; } 
a.cube img.cube { opacity: 0.9; filter: alpha(opacity=90); width: 150px; height: 120px; display: block; }
a.cube:hover img.cube { opacity: 1.0; filter: alpha(opacity=100); }
