body {
	margin:0;
	padding:0;
	/*background-image: url('../image/background.jpg'); */
	background-repeat: repeat-x repeat-y;
	background-position: top;
	
}


ul {
	font-family: Tahoma;
	font-size: 15px;
	line-height: 1.4;
	padding: 0;
	/*margin-bottom: 50px;*/
	color: #3e3e3e;
	/*list-style-image: url('../image/li.png');*/
	
	/*text-indent: 20px;*/
	text-align: justify;
	
	/*padding-right: 10px;
	padding-left: 10px;*/

	}

h1 {
	text-indent: 20px;
	font-size: 18px;
	font-family: Tahoma;
	text-align: left;
	color: #33556f;
	margin: 10px;
	text-decoration: none;
	
		
}

h2 {
	text-indent: 20px;
	font-size: 18px;
	font-family: Tahoma;
	text-align: left;
	color: #33556f;
	margin: 10px;
	text-decoration: none;
	
		
}



article {
	text-indent: 20px;
	font-size: 18px;
	font-family: Tahoma;
	text-align: left;
	
}


article h2 {
    font-size: 24px !important;
	font-weight: normal;
}

article p {
    font-size: 14px;
}
    
#navbar ul {
    display: none;
    background-color: #999999;
    position: absolute;
    top: 100%;
}
      
#navbar li:hover ul { display: block; }

#navbar, #navbar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
      
#navbar {
    height: 42px;
    background-color: #999999;
    padding-left: 25px;
    min-width: 770px;
	max-width: 1200px;
}

#navbar li {
    float: left;
    position: relative;
    height: 100%;
}
      
#navbar li a {
    display: block;
    padding: 10px 6px;
    width: 110px;
    font-size: 17px;
    line-height: 22px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
      
#navbar ul li { float: none; }

#navbar li:hover { background-color: #000000; }

#navbar ul li:hover { background-color: #000000; }
	  
	  
.up {
	/*background-image: url('../image/background2.png');  */
	background-repeat: repeat-x repeat-y;
	margin-top: 10px;
	margin-bottom: 30px;
	border-collapse: collapse;
	vertical-align: middle;
}
	

.title {
    margin-top: 1px;
	margin-left: 1px;
	margin-bottom: 1px;
	border-collapse: collapse;
	
}


.link a:link {
    color: #63859f;
	text-decoration: underline;
	
}	

.link a:hover {
    color: #63859f;
	text-decoration: none;
	
}

.link a:visited {
    color: #63859f;
	text-decoration: underline;
	
}



.indent {
    text-indent: 20px;
	color: #3e3e3e;
	font-family: Tahoma;
	font-size: 13px;
	line-height: 1.4;
	text-align: justify;
	
	padding-right: 10px;
	padding-left: 10px;
		
}

.quote {
	text-indent: 20px;
	font-family: Helvetica;
	line-height: 1.4;
	font-size: 14px;
	color: #3e3e3e;
}

.img {
	/*padding-bottom: 10px;*/
	float: left;
	padding-bottom: 10px;
	
	
}

.img2 {
	padding-left: 10px;
	/*float: left;*/
	margin: 7px 7px 7px 0;
	/*vertical-align: left;*/
	
}

.img3 {
	padding-left: 10px;
	/*float: left;*/
	margin: 20px 20px 20px 0;
	vertical-align: middle;
	
}



/* Общая область: статьи и боковая колонка */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    gap: 25px;
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: start;
}

/* Три столбца статей */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    min-width: 0;
    align-items: start;
}


.posts-grid article {
    min-width: 0;
    height: 260px;
    overflow: hidden;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    padding: 10px;
    border: none;
	text-indent: 0;
}

.posts-grid article h2 {
    margin: 0 0 10px;
    text-indent: 0;
    font-size: 19px !important;
    line-height: 1.3;
    font-weight: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.posts-grid article h2 a {
    text-decoration: none;
}


.posts-grid article p {
    margin: 8px 0;
    line-height: 1.4;
}

.posts-grid article img {
    width: 100%;
    max-width: 100%;
    max-height: 100px;
    object-fit: cover;
}

.post-title {
    text-align: center;
}

.post-image {
    display: block;
    margin: 0 auto;
}

.post-content {
    max-width: 850px;
	margin: 30px auto;
    font-family: Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
	text-indent: 25px;
    overflow-wrap: anywhere;
}

.post-content p {
    text-indent: 25px;
    margin-top: 0;
    margin-bottom: 15px;
}

.post-meta {
    text-align: center;
	font-family: Tahoma, sans-serif;
    font-size: 18px;
}

/* Правая колонка */
.sidebar {
    min-width: 0;
    overflow-wrap: anywhere;
	text-align: center;
}

.bs-content {
    min-width: 0;
}

/* Планшеты и узкие экраны */
@media (max-width: 1000px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-content {
        max-width: 100%;
        margin: 20px auto;
        font-size: 16px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .post-title {
        font-size: 24px;
        line-height: 1.3;
        padding: 0 15px;
        overflow-wrap: anywhere;
    }

    .post-image {
        max-width: 100%;
        height: auto;
    }

    body {
        padding: 0 10px;
    }

}

/* Телефоны: сначала все статьи, затем боковая колонка */
@media (max-width: 600px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-content {
        max-width: 100%;
        margin: 20px auto;
        font-size: 16px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .post-title {
        font-size: 24px;
        line-height: 1.3;
        padding: 0 15px;
        overflow-wrap: anywhere;
    }

    .post-image {
        max-width: 100%;
        height: auto;
    }

    body {
        padding: 0 10px;
    }


}

