/*!
Theme Name: Belniced
Author: ГУ "БелНИЦЭД"
Description: Тема оформления для сайта "Архивы Беларуси".
Version: 1.0.0
*/


body {
    font-family: "Open Sans", Helvetica, sans-serif;
    color: #323753;
    background-color: #fefefe;
    /*background: url(../images/bg-light-grey.png);*/
}
 /************  Шрифт заголовков ***********/
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
  color: #1c4965;
  /*clear: both;*/
  width: 100%;
  /*display: inline-block;*/
}
  
h1 { font-size: 2.1rem; line-height: 1.2;  letter-spacing: -.1rem; font-weight: 600; }
h2 { font-size: 1.8rem; line-height: 1.25; letter-spacing: -.1rem; font-weight: 600; }
h3 { font-size: 1.7rem; line-height: 1.3;  letter-spacing: -.1rem; font-weight: 600; }
h4 { font-size: 1.6rem; line-height: 1.35; letter-spacing: -.08rem; font-weight: 600; }
h5 { font-size: 1.5rem; line-height: 1.5;  letter-spacing: -.05rem; font-weight: 600; }
h6 { font-size: 1.4rem; line-height: 1.6;  letter-spacing: 0; font-weight: 600; }

/* Заголовки для мониторов и дисплеев больших планшетов */
@media (min-width: 1281px) {
      h1, h2, h3, h4, h5, h6 {
        /*line-height: 2.8rem;*/
      }
      
      h1 { font-size: 2.4rem; }
      h2 { font-size: 2.0rem; }
      h3 { font-size: 1.8rem; }
      h4 { font-size: 1.7rem; }
      h5 { font-size: 1.6rem; }
      h6 { font-size: 1.5rem; }
}
/******************************************/

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

hr[align="right"] {
    display: inline-block;
    float: right;
}

pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
  margin-bottom: 1.2rem;
  margin-top: 1.2rem;
}

li {
    margin-bottom: 0.6rem;
}
/******************************************/
/******* Цвет ссылок ******/
a {
    text-decoration: none;
    color: #2b6dad /*#0085ba*/;
}

/************ Цвет кнопок *********/
button.button-primary,
input[type=submit].button-primary {
    background-color: #0085ba;
    border-color: #0085ba;
}

/***************** Таблицы в тексте ***************/
table {
    border: none;
    word-wrap: break-word;
}

ol li p,
ul li p {
    display: inline;
}

.gen_table td,
.gen_table th {
    padding: 0.6rem;
}    

.gen_table td,
.gen_table th, 
.gen_table p,
.gen_table b {
    border-color: #c1c1c1;
    font-size: 1.25rem;
}

.gen_table[border="0"] td, 
.gen_table[border="0"] th{
    border: none;
}

.gen_table tr[align="center"] td,
.gen_table td[align="center"] {
    text-align: center;
}

.gen_table tr[align="center"] td a,
.gen_table tr[align="center"] td img {
    display: inline-block;
    text-align: center;
}

table tr[align="center"] td *,
table td[align="center"] * {
    text-align: center;
    display: inline;
    float: none;
}

/* Исправление для таблицы с геральдическими символами */
table.img-inline-block img {
    display: block !important;
    clear: both;
    margin: 1rem auto !important;
}
/**************************************/

table td img.arx_img[align="right"] {
    text-align: right !important;
    display: inline;
    float: right;
}

.kal_table td {
    border: none;
}

.kal_table[border="1"] td {
    border: 0.1rem solid #c1c1c1;
    padding: 0.6rem;
}

/* Чтобы ссылки в списках архивных изданий показывались в отдельных строках */
.kal_table p {
    display: inline-block;
    width: 100%;
}

/********* Картинка "200 гадоу" *****/
table img[src$="log10.jpg"],
table img[src$="kp5.jpg"],
table img[src$="k1.jpg"] {
    display: inline-block;
    float: left;
    margin-right: 0.5rem !important;
    vertical-align: baseline;
}

table img[src$="log10.jpg"] + b,
table img[src$="kp5.jpg"] + b,
table img[src$="k1.jpg"] + b  {
    line-height: 2.1;
    vertical-align: baseline;
}

/* Заглавные картинки тематических проектов*/
@media(max-width: 600px) {
    .thematic_img {
        width: 100% !important;
        height: auto !important;
    }
}

/*** Оформление календаря ***/
center p {
    display: inline-block;
    text-align: center;
}
/*** Выравнивание ссылк "Далей" ***/
hr + p[align="right"] {
    display: inline-block;
    width: 100%;
    clear: both;
}

/************************************************/
/*
.gen_table tr:first-child td {
    font-weight: 600;
}

.gen_table tr:first-child td * {
    float: none !important;
    text-align: center !important;
}
*/
/********************************************/

/****** Стиль маркера для элементов ненумерованного списка *****/
ul li {
    list-style: none;
}

ul li::before {
  content: "\2022";  
  color: #245772;
  font-weight: 700;
  line-height: 1em;
  display: inline-block;
  width: 0.8em;
  font-size: 1.1em;
  box-sizing: border-box;
}

ul ul li::before {
    content: "\26AC";
    font-weight: 500;
}

ul ul ul li::before {
    content: "\25AB";
}

ul ul ul ul li::before {
    content: "-";
}

/**** Не показывать никаких маркеров меред элементами меню 
(когда контейнер меню имеет класс, начинающийся с "menu" или "post") ****/
ul[class^="menu"] li::before,
ul[class^="post"] li::before,
ul[class^="menu"] ul li::before,
ul[class^="post"] ul li::before,
ul[class^="menu"] ul ul li::before,
ul[class^="post"] ul ul li::before,
ul[class^="menu"] ul ul ul li::before,
ul[class^="post"] ul ul ul li::before  {
    content:"";
    display: none;
}
/***************************************************/

/*************** Межстрочные интервалы *************/

ul[class^="menu"] li {
    line-height: 1.92rem;
}


ul.menu-main > li {
    line-height: 2.88rem;
}

p, b, li {
    line-height: 150%/*2.3rem*/;

}

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


p, b, li {
    font-size: 1.5rem;

}

@media(max-width: 1050px) {
    p, b, li {
        font-size: 1.4rem;
    }
}
h1 b, h2 b, h3 b, h4 b, h5 b, 
h6 b, sup b, small b, sub b {
    font-size: inherit;
    font-weight: inherit;
}

nav {
    float: none;
    height: 100%;
    width: auto;
    border-radius: 0.4rem;
    position: relative;
    top: 0;
    left: 0;
    box-sizing: border-box;
    outline: 0;
    /*padding-right: 1.5em;*/
}

footer {
    font-size: 80%;
    min-height: 10rem;
    background-color: #245772;
    color: white;
    margin-top: 3.5rem;
    border-top-left-radius: 0.4rem;
    border-top-right-radius: 0.4rem;
    -moz-border-radius-topleft: 0.4rem;
    -moz-border-radius-topright: 0.4rem;
}

footer > div {
    padding: 1.2rem;
}


button {
    background-color: #1eaedb;
    color: white;
}
.old-ie-warning {
    background-color: yellow;
    border:0.2rem dotted red;
    height: 3.2rem;
    text-align: center;
}

.container {
    max-width:1240px;
}

@media(min-width:1440px) {
    .container {
        max-width:1400px;
    }
}

@media(min-width:1900px) {
    .container {
        max-width:1600px;
    }
}

.main-content {
    overflow-x: auto;
}

.main-content * {
    text-align: left;
}

