html { height: 100%; overflow-y: scroll; }
body { min-width: 300px; margin: 0px; padding: 0px; height: 100%; font-family: 'Candara', sans-serif;; font-weight: 600; font-size: 20px; color: #371C25;  position: relative; line-height: 1.4; /*background: #AAB1E6;*/ min-width: 320px; }
img { border: none; }
a { color: #371C25; text-decoration: underline; }
a:hover { text-decoration: none; }
form { margin: 0px; } 

/*#page { min-height: 100%; position: relative; min-width: 300px; margin: 0 auto;}
header { margin: 0 auto;}
main { margin: 0 auto; }
#hfooter { height: 31px; }
footer { margin: 0 auto; height: 31px; position: absolute; left: 0; /*bottom: -300px;* / right: 0; border: 0px solid red; }*/

#page { min-height: 100%; position: relative;  margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; }
#head { padding: 0px; margin: 0 auto; width: 100%; }
#body { margin: 0 auto; width: 100%; }/* padding-top: 100px;*/
#foot { height: 31px; width: 100%; }

main > section { max-width: 1280px; margin: 0 auto; padding-top: 40px; }

/*@media screen and (max-width: 570px)
{
	#page { grid-template-rows: 170px 1fr auto; }
}

@media screen and (max-width: 441px)
{
	#page { grid-template-rows: 180px 1fr auto; }
}
*/

h1 { font-weight: 500; margin: 0; font-size: 73px; color: #371C25; padding: 0; line-height: 1.0; text-align: center; padding: 30px 0 30px; font-family: "Sofia Sans Condensed", sans-serif; font-optical-sizing: auto; font-weight: 800; font-style: normal; margin-top: 20px; }
h2 { margin: 15px 0; font-size: 45px; color: #2258A4; padding: 5px 0; line-height: 1.0; text-align: center;  font-family: "Sofia Sans Condensed", sans-serif; font-optical-sizing: auto; font-weight: 800; font-style: normal; }
h3 { font-weight: 500; margin: 0; font-size: 35px; padding: 0; line-height: 1.0; padding: 20px 0; text-align: center; font-family: "Sofia Sans Condensed", sans-serif; font-optical-sizing: auto; font-weight: 800; font-style: normal;}

button, .button
{
	background: #FFF;
	display: block;
	text-align: center; 
    color: #371C25; 
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    border: 2px solid #F5CD4F;
    font-weight: normal;
}
button { width: 180px; height: 36px; font-weight: 600; font-size: 14px; border: 2px solid #F5CD4F; background: #F5CD4F;}

.button:hover {  }
button:hover {  }

.site-path { margin-bottom: 25px; padding-left: 5px; font-size: 14px; line-height: 1.7; box-sizing: border-box;}
.site-path a { margin-bottom: 25px; margin-left: 5px; font-size: 14px;}

.request-button 
{
	background-color: #D72862;
	background-image: linear-gradient(#D72862, #AC196F);
	color: white;
	text-decoration: none;
	border-radius: 5px;
	cursor: pointer;
	padding: 15px 30px;
	position: absolute;
	top: 30px;
	left: 70%;
	font-weight: normal;
	font-size: 18px;
}

/*Дерево разделов***************/
.tree { float: left; background: #372F85; margin-right: 30px; margin-bottom: 20px; width: 200px; }
.tree ul { margin: 0; padding: 0;}
.tree li { list-style-type: none;  }
.tree li a { text-decoration: none; color: #FFF; padding: 10px 40px; display: block;}
.tree li:hover {background-color: #E31B40;}
.tree li:hover a { }
.tree li.select { background-color: #E31B40; }
.tree li.select a { }

.page-content-block { float: left; width: calc(100% - 230px); }

/**********************************/

body > header .request-button:hover
{
	background-image: none;
}

@media screen and (max-width: 1100px)
{
	h1 { font-size: 68px;}
}

@media screen and (max-width: 1048px)
{
	main > section { padding-top: 20px; }
}


@media screen and (max-width: 1000px)
{
	h1 { font-size: 64px;}
}

@media screen and (max-width: 900px)
{
	h1 { font-size: 60px;}
}

@media screen and (max-width: 840px)
{
	h1 { font-size: 56px;}
}

@media screen and (max-width: 785px)
{
	h1 { font-size: 52px;}
}


@media screen and (max-width: 750px)
{
	h1 { padding: 20px 0;}
}

@media screen and (max-width: 655px)
{
	h1 { font-size: 48px;}
	h2 { font-size: 40px;}
	h3 { font-size: 34px;}
}

@media screen and (max-width: 570px)
{
	h1 { font-size: 44px;}
	body { font-size: 16px; }
	h2 { font-size: 38px;}
	h3 { font-size: 32px;}
}

@media screen and (max-width: 450px)
{
	h1 { font-size: 40px;}
	h2 { font-size: 36px;}
	h3 { font-size: 30px;}
}

/*@media screen and (max-width: 580px)
{
	.page-content-block { float: none; width: 100%;}
}

@media screen and (max-width: 550px)
{
	h1 { font-size: 30px;}
	h2 { font-size: 26px;}
}*/

@media screen and (max-width: 515px)
{
	.tree { width: 80%; box-sizing: border-box; margin: 0 auto; margin-bottom: 10px; float: none; text-align: center;}
	.tree li a { padding: 10px 15px; }
}


@media screen and (max-width: 360px)
{
	h1 { font-size: 36px;}
	/*h2 { font-size: 24px;}
	/*footer { height: 760px; bottom: -760px;}*/
}

@media screen and (max-width: 362px)
{
	footer { height: 60px; }
}
/*@media screen and (max-width: 1000px)
{
	footer { height: 500px; bottom: -500px;}
} 
@media screen and (max-width: 700px)
{
	footer { font-size: 14px; }
	h1 { font-size: 40px; }
}


@media screen and (max-width: 600px)
{
	img { max-width: 300px; height: auto;}
	/*button, a.button { margin-left: 7em; }
	footer { height: 700px; bottom: -700px;}
	h1 { font-size: 36px; }
	h2 { font-size: 32px; }
}

@media screen and (max-width: 500px)
{
	.tree { float: none; margin: 20px auto; text-align: center; width: 80%;}
}

@media screen and (max-width: 450px)
{
	h1 { font-size: 30px; padding: 20px 0;}
	h2 { font-size: 28px; }
}

@media screen and (max-width: 400px)
{
	.tree { width: 98%;}
}

@media screen and (max-width: 350px)
{
	h1 { font-size: 28px; }
	h2 { font-size: 26px; }
}*/

.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: 12px; }
table.data th { font-family: Tahoma; color: #333333; }
table.data th { background: #F0F0F0; padding: 4px 7px; border: #E2E2E2 solid 1px; text-align: center; }
table.data td { padding: 4px 7px; border: #E2E2E2 solid 1px; color: #333333; line-height: 1.4; }

.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; }

#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: Tahoma; }
.cart img { display: block; margin: 0; }

.cart-close-button, .cart-checkout-button 
{
	display: block;
	float: left;
	font-size: 14px;
	padding: 5px 15px;
	
}

.cart-checkout-button { margin-right: 10px; }

.cart-close-button:hover, .cart-checkout-button:hover { background: #E31B40; color: #FFF; }


.commonForm { padding: 10px 5px 20px 5px; margin: 0 auto; }
.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: 14em; margin-right: 1em; text-align: left; color: #666666; } 
.commonForm select { margin: 0; border: 1px solid #BBB; padding: 3px 3px 3px 1px; } 
.commonForm input { margin: 0; } 
.commonForm input[type='text'] { width: 20em; padding: 8px 3px; border: 1px solid #BBB; } 
.commonForm input[type='date'] { width: 20em; padding: 5px 3px; border: 1px solid #BBB; } 
.commonForm input[type='email'] { width: 20em; padding: 8px 3px; border: 1px solid #BBB; } 
.commonForm input[type='password'] { width: 20em; padding: 8px 3px; border: 1px solid #BBB; } 
.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; 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: 10em; }  
.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: 0px; padding-left: 0px; }
.commonForm button { /*font-size: 16px;*/ display: inline;}
.commonForm a { font-size: 16px; }
.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; }

#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; }

.modalShadowLayout 
{
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0.6;
}


#cookie_notification{
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  position: fixed;
  bottom: 2vh;
  left: 50%;
  width: 900px;
  max-width: 90%;
  transform: translateX(-50%);
  padding: 25px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#cookie_notification p{
  margin: 0;
  font-size: 0.8rem;
  text-align: left;
  color: $color_text;
}

.cookie_accept { background: #F5CD4F; font-weight: 600; box-shadow: 2px 2px 2px #000; }
.cookie_accept:hover { box-shadow: none; }


@media (min-width: 576px){
  #cookie_notification.show{
    display: flex;
  }
  .cookie_accept{
    margin: 0 0 0 25px;
  }
}

@media (max-width: 575px){
  #cookie_notification.show{
    display: block;
    text-align: left;
  }
  .cookie_accept{
    margin: 10px 0 0 0;
  }
}