.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
.clearfix {  
    *zoom: 1;  
}  
/* вирівнювання по середені */
nav{
	margin: 0 auto;
    text-align: center;
}
/* вирівнювання по середені */
nav ul {
  list-style: none;
  padding: 0;
  margin: 1px;
  background: #FFF;
  height: 100px;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  display: inline-block;
}
@media (max-width: 992px) {
	nav ul {
		 margin: 3px;
	}
}
nav ul li {
  float: left;
  position: relative;
}
nav ul li:first-child{
	border-left: 1px solid #E7E7E7;
}
nav ul li a {
  display: block;
  text-decoration: none;
  padding: 18px 20px;
  text-align: center;
  color: #454545;
  border-right: 1px solid #E7E7E7;
}
nav ul li a i {
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
}
nav ul li a img {
  display: block;
  margin: 10px auto;
  height: 30px;
}
nav ul li a strong {
  display: block;
  text-transform: uppercase;
}
nav ul li a small {
  display: block;
  font-size: 10px;
}

nav ul li a i, nav ul li a strong, nav ul li a small {
  position: relative;
  
  transition: all 300ms linear;
  -o-transition: all 300ms linear;
  -ms-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -webkit-transition: all 300ms linear;
}
nav ul li:hover > a i {
    opacity: 1;
    -webkit-animation: moveFromTop 300ms ease-in-out;
    -moz-animation: moveFromTop 300ms ease-in-out;
    -ms-animation: moveFromTop 300ms ease-in-out;
    -o-animation: moveFromTop 300ms ease-in-out;
    animation: moveFromTop 300ms ease-in-out;
}


nav ul li a img, nav ul li a strong, nav ul li a small {
  position: relative;
  
  transition: all 300ms linear;
  -o-transition: all 300ms linear;
  -ms-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -webkit-transition: all 300ms linear;
}
nav ul li:hover > a img {
    opacity: 1;
    -webkit-animation: moveFromTop 300ms ease-in-out;
    -moz-animation: moveFromTop 300ms ease-in-out;
    -ms-animation: moveFromTop 300ms ease-in-out;
    -o-animation: moveFromTop 300ms ease-in-out;
    animation: moveFromTop 300ms ease-in-out;
}

nav ul li:hover a strong {
    opacity: 1;
    -webkit-animation: moveFromLeft 300ms ease-in-out;
    -moz-animation: moveFromLeft 300ms ease-in-out;
    -ms-animation: moveFromLeft 300ms ease-in-out;
    -o-animation: moveFromLeft 300ms ease-in-out;
    animation: moveFromLeft 300ms ease-in-out;
}
nav ul li:hover a small {
    opacity: 1;
    -webkit-animation: moveFromRight 300ms ease-in-out;
    -moz-animation: moveFromRight 300ms ease-in-out;
    -ms-animation: moveFromRight 300ms ease-in-out;
    -o-animation: moveFromRight 300ms ease-in-out;
    animation: moveFromRight 300ms ease-in-out;
}

