/* ==========================================================================
 Header
========================================================================== */
#header {
	position: relative;
	padding: 18px 0 36px;
	margin: 0 10px;
}

#header .logo {margin-right: 12px;}
#header .logo a {display: block; width: 124px; height: 88px;}
#header .logo a img {display: block;}

#header .table__col {
	width: 1%
}
#header .table__col.header--menu {
	width: 4%;
	display: table-cell;
	height: auto;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
	#header .table__col.header--menu {
		width: 2%;
	}
}
#header .header--menu__col {
	width: 50%;
	float: left;
}
#header .header--menu__col:first-child {
	padding-right: 20px;
}
#header ul li a {color: #50585f; text-decoration: none;}
#header ul li a:hover {text-decoration: underline;}

#header ul li.active a {font-weight: bold;}

.header--other {margin-right: 12px;text-align: right}
@media (min-width: 768px) {
	.header--other > form { float: right; }
}
.header--other form > div {height: 29px; padding-left: 0; line-height: 29px;}
.header--other form > div input {display: block; float: left; margin: 0 3px 0 0;}
.header--other form > div input.submit {height: 29px;}

.header--menu__lang {
	display: none;
	
	border-top: solid 1px #6c757c;
	padding: 10px 5px;
	text-align: center;
}
.header--menu__lang a {
	color: #bdc3c7;
	font-size: 13px;
}
@media (max-width: 767px) {
	#header {
		padding: 10px 0;
		min-height: 70px;
		width: 100%;
		margin: 0;
	}
	#header .header--logo {
		display: table-cell;
	}
	#header .header--other,
	#header .header--logo {
		float: left;
		width: 50%;
		display: block;
		margin: 0
	}
	#header .logo a {
		height: 37px;
		margin-left: 10px;
		overflow: hidden;
	}
	#header .table__col.header--menu.collapse {
		display: none;
	}
	#header .table__col.header--menu.collapse.in {
		display: block;
	}
	#header .table__col.header--menu {
		width: 100%;
		position: absolute;
		left: 0px;
		right: 0px;
		top: 65px; /* vyska hlavicky 50px + padding 18px */
		background: #50585f;
		z-index: 999;
	}
	#header .header--menu__col__wrap {
		padding: 20px 10px 20px 25px;
		overflow: hidden;
	}
	#header ul li a {
		color: #fff;
		font-size: 14px;
		line-height: normal;
		padding: 7px 0;
		display: block;
	}
	.header--other > *:not(form) {
		display: none;
	}
	.header--other .navbar-toggle {
		display: block;
	}
	.header--other .search-toggle {
		display: block;
	}
	.header--menu__lang {
		display: block;
	}
}
@media (max-width: 767px) {
	.header--other form .header--search-form {
		width: calc(100vw);
		position: absolute;
		left: 0px;
		right: 0px;
		top: 70px; /* vyska hlavicky 50px + padding 18px */
		background: #50585f;
		z-index: 999;
		height: auto;
		padding: 0;
	}
	.header--other form .header--search-form .header--search-form__wrap {
		padding: 20px 30px;
		overflow: hidden;
	}
	#header .header--other form .header--search-form.collapse {
		display: none;
	}
	#header .header--other form .header--search-form.in {
		display: block;
	}
	#header .header--other form .header--search-form.in > * {
		display: block;
	}
}
@media (min-width: 768px) {
	#header--navbar__collapse {
		display: table-cell !important;
	  height: auto !important;
	}
	#header--search__collapse {
		display: block !important;
		height: inherit !important;
	}
}
@media (max-width: 969px) {
	#header .header--search-form input[type="text"] {
		width: 52%;
	} 
}
#header form .submit {padding: 0 18px;}

/* Navbar toggle */
.navbar-toggle {
	display: none;
	position: relative;
	float: right;
	margin-right: 15px;
	padding: 9px 10px;
	margin-top: 8px;
	margin-bottom: 8px;
	background-color: transparent;
	background-image: none;
	border-radius: 4px;
	
	background: #fff;
	border: solid 1px #ededed;
	
	line-height: 0;
}
.navbar-toggle:focus {
	outline: 0;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

#header .navbar-toggle .icon-bar {
  background-color: #888888;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-property: height, visibility;
  -o-transition-property: height, visibility;
     transition-property: height, visibility;
  -webkit-transition-duration: 0.35s;
  -o-transition-duration: 0.35s;
     transition-duration: 0.35s;
  -webkit-transition-timing-function: ease;
  -o-transition-timing-function: ease;
     transition-timing-function: ease;
}

/* Animace pri otevrenem mobilnim menu */
.navbar-toggle .icon-bar:nth-of-type(2) {
	  top: 1px;
}

.navbar-toggle .icon-bar:nth-of-type(3) {
  	top: 2px;
}

.navbar-toggle .icon-bar {
	  position: relative;
	  -webkit-transition: all 500ms ease-in-out;
		-moz-transition: all 500ms ease-in-out;
		-ms-transition: all 500ms ease-in-out;
		-o-transition: all 500ms ease-in-out;
		transition: all 500ms ease-in-out;
}

.navbar-toggle.active .icon-bar:nth-of-type(1) {
	  top: 6px;
	  transform: rotate(45deg);
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		-o-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
}

.navbar-toggle.active .icon-bar:nth-of-type(2) {
	  background-color: transparent !important;
}

.navbar-toggle.active .icon-bar:nth-of-type(3) {
	  top: -6px;
	  transform: rotate(-45deg);
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		-o-transform: rotate(-45deg);
		-ms-transform: rotate(-45deg);
}