* {
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
	font-family: Helvetica, sans-serif;
}

body {
    background: #18181b;
}

.main_container {
    margin: 0 auto;
    margin-top: 15px;
    /* padding: 15px; */
    max-width: 1250px;
    background: white;
    display: flex;
    /* flex-wrap: wrap; */
}

.main_container > .nav_panel {
    min-width: 300px;
    display: block;
    background: #535e84;
    padding: 0px;
    margin: 0px;
}

.main_container > .nav_panel > ul {
    list-style-type: none;
}

.main_container > .nav_panel > ul > li {
    background: white;
    border-bottom: 10px solid #535e84;
    border-left: 10px solid #18181b;
    border-bottom: 10px solid #535e84;
    border-top: 10px solid #535e84;
    /* border-radius: 30px 0px 0px 90px; */
}

.main_container > .nav_panel > ul > li > a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 15px;
}

.main_container > .nav_panel > ul > li:hover {
    background: #edf0f7;
    cursor: pointer;
}

.block_of_articles {
	display: flex;
	flex-wrap: wrap;
}

.article {
    width: 250px;
    margin: 30px;
}

.article .image {
    width: 250px;
    border: 6px solid #bdc1d0;
}

.article .title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #364471;
    line-height: 30px;
}

.article .title a {
	text-decoration: none;
	color: #364471;
}

.article .title a:hover {
	color: #364471;
	text-decoration: underline;
}

.article .description {
    font-size: 14px;
    line-height: 28px;
    color: #303956;
}

.article .category {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    background: #edf0f7;
    padding: 6px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #535e84;
}

.article .link a {
    background: #ffffff;
    color: #21273c;
    text-decoration: none;
    margin-top: 16px;
    display: inline-block;
    border: 1px solid #cdd1e0;
    padding: 10px;
    border-radius: 6px;
}

.article .link a:hover {
    background: #f2f5f9;
}

.article_small {
	width: 250px;
    margin: 30px;
}

.article_medium {
	width: 250px;
    margin: 30px;
}

.article_large {
	width: 350px;
    margin: 30px;
}

.article.article_large .image {
	width: 350px;
}

.article_string {
    width: 100%;
    margin: 0px 30px;
}

.article_string .title {
    font-size: 14px;
    padding: 6px 15px;
    background: #f4f4f7;
}

.article_string .title a {
    color: #364471;
    text-decoration: none;
}

.article_string .title a:hover {
	text-decoration: underline;
}

.article_string .image, .article_string .description, .article_string .category, .article_string .link {
	display: none;
}

.change_size_posts_block {
    margin: 0 auto;
    text-align: center;
	margin-top: 30px;
}

.change_size_posts_block a {
    background: #535e84;
    padding: 6px 10px;
    display: inline-block;
    margin-right: 16px;
	margin-bottom: 10px;
    color: white;
    border-radius: 30px;
    font-size: 14px;
}

.change_size_posts_block a:hover {
    cursor: pointer;
	background: #465179;
}

.active_size_button {
	background: #448438 !important;
}

.active_category {
    background: #ffffff !important;
    font-weight: 700;
    color: #182654;
    border-bottom: 10px solid #a9caa3 !important;
    border-top: 10px solid #a9caa3 !important;
}

.block_of_buttons {
    display: block;
    text-align: center;
    width: 100%;
}

.block_of_buttons p {
    color: white;
    display: inline-block;
    margin-right: 30px;
}

.loading_block {
	margin: 30px;
	font-weight: 700;
    color: #182654;
}

.nav_panel p {
	margin: 15px;
	color: white;
	font-weight: 700;
}

.button-cover {
	
}

.knobs, .layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.button
{
    position: relative;
    width: 74px;
    height: 36px;
    margin: 15px;
    overflow: hidden;
}

.button.r, .button.r .layer
{
    border-radius: 100px;
}

.button.b2
{
    border-radius: 2px;
}

.checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knobs
{
    z-index: 2;
}

.layer {
    width: 100%;
    background-color: #fcebeb;
    transition: 0.3s ease all;
    z-index: 1;
}

/* Button 1 */
#button-1 .knobs:before
{
    content: 'НЕТ';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    background-color: #f44336;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knobs:before
{
	content: 'ДА';
    left: 42px;
	background-color: #448438;
}

#button-1 .checkbox:checked ~ .layer
{
    
	background-color: #edf0f7;
	
}

#button-1 .knobs, #button-1 .knobs:before, #button-1 .layer
{
    transition: 0.3s ease all;
}

.medium_button {
	display: none !important;
}

@media screen and (max-width: 768px){
	
	.main_container {
		flex-wrap: wrap;
	}

	.main_container > .nav_panel {
		width: 100%;
		padding: 0px;
		margin: 0px;
	}


}

@media screen and (max-width: 480px){
	
	.article.article_small, .article.article_large, .article.article_medium {
		width: 80% !important;
		margin-left: 10% !important;
	}
	
	.article .image {
		width: 100% !important;
	}
	
	.small_button, .large_button {
		display: none !important;
	}
	
	.medium_button {
		display: inline-block !important;
	}
	
	.active_size_button .medium_button {
		background: #448438 !important;
	}
	
	.article.article_small img, .article.article_large img {
		width: 100% !important;
	}
	
	
	
}