/*!
Theme Name: Krasnitskaya
Author: VAL:T
*/
html, body {
    background-color: #dedede !important;
}
:root{
    margin-top: 0px!important;
}
body{
    color: #000!important;
}
.breadcrumbs{
	padding: 20px 0px 20px 0px;
}
.breadcrumbs__list{
	padding-left: 0px;
}
.breadcrumbs__list a{
	text-decoration: none;
	color: #5E1E0D;
}
.header_logo{
	display: flex;
	height: 30px;
	width: auto;
}
.header_logo img,.footer-logo img{
    filter: grayscale(1);
}
.footer-logo{
	display: flex;
	height: 30px;
	width: auto;	
	padding: 30px 0px;
}
.footer-logo img{
	height: 40px;
}
.about_contant{
    padding-top: 30px;
}
header{
    background-color: #777;    
	margin-bottom: 30px;
	padding: 15px 0px;
}
.nav-link.active{
    color: #fff!important;
}
footer{
	background-color: #777;
	padding: 20px 0px;
	margin-top: 50px;
	margin: auto 0 0;
}
footer a, footer a p{
	color: #fff;
	text-decoration: none;
}
a{
    color: #5E1E0D;
    text-decoration: none;
    font-weight: 600;
}
a:hover{
    font-weight: 900;
}
.footer-body{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.footer-menu{
	display: flex;
	justify-content: center;
	padding-top: 30px;
}
.footer-menu li{
	list-style: none;
	padding: 10px 15px;
}
.footer-menu li a{
	color: #fff;
	text-decoration: none;
}
#contacts-footer{
	margin-top: -7px;
}
#schedule-footer{
	margin-top: 0px;
}
#contacts-box{
	padding: 43px;
}
.pt-20{
	padding-top: 20px;
}
.pb-20{
	padding-bottom: 20px;
}
.minus-margin-3{
	margin-top: -3px;
}
.mt-0{
    margin-top: 0px;
}
.navbar{
	height: 100%;
}
.navbar-collapse{
	display: flex;
	justify-content: space-between;
}
.nav-link {
	color: #fff;
}
#row-main{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 50px;
}
.left-col{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.footer-contacts{
	display: flex;
	gap: 30px;
	justify-content: center;
	padding-bottom: 30px;
}
#index-main-right-col{
	padding-top: 100px;
}


.home_posts{
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
    gap: 30px;
    padding: 20px 0px 50px 0px;
}
.home_posts h2{
    color: #5E1E0D;
}
.home_posts h2::first-letter, .hero_h1::first-letter {
    font-family: 'Monplesir script';
    font-weight: normal;
}
.hero_block{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}
.hero_h1{
/*		background-color: #fff;*/
   /* border: 1px solid #a0a0a0;*/
    margin: 0px 0px 20px 0px;
    padding: 20px;	
		width: 100%;
}
.hero_h1 span{
	color: #5E1E0D;
	font-weight: 600;
}

.hero_right-image{
	/*max-width: 100%;*/
	max-width: 80%;
	border: 2px solid #a0a0a0;
}
.top_content{
    display: flex;
    flex-direction: column;
    width: 60%;
}
.top_content_right{
    width: 40%!important;
    background-image: url('https://krasnitskaya.com/wp-content/uploads/2026/03/1_20260312_220534_0000.png');
    padding: 25px;
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    overflow: hidden;
}
.posts_list{
    display: flex;
    flex-direction: column;
}
.single_post{
    display: flex;
    flex-direction: column;
    gap: 10px;
    /*background-image: url(https://krasnitskaya.com/wp-content/uploads/2026/03/paper-scaled.webp);*/
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #a0a0a0;   
    margin: 10px 0px;
    padding: 20px;
    
}
.single_post h2, .single_post h3, .single_post h4{
    margin-bottom: 0px;
}
img.aligncenter{
    display: flex;
    margin: 0 auto;
}
.post_bottom p:has(img){
    filter: grayscale(0.8);
}
.post_bottom p:has(img.alignright) {
  display: flex;
  justify-content: right;
}
.post_bottom p:has(img.alignleft) {
  display: flex;
  justify-content: left;
}
.single_post h3{
    text-align: center;
    color: #a0a0a0;
}
.post_top{
    display: flex;
    gap: 20px;
}
.post_top__img img{
    width: 256px;
    height: 256px;
    object-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
    overflow: hidden;  
    filter: grayscale(0.9);
    border-radius: 5px;
}
.posts_forms{
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
}
.modal_button, .details_button{
    background-color: #fff;
    color: #a0a0a0;
    border:  1px solid #a0a0a0!important;
    padding: 5px 25px;
    border-radius: 30px;
    border: 0;
    font-weight: bold;   
    text-transform: uppercase;
}
.modal_button:hover, .details_button:hover{
    background-color: #a0a0a0;
    color: #fff;
    border: 1px solid #a0a0a0!important;    
}
.details_button{
    text-decoration: none;
    text-align: center;
    width: 250px;
}
.post_bottom{
    color: #000!important;
}
.post_bottom p{
    font-size: 16px;
    color: #000!important;
}
.post_top__short{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.single_home_posts{
	padding-top: 0px;
}
	#index-main .post_top__short__content{
      overflow: hidden;
      text-overflow: ellipsis;
      display: -moz-box;
      -moz-box-orient: vertical;
      display: -webkit-box;
      -webkit-line-clamp: 8;
      -webkit-box-orient: vertical;
      line-clamp: 8;
      box-orient: vertical;	
      color: #000!important;
      text-align: justify;
	}
