﻿/*
Theme Name: New DNIO
Author: FLN
Description: Нова покращена тема для вашого сайту.
Version: 1.0
*/

.textwidget {
    display: block;
}

.textwidget p{
    display: inline;
    margin: 0;
    padding: 0;
}


footer .footer-menu .contact {
/*	display: none; */
}

.search-nav .next {
	float: right;
}

.search-nav .prev {
	float: left;
}

.search-nav {
	padding-left: 15px;
	padding-right: 15px;
}

.selectpicker {
	margin: 20px 0;
}

.buttons-list h2 {
	font-size: 22px;
}

.buttons-list.law-source-list li {
	margin: 8px !important;
}

.your-message textarea {
	width: 100% !important;
}

.table-zaklady {
    font-size: 12px;
}

.region .district-content .box table tr a.webpage {
	color: #337ab7;
}

.region .district-content .box table tr a.webpage:hover {
	color: #23527c;
}

.important-information .all-info>div>p, .important-information .all-info>div img {
	float: left;
}

.important-information .all-info>div>p {
	width: 100%;
}

.post-content .aligncenter {
	display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-text ul {
    list-style: disc;
}

#main-plan {
	font-weight: bold;
}

/*****стили шапки********/
.header-logo {
	width: 20%;
	text-align: center;
	float: left;
}

.header-sitename {
    width: 50%;
    float: left;
	margin: 10px auto 0;
}

.header-sitename a {
    vertical-align: middle;
    display: table-cell;
    height: 100px;
    text-align: center;
	font-size: 1.5rem;
	color: #eee;
	font-weight: bold;
	padding: 10px 0 0;
}



.right-part-header {
    width: 30%;
    text-align: center;
}

@media only screen and (max-width: 1200px) {
	.header-sitename {
    margin: 0;
	}
}


@media only screen and (max-width: 928px) {
	.header-sitename a{
    font-size: 1.3rem;
	}

	.header-sitename {
    padding: 10px 0 0;
	}
}


#header .header-logo a img {
		height: auto;
		max-width: 100px;
		margin-top: 10px;
}

@media only screen and (max-width: 768px) {
	#header .right-part-header {
		margin-top: 10px;
	}
	
	#cr_widget a {
		padding: 8px;
		font-weight: bold;
	}
}

@media only screen and (max-width: 439px) {
	
	#header .header-logo a img {
    height: auto;
    max-width: 70px;
	}
	
	.header-sitename {
    width: 78%;
	}

	.header-sitename a{
    font-size: 1rem;
	height: auto;
}

	.header-sitename {
    padding: 0;
}


}
	

.right-part-header form#searchform,
.right-part-header .version {
    clear: both;
}

.right-part-header form#searchform {
    width: auto;
    text-align: center;
    margin: 0 5%;
    width: 90%;
    border-radius: 5px;
}

.menu-header {
    width: 100%;
	padding: 0;
}


@media only screen and (min-width: 769px) {
	.menu-header .navbar .navbar-collapse .navbar-nav {
		display: block;
		float: none;
	}

	.navbar-nav > li {
		display: inline-block;
		float: none;
	}
}


@media only screen and (max-width: 599px) {
	.header-sitename {
    width: 80%;
    float: left;
	}

	.right-part-header {
    width: 100%;
	margin: 10px auto;
	}
	
	#cr_widget, .right-part-header form#searchform {
    display: inline-block !important;
    width: 40%;
	}
	
	#cr_widget a {
    padding: 6px 10px 12px !important;
	}
}


/**************/

/******Блок последние новости в правом сайдбаре********/
#lastNews h2 {
	text-align: center;
	font-weight: bold;
}


/*******Блок свежие документы Нове на сайті*******/
.documents {
    width: 62%;
    float: left;
	margin: 0 2.3%;
}

.documents .title-information {
    border-bottom: 1px #78ab5f solid;
    background-color: #f6f8f9;
    margin: 0 0px 25px;
}

.documents .title-information p {
    font-size: 15px;
    display: inline-block;
    color: #525252;
    text-transform: uppercase;
    padding: 15px 10px 12px;
}

#documents-items .content {
    margin: 15px 0;
    display: block;
}

#documents-items .date {
    font-weight: bold;
	color: #777;
	font-size: 0.7;
}

@media only screen and (max-width: 767px) {
	.documents {
    width: 94%;
    float: none;
    margin: 0 auto;
	}

}


/**************/



/*******Календарь*******/
#calendar_wrap {
    margin: 0 auto;
    text-align: center;
    display: grid;
}

#calendar_wrap td, #calendar_wrap th {
    text-align: center;
}

table {
	border: none;
}

table td a {
	font-weight: bold;
	display: block;
}

.title-calendar {
	text-align: center;
}