.main-content center {
    text-align: center;
}
/*=================== Главная страница ===========================*/
.main-header {
    margin-top: 2rem;
}

.table {
    display: table;
}

.front-page-content {
    display: inline-block;
    width: 100%;
    overflow: auto;
}

.front-page-content-item {
    margin-top: 3.5rem; 
    overflow: auto;
}

/**************** Меню ссылок на внешние ресурсы ***************/
.front-page-content-item > div {
    margin: auto;
    overflow: auto;
    padding: auto;
    text-align: center;
}

.menu-other-resources {
    display: table;
    width: 100%;
/*    min-height: 14rem;*/
}

.menu-other-resources > li {
    display: table-cell;
    width: 20%;
    height: 100%;
    padding: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-sizing: border-box;
}

.menu-other-resources > li a {
    border: 0.1rem solid #d1d1d1;
    border-radius: 0.4rem;
    display:block;
    height: 14rem;
    width: 100%;
    color: #245772;
    padding: 0.5rem;
    box-sizing: border-box;
    background-color: white;
}

.menu-other-resources > li a:hover {
    border-color: #245772;
    box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,.6);
    color: #0FA0CE;
}
/*
.front-page-resource-link:first-child {
    float: left;
}

.front-page-resource-link:last-child {
    float: right;
}
*/
.menu-other-resources span {
    display:inline-block;
    width: 100%;
    vertical-align: middle;
    text-align: center;
    height: auto;
}

@media(max-width:1400px) {
    .menu-other-resources {
        display: inline-block;
    }
    

    .menu-other-resources > li {
        width: 50%;
        padding: 0.5rem;
        float: left;
        display: inline-block;
        margin: 0;
    }
    
    .menu-other-resources > li:nth-child(2n+1) {
        padding-left: 0;
    }
    
    .menu-other-resources > li:nth-child(2n) {
        padding-right: 0;
    }
    
    .menu-other-resources > li a {
        font-size: 1.2rem;
    }
}

/******* Параметры меню ресурсов для мобильных устройств ******/
@media(max-width:800px) {
    .menu-other-resources {
        display: inline-block;
    }

    .menu-other-resources > li {
        width: 100%;
        padding: 0.5rem 0;
        display: inline-block;
    }
}

/****************** Значки в меню ресурсов *************/
.menu-other-resources .icon-other-resource {
    display: inline-block;
    margin: auto;
    width: 5rem;
    height: 5rem;
    background: url(../images/menu-resources-teal.png) no-repeat;
    background-size: 15.4rem 15.4rem;

}

.menu-other-resources .res-archives .icon-other-resource {
    background-position: -0.7rem -1rem;
    background-size: 11.5rem 12.4rem;
}

.menu-other-resources .res-libraries .icon-other-resource { background-position: -1.1rem -9.3rem; }
.menu-other-resources .res-organizations .icon-other-resource { background-position: -9.3rem -1rem; }
.menu-other-resources .res-fk .icon-other-resource { background-position: -9.35rem -9.2rem; }
.menu-other-resources .res-gs .icon-other-resource { 
    background-size: 32rem 22rem !important;
    background-position: -24.6rem -8.4rem !important;
    background: url(../images/menu-topics-teal.png) no-repeat;
 }

/* Дополнительная панель с новостями на главной странице (вверху) */
.sidebar-main-upper {
    display: inline-block;
    float: left;
    clear: both;
}

.sidebar-main-upper .news-block-item {
    border: none;
}

.sidebar-main-upper .news-block {
    display: inline-block;
}

.sidebar-main-upper .news-block:first-child {
    float:left;
    display: block;
}   

@media(max-width:900px) {
    .sidebar-main-upper .news-main-left,
    .sidebar-main-upper .news-main-right {
        width: 100%;
        margin: 0;
    }
}
/*=============================================================*/
/************ Меню "Разделы" на главной странице ***************/
/*=============================================================*/
.back-grayish-blue {
    /*background-color: #DBE3E6;*/
}

.menu-site-chapters {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
/*    padding: 0.5rem;*/

}

.menu-site-chapters li {
    display: inline-block;
    box-sizing: border-box;
    height: 15rem;
    padding: 0.5rem;
    width: 25%; /* 4 элемента в строке по умолчанию */
    float: left;
    margin: 0;
}


/****** Изменение размеров элементов Меню "Разделы" в зависимости от ширины дисплея ******/
@media(min-width:1440px) {
    /* 4 элемента в строке */
    /* Нулевой отступ слева для левого элемента в строке */
    .menu-site-chapters li:nth-child(4n+1) {
        padding-left: 0; 
    }

    /* Нулевой отступ справа для правого элемента в строке */
    .menu-site-chapters li:nth-child(4n) {
        padding-right: 0; 
    }
}

@media(min-width:901px) and (max-width:1260px) {
    /* 3 элемента в строке */
    .menu-site-chapters li {
        width: 33.33%;
    }
    
    .menu-site-chapters li:nth-child(3n+1) {
        padding-left: 0; 
    }

    .menu-site-chapters li:nth-child(3n) {
        padding-right: 0; 
    }
}

@media(max-width:900px) {
    /* 2 элемента в строке */
    .menu-site-chapters li {
        width: 50%;
    }
    
    .menu-site-chapters li:nth-child(2n+1) {
        padding-left: 0; 
    }
    
    .menu-site-chapters li:nth-child(2n) {
        padding-right: 0; 
    }
}

@media(max-width:750px) {
    /* 1 элемент в строке */
    .menu-site-chapters li {
        width: 100%;
        padding: 0.5rem 0;
    }
}
/*******************************************************************************/

.menu-site-chapters li a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    color: #245772;
    background-color: white;
    border: 0.1rem solid #d1d1d1;
    border-radius: 0.4rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

.menu-site-chapters li a:hover {
    border-color: #245772;
    box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,.6);
    color: #0FA0CE;
}

.icon-site-chapter {
    clear: both;
    display: inline-block;
    width: 5rem;
    height: 5rem;
    margin: auto;
    /*background: url(../images/up-arrow-teal.png) no-repeat;
    background-size: contain;*/
    background: url(../images/menu-topics-teal.png) no-repeat;
}
/*
/**** Изменять цвет значка при наведении мышы на ссылку *****/
/*
.menu-site-chapters li a:hover .icon-site-chapter {
    background: url(../images/menu-topics-blue.png) no-repeat;
}
*/

.menu-site-chapters span {
    display:inline-block;
    width: 100%;
    vertical-align: bottom;
    text-align: center;
}

/**** Значки элементов дополнительного меню ****/
.topic-administration .icon-site-chapter {
    background-size: 29rem 22rem;
    background-position: -2.1rem -1.8rem;
}

.topic-control .icon-site-chapter {
    background-size: 29rem 20rem;
    background-position: -8.9rem -1.8rem;
}

.topic-archiving .icon-site-chapter {
    background-size: 31rem 23rem;
    background-position: -16.7rem -2.1rem;
}

.topic-legislation .icon-site-chapter {
    background-size: 29rem 20rem;
    background-position: -21.5rem -2.1rem;
}

.topic-findingaids .icon-site-chapter {
    background-size: 32rem 23.5rem;
    background-position: -1.5rem -9.3rem;
}

.topic-genealogy .icon-site-chapter {
    background-size: 30rem 19rem;
    background-position: -9.4rem -6.6rem;
}
.topic-archeography .icon-site-chapter {
    background-size: 32rem 23rem;
    background-position: -17.1rem -9rem;
}