nav ul li:hover > a {
  color: #e67e22;
  background: #F7F7F7;
}
nav ul li a.active {
  position: relative;
  color: #e67e22;
  border:0;
  border-top: 4px solid #e67e22;
  border-bottom: 4px solid #e67e22;
  margin-top: -4px;
  box-shadow: 0 0 5px #DDD;
  -moz-box-shadow: 0 0 5px #DDD;
  -webkit-box-shadow: 0 0 5px #DDD;
}
nav ul li a.active:before {
  content: "";
  position: absolute;
  top: 0;
  left: 45%;
  border-top: 5px solid #e67e22;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

/*
@-webkit-keyframes moveFromTop {
    from {
        opacity: 0;
        -webkit-transform: translateY(200%);
        -moz-transform: translateY(200%);
        -ms-transform: translateY(200%);
        -o-transform: translateY(200%);
        transform: translateY(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0%);
        -moz-transform: translateY(0%);
        -ms-transform: translateY(0%);
        -o-transform: translateY(0%);
        transform: translateY(0%);
    }
}
@-webkit-keyframes moveFromLeft {
    from {
        opacity: 0;
        -webkit-transform: translateX(200%);
        -moz-transform: translateX(200%);
        -ms-transform: translateX(200%);
        -o-transform: translateX(200%);
        transform: translateX(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}
@-webkit-keyframes moveFromRight {
    from {
        opacity: 0;
        -webkit-transform: translateX(-200%);
        -moz-transform: translateX(-200%);
        -ms-transform: translateX(-200%);
        -o-transform: translateX(-200%);
        transform: translateX(-200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}
*/



nav ul li ul,
nav ul li ul li ul {
  position: absolute;
  height: auto;
  min-width: 200px;
  padding: 0;
  margin: 0;
  background: #FFF;
  border-top: 4px solid #e67e22;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms linear;
  -o-transition: all 300ms linear;
  -ms-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -webkit-transition: all 300ms linear;
  top: 130px;
  z-index: 1000;
}
nav ul li ul:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 23%;
  border-bottom: 5px solid #e67e22;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
nav ul li:hover > ul,
nav ul li ul li:hover > ul {
  display: block;
  opacity: 1;
  visibility: visible;
  top: 100px;
}
nav ul li ul li {
  float: none;
}
nav ul li ul li a {
  padding: 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #EEE;
}
nav ul li ul li a i {
  font-size: 16px;
  display: inline-block;
  margin: 0 10px 0 0;
}
nav ul li ul li ul {
  left: 230px;
  top: 0;
  border: 0;
  border-left: 4px solid #e67e22;
}  
nav ul li ul li ul:before {
  content: "";
  position: absolute;
  top: 15px;
  left: -14px;
  border-right: 5px solid #e67e22;
  border-bottom: 5px solid transparent;
  border-top: 5px solid transparent;
}
nav ul li ul li:hover > ul {
  top: 0px;
  left: 200px;
}



nav ul li.float {
  float: right;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    nav ul {
		height: 85px;
	}
	nav ul li a {
		padding: 18px 4px;
	}
	nav ul li a i {
		font-size: 22px;
	}
	nav ul li a img {
		height: 22px;
	}
	nav ul li a strong {
		font-size: 12px;
	}
	nav ul li a small {
		font-size: 10px;
	}
	nav ul li a.search {
		display:none;
	}
	.search-mobile { 
		display:block !important;
		margin: 20px;
		border-radius:3px;
		-moz-border-radius:3px;
		-webkit-border-radius:3px;
	}
	nav ul li:hover > ul {
		top:85px;
		min-width:180px;
	}
	nav ul li ul li > ul {
		min-width:150px;
		left:200px;
		top:0;
	}
	nav ul li ul li:hover > ul {
		min-width:150px;
		left:180px;
		top:0;
	}
	nav ul li ul li ul li ul {
		min-width:150px;
		left:25px !important;
		top:54px;
		border:0;
		border-top:3px solid #e67e22;
	}
	nav ul li ul li ul li:hover ul {
		top:35px;
	}
	nav ul li ul li ul li ul:before {
		border:0;
		border-bottom:5px solid #e67e22;
		border-left:5px solid transparent;
		border-right:5px solid transparent;
		left:10%;
		top:-8px;
	}
	nav ul li:hover ul a {
		font-size:12px;
	}
	nav ul li:hover ul a i {
		font-size:14px;
	}
	 nav ul li > ul li{
	    display: none;
    }
}

/*
@media only screen and (min-width: 480px) and (max-width: 767px) {
    nav ul {
      height: 42px;
      position: relative;
    }
	nav ul li a {
		padding: 12px 17.7px;
	}
    nav ul li a strong, nav ul li a small, nav ul li a.search {
      display: none;
    }
    nav ul li a i {
      margin: 0;
      font-size: 18px;
    }
    nav ul li a img {
      margin: 0;
      height: 18px;
    }
    nav ul li {
      position: static;
    }
    nav ul li ul {
      min-width: 100%;
      left: 0;
      top: 50px;
    }
    nav ul li:hover > ul {
      top: 42px;
    }
    nav ul li > ul:before {
      border:0;
    }
    nav ul li ul > li {
      position: relative;
    }
    nav ul li ul li:hover > ul {
	  left:34px;
    }
	nav ul li a {
		position: relative;
		font-size:12px;
	}
	nav ul li a:hover strong,nav ul li a.active strong {
		display:block;
		font-size:10px;
		padding:3px 0;
		position:absolute;
		top:-20px;
		left:0;
		background:#e67e22;
		color:#FFF;
		min-width:100%;
		text-transform:lowercase;
		font-weight:normal;
	}
	nav ul li a.active:before{
		left: 40%;
	}
	.search-mobile { 
		display:block !important;
	}
	
	nav ul li ul li > ul {
		min-width:200px;
		left:200px;
	}
	nav ul li ul li:hover ul {
		left:180px;
	}
	nav ul li ul li ul:before {
		left:-9px;
	}
	nav ul li ul li ul li ul {
		min-width:200px;
		border:0;
		border-top:3px solid #e67e22;
		left:25px !important;
		top: 45px;
	}
	nav ul li ul li ul li:hover ul {
		top:40px;
	}
	nav ul li ul li ul li ul:before {
		border:0;
		border-bottom:5px solid #e67e22;
		border-left:5px solid transparent;
		border-right:5px solid transparent;
		left:10%;
		top:-8px;
	}
}
*/

/*
@media only screen and (max-width: 479px) {
    nav ul {
      height: 42px;
      position: relative;
    }
    nav ul li a strong, nav ul li a small, nav ul li a.search {
      display: none;
    }
    nav ul li a {
      padding: 12px 13.8px;
		font-size:12px;
    }
    nav ul li a i {
      margin: 0;
      font-size: 18px;
    }
    nav ul li a img {
      margin: 0;
      height: 18px;
    }
    nav ul li {
      position: static;
    }
    nav ul li ul {
      min-width: 100%;
      left: 0;
      top: 50px;
    }
    nav ul li:hover > ul {
      top: 42px;
    }
    nav ul li > ul:before {
      border:0;
    }
    nav ul li ul > li {
      position: relative;
    }
    nav ul li ul li:hover > ul {
	  left:34px;
    }
	nav ul li a {
		position: relative;
	}
	nav ul li a:hover strong,nav ul li a.active strong {
		display:block;
		font-size:10px;
		padding:3px 0;
		position:absolute;
		top:-20px;
		left:0;
		background:#e67e22;
		color:#FFF;
		min-width:100%;
		text-transform:lowercase;
		font-weight:normal;
	}
	nav ul li a.active:before{
		left: 40%;
	}
	
	nav ul li ul li > ul {
		min-width:150px;
		left:160px;
	}
	nav ul li ul li:hover ul {
		left:120px;
	}
	nav ul li ul li ul:before {
		left:-9px;
	}
	nav ul li ul li ul li ul {
		min-width:160px;
		left:25px !important;
		top:39px;
		border:0;
		border-top:3px solid #e67e22;
	}
	nav ul li ul li ul li:hover ul {
		top:39px;
	}
	nav ul li ul li ul li ul:before {
		border:0;
		border-bottom:5px solid #e67e22;
		border-left:5px solid transparent;
		border-right:5px solid transparent;
		left:10%;
		top:-8px;
	}
    
}
*/

nav a#pull {  
    display: none;  
} 
@media screen and (max-width: 600px) {  
    nav {   
        height: auto;  
    }  
    nav ul {  
        width: 100%;  
        display: block;  
        height: auto;  
    }  
    nav li {  
        width: 50%;  
        float: left;  
        position: relative;  
    }  
    nav li a {  
        border-bottom: 1px solid #576979;  
        border-right: 1px solid #576979;  
    }  
    nav a {  
        text-align: left;  
        width: 100%;  
        text-indent: 25px;  
    }  
    nav ul li > ul li{
	    display: none;
    }
}  

