﻿/*
Theme Name: New DNIO
Author: FLN
Description: Нова покращена тема для вашого сайту.
Version: 1.0
*/
body {
     font-size: 0.875rem;
}

h1 {
  font-size: 2.2rem;
}
h2{
   font-size: 1.875rem;
}
h3{
   font-size: 1.5rem;
}

p {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.25rem; }
  body, p { font-size: 0.85rem; }

}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h3 { font-size: 1rem; }
  body, p { font-size: 0.78rem; }
}


.textwidget {
    display: block;
}

.textwidget p{
    display: inline;
    margin: 0;
    padding: 0;
}
 a {
 	color: #c94c61;
 }
 a:hover {
 	color: #ab3f51;
 	opacity: 0.9;
 }

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 {
	display: flex;
	justify-content: space-around;
    padding: 15px 25px 10px;
}

.header-logo {
	padding: 0 15px;
	max-width: 330px;
	width: 330px;
}
.header-logo img {
	width: 100%;
	height: auto;
}

.header-sitename {
    width: 60%;
    display: flex;
    align-items: center;
    height: min-content;
    align-self: center;
/*	background-color: rgba(0, 0, 0, 0.4);*/
	border-radius: 5px;
	padding: 10px;
}

.header-sitename a {
    
    text-align: center;
	font-size: 1.65rem;
	font-weight: bold;
	padding: 10px;
	color: #7b1e3c;
  /*  text-shadow: 3px 5px 6px #000;*/
}

.logo-school {
	max-width: 90px;
	margin-top: 10px; 
}

.header-row {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
    margin: 15px 15px 0px;
}

.cr_version {
	background-color: rgba(0, 0, 0, 0.5);
	background-image: url(img/glasses_white.png);
	background-repeat: no-repeat;
	background-position: 10px 50%;
	padding: 10px 10px 10px 55px;
    color: #fff;
    border: 1px solid #F2FBEF;
    border-radius: 8px; 
    width: 235px;
    cursor: pointer;
}

.search-field {
	height: auto;
	background-color: rgba(0, 0, 0, 0.5);	
	padding: 10px 55px 10px 10px;
    color: #fff;
    border: 1px solid #F2FBEF;
    border-radius: 8px;
}

.search-field::placeholder {
	color: #fff;
	opacity: 0.9;
}
.btn-search {
	width: 42px;
	height: 42px;
	background-image: url(img/search_white.png);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	position: absolute;
	right: 1px;
    top: 0px;
}
.search-forma {position: relative; width: 235px;}

@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: 120px;
		margin-top: 10px;
}

@media only screen and (max-width: 768px) {
	.header { flex-wrap: wrap; justify-content: space-around;}
	.header-logo {order: 1; }
	.header-sitename { width: 75%; margin: 5px auto; order: 2; }
	.header-row { margin-top: 5px; margin-bottom: 15px; order: 0; flex-direction: row; justify-content: space-around; width: 100%;}
}

@media only screen and (max-width: 630px) {
    .header-logo { order: 1; }
    .header-sitename {  order: 2; }
    .header-row {order: 0;  }
}

@media only screen and (max-width: 520px) {
    .header-row { flex-direction: column; align-items: center; height: 90px; justify-content: end;}
}

@media only screen and (max-width: 480px) {
	.header-row { flex-wrap: wrap; justify-content: center; }
	.search-forma {margin: 0 12px 5px; width: 201px;}
}
@media only screen and (max-width: 439px) {
	
	#header .header-logo a img{  height: auto;  max-width: 80px; }
	.header-row img {max-width: 65px;  height: auto; margin-top: 5px;}
	.header-sitename { width: 78%;	padding: 0;}
	.header-sitename a {  font-size: 0.9rem;  height: auto;}
}

@media only screen and (max-width: 320px) {
	.header-sitename { width: 90%;}
}	

.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;
	}
}
.navbar-collapse { width: 100%; }
.moby #open.navbar-toggle {
	margin-top: 3px;
    margin-bottom: 27px;
}
.show-menu {
	display: block;
	
	-webkit-transition:
    width 2s;
  transition:
    width 2s;
}
.icon-close {
    display: none; 
	font-weight: bolder; 
	color: #fff;
	font-size: 1.5rem;
    font-family: cursive;
    position: absolute;
    top: 4px;
    left: 12px;
}

/******Блок последние новости в правом сайдбаре********/
#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;
}
.slide{ margin-bottom: 10px; }

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:#f5f0eb;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.alignleft {
	float: left;
	padding: 5px 10px 10px 0;
}
.alignright {
	float: right;
	padding: 5px 0 10px 10px;
}


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




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

.all-info a{
    display: flex;
    justify-content: center;
	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;
	}
}

/*******конец блока полезных ссылок*********/
.carousel-slider__post-publication-date {display: none;}

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

footer .social {
	display: flex;
	justify-content: center;
}
footer .social a {
	display: inline-block;
	margin: 0 5px;
}