.topic-heraldry .icon-site-chapter {
    background-size: 32rem 22rem;
    background-position: -24.6rem -8.4rem;
}

/******* Услуги и административные процедуры *****/
.topic-services .icon-site-chapter,
.topic-adminproc .icon-site-chapter {
    background-size: 32rem 21rem;
    background-position: -2.3rem -14.2rem;
}

.topic-education .icon-site-chapter {
    background-size: 29rem 21rem;
    background-position: -8.8rem -13.6rem;
}

.topic-magazine .icon-site-chapter {
    background-size: 29rem 21rem;
    background-position: -15rem -14.2rem;
}

.topic-calendar .icon-site-chapter {
    background-size: 33rem 22rem;
    background-position: -25.4rem -14.2rem;
}

.topic-archives-socmedia .icon-site-chapter {
    /*background-size: 33rem 22rem;
    background-position: -25.4rem -14.2rem;*/
    background: url(../images/icon-social-media.png) no-repeat;
}

.topic-archives-newsmedia .icon-site-chapter {
    /*background-size: 33rem 22rem;
    background-position: -25.4rem -14.2rem;*/
    background: url(../images/icon-news.png) no-repeat;
}

.topic-doc-letopis .icon-site-chapter {
    background: url(../images/doc-letopis3.png);
    /*background-size: 31rem 23rem;
    background-position: -16.7rem -2.1rem;*/
}

.topic-jubilee .icon-site-chapter {
    background: url(../images/100-years.png) no-repeat;
}

/*=======================================================*/
/************** Меню в подножии сайта *******************/
/*======================================================*/
.menu-site-footer {
    display: inline-block;
    float: left;
    padding: 1.2rem 0;
    width: 100%;
}

.menu-site-footer li {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1.5rem;
    /*float: left;*/
    box-sizing: border-box;
}

.menu-site-footer li a {
    font-size: 1.3rem;
    color: white;
}

/************************************************************/
/*********** Исправления внешнего вида старой верстки ******/
/***********************************************************/
.main-content img {
    display: block;
    clear: both;
    margin: 2.5rem auto;
    text-align: center ;
}

/* Уменьшить поля для изображений в новостях, выровненных в тексте по левой стороне */
.single .main-content img[align="left"] {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Стили выравнивания изображений */

img.alignleft {
    margin-left: 0;
}

img.alignright {
    margin-right: 0;
}

img.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

img.alignnone {
    display: inline;
    float: none;
}
/************************/
.main-content ul li {
    /*font-size: 1.6rem;*/
    margin-left: 0.5rem;
}

.main-content ul li a.other {
    display: inline;
}

.main-content ul li a.other img {
    display: inline;
    margin: 0 0 0 0.2rem;
}

*[align="center"] {
    text-align: center;
}

*[align="right"] {
    text-align: right;
}

*[align="left"] {
    text-align: left;
}

/* Выравнивание по правому краю для ссылок в ячейках таблицы */
td[align="right"] a {
    float: right;
}

/*
br {
    visibility: hidden;
}*/

td p {
    margin: 0;
}

center img {
    display: inline-block !important;
    margin: 0 auto !important;
    width: auto !important;
    float: none !important;
}

/* Добавить изображениям в новостях, размещенным в тэге center, отступы сверху и снизу */
.single center img {
    margin: 0.5em auto !important;
}

@media(max-width: 450px) {
    .single center img {
        width: 100% !important;
        height: auto !important;
    }
}

center * {
    text-align: center;
}


/**********************************************************/
/*
.title {
    color: #1c4965;
    font-weight: 600;
    line-height: 3.5rem;
    text-align: left;
}
*/
.header-upper-panel {
    min-height: 4.8rem;
    padding: 1rem 0;
}

/* Ссылки на соцсети в верхней части заголовка сайта */
.header-upper-panel .socmedia-links {
    float: right;
    padding: 0.7rem 0 0.3rem 0;
    vertical-align: middle;
    box-sizing: border-box;
}

.header-upper-panel .socmedia-links a {
    border: none;
    vertical-align: middle;
    margin: 0 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.3rem;
}

.header-upper-panel .socmedia-links a:last-child {
    margin-right: 0;
}

.header-upper-panel .socmedia-links a#vk-page-link {
    background-position: 0 0;
    background-size: 8.8rem 2.4rem;

}

.header-upper-panel .socmedia-links a#fb-page-link {
    background-position: -3.15rem 0;
    background-size: 8.8rem 2.4rem;

}

.header-upper-panel .socmedia-links a#ok-page-link {
    background-position: -6.4rem 0;
    background-size: 8.8rem 2.4rem;

}
/*********************************************/
/* Средняя панель заголовка сайта с логотипом */
.header-middle-panel {
    height: 10rem;
    box-sizing: border-box;
    padding: 0 0 2rem 0;
}

.header-middle-panel .quick-search {
    margin-top: 2rem;
    /*width: auto;*/
}


.header-lower-panel {
    height: 6.4rem;
    box-sizing: border-box;
    background-color: #245772;
    border-radius: 0.4rem;

}

.header-lower-banner {
    padding-top: 1rem;
    overflow: auto;
}

.mobile-logo {
    display: none;
}

.mobile-logo a {
    display: inline-block;
    height: 100%;
    padding-left: 1rem;
}

.mobile-logo-title {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-size: 2.4rem;
    line-height: 2.5;
    color: white;
    vertical-align: baseline;
    font-weight: 600;
}

@media(max-width: 450px) {
    .mobile-logo-title {
        font-size: 1.8rem;
        line-height: 3.4;
    }
}

.main-logo-image {
    display: inline-block;
    width: auto;
    height: 100%;
    margin-right: 1rem;
    float: left;
}

.main-logo-default {
    display: inline-block;
    background: url(../images/logo_default.png) no-repeat;
    background-size: contain;
    height: 100%;
    margin-right: 1rem;
    width: 9.636rem;
    float: left;
}

.main-logo-title {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-size: 3.2rem;
    line-height: 2.4;
    height: 100%;
    color: #245772;
    float: left;
    vertical-align: baseline;
    font-weight: 600;
}


.logo {
    position: relative;
    left: 0;
    top: 0;
    margin-left: 0.3rem;
    float:left;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: bold;
    height: 6.4rem;
    width: 15rem;
}
.logo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.logo-ru {
    background: url(../images/logo.png) no-repeat;
    background-size: contain;
    background-position: center;
}

.logo-en {
    background: url(../images/logo-en.png) no-repeat;
    background-size: contain;
    background-position: center;
}

.site-settings {
    display: inline-block;
    float: left;
    padding: 0.5rem 0 0.5rem 0;
}

.site-settings * {
    text-decoration: none;
}

/************** Форма быстрого поиска **********/
.quick-search {
    display: block;
    float: right;
    width: 25%;

}

.quick-search > a {
    font-size: 0.8rem;
}

.quick-search-form {
    margin: 0;
    padding: 0;

}
.quick-search-query-text, .quick-search-submit-button {
    display: inline-block;
    margin: 0;
    clear: none;
    float: left;
}

.quick-search-query-text {
    width: 100%;
    height: 3.8rem !important;
}

.quick-search-submit-button {
    width: 3.8rem;
    height: 3.8rem;
    padding: 0.5rem;
    margin-left: 0.4rem;
}

.icon-search {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(../images/search-filled-white-50.png);
    background-size: contain;
}

.quick-search-form fieldset {
    display: table;
    margin: 0;
}

.quick-search-input-group {
    display: table-cell;
    width: 100%;
}

