body {
  padding: 0em; 
  margin: 0px;
  height: 100%;
  position: relative;
  font-family: Roboto;
}

.flex-container {
  display: flex;
  flex-flow: row wrap;
  text-align: center;  
  height: 100%;  
  max-width: 1200px;
  margin: 0 auto;
}

.flex-container > * {
  padding: 10px;  
}

/* Задаём всем элеметам ширину в 100% */
.header, .main, .nav, .aside, .footer {
  flex: 1 100%;
}


@media only screen and (min-width: 800px) {
	.btn {
		display: none;
	}	
	
}

@media only screen and (max-width: 800px) {
	.btn {
		display: block;
	}
}

@media all and (max-width: 800px) {
	.aside { 
		/*flex: 1 auto;*/
		display: none;	
	} 	
}

@media all and (min-width: 800px) {
	
	.main    { flex: 6 0px;}
	
	.aside  { flex: 1 auto; }
	
	.aside-left { 
		order: 1; 		
		align-items: stretch;					
	} 	
	
	.main    { 
		order: 2; 
                min-height: 600px;
	}  
        
        .blocks    { flex: 6 100%; order: 3;}
	
	.footer  { 	
		order: 4; 
	}        
        
}


.header {
    background: url('../images/logo.png') no-repeat;
    height: 150px;
    background-size: 120px;
    text-align: left; 
    background-position: 20px;
}

.header .logo-text {
    margin-left: 150px; 
    margin-top: 20px;
    font-family: Oswald; 
    font-size: 24px;
    text-align: center;
    max-width: 500px;
    color: #363696;
}

.header .logo-main {
    font-size: 36px;
    color: #FA3636;
    margin-top: -10px;
}

.footer {
   text-align: left;
   border-top: solid 1px #aaa;
}

.main {
  text-align: left;
  /*background: deepskyblue;*/  
  min-height: 600px;
  font-size: 14px;
}

.aside-left {
  background: #FFF;  
  text-align: left;
  max-width: 300px;
  font-size: 14px;
}

.aside-left ul li {
    line-height: 2.5em;
}

.blocks {
  display: flex;
  flex-flow: row wrap;  
  justify-content: center;
  border-top: solid 1px #aaa; 
  min-height: 50px;
}

/* Задаём всем элеметам ширину в 100% */
.newsblock {
  padding: 10px;  
  width: 190px;
  height: 250px;  
  margin: 5px 5px 0px 0;
}

.newsblock {
	background: #eee;
}

.menu {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	display: none;
	width: 200px;
	background-color: gray;
	z-index: 10;
}

.btn {
	background: url('../images/btn_icon.svg') no-repeat;
	background-position: 8px 0;
	position: absolute;
	top: 10px;
	left: 10px;
	width: 48px;
	height: 36px;
	border: none;
}

.cls {
	position: absolute;
	bottom: 20px;
	right: 10px;
}