#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: #c94c61;
}
footer a:hover {
	color: #ab3f51;
}

.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: #7b1e3c;
}
.carousel-slider__post footer a {
	color: #3c763d;
}

.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: #CABAC8;
    border-bottom: 1px solid #cdb1ca;
}

.readmorelink a {
	color: #c94c61;
}

.readmorelink:hover {
	background: #efe0ed;
	border: 1px solid #c94c61;
}
.readmorelink:hover a {
	color: #ab3f51;
}



/***********Страницы и записи************/
.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;
}
/***********************/

/***********************/
.bg-school {
  background-color: #fcf4de;;
}

.adress {
	 margin: 0 auto 20px;
    font-size: 1.25rem;
    text-align: center;
}
.adress .title {
	font-size: 1.5rem;
	font-weight: 600;
}
.adress .phone {
	font-style: italic;
}

@media (max-width: 768px) {
  .adress { font-size: 1.18rem; }
  .adress .title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .adress { font-size: 1rem; }
  .adress .title { font-size: 1.3rem; }
}

.carousel-slider .carousel-slider__item img {
	
	object-fit: contain; 
}

.main-slider {
	margin: 0 auto 20px;
}

div.carousel-slider__post-excerpt , div.carousel-slider__post-author{
	display: none;
}
a.carousel-slider__post-title {
 color: #000;
}

a.carousel-slider__post-title:hover {
 opacity:  0.8;
}


.carousel-slider .owl-item {
	background-color: #F2FBEF;
}

.carousel-slider__post footer {
	padding: 0;
}
.footer-title .title {
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	margin: 15px auto 30px;
}

.wp-block-calendar table td {
    padding: 5px;
    background: #F2FBEF;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.title-slick {
	background-color: #6b705c;
    border-bottom: 1px solid #3a3f2d;
    padding: 12px 15px;
    font-size: 22px;
}

@media (max-width: 768px) {
    .title-slick  {font-size: 1.125rem;}
}

@media (max-width: 480px) {
  .title-slick {font-size: 1rem;}
}


h2.title-slick { color: #fff; }
.body-slider {
	margin: 15px auto 35px;
}

.news-left .slick-prev,
.news-left .slick-next
{
    top: 94%;
     -webkit-transform: translate(0, 0%);
    -ms-transform: translate(0, -0%);
    transform: translate(0, 0%);
}

button.slick-next:before {
     font-family: "Font Awesome 6 Free"; /* или "Font Awesome 6 Pro", если pro-версия */
  font-weight: 900; /* важно для solid */
  content: "\f152"; /* код иконки fa-square-caret-right */
  font-size: 28px;
  color: #333; /* или нужный цвет */
}
button.slick-prev:before {
     font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f191"; /* fa-square-caret-left */
  font-size: 28px;
  color: #333;
}

.news-left .slick-next { right: 40px; }
.news-left .slick-prev { right: 82px; left: auto; z-index: 200; }


.news-left .slick-dots li {display: none;}
.news-left .title-post{
	width: 80%;
    display: block;
    font-size: 25px;
    text-align: center;
    margin-top: 15px;
}

/*.news-left .slick-slide .info-item a {*/
.news-left .slick-slide  a {
	height: 650px;
	display: block;
}
.news-left .slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* вписывает и обрезает лишнее */
  object-position: center; /* центрирует изображение */
}

div.slick-dotted.slick-slider {
    padding: 5px 30px;
}

.navbar-toggle { margin-left: 30px; }

button.slick-next {
    right: 8px;
}
button.slick-prev {
    left: 3px;
}

div div#n2-ss-2 .n2-style-c371bed12e94c3d9e638bf8bdeb281dd-simple {
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0px;
    text-align: end;
}

div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple
{
    white-space: nowrap;
    font-size: 42px;
    line-height: 102px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    letter-spacing: 0px;
    text-shadow: rgba(0, 0, 0, 0.13) 2px 2px 0px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 35px;
}

@media (max-width: 992px)
{
   div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple { font-size: 38px; line-height: 90px; }
}

@media (max-width: 768px)
{
   div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple { font-size: 32px;  line-height: 60px;}
}

@media (max-width: 632px)
{
   div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple { font-size: 28px; line-height: 36px; padding: 5px 15px;}
}

@media (max-width: 480px)
{
   div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple { font-size: 24px; line-height: 32px; }
}

@media (max-width: 400px)
{
   div div#n2-ss-2 .n2-font-1bc0f869f2100043a30427cdfe9ebf36-simple { font-size: 18px; line-height: 20px; }
}

.slick-slide a {
    display: block;
}
.slick-slide a img {
    margin: auto;
}

.info-item {
	display: flex;
	padding: 20px;
}
div.slick-track {
	display: flex;
	align-items: center;
}

.container-full {
    margin-right: 15px;
    margin-left: 15px;
}

footer .contact {
	text-align: center;
}

footer .adress h3 {
	text-align: center;
	margin-bottom: 15px;
}

