#main_block {
	background-image: url(img/main.jpg);
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
	min-height: 500px;
}

/* slider */

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

.slider {
	background: white;
	height: 100px;
	margin: auto;
	overflow: hidden;
	position: relative;
}

.slider::before, 
.slider::after {
	background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
	content: "";
	height: 100px;
	position: absolute;
	width: 200px;
	z-index: 2;
}

.slider::after {
	right: 0;
	top: 0;
	transform: rotateZ(180deg);
}

.slider::before {
	left: 0;
	top: 0;
}

.slider .slide-track {
	animation: scroll 40s linear infinite;
	display: flex;
	width: calc(250px * 14);
}

.slider .slide {
	height: 100px;
	width: 250px;
}

/* block slide */

.bs_container {
	position: relative;
	border-radius: 15%;
}

.bs {
	position: absolute; top: 200px; left: 0;
	display: block;
	background-color: transparent;
	text-align: center;
	transition: top 750ms;
}

.bs_container:hover .bs {
	top: 10px;
}

.bs_text {
	height: 0;
	color: transparent;
	transition: color 1s;
}

.bs_container:hover .bs_text {
	height: auto;
	color: #000;
}

.bs_logo {
	transition: opacity 750ms;
}

.bs_container:hover .bs_logo {
	opacity: 0;
}

/* ----------------------------------------------------------------------------------------------------------------------- */
/* navigation */
.navigation .navigation_button {
	display: none;
}

.navigation .br {
	display: none;
}

.navigation nav {
	display: flex; 
	flex-direction: row;
}

.navigation .categories {
	position: absolute; top: 48px; left: -80px;
	display: none; flex-direction: row;
}

#phones_main {
	display: flex;
	justify-content: flex-end;
}

#logo_main {
	display: flex; justify-content: flex-start;
}

#logo_main > img {
	width: 347px; height: 200px;
}

#slogan {
	display: flex;
	justify-content: flex-start;
}

#slogan > p {
	padding: 20px 0;
	font-size: 40px;
	font-weight: bold;
	color: #fff;
}

@media screen and (max-width: 767px) {
	.navigation .navigation_button {
		display: flex;
	}
	
	.navigation .br {
		display: flex;
	}
	
	.navigation nav {
		display: none;
		flex-direction: column;
	}
	
	.navigation .categories {
		position: static;
		flex-direction: column;
	}
	
	#phones_main {
		justify-content: center;
	}
	
	#logo_main {
		display: flex; justify-content: center; align-items: center;
	}
	
	#logo_main > img {
		width: 217px; height: 125px;
	}
	
	#slogan {
		justify-content: center;
	}
	
	#slogan > p {
		padding: 20px 0;
		font-size: 24px;
	}
}
/* end navigation */

/* other style */
.navigation {
	position: relative; z-index: 10;
	display: flex; flex-wrap: wrap; align-items: center;
	padding: 20px 50px 0;
	background-color: transparent;
}

.navigation_button  {
	position: relative;
	margin-left: auto;
	width: 30px; height: 6px;
	background-color: #fff;
}

.navigation_button:before,
.navigation_button:after {
	content: " ";
	position: absolute; 
	width: 30px; height: 6px;
	background-color: #fff;
}

.navigation_button:before {
	top: 10px;
}

.navigation_button:after {
	top: 20px;
}

.link,
.link:focus	{
	padding: 10px;
	text-decoration: none; font-size: 20px; white-space: nowrap;
	color: #fff;
}

.link:hover {
	text-decoration: none; 
	color: rgb(235,126,23);
}

#categories_container {
	position: relative; 
	display: flex; 
	flex-direction: column;
}