.page-wrap {
    display: flex;
    flex-direction: column;
}
.footer{
    margin-top: auto;
}
.header {
    background: transparent;
}
.logo_b {
    display: block!important;
}
.main .width-wrap:first-child, main .width-wrap:first-child {
    margin-top: 160px;
}
.content__news{
    margin-bottom: 60px;
}
.content__news *{
    font-size: 20px;
    line-height: 1.4;
}
{
    margin-top: 20px;
    padding-bottom: 20px;
}
h1{
   margin-bottom: 40px;
}
.content__news p{
    margin-bottom: 15px;
    font-weight: 400;
}
.content__news img{
    max-width: 600px;
}
.content__news img.content__news_img{
    max-width: 320px;
}
.content__news ul, .content__news ol{
    margin-bottom: 20px;
}
.content__news li{
    display: block;
    padding-left: 75px;
    margin: 10px 0;
    position: relative;
}
.content__news ol>li{
    padding-left: 20px;
    counter-increment: step-counter;
}
.content__news ul>li::after {
    position: absolute;
    content: "";
    display: block;
    height: 2px;
    background: #e81a1a;
    left: 0px;
    top: 14px;
    width: 60px;
}
.content__news ol>li::before {
  content: counter(step-counter)'. ';
}
.content__news a{
    color: #397dff;
}
.any-questions {
background: linear-gradient(129.66deg,#f8f4f4 -1.78%,rgba(255,158,121,.45) 105.51%);
}
.any-questions .background-image {
    padding: 55px 0;
    background-repeat: no-repeat;
    background-size: 1500px;
    background-image: url(//diasoft.com/wp-content/themes/diasoft/diasoft-mobile/css/../img/stack/foot.svg);
}
.header__nav__link.has-submenu::before  {
    left: 0px;
    top: 100%;
    transform: translate(200%, -100%);
}
.header__nav__link.has-submenu::after {
    left: -9px;
    top: 100%;
    transform: translate(85%,-300%);
}
.header__nav__item.active .header__nav__link.has-submenu::before, 
.header__nav__item:hover .header__nav__link.has-submenu::before, 
.header__nav__item.active .header__nav__link.has-submenu::after, .header__nav__item:hover .header__nav__link.has-submenu::after{
    left: 0;
    top: 100%;
    transform: translate(0,-100%);
}
.header__submenu {
    top: 0%;
    padding-top: 40%;
}
.header__submenu::before {
    bottom: 0px;
    height: 100%;
}
.header__nav__item {
    width: 210px;
    -webkit-justify-content: start;
    justify-content: start;
    padding-left: 35px;
  }
.nav_block{
    margin: 0 0 80px;
    display: flex;
    justify-content: space-between;
}
.nav_block{
    position: relative;
    text-transform: uppercase;
}
.nav_block a{
    position: relative;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
}
.nav_block a[rel="next"]{
    padding-right: 16px;
}
.nav_block a[rel="next"]:after{
    position: absolute;
    right: 0;
    content: "»";
}
.nav_block a[rel="prev"]{
    padding-left: 16px;
}
.nav_block a[rel="prev"]:before{
    position: absolute;
    content: "«";
    left: 0;
}
.nav_block a:hover{
    color: #e81a1a;
}
.nav_block a[rel="prev"]{
    order: -1;
}
.post__time{
    display: block;
    position: relative;
    font-size: 18px;
    line-height: 178%;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.post__time:after {
    position: absolute;
    content: "";
    width: 124px;
    height: 4px;
    background: #397dff;
    left: 0;
    bottom: -4px;
}
.wpcf7-spinner{
    display: none!important;
}
.news__list_block{
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
}
.news__list_block .news__item{
    width: 100%;
    margin: 0;
    border: 2px solid #f2f2f2;
    padding: 25px 20px 40px;
    transition: 0.3s;
    text-align: center;
    display: flex;
    gap: 30px;
    /* flex-direction: column; */
    align-items: center;
}
.news__list_block .news__item:hover{
    box-shadow: 0px 0px 30px 0px rgb(57 125 255 / 28%);
}
.news__img_block{
    width: 200px;
}
.news__item__img{
    max-width: 100%;
}
.news__item__title{
    display: block;
    font-size: 20px;
    line-height: 1.5;
    color: #397dff;
    transition: all .2s ease-in-out;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0px 0 20px;
}
.news__list_block .post__time{
    padding-bottom: 0;
    
}
.news__list_block .post__time:after{
    left: 50%;
    transform: translateX(-50%);
}
.news__list_block .news__item span{
    color: #397dff;
    margin: 15px 0 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    text-align: right;
}
.news__text_block{
    text-align: left;
    width: calc(100% - 200px);
}
.pagination {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
}
.pagination a, .pagination span {
    font-size: 18px;
    font-weight: 600;
}
.pagination span.current{
    color: #397dff;
    border-bottom: 1px solid #397dff ;
}
.popular_news{
    border: 2px solid #f2f2f2;
    padding: 25px 0 0;

}
.popular_news__title{
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}
.popular_news ul{
    display: flex;
    flex-direction: column;
}
.popular_news ul li a{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 2px solid #f2f2f2;
    text-transform: uppercase;
    font-size: 16px;
    padding: 20px;
}
.popular_news ul li a span{
    color: #397dff;
    margin: 20px 0 0;
    font-size: 12px;
    font-weight: 600;
}
.news_block .width-wrap {
    margin-top: 45px;
}
@media(max-width: 1600px){
	.header__nav__item {
		width: 200px;
	}
}
@media(max-width: 1460px){
    .header__nav__item {
        width: 180px;
        padding-left: 15px;
    }
    .header__nav__link{
        padding: 15px 2px;
    }
    h1{
        margin-bottom: 35px;
        font-size: 42px;
    }
	
}
@media(max-width: 1366px){
    .header__nav__top {
        display: none;
    }
}
@media(max-width: 1200px){
    h1 {
        font-size: 36px;
        line-height: 1.4;
    }
    .nav_block a{
        font-size: 12px;
    }
    .news__img_block {
        width: 150px;
    }
}
@media(max-width: 992px){
    .nav_block a{
        font-size: 0px;
    }
    .nav_block a.nav_block__back, .nav_block a:before, .nav_block a:after{
        font-size: 16px;
    }
    .main .width-wrap:first-child, main .width-wrap:first-child {
        margin-top: 100px;
    }
    .news_block .width-wrap {
        margin-top: 25px;
    }
    .popular_news{
        margin-bottom: 40px;
    }
    .news__item__title{
        font-size: 18px;
    }
}
@media(max-width: 767px){
    h1{
        font-size: 22px;
    }
    .main .width-wrap:first-child, main .width-wrap:first-child {
        margin-top: 85px;
    }
    .width-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .content__news *{
        font-size: 16px;
    }
    .content__news ul li{
        padding-left: 35px;
    }
    .content__news ul li::after{
        width: 25px;
        top: 13px;
    }
    .content__news{
        margin-bottom: 35px;
    }
    .nav_block{
        margin-bottom: 45px;
    }
    .news__item__title{
        font-size: 16px;
    }
    .news__list_block .news__item{
        padding: 15px 10px 20px;
    }
    .news__list_block .news__item{
        flex-direction: column;
        gap: 0;
    }
    .news__img_block, .news__text_block {
        width: 100%;
        flex: 100%;
        text-align: center;
    }
    .news__item__img {
        max-width: 150px;
    }
    .news__list_block .news__item span{
        text-align: center;
    }
    .content__news h2 * {
        font-size: 20px !important;
    }
}



/*Форма*/
.new_modal{
    max-width: 500px;
    padding:40px 70px 30px;
    position: relative;
    z-index: 5;
    text-align: center;
}
.new_modal h2{
    font-size: 28px;
    line-height: 1.25;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 900;
}
.new_modal br{
    display: none;
}
.new_modal .text_modal{
    display: block;
    font-size: 17px;
    line-height: 1.11;
    text-align: center;
    color: #000000;
    font-weight: 500;
    margin-bottom: 30px;
}
.new_modal .fancy-popup__content span input:not([type=checkbox]), .new_modal .fancy-popup__content textarea{
    background: #fff;
    border:none;
    font-size: 16px;
    line-height: 1.25;
    color: #000000;
    font-weight: 500;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 32px;
    height: auto;
    border: 0.5px solid #000000;
}
.new_modal .fancy-popup__content span input:placeholder:not([type=checkbox]), .new_modal .fancy-popup__content textarea:placeholder{
    color: #969696;
}
.new_modal .fancy-popup__content textarea{
    margin: 0;
    height: 47px;
}
.new_modal .chek_form{
    margin: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;

}
.new_modal .wpcf7-list-item{
    margin: 0;
}
.new_modal .wpcf7-list-item label {
    margin: 0px;
    margin-right: 17px;
    margin-top: 3px;
}
.new_modal .chek_form p{
    font-size: 10px;
    line-height: 1.6;
    color: #000000;
}
.new_modal .chek_form p a{
    font-size: unset;
    line-height: unset;
    color: #4A7EF7;
}
.new_modal small{
    font-size: 12px;
    line-height: 1.4;
    color: #000000;
}   
.new_modal .btn.btn-blue{
    background: #4A7EF7;
    color: #fff;
    font-size: 20px;
    line-height: 78.5%;
    font-weight: 500;
    padding: 20px 60px;
    margin: 0;
    height: auto;
    border: none!important;
    float: right;
}
.new_modal input[type="checkbox"]{
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.new_modal .wpcf7-list-item-label{
    display: inline-flex;
    align-items: center;
    user-select: none;
}
/* создание в label псевдоэлемента before со следующими стилями */
.new_modal .wpcf7-list-item-label::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 70% 70%;
}

/* стили при наведении курсора на checkbox */
.new_modal input[type="checkbox"]:not(:disabled):not(:checked)+.wpcf7-list-item-label:hover::before {
  border-color: #4A7EF7;
}

/* стили для активного чекбокса (при нажатии на него) */
.new_modal input[type="checkbox"]:not(:disabled):active+.wpcf7-list-item-label::before {
  background-color: #4A7EF7;
  border-color: #4A7EF7;
}

/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.new_modal input[type="checkbox"]:focus:not(:checked)+.wpcf7-list-item-label::before {
  border-color: #4A7EF7;
}

/* стили для чекбокса, находящегося в состоянии checked */
.new_modal input[type="checkbox"]:checked+.wpcf7-list-item-label::before {
  border-color: #4A7EF7;
  background-color: #4A7EF7;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* стили для чекбокса, находящегося в состоянии disabled */
.new_modal input[type="checkbox"]:disabled+.wpcf7-list-item-label::before {
  background-color: #e9ecef;
}


.fancybox-slide:after, .fancybox-slide:before{
    content: none;
}
.fancybox-is-open .fancybox-bg {
    background: #FFFFFFAD;
    backdrop-filter: blur(15px);
}
.news {
    padding: 0;
}
.news .width-wrap{
    margin-top: 0!important;
}

@media(max-width: 767px){
    .new_modal h2{
        margin-bottom: 20px;
        margin-top: 0;
    }
    .new_modal .fancybox-close-small{
        width: 45px;
        height: 45px;
    }
    .new_modal{
        padding:25px 30px 30px!important;
    }
    .new_modal .fancy-popup__content span input:not([type=checkbox]), .new_modal .fancy-popup__content textarea{
        font-size: 14px;
        padding: 12px 25px;
        margin: 10px 0!important;
    }
    .new_modal .fancy-popup__content textarea{
        height: 45px;
    }
    .new_modal .text_modal{
        font-size: 14px;
        margin-bottom: 20px;
    }
}