@media only screen and (max-width : 480px) {  
    nav {  
        border-bottom: 0;  
    }  
    nav ul {  
        display: none;  
        height: auto;  
    }  
    nav a#pull {  
        display: block;  
        background-color: #FF5A1F;
        color: #fff;
        width: 100%;  
        position: relative;  
        padding: 10px;
    }  
    nav a#pull:after {  
        content:"";  
        background: url('nav-icon.png') no-repeat;  
        width: 30px;  
        height: 30px;  
        display: inline-block;  
        position: absolute;  
        top: 10px;  
        right: 10px;
    }  
     nav ul li > ul li{
	    display: none;
    }
} 
@media only screen and (max-width : 320px) {  
    nav li {  
        display: block;  
        float: none;  
        width: 100%;  
    }  
    nav li a {  
        border-bottom: 1px solid #576979;  
    }  
     nav ul li > ul li{
	    display: none;
    }
}  





/* ----------------------- verticalmenu ------------------------------------- */


			.mainNav {
			background: #fff;
			border: 1px solid #e5e5e5;
			
		}
			/* First Level */
			.mainNav ul {
				margin: 0;
				padding: 0;
				list-style: none;
/* 				border-bottom: 1px solid #e5e5e5; */
			}
			.mainNav ul li {
				border-top: 1px solid #e5e5e5;
			}
			.mainNav ul li a {
				color: #252531;
				display: block;
				font-size: 1.1em;
				line-height: normal;
				padding:12px 20px;
				text-decoration:none;
			}
			.mainNav ul li a:hover {
				background: #F7F7F7;
				text-decoration: none;
				color: #FDA26E;
			}
			
				/* Second Level */
				.mainNav ul ul {
					border-bottom: none
				}
				.mainNav ul ul li {
					border-top: 1px solid #e5e5e5;
					background: #fff;
				}
				.mainNav ul ul li a {
					color: #252531;
					display: block;
					font-size: 1em;
					line-height: normal;
					padding: 0.5em 1em 0.5em 2.5em;
				}
				.mainNav ul ul li a:hover {
					background: #F7F7F7;
					color: #FDA26E;
				}
						/* Third Level */
				.mainNav ul ul ul {
					border-top:1px solid #e5e5e5;
				}
				.mainNav ul ul ul li {
					border:none;
				}
				.mainNav ul ul ul li a {
					padding-left:3.5em; 
					padding-top:0.25em; 
					padding-bottom:0.25em;
				}
			/* Accordion Button */
			ul li.has-subnav .accordion-btn {
				color:#252531; 
				background:#F7F7F7; font-size:16px;
			}
		
		