.post_bottom p, .post_top__short__content{
    text-align: justify;
}	
.post_top__short__content::first-letter {
  float: left;
  font-size: 3.5em;      /* регулирует высоту (3–5 строк) */
  line-height: 1;
 padding-right: 30px;
  padding-top: 30px;
  padding-left: 10px;
  font-weight: 700;
  font-family: 'Monplesir script';
}	
.nav-link:focus, .nav-link:hover{
    color: #5E1E0D;
}
.single_post__cat{
    display: flex;
    justify-content: center;
    gap: 15px;
}
.single_post__catlink{
    white-space: nowrap;
}
.avtor_date_info{
    display: flex;
    justify-content: space-between;
}
.avtor_info{
    text-align: left;
}
.date_info{
    text-align: right;
}
#wrap-about-image{
    filter: grayscale(1);
    z-index: 9;
}
.contacts_block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 50px;
}
.contacts_title{
    font-size: 2.5rem;
    color: #5E1E0D;    
    font-weight: bold;
}
.contacts_title::first-letter{
    font-family: 'Monplesir script';
    font-weight: 300;
}
.contacts_box_first, .contacts_box_second{
    display: flex;
    justify-content: center;
    gap: 30px;
}
.contacts_item{
    border-radius: 15px;
    border: 1px solid #777;
    background-color: #fff;
    padding: 20px;
    width: 330px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contacts_item a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contacts_item i{
    border-radius: 50%;
}
.contacts_item p{
    text-align: center;
}
.archive_pagination{
    padding: 50px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #717171;
    font-family: Manrope;
    font-weight: 800;
    font-size: 18px;
    line-height: 100%;
    text-align: center;
    gap: 50px;
}
.archive_pagination .next, .archive_pagination .prev, .archive_pagination .page-numbers{
    display: flex;
    align-items: center;
    justify-content: center;
	background-color: #fff;
    border: 1px solid #666;
    width: 56px;
    height: 56px;
}
.archive_pagination .page-numbers.current, .archive_pagination .page-numbers:hover{
    color: #fff;
    background-color: #a0a0a0;
}  

.category_list{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.all_cat_item{
    background-color: #fff;
    color: #a0a0a0;
    border:  1px solid #a0a0a0!important;
    padding: 5px 25px;
    border-radius: 30px;
    font-weight: bold;   
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 400;
    min-height: 40px;
}
.all_cat_item:hover, .all_cat_item.current{
    background-color: #a0a0a0;
    color: #fff;
    border:  1px solid #a0a0a0!important;
    font-weight: 400;
}
.all_cat_item__count, .all_cat_item__name{
    width: 100%;
}
.all_cat_item__count{
    position: relative;
}
.all_cat_item__count span{
    background-color: #5E1E0D;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: absolute;
    right: -50px;
    top: -30px;
}
.all_cat_item__name{
    text-align: center;
}
@media(max-width: 1300px){
    .hero_h1{
        font-size: 30px;
    }
}
@media(max-width: 1024px){
    .category_list{
        padding-top: 30px;
    }
    .top_content{
        order: 2;
    }
    .contacts_title{
        font-size: 1.3rem;
    }   
    .contacts_box_first, .contacts_box_second{
        flex-direction: column;
    }
    .contacts_item{
        height: 80px;
    }
	#row-main{
		flex-direction: column;
	}
	.footer-contacts{
		flex-direction: column;
		align-items: center;
	}
	#index-main-right-col{
		padding-top: 0px;
	}
	.single_post__cat{
	    justify-content: center;
	}
	.home_posts{
	    padding-top: 0px;
	    gap: 0px;
	}
    .hero_block{
        flex-direction: column;
    }
    .top_content, .top_content_right{
        width: 100%!important;
        margin-bottom: 20px;
    }
    .mob-none{
        display: none;
    }
    .archive_pagination{
        gap: 10px;
    }
    .archive_pagination .next, .archive_pagination .prev, .archive_pagination .page-numbers{

        width: 35px;
        height: 35px;
    }    
}
@media(max-width: 767px){
	header{
		padding-bottom: 20px;
	}
	.footer-menu, .footer-bottom, .footer-bottom div{
		flex-direction: column;
		justify-content: center;
		padding-left: 0px;
	}
	.footer-bottom div{
		width: 100%;
	}
	.footer-bottom div a p{
		white-space: nowrap;
	}
	.contacts_map iframe{
		height: auto;
		width: 100%;
	}
	#contacts-box{
		padding: 40px 20px!important;
	}	
	#contacts-box a{
		font-size: 16px;
	}
	.header_logo{
		display: none;
	}
	.navbar{
		min-height: 57px;
	}
	.footer-menu li a {
		text-align: center;
	}	
	#index-main .post_bottom{
		display: none;
	}
	#index-main .post_top__short{
		align-items: center;
	}
	#index-main .post_top__short__content{
      overflow: hidden;
      text-overflow: ellipsis;
      display: -moz-box;
      -moz-box-orient: vertical;
      display: -webkit-box;
      -webkit-line-clamp: 6;
      -webkit-box-orient: vertical;
      line-clamp: 6;
      box-orient: vertical;		
	}
    .post_top {
        flex-direction: column;
        align-items: center;
    }
    .post_bottom p{
        font-size: 16px;
        color: #000;
    }
    .posts_forms{
        flex-direction: column;
        gap: 30px;
    }
    .modal_button{
        width: 100%;
    } 
    .post_bottom p:has(img.alignright), .post_bottom p:has(img.alignleft) {
      display: flex;
      justify-content: center;
    }    
}