.quick-search-control-group {
    width: 4.5rem;
    display: table-cell;
}
.icon-sticky {
    display: block;
    width: 2rem;
    height: 2rem;
    background-image: url(../images/icons-pinned-special.png);
    background-size: 14rem 2rem;
    background-position: -6rem 0;
    float: right;
}

/********************************************************/
/*
.quick-search-submit-button > img {
    transform: scale(0.5, 0.5);
    -ms-transform: scale(0.5, 0.5);
    -webkit-transform: scale(0.5, 0.5);
}

*/

/*** Стиль для ссылки на версию для слабовидящих ******/
.special-version-link {
    font-weight: 600;
    font-size: 1.8rem;
    color: #245772;
}

.icon-special-version {
    height: 2.3rem;
    width: 2.3rem;
    vertical-align: text-bottom;
    margin-right: 0.2rem;
    display: inline-block;
    background: url(../images/glasses-50.png) no-repeat;
    background-size: contain;
}
/*****************************************************/
nav #menu-toggle {
  display: none;
}
nav .label-toggle {
  display: none;
}

nav .mobile-menu-toggle-caption {
    display: none;
}

.menu-link, .menu-main a {
    margin: 0;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.8rem;
    /*font-weight: 600;*/
    box-sizing: border-box;
    height: 6.4rem;
    padding: 1.8rem 1.2rem;
    background-color: #245772;
    outline: 0;
    border: 0;

}

/* Отступы слева для текста выпадающих меню в обычной версии */
.menu-link ul a, 
.menu-main ul a,
.menu-link ul ul a, 
.menu-main ul ul a {
    text-align: left;
    padding-left: 1.2rem;
}


.nested-menu-link, .sub-menu a {
    padding: 0.7rem;
    font-size: 1.2rem;
    height: auto;
}

@media(max-width: 1000px) {
    .menu-link span, 
    .menu-main a span {
        display: inline-block !important;
    }
    
    .nested-menu-link, .sub-menu a {
        font-size: 1.2rem;
    }
}

.menu-link a:hover, 
.menu-link a:focus,
.menu-main a:hover,
.menu-main a:focus {
    background-color: #0085ba;
}


/* ====== Стили выпадающих меню ====== */
nav ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}
    
nav ul li {
    display:inline-block;
    margin: 0;
}

/* Hide Dropdowns by Default */
nav ul ul {
    display: none;
    position: absolute;
    z-index: 1000; /* Чтобы выпадающее меню не исчезало при прохождении курсором по нем, если оно перекрывает ссылку */
    top: 6.4rem; /* the height of the main nav */
}

@media (max-width:1280px) {
    nav ul ul {
		top: 6rem;
	}
}
    
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
    display:inherit;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
    width: 32rem;
    float:none;
    display:list-item;
    position: relative;
}


/* Second, Third and more Tiers	*/
nav ul ul ul li {
    position: relative;
    top:-6.4rem; 
    left:24rem;
}

@media (max-width:1280px) {
    nav ul ul ul li {
		top: -6rem;
	}
}

.menu-main li > a:after {
    content: '';
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    /*content:  ' \25bc';
    font-size: 1.0rem;*/
    margin-left: 0.4rem;
    background: url(../images/expand-arrow-50.png) 0 0 no-repeat;
    background-size: contain;
}

.menu-main li > a:only-child:after { 
    /*content: '';*/
    display: none;

}

/* =================================================== */
/*Навигационная панель страницы (хлебные крошки)*/
.page-nav-panel {
    width: 100%;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;

}
/*====================================================*/
/******************* Меню ссылок внутри страницы ************************/
.submenu, .page-menu {
    display: inline-block;
    border: 0.1rem solid #c1c1c1;
    /*float: left;*/
    padding: 1.5rem;
    margin: 2.0rem;
    margin-left: 0;
    border-radius: 0.4rem;
    background-color: white;
    /*clear: right;*/
    /*box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);*/
}

.submenu ~ p, .page-menu ~ p {
    /*clear: both;*/
}

/* Для страниц со списками Интернет-ресурсов библиотек, музеев и иных организаций */
.submenu + br + ul,
.page-menu + br + ul {
    display: block;
    clear: both;
}
table tr td img,
.gen_table img {
    display: inline-block;
    margin: 0 !important;
    clear: none;
}

table b {
    display: inline;
    text-align: left;
}

table p[align="center"] b {
    float: none;
    text-align: inherit;
}

/* Внутри новостей текст выделенный тэгом <b> не должен прилипать к левой стороне */
.single table b {
    float: none;
}

img.arx_img {
    display: inline-block;
    float: right;
    clear: none;
    margin: 0;
    margin-left: 1.5rem;
    /*border: 0.1rem solid #27617b;*/
}

@media(max-width:600px) {
    img.arx_img {
        display: block;
        clear: both;
        height: auto;
        width: 80%;
        margin: 1rem 10% !important;
    }
    
    .submenu, .page-menu {
        box-sizing: border-box;
        margin: 2rem 0;
        width: 100%;
    }
}

.submenu ~ h1, .submenu ~ h2, 
.submenu ~ h3, .submenu ~ h4, 
.submenu ~ h5, .submenu ~ h6,
.page-menu ~ h1, .page-menu ~ h2, 
.page-menu ~ h3, .page-menu ~ h4, 
.page-menu ~ h5, .page-menu ~ h6 {
    display: inline-block;
}
 
/* Вертикальные отступы, заданные атрибутом vspace */
img[vspace="1"], *[vspace="1"] { margin-top: 0.08em; margin-bottom: 0.08em; }
img[vspace="2"], *[vspace="2"] { margin-top: 0.17em; margin-bottom: 0.17em; }
img[vspace="3"], *[vspace="3"] { margin-top: 0.25em; margin-bottom: 0.25em; }
img[vspace="4"], *[vspace="4"] { margin-top: 0.33em; margin-bottom: 0.33em; }
img[vspace="5"], *[vspace="5"] { margin-top: 0.41em; margin-bottom: 0.41em; }
img[vspace="6"], *[vspace="6"] { margin-top: 0.5em; margin-bottom: 0.5em; }
img[vspace="7"], *[vspace="7"] { margin-top: 0.58em; margin-bottom: 0.58em; }
img[vspace="8"], *[vspace="8"] { margin-top: 0.66em; margin-bottom: 0.66em; }
img[vspace="9"], *[vspace="9"] { margin-top: 0.75em; margin-bottom: 0.75em; }
img[vspace="10"], *[vspace="10"] { margin-top: 0.83em; margin-bottom: 0.83em; }
img[vspace="11"], *[vspace="11"] { margin-top: 0.91em; margin-bottom: 0.91em; }
img[vspace="12"], *[vspace="12"] { margin-top: 1em; margin-bottom: 1em; }
img[vspace="13"], *[vspace="13"] { margin-top: 1.08em; margin-bottom: 1.08em; }
img[vspace="14"], *[vspace="14"] { margin-top: 1.17em; margin-bottom: 1.17em; }
img[vspace="15"], *[vspace="15"] { margin-top: 1.25em; margin-bottom: 1.25em; }
img[vspace="16"], *[vspace="16"] { margin-top: 1.33em; margin-bottom: 1.33em; }
img[vspace="17"], *[vspace="17"] { margin-top: 1.42em; margin-bottom: 1.42em; }
img[vspace="18"], *[vspace="18"] { margin-top: 1.5em; margin-bottom: 1.5em; }
img[vspace="19"], *[vspace="19"] { margin-top: 1.58em; margin-bottom: 1.58em; }
img[vspace="20"], *[vspace="20"] { margin-top: 1.66em; margin-bottom: 1.66em; }