table, table tr, table td {
    border-spacing: 2px;
    border-collapse: separate;
}

table td {
    padding: 5px;
    background: #ddd;
    border-radius: 3px;
    border: 1px solid #ccc;
}



/**************/




/*****блок полезные ссылки на главной****/
.all-info {
    text-align: center;
}

.all-info a{
    display: inline-block;
	margin: 5px 2%;
}

.all-info img {
    max-height: 180px;
    width: auto;
}

.important-information .all-info > div {
    width: 46%;
    display: inline-flex;
    float: none;
    margin: 0 1%;
    height: 100px;
    vertical-align: middle;
}

.important-information .all-info > div img {
    margin: 0 10px 0 0;
    max-height: 80px;
    max-width: 150px;
	border-radius: 3px;
}

.all-info a {
	width: 96%;
}

@media only screen and (max-width: 769px) {
	.important-information .all-info > div > p a {
    text-transform: none;
	font-size: 0.9rem;
    font-weight: bold;
	}
	
	.important-information .all-info > div img {
    max-height: 80px;
    max-width: 120px;
	}
	
	.important-information .all-info > div {
    width: 90%;
	}
	
}

@media only screen and (max-width: 669px) {
	.important-information .all-info > div > p a {
    text-transform: none;
	font-size: 0.9rem;
    font-weight: bold;
	}
	
	.important-information .all-info > div img {
    max-height: 80px;
    max-width: 120px;
	}
}

/*******конец блока полезных ссылок*********/


/*******стили в футере*********/
footer .image {
    display: block;
    max-width: 100px !important;
    margin: 0 auto;
}


#footer1 ul.sub-menu {
	display: none;
}

footer h4 {
    display: block;
    text-align: center;
    margin: 0 0 5px;
}

footer .col-lg-4:first-child .textwidget {
	text-align: center;
}

footer a {
	color: #fff;
}

.footer-title, .footer-menu {
	padding: 0px 5px;
}

footer .container {
    padding: 0 5px;
    margin: 0 auto;
}

.copyright {
    margin: 25px auto 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
}

/*******конец стиля в футере*********/


/*********Рубрика новости**************/
.news {
    margin: 20px 0;
	display: table;
}

.date-post {
    margin: 2px 10px;
    font-weight: bold;
    color: #888;
}

.news h1 a {
    font-size: 1.3rem;
    line-height: 1.5rem;
    display: block;
	color: #09653C;
}

.preview-image, .news-excerpt {
    float: left;
}

.preview-image {
	width: 18%;
	margin: 5px 1%;
}

.news-excerpt {
	width: 80%;
}

.readmorelink {
	margin: 20px 0 0;
	float: right;
	font-weight: bold;
	padding: 10px;
	border-radius: 15px;
	background-color: #09653C;
	border: 1px solid #ccc;
}

.readmorelink a {
	color: #fff;
}

.readmorelink:hover {
	background: #ccc;
	border: 1px solid #bbb;
}
.readmorelink:hover a {
	color: #444;
}



/***********Страницы и записи************/
.post-text {
    min-height: 600px;
}

/***********************/

/***Стили для формы обратной связи****/
.contact-us a{
display:block;
text-align:center; /*выравнивание текста по центру*/
text-decoration:none;  /*убрать подчёркивание у ссылки*/
margin:auto;  /*выравнивание кнопки по центру*/
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
transition: all 0.5s ease;
position: fixed;
bottom: 40px;
right: 20px;
z-index: 3;
background: #96D777;
border-radius: 50%;
}


.wpcf7-form h4 {
	text-align: center;
	margin: 10px 0;
	}

.wpcf7-form textarea {
	height: 100px;
	padding: 0 10px;
	}

.wpcf7-form input {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 0 10px;
	}

.wpcf7-form p, .wpcf7-form label {
	text-align: center;
	font-size: 0.9rem;
	}


#fancybox-outer, #fancybox-content {
	border-radius: 5px;
}

.contact-us img {
    width: 35px;
	height: 40px;
	margin: 12px 13px 8px;
}

/**************Кнопка отправить на форме***************/
.wpcf7-form input[type="submit"] {
    border-radius: 10px;
    width: auto;
    margin: 10px auto 0;
    display: block;
	background: #00C12B;
	color: #fff;
	font-size: 1.4rem;
}


/**************Каптча на форме обратной связи***************/
.cf7sr-g-recaptcha div {
    margin: 0 auto;
}
.cf7sr-g-recaptcha {
    text-align: center;
    margin: 0 auto;
    display: block;
}
/*****************************/



/***********************/
.menu-item-has-children:hover > a + .sub-menu {
    display: block;
}

.menu-item-has-children.hovers > a + .sub-menu {
    display: block;
}
/***********************/

/***********************/