.top-panel {
    display: block;
    margin-bottom: 5px;
    background: #fff;
	border-bottom: 1px solid #d3d3d3;
}



/* ============================
LAYOUT: NAV
============================ */
@media screen and (min-width: 959px) {
  ul.nav {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.0833rem;
    list-style: none;
  }
  ul.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  ul.nav li {
    border: 1px solid transparent;
    border-radius: 3px;
    color: #000;
  }
  ul.nav > li {
    display: inline-block;
    position: relative;
    cursor: default;
  }
  ul.nav > li:last-child {
    margin-right: 0;
  }
  ul.nav a:hover,
  ul.nav a {
    display: block;
    padding: 2px 4px;
    white-space: nowrap;
    outline: none;
    text-decoration: none;
    color: inherit !important;
	font-size: 13px;
  }
  ul.nav li:hover,
  ul.nav li:visited:hover,
  ul.nav li:focus,
  ul.nav li:visited:focus,
  ul.nav li:active,
  ul.nav li:visited:active {
    text-decoration: none;
    color: #fefefe;
    background: #4fd979;
    border-color: #999;
    border-radius: 0px 0px 3px 3px;
    background-color: #76b347;
    background-image: -webkit-gradient(
      linear,
      left top,
      left bottom,
      color-stop(0%, #76b347),
      color-stop(100%, #5e9e2e)
    );
    background-image: -webkit-linear-gradient(to top, #76b347, #5e9e2e);
    background-image: -moz-linear-gradient(to top, #76b347, #5e9e2e);
    background-image: -ms-linear-gradient(to top, #76b347, #5e9e2e);
    background-image: -o-linear-gradient(to top, #76b347, #5e9e2e);
    background-image: linear-gradient(to top, #76b347, #5e9e2e);
  }
  ul.nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: #fefefe;
    z-index: 10;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    display: none;
  }
  ul.nav li:hover ul {
    display: block;
    border: 1px solid #999;
    border-radius: 2px;
  }
/*
  ul.nav i.fa[aria-hidden="true"] {
    display: none;
  }*/
}
@media screen and (max-width: 960px) {
  /*
	.nav .sub-menu {
		display: block; 
	}
*/
  ul#header-navigation:before {
    content: "Разделы портала «Азбука веры»";
    padding-left: 6px;
    font-weight: bold;
    color: #696969;
  }
  ul.nav {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    list-style: none;
  }
  ul.nav li {
    line-height: 42px;
    display: block;
    color: #9d7b5f;
    background-color: #f8f4eb;
    margin: 0;
    padding: 0;
  }
  ul.nav li > a {
    display: block;
    padding: 2px 4px;
    white-space: nowrap;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid transparent;
	font-size: 19px;
	color: #18530B;
  }
  ul.nav .sub-menu li:hover,
  ul.nav .sub-menu li:visited:hover,
  ul.nav .sub-menu li:focus,
  ul.nav .sub-menu li:visited:focus,
  ul.nav .sub-menu li:active,
  ul.nav .sub-menu li:visited:active {
    text-decoration: none;
    background: #fefefe;
    color: #000000;
    line-height: 42px;
  }

  ul.nav i.fa {
    margin-right: 5px;
    padding: 0px;
    color: darkred;
    width: 23px;
    text-align: center;
	font-size: 27px;
  }
  ul.nav li:before {
    content: " ";
    float: left;
    padding-right: 2rem;
    padding-left: 12px;
    color: darkred;
  }
  ul.nav > li > ul {
    text-decoration: none;
    background: #fefefe;
    padding: 0px;
    margin: 0;
  }
  ul.nav > li > ul > li {
    padding-left: 30px;
  }
  ul.nav > li.menu-item-has-children > a {
    font-weight: bold;
  }
  /*
	.nav > li.menu-item-has-children > a {
		display: none;
	}
*/
}

	/* ============================
COMPONENT: TOP PANEL
============================ */
.top-panel {
  display: block;
  margin-bottom: 5px;
  background: #fefefe;
  border-bottom: 1px solid #d3d3d3;
}
	
/*** НАЧАЛО: меню мобильной версии сайта ***/
/* ============================
SECTION: MOBILE MENU
============================ */
div.main-nav-list {
  text-align: center;
  align-items: center;
  background: #f8f4eb; /*добавляем фон к пункту меню (заменив этот параметр, вы поменяете цвет всех пунктов меню)*/
  color: darkred; /*меняем цвет ссылок*/
  margin: 0 auto;
  width: 100%;
  min-width: 310px;
  border-bottom: 2px solid #fefefe;
  z-index: 9999;
}

.main-nav-list ul {
  list-style: none; /*убираем маркеры списка*/
  margin: 0px auto; /*убираем отступы*/
  padding: 0px; /*убираем отступы*/
  height: 42px; /*задаем высоту*/
  width: 100%;
  display: table;
}

.main-nav-list ul > li { 
  border-right: 1px solid #fefefe; /*добавляем бордюр справа*/
  display: table-cell;
  text-align: center;
  width: calc(100% / 5);
}

.main-nav-list span {
  display: block; /*оформляем как блок*/
  text-decoration: none; /*убираем подчеркивание текста ссылок*/
  background: #f8f4eb; /*добавляем фон к пункту меню (заменив этот параметр, вы поменяете цвет всех пунктов меню)*/
  color: darkred; /*меняем цвет ссылок*/
  padding: 0px 5px; /*добавляем отступ*/
  font-family: arial; /*меняем шрифт*/
  font-size: 24px; /*размер шрифта*/
  line-height: 42px; /*ровняем меню по вертикали*/
  -moz-transition: all 0.3s 0.01s ease; /*делаем плавный переход*/
  -o-transition: all 0.3s 0.01s ease;
  -webkit-transition: all 0.3s 0.01s ease;
  cursor: pointer;
}

.fixed_on_top {
  position: fixed;
  right: 0;
  top: 0;
  width: 100% !important;
  z-index: 9999;
}

@media screen and (min-width: 959px) {
  .main-nav-list ul {
    display: none;
  }
}
@media screen and (max-width: 960px) {
  div.header-back,
	nav.top-panel, 
	div.header-breadcrumbs,
	div.header-search, 
	button.settings-button,
	div#widgets,
/*	
	div#widgets-sidebar,
	footer.footer,
*/	
	div#widgets-sidebar2,
	div.widget-navi {
    display: none;
  }
}
*/*** КОНЕЦ: меню мобильной версии сайта ***/