/* Горизонтальные отступы, заданные атрибутом hspace */
img[hspace="1"], *[hspace="1"] { margin-left: 0.08em; margin-right: 0.08em; }
img[hspace="2"], *[hspace="2"] { margin-left: 0.17em; margin-right: 0.17em; }
img[hspace="3"], *[hspace="3"] { margin-left: 0.25em; margin-right: 0.25em; }
img[hspace="4"], *[hspace="4"] { margin-left: 0.33em; margin-right: 0.33em; }
img[hspace="5"], *[hspace="5"] { margin-left: 0.41em; margin-right: 0.41em; }
img[hspace="6"], *[hspace="6"] { margin-left: 0.5em; margin-right: 0.5em; }
img[hspace="7"], *[hspace="7"] { margin-left: 0.58em; margin-right: 0.58em; }
img[hspace="8"], *[hspace="8"] { margin-left: 0.66em; margin-right: 0.66em; }
img[hspace="9"], *[hspace="9"] { margin-left: 0.75em; margin-right: 0.75em; }
img[hspace="10"], *[hspace="10"] { margin-left: 0.83em; margin-right: 0.83em; }
img[hspace="11"], *[hspace="11"] { margin-left: 0.91em; margin-right: 0.91em; }
img[hspace="12"], *[hspace="12"] { margin-left: 1em; margin-right: 1em; }
img[hspace="13"], *[hspace="13"] { margin-left: 1.08em; margin-right: 1.08em; }
img[hspace="14"], *[hspace="14"] { margin-left: 1.17em; margin-right: 1.17em; }
img[hspace="15"], *[hspace="15"] { margin-left: 1.25em; margin-right: 1.25em; }
img[hspace="16"], *[hspace="16"] { margin-left: 1.33em; margin-right: 1.33em; }
img[hspace="17"], *[hspace="17"] { margin-left: 1.42em; margin-right: 1.42em; }
img[hspace="18"], *[hspace="18"] { margin-left: 1.5em; margin-right: 1.5em; }
img[hspace="19"], *[hspace="19"] { margin-left: 1.58em; margin-right: 1.58em; }
img[hspace="20"], *[hspace="20"] { margin-left: 1.66em; margin-right: 1.66em; }

*[align="left"] {
    /*float: left;*/
    margin-left: 0 !important;
}

*[align="right"] {
    /*float: right;*/
    margin-right: 0 !important;
}

/*p { width: 100%; display: block;}*/
p[align="left"] {
    width: 100%;
    float: left;
}
marquee > img {
    margin: 0 !important;
}

/* Для тематического раздела "У. Караткевіч"*/
/* Расположение подзаголовка и юбилейного значка на одной строке */
h1 + img[src$="nadpis.jpg"] + br + h2,
h1 + img[src$="nadpis.jpg"] + h2 {
    display: inline-block;
    width: auto; 
    /*float: left;*/
    clear: right;
}

/* Поля для изображений, находящихся 
в папке проектов о выдающихся личностях */
.main-content img[src^="/wp-content/uploads/images/lich"],
.main-content img[src^="/wp-content/uploads/sites/2/images/lich"],
.main-content img[src^="/wp-content/uploads/sites/3/images/lich"],
.main-content img[src^="/wp-content/uploads/images/kupala"],
.main-content img[src^="/wp-content/uploads/sites/2/images/kupala"],
.main-content img[src^="/wp-content/uploads/sites/3/images/kupala"],
.main-content img[src^="/wp-content/uploads/images/kolas"],
.main-content img[src^="/wp-content/uploads/sites/2/images/kolas"],
.main-content img[src^="/wp-content/uploads/sites/3/images/kolas"],
.main-content img[src^="/wp-content/uploads/images/dunin"],
.main-content img[src^="/wp-content/uploads/sites/2/images/dunin"],
.main-content img[src^="/wp-content/uploads/sites/3/images/dunin"],
.main-content img[src^="/wp-content/uploads/images/korotkevich/korot01.jpg"],
.main-content img[src^="/wp-content/uploads/sites/2/images/korotkevich/korot01.jpg"],
.main-content img[src^="/wp-content/uploads/sites/3/images/korotkevich/korot01.jpg"],
.main-content img[src^="/wp-content/uploads/images/bogdanovich/obz.jpg"],
.main-content img[src^="/wp-content/uploads/sites/2/images/bogdanovich/obz.jpg"],
.main-content img[src^="/wp-content/uploads/sites/3/images/bogdanovich/obz.jpg"],
.main-content img[src^="/wp-content/uploads/images/shipilo/ship1.jpg"],
.main-content img[src^="/wp-content/uploads/sites/2/images/shipilo/ship1.jpg"],
.main-content img[src^="/wp-content/uploads/sites/3/images/shipilo/ship1.jpg"]  {
    display: inline;
    /*clear: both;*/
    margin-top: 0.9em;
    margin-bottom: 0.1em;
    margin-right: 0.7em;
    text-align: center ;
}

font[size="2"] { font-size: 1.1em; }
font[size="3"] { font-size: 1.3em; }

/*====================================================*/
/******************  Постраничная навигация ***********/
.pagination {
    margin: 2rem auto;
}

.nav-links {
    text-align: center;
}
.page-numbers {
    display: inline-block;
    border: 1px solid #245772;
    border-radius: 0.2rem;
    margin: 0.2rem 0.1rem;
    padding: 0.2rem;
    min-width: 3.8rem;
    text-align: center;
}
.page-numbers.current {
    background-color: #245772;
    color: white;
}
/*====================================================*/
.upper-panel-link {
    
}
.main-content {
    text-align: justify;
    margin-top: 2rem;
}

/***** Новостные блоки ****/
.news-block {
    margin-top: 2rem;
    width: 100%;
}

.news-block-item {
    border-bottom: 0.1rem dotted grey;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
/*    text-align: justify;*/
    font-size:1.5rem;
}

.news-block-item:last-child {
    border-bottom: none;
}

.news-block-item-text {
    text-decoration: none;
    font-weight: 500 !important;
    line-height: 150%;
}

.news-block-title {
    font-size: 1.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 0.2rem solid #245772;
    color: #245772;
    margin-bottom: 0.7rem;
}

.news-block-title-link,
.news-block-title-link:hover {
    color: inherit;
}

.news-block-item-date {
    font-weight:600;
    color: /*#397011*/#245772;
}

/******************** Элементы "подвала" страницы ***************/
.footer-banners {
    box-sizing: border-box;
    text-align: center;
}
.footer-banner {
    display: inline-block;
    margin: 0.8rem;
}
.footer-banner > img {
    width: 20rem;
    height: 6.0rem;
}

.footer-credits {
    /*float: right;*/
    text-align: center;
    box-sizing: border-box;
    font-weight: 400 !important;
}

.footer-credits p {
    font-size: 1.3rem;
}

/************** Кнопки соц.сетей *********/
.link-socmedia {
    width: 3.6rem;
    height: 3.6rem;
    display: inline-block;
    margin: 0.4rem;
    /*background-origin: content-box;*/
    border: 0.1rem solid #1eaedb;
    border-radius: 0.6rem;
    background: url(../images/icons-socmedia-36.png) no-repeat;
}

#vk-page-link {
    background-position: 0 0;
    background-size: 13.4rem 3.6rem;
}

#fb-page-link {
    background-position: -4.75rem 0;
    background-size: 13.25rem 3.6rem;
}

#ok-page-link {
    background-position: -9.7rem 0;
    background-size: 13.4rem 3.6rem;
}
/* Не показывать по умолчанию текст ссылки на соцсеть */
.socmedia-link-text {
    display: none;
}
/****************** Стиль для плавающей панели навигации ******************/
/* Класс добавляется скриптом к панели главного меню при прокрутке. */
                /*=== Без скрипта не используется ===*/
.sticky {
    position: fixed;
    top: 0;
    max-width: 124rem;
    margin: auto;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    -moz-border-radius-topleft: 0;
    -moz-border-radius-topright: 0;

}

@media (max-width: 800px) {
    .sticky { 
        width: 100%;
        left: 0;
        border-radius: 0;
    }
}

/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.extra-top-padding {
  padding-top: 7.5rem;
}

/************************ Стиль для кнопки  прокрутки вверх *******************/
.btn-scroll-up {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    width: 3.8rem;
    height: 3.8rem;
    bottom: 2.5rem; /* Place the button at the bottom of the page */
    right: 2.5rem; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    opacity: 0.75;
    background-color: #33c3f10; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 0.5rem; /* Some padding */
    margin: 0;
    /*border-radius: 10px; /* Rounded corners */
    /*font-size: 18px; /* Increase font size */
}

.icon-up-arrow {
    width: 100%;
    height: 100%;
    display: block;
    background: url(../images/up-arrow.png) no-repeat;
    background-size: contain;
    background-position: center;
}

/*================== Стили для специальных страниц ===============================*/
.post-meta-title {
    color: #245772;
    font-weight: 400;
}

.post-meta-value {
    color: #245772;
}

/******************************** Страница для новости ****************************/
.post-categories,
.post-date,
.posts-navigation,
.post-tags {
    vertical-align: middle;
    /*line-height: 3.2rem;*/
}

.post-categories *,
.post-date *,
.posts-navigation *,
.post-tags * {
    vertical-align: baseline;
    display: inline-block;
}

.post-categories {
    margin-bottom: 1.5rem;
    min-height: 3.0rem;
}


.post-categories ul, 
.post-categories ul li,
.post-tags ul, 
.post-tags ul li {
    display: inline-block;
    margin: 0;
}

.post-categories li:after,
.post-tags li:after {
    display: inline-block;
    content: ",";
    vertical-align: middle;
    color: #305b72;
}

.post-categories li:last-child:after,
.post-tags li:last-child:after {
    display: none;
    content:"";
}

.post-date {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    min-height: 3.0rem;
    border-top: 0.1rem dotted #e1e1e1;
    border-bottom: 0.1rem dotted #e1e1e1;
    vertical-align: middle;
}

.post-date > .post-date-updated {
    display: block;
}

.social-likes {
    display: inline-block !important;
    height: auto !important;
    box-sizing: border-box;
    margin: 2.5rem 0 0 0 !important;
    padding: 0;
    vertical-align: baseline;
    width: 100%;
    height: auto;
}

.social-likes div {
    margin: 0.5rem 1rem 0 0;
    float: left;
}

.post-tags {
    margin-top: 3.5rem;
    min-height: 3.0rem;
    line-height: 1.9;
    border-top: 0.1rem dotted #e1e1e1;
    border-bottom: 0.1rem dotted #e1e1e1;
}

.posts-navigation {
    margin-top: 2.0rem; 
}

.posts-navigation-prev, 
.posts-navigation-next {
    display: inline-block;
    width: 28rem;
    margin-top: 1.5rem;
}

.posts-navigation-prev a, 
.posts-navigation-next a {
    text-decoration: none;
}

@media(max-width:980px) {
    .posts-navigation-prev, 
    .posts-navigation-next {
        width: 100%;
    }
}

.posts-navigation-prev {
    float: left;
}

.posts-navigation-next {
    float: right;
}

/******************** Страница поиска ********************/
.hentry {
    margin-bottom: 2.5rem;
    clear: both;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    text-decoration: none;
}

.entry-excerpt p {
    margin-bottom: 0.5rem;
}

.entry-meta {
    height: auto;
}

.entry-meta * {
    display: inline-block;
    vertical-align: baseline;
}

.entry-meta-category {
    float: right;
}

.entry-meta-category .post-categories {
    margin: 0;
}

.entry-meta-tags {
    width: 100%;
}

.entry-meta-date > .entry-meta-date-updated {
    display: block;
}

@media(max-width: 650px) {
    .entry-meta div {
        clear: both;
        float: none;
    }
}

.search-results-number {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #245772;
}

/*=========== Форма фильтра на страницах со списками новостей ======*/
.filter-form fieldset {
    padding: 1rem;
    /*border: 0.1rem solid #c1c1c1;*/
    border-radius: 0.4rem;
}

.posts-filter-field {
    display: inline-block;
    width: 48%;
    float: left;
    box-sizing: border-box;
    padding: 1rem 0;
}

.posts-filter-field:nth-child(2) {
    float: right;
}

.posts-filter-field * {
    width: 100%;
}

.posts-filter-control-group {
    display: inline-block;
    float: right;
    box-sizing: border-box;
}

.posts-filter-control-group button {
    margin: 0;
}

@media(max-width:750px) {
    .posts-filter-field, 
    .posts-filter-field * {
        width: 100%;
        margin-right: 0;
    }
    
    .posts-filter-field {
        padding: 1rem 0;
    }
    
    .posts-filter-control-group {
        padding-top: 2rem;
    }
    
}

/*=============== Форма расширенного поиска ===========*/
.advanced-search {
    border: 0.1rem solid #d1d1d1;
    margin-bottom: 2.0rem;
    border-radius: 0.4rem;
}

.form-block-header {
    cursor: pointer;
    margin: 0;
    overflow: auto;
    padding: 0.5rem 1rem;
}

input[type=checkbox].form-toggle {
    display: none;
}

/* Значок-стрелка в заголовке формы расширенного поиска */
.icon-toggle-form {
    width: 2.5rem;
    height: 2.5rem;
    float: right;
    display: inline-block;
    background: url(../images/icons-ui.png) no-repeat;
    background-size: 6.7rem 6.7rem;
    background-position: -3.85rem -0.5rem;
    vertical-align: middle;
}

/* Изменение значка-стрелки в заголовке формы расширенного поиска */
.form-toggle#advancedSearchFormToggle:checked ~ .form-block-header .icon-toggle-form {
    background-position: -0.5rem -3.8rem;
}

/* Показывать нижнюю границу заголовка, когда форма развернута */
.form-toggle#advancedSearchFormToggle:checked ~ .form-block-header {
    border-bottom: 0.1rem solid #d1d1d1;
    border-bottom-left-radius: 0.4rem;
    border-bottom-right-radius: 0.4rem;
    -moz-border-radius-bottomleft: 0.4rem;
    -moz-border-radius-bottomright: 0.4rem;
}

.block-title {
    display: inline-block;
    float: left;
    color: #245772;
    line-height: 2.5rem;
}

.advanced-search-form {
    display: none;
    width: 100%;
    margin: 3rem 0 0 0;
}

/* Показать форму расширенного поиска при щелчке на заголовке формы*/
.form-toggle#advancedSearchFormToggle:checked ~ .advanced-search-form {
    display: block;
}

.group-caption {
    min-width: 10rem;
    display: inline-block;
    margin-right: 1rem;
}
/*
.advanced-search-form span {
    display: inline-block;
}*/

.advanced-search-form fieldset {
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin: 0;
    box-sizing: border-box;
}

.advanced-search-form legend {
    margin: 0.5rem 0 0 0;
}

.advanced-search-form fieldset:first-child {
    width: 100%;
}
/*
.advanced-search-form input,
.advanced-search-form select {
    margin: 0.5rem;
    margin-left: 0;
}*/

.advanced-search-form-row {
    display: inline-block;
    box-sizing: border-box;
    padding: 1rem;
}

.advanced-search-form-row:first-child {
    padding-left: 0;
    width: 70%
}

.advanced-search-form-row:last-child {
    padding-right: 0;
    float: right;
    width: 30%;
}

.advanced-search-form-row * {
    width: 100%;
}
/*
.advanced-search-form-row label {
    display: inline-block;
    margin-left: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0.4rem;
    font-weight: 400;
}
*/
.advanced-search-form input[type=radio] {
    display: inline-block;
    vertical-align: middle;
}

input.advanced-search-query-text {
    width: 100%;
}

.advanced-search-radio {
    
}

.advanced-search-control-group {
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.advanced-search-specific-fields {
    width: 100%;
}

.advanced-search-specific-fields input {
    width: 100%;
}

.advanced-search-specific-fields div {
    display: inline-block;
    box-sizing: border-box;
    float: left;
    padding: 1rem;
}

.advanced-search-specific-fields div:first-child {
    padding-left: 0;
}
.advanced-search-specific-fields div:last-child {
    padding-right: 0;
}

.advanced-search-tags {
    width: 40%;
}
.advanced-search-date {
    width: 30%;
}

@media(max-width:900px) {
    .advanced-search-form-row:first-child,
    .advanced-search-form-row:last-child {
        width: 100%;
        padding: 1rem 0;
    }
    
    .advanced-search-specific-fields div {
        width: 50%;
        padding: 1rem 0;
    }
    /* Поле конечной даты */
    .advanced-search-specific-fields div:nth-child(2) {
        padding-right: 1rem;
    }
    /* Поле начальной даты */
    .advanced-search-specific-fields div:last-child {
        padding-left: 1rem;
    }
    /*Поле ввода тэгов*/
    .advanced-search-specific-fields div:first-child {
        width: 100%;
    }
}

@media(max-width:550px) {
    /* Ширина 100% для поля ввода тэгов и дат, 
    если экран шириной меньше 550 пикселей */
    .advanced-search-specific-fields div:first-child,
    .advanced-search-specific-fields div:nth-child(2),
    .advanced-search-specific-fields div:last-child {
        width: 100%;
        padding: 1rem 0;
    }
}

.advanced-search-control-group > button {
    margin-bottom: 0;
    vertical-align: middle;
    margin-left: 1.5rem;
    float: right;

}
/***************************************************************************************/
/* ============== Сворачивающийся блок с формой фильтра новостей по дате ============== */
/**************************************************************************************/

.filter-form {
    margin-bottom: 1.2em;
    border-radius: 0.4em;
    border: 0.1em solid #c1c1c1;
}

.posts-filter {
    display: none;
    width: 100%;
    margin: 0;
}

.posts-filter fieldset {
    border: none;
}

.form-toggle#newsFilterFormToggle:checked ~ .posts-filter {
    display: block;
}

/* Изменение значка-стрелки в заголовке формы фильтра */
.form-toggle#newsFilterFormToggle:checked ~ .form-block-header .icon-toggle-form {
    background-position: -0.5rem -3.8rem;
}

/*=====================================================*/

/************************************************************************/
/*===== Форма для обращений граждан ====*/
/********************************************************************/
.request-form-container {
    /*overflow: auto;*/
    overflow-x: hidden;
    overflow-y: auto;
}

.request-form-container br {
    display: none;
}

.requst-form-input-title {
    font-size: 1.5rem;
}

.request-form-container .block-title {
    width: 90%;
    font-size: 1.4rem;
    line-height: 2.3rem;
}

.form-toggle:checked ~ .form-block-header {
    border-bottom: 0.1rem solid #d1d1d1;
    border-bottom-left-radius: 0.4rem;
    border-bottom-right-radius: 0.4rem;
    -moz-border-radius-bottomleft: 0.4rem;
    -moz-border-radius-bottomright: 0.4rem;
}

.request-form-container .form-toggle ~ .form-block-header .icon-toggle-form {
    background-size: 6.7rem 6.7rem;
    background-position: -3.8rem -0.5rem;
}


.request-form-container .form-toggle:checked ~ .form-block-header .icon-toggle-form {
    background-position: -0.5rem -3.8rem;
}

/*** Контейнер для капчи *****/
.requst-form-captcha {
    width: 50%;
    display: inline-block;
    clear: none;
}

@media (max-width:901px) {
    .requst-form-captcha {
        width: 100%;
    }
}
/****************************/
/***** Контейнер кнопки "Отправить" ****/
.requst-form-submit {
    width: 30%;
    margin-top: 3.75rem;
    min-width: 25rem;
    display: inline-block;
    float: right;
    clear: none;
}

@media (max-width:901px) {
    .requst-form-submit {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}
/*****************************************/

.form-toggle ~ .wpcf7 form {
    display: none;
}

/****** Раскрывать формы обращений при щелчке на соответствующий заголовок ******/

.form-toggle#requestFormToggle1:checked ~ .wpcf7 form#requestForm1,
.form-toggle#requestFormToggle2:checked ~ .wpcf7 form#requestForm2,
.form-toggle#requestFormToggle3:checked ~ .wpcf7 form#requestForm3,
.form-toggle#requestFormToggle4:checked ~ .wpcf7 form#requestForm4,
.form-toggle#requestFormToggle5:checked ~ .wpcf7 form#requestForm5,
.form-toggle#requestFormToggle6:checked ~ .wpcf7 form#requestForm6 {
    display: block;
}
/*********************************************/

.wpcf7 .contact-form {
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 0;
}

.wpcf7 label {
    margin: 0;
}

.wpcf7 p {
    overflow: auto;
}

.wpcf7 .form-input-field {
    width: 100%;
    font-weight: 300;
    margin: 0;
}

.wpcf7 textarea.form-input-field {
    height: 15rem;
}

.wpcf7 span {
    width: 100%;
}

.wpcf7 input[type=submit] {
    float: right;
    margin-bottom: 0;
}

.wpcf7-form-control-wrap {
    display: inline-block;
    margin-top: 0.2rem;
}

.wpcf7 .wpcf7-not-valid-tip {
    font-size: 1.3rem;
}
/****** 100-летие архивной службы ******/
.menu-item-yellow a {
    color: #dbac1e !important;
}

.logo-golden-century {
    float: left;
    display: block;
    margin-left: 4rem;
        
height: 7rem;
}

.logo-jubilee-80 {
    width: 12rem;
}

/**** Баннер проекта конституции ****/
.const-banner-wrapper {
    padding-top: 6rem;
    display: table;
    width:100%;
    border-collapse: separate;
    border-spacing: 2em;
}
.const-banner-container {
    display: table-row;
    /*height: 9.7rem;*/
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.const-banner {
    display: table-cell;
    /*padding:5px;*/
    /*width: 40%;*/
    /*margin: 1rem auto;*/

}

@media (max-width:1280px) {
    .const-banner-wrapper {
        border-spacing: 1.5em;
    }
}

@media (max-width:1024px) {
    
    .const-banner-wrapper {
        display: block;
        clear: both;
    }
    
    .const-banner-container {
        display: inline-block;
        width: 100%;
    }
    
    .const-banner {
        display: inline-block;
        margin: 1rem auto;
        width: 100%;
        clear: both;
    }
}

.const-banner a {
    display: block;
    width:100%;
    height:auto;
    margin: 0;
    padding:0;
    box-sizing: border-box;
    /*width: 75%;*/
}

.const-banner img {
    display: block;
    width: 100%;
    height: auto;
}
/*=======================================================*/
/************************** Медиа запросы ******************************/

@media(max-width: 1280px) {
    p, b, li, 
    .post-meta-title, 
    .post-meta-value,
    .news-block-item *,
    .requst-form-input-title,
    .posts-navigation a {
        font-size: 1.4rem;
    }
    
    .news-block-title {
        font-size: 1.6rem;
    }
    
	.menu-main > li > a, .header-lower-panel {
		height: 6rem;
	}
	
	.logo-golden-century {
		margin-top: 0.5rem;
		height: 7rem;
		width: 16rem;
		margin-left: 1rem;
	}

}

@media (min-width: 1081px) and (max-width: 1350px) {
    .menu-main > .menu-item > a {
        font-size: 1.4rem;
    }
    
    .sub-menu a {
        font-size: 1.2rem !important;
    }
	
	.quick-search-query-text {
		min-width: 10rem;
	}
	
	.logo-golden-century {
		/*margin-top: 0.5rem;*/
		height: 7rem;
		width: 16rem;
	}
}
/* Отступ перед первым элементом в главном меню. Нужно использовать его, 
а не внутренний отступ в содержащем меню контейнере, 
иначе ширина выпадающего меню в мобильной версии определится неверно*/
@media(min-width: 1001px) {
    .menu-main > li:first-child a {
        /*padding-left: 1.5rem;*/
        border-top-left-radius: 0.4rem;
        border-bottom-left-radius: 0.4rem;
        -moz-border-radius-topleft: 0.4rem;
        -moz-border-radius-topright: 0.4rem;
        
    }
}
/*///// Стиль для компьютерных мониторов малого разрешения /////*/
@media (min-width: 1001px) and (max-width: 1200px) {
    
    .header-middle-panel {
        height: 9rem;
    }
    
    .main-logo-title {
        font-size: 2.6rem;
        line-height: 2.7;
    }
    
    /* Нужно чтобы ссылки не съезжали вниз при уменьшении размена панели меню */
    .menu-main>li {
        margin: 0;
        overflow: auto;
    }
    
    /* Добавить перенос строк для ссылок в меню первого уровня */
    .menu-main > li > a {
        word-wrap: break-word;
        max-width: 14rem;
        line-height: 1.9;
    }
    
    /*.reduced-menu-font {
        font-size: 1.2rem !important;
    }*/
    
    /*** Стиль для элементов меню первого уровня, состоящих из нескольких слов ***/
    .menu-main > li.multi-word > a {
        padding-top: 1rem;
        padding-bottom: 1rem;
        max-width: 18rem;
        line-height: 2.1rem;
    }
    
    .menu-item a {
        vertical-align: baseline;
        font-size: 1.4rem;
    }
    
    .sub-menu a {
        font-size: 1.1rem;
        padding: 0.9rem;
    }
    
    
    .site-settings * {
        font-size: 1.4rem;
    }
    
    /*.quick-search {
        width: 26rem;
    }*/
    
    .header-middle-panel .quick-search {
        width: 25%;
    }
	
	/*.quick-search-query-text {
		min-width: 18rem;
	}*/

}


@media (max-width: 1000px) {
    
    .header-middle-panel {
        height: auto;
    }
    
    .header-middle-panel .quick-search {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .main-logo-default,
    .main-logo-image,
    .main-logo-title {
        display: none;
    }
    
    .mobile-logo {
        display: inline-block;
    }
    
    .menu-main>li:first-child a{
        padding-top: 1.8rem;
    }
    .menu-main a {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem; 
        height: auto;
    }

    footer, footer > * {
        width:100%;
        text-align:center;
    }

    .footer-credits {
        margin-left: 0;
    }
    
    
/*********** Смещать меню третьего уровня влево, если экран < 900px ********/
nav ul ul ul li {
    position: relative;
    top:-6.4rem; 
    left:-24rem;
}
/*
.logo img {
transform: scale(0.8, 0.8);
-ms-transform: scale(0.8, 0.8);
-webkit-transform: scale(0.8, 0.8);
}*/
/*}

@media (max-width: 900px) {*/
    
    .quick-search {
        width: 100%;
    }
    
    nav {
        display: block;
        /*float: right;*/
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    nav .label-toggle {
        display: inline-block;
        /*background: linear-gradient(to bottom, #E84545 0%, #E84545 20%, transparent 20%, transparent 40%, #E84545 40%, #E84545 60%, transparent 60%, transparent 80%, #E84545 80%, #E84545 100%);*/
        background: url(../images/menu-filled-50.png) no-repeat;
        background-size: contain;
        background-position: center;
        cursor: pointer;
        float: right;
        width: 3rem;
        height: 3rem;
        margin: 1.6rem;
    }
    
    nav #menu-toggle:checked ~ .label-toggle {
        background-image: url(../images/menu-close-filled-50.png);
    }
    
    nav #menu-toggle ~ ul{
        /*visibility: hidden;*/
        display: none;
    }
    nav #menu-toggle:checked ~ ul {
        /*opacity: 1;*/
        /*height: 5rem;*/
        display: block;
/*        visibility: visible;*/
        position: relative;
        float: left;
        width: 100%;
        left: 0;
        margin: 0;
        top: -0.4rem;
        /*top: 16.8rem;*/

    }
  
    nav #menu-toggle:checked ~ ul * {
        display: block;
        position: relative;
        
    }
    
    
    nav #menu-toggle:checked ~ ul li {
        width: 100%;
    }
    
    nav #menu-toggle:checked ~ ul li a {
        text-align: left;
        /*position: relative;*/
        top: 0;
        left: 0;
    }
    
    nav #menu-toggle:checked ~ ul ul {
        /*display: block;
        position: relative;*/
        left: 0;
        top: 0;
    }
    

    nav #menu-toggle:checked ~ ul ul li a {
        padding-left: 2rem;
        /*position: relative;*/
        top: 0;
        left: 0;
    }
    
    /* Display Dropdowns on Hover */
    /*nav #menu-toggle:checked ul li:hover > ul {

    }*/

    /* Fisrt Tier Dropdown */
    nav #menu-toggle:checked ~ ul ul li {
        /*width:24rem;*/
        /*display:block;
        position: relative;*/
        top: 0;
        left: 0;
    }

    /* Second, Third and more Tiers	*/
    nav #menu-toggle:checked ~ ul ul ul li {
        /*position: relative;
        display: block;*/
        top: 0; 
        left: 0;
        width: 100%;
    }
    
    nav #menu-toggle:checked ~ ul ul ul li a {
        padding-left: 4rem;
    }
    

    #menu-toggle:checked li > a:after { 
        content:  ' \25bc';
        font-size: 1.0rem;  
    }

    #menu-toggle:checked li > a:only-child:after { 
        content: ''; 
    }
    
/*}

@media (max-width: 900px) {*/
    .main-content, .right-panel {
        width: 100% !important;
    }
    .right-panel {
        margin-left: 0;
    }
}

@media (max-width: 750px) {
    .special-version-link > span {
        display: none;
    }
}

@media (max-width: 450px) {
    /*nav #menu-toggle:checked ~ ul {
        margin-left: 2rem;
        margin-right: 2rem;
        width: auto;
        top: 18.9rem;
    }*/

    
    .footer-banner {
        margin: 0.5rem auto;
    }
}