@charset "UTF-8";

/* ******************************* */
/* БАЗОВЫЕ НАСТРОЙКИ               */
/* ******************************* */
*:focus {outline: none; }
html {font-size: 18px;}
body {background: #f3dfd9;font-family: "Fira Sans Condensed", Arial, sans-serif;font-size: 1em;line-height: 1.4;}

#body_bg {background: url("/files/00034/img/bg_pattern.png") repeat; position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -100;}

a {color: #b70f03;text-decoration: underline;}
a:hover, a:focus {color: #ff5722;}
a:visited {color: #333; }

#top_bar {min-height: 32px; padding: 5px 0 5px; }

/* ******************************* */
/* ШАПКА (HEADER)                  */
/* ******************************* */
#header {background-color: rgb(255 255 255 / 75%);padding: 25px 0 30px;position: relative;}
#header .info {text-align: right;height: 100%;position: relative;width: 100%;}
#header .contacts {display: inline-block;font-size: .9em;}
#header .contacts a {text-decoration: none; color: inherit;}
#header .contacts a:hover {text-decoration: underline;}

@media only screen and (min-width: 992px){
	#header > .container {display: flex; }
	#header .info {text-align: right;display: flex;align-items: flex-end;justify-content: flex-end;width: 100%;flex-wrap: wrap;}
	#header .contacts {text-align: left;min-width: 125px;}
	#header .contacts i {float: left; margin-right: 5px;}
}

#logo {position: relative;display: inline-flex;align-items: center;}
#logo .emblem {display: inline-block;margin-right: 30px;width: 140px;height: 140px;text-align: center;line-height: 140px;}
#logo img {max-width: 100%;display: inline-block;}

#logo .content {
  color: #b70f03;
  display: inline-block;
  text-align: left;
  padding: 10px 15px;
}

#logo .content p {
  margin: 0 0 5px;
  font-size: 1em;
  line-height: 1.25em;
  color: #b70f03;
  font-weight: 400;
}

#logo .title {
  display: block;
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #b70f03;
}

@media only screen and (max-width: 767px) {
	#header {padding: 0 0 30px;}
	#logo {text-align: center; display: block; }
	#logo .emblem {width: 90px;margin: 15px auto 15px;height: auto;line-height: inherit;}
	#logo .content {display: block; }
	#header .contacts {display: none;}
	#header .info {text-align: center;margin-top: 20px;}
	#header .mod_buttons {margin-bottom: 0;}
}

#date_time {font-size: 0.85em; color: #175a97; }

.mod_buttons {position: relative;z-index: 10;margin: 0 auto 20px;flex: 100%;width: 100%;}
.mod_buttons img {max-height: 24px; }
.mod_buttons a {opacity: 0.7;text-decoration: none;cursor: pointer;font-weight: 500;} 
.mod_buttons a:hover {opacity: 1; }
.mod_buttons .wep_toggle {margin-right: 30px;}
.mod_buttons .wep_toggle span {display: inline-block;vertical-align: middle;font-size: 21px;}
.lng_select a + a {margin-left: 5px;}

/* ******************************* */
/* ГЛАВНОЕ МЕНЮ (ОЧИЩЕННОЕ)        */
/* ******************************* */

#main_menu {
  clear: both;
  min-height: 46px;
  font-weight: normal;
  border-top: 5px solid #eeeeee;
  background: #fff;
  position: sticky;
  top: -2px;
  z-index: 100;
  backdrop-filter: blur(2px);
}

#main_menu ul {list-style-type: none; padding: 0; margin: 0; }
#main_menu li {display: block; position: relative; }
#main_menu a {
  display: block;
  padding: 8px 16px;
  color: #222;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.25s ease;
  position: relative;
}
#main_menu a span {display: inline-block;line-height: 1.1em;}

/* --- Верхний уровень --- */
#main_menu .level_0 > li {
  display: inline-block;
  line-height: 46px;
  border-top: none !important;
  vertical-align: middle;
  padding: 5px 3px;
  margin: 0 2px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover (серый градиент) только для неактивных */
#main_menu .level_0 > li:hover:not(.active):not(.parent_active) {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#main_menu .level_0 > li:hover:not(.active):not(.parent_active) a {
  color: #b70f03;
}

/* Активный раздел (красный градиент) */
#main_menu .level_0 > .active,
#main_menu .level_0 > li.parent_active:not(:first-of-type) {
  background: linear-gradient(135deg, #b70f03 0%, #d63031 100%);
}
#main_menu .level_0 > .active > a,
#main_menu .level_0 > li.parent_active:not(:first-of-type) > a {
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(183, 15, 3, 0.3);
}

/* Домик (Главная) */
#main_menu .level_0 > li:first-child {flex-shrink: 0;flex-grow: 0;}
#main_menu .level_0 > li:first-child > a {
  display: flex;align-items: center;justify-content: center;
  padding: 8px 12px;min-width: 42px;
}
#main_menu .level_0 > li:first-child > a span {display: none;}
#main_menu .level_0 > li:first-child > a:before {
  display: inline-block;font-family: "FontAwesome";content: "\f015";
  font-size: 20px;line-height: 1;transition: transform 0.3s ease;margin: 0;
}
#main_menu .level_0 > li:first-child:hover a:before {transform: scale(1.15) rotate(5deg);}

/* --- ДЕСКТОП (Выпадающие списки) --- */
@media screen and (min-width: 768px) {
  #main_menu .parent > a {padding-right: 30px !important;}
  #main_menu .parent > a:after {
    content: '\f107';font-family: "FontAwesome";position: absolute;
    right: 10px !important;top: 50%;transform: translateY(-50%);
    font-size: 12px;transition: transform 0.3s ease;margin-left: 0 !important;opacity: 0.7;
  }
  #main_menu .parent:hover > a:after {transform: translateY(-50%) rotate(180deg);opacity: 1;}

  /* Меню 1 уровня */
  #main_menu ul ul {
    display: none;position: absolute;top: 100%;left: 0;margin-top: 8px;
    min-width: 280px;padding: 8px 0;background: #ffffff;border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);border: 1px solid rgba(0,0,0,0.04);
    border-top: 3px solid #b70f03;z-index: 1000;
  }
  /* Мостик (чтобы не закрывалось) */
  #main_menu ul ul::before {
    content: '';position: absolute;top: -8px;left: 0;right: 0;height: 8px;background: transparent;
  }
  #main_menu .level_0 > li:hover > ul.level_1,
  #main_menu ul.level_1 > li:hover > ul.level_2 {display: block;}

  /* Пункты выпадающего меню */
  #main_menu ul ul li {position: relative;}
  #main_menu ul ul li a {
    padding: 10px 20px;color: #222 !important;background: #fff !important;
    font-weight: 400;border-radius: 0;
  }
  #main_menu ul ul li:hover > a {
    background: #fff5f5 !important;color: #b70f03 !important;padding-left: 24px;
  }
  #main_menu ul ul li:hover > a::before {
    content: '';position: absolute;left: 0;top: 50%;transform: translateY(-50%);
    width: 3px;height: 60%;background: #b70f03;border-radius: 2px;
  }
  /* Стрелка для вложенных */
  #main_menu ul ul li.parent > a::after {
    content: '\f105';font-family: "FontAwesome";position: absolute;
    right: 15px;top: 50%;transform: translateY(-50%);font-size: 12px;opacity: 0.6;
  }

  /* Меню 2 уровня (справа) */
  #main_menu ul ul ul {top: 0;left: 100%;margin-left: 8px;margin-top: 0;}
  /* Мостик для 2 уровня */
  #main_menu ul ul ul::before {
    content: '';position: absolute;top: 0;left: -8px;bottom: 0;width: 8px;height: auto;background: transparent;
  }
  #main_menu .level_1 li:hover > a {background: #fff5f5 !important;color: #b70f03 !important;}
}

/* --- МОБИЛЬНОЕ МЕНЮ (Прозрачное) --- */
@media screen and (max-width: 767px) {
  /* Прозрачная полоса */
  #main_menu {
    background: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    padding-top: 0 !important;
    position: fixed; top: 0; left: 0; right: 0; height: auto; z-index: 9000;
    max-height: 100vh; overflow-y: auto;
  }

  /* Скрываем текст, оставляем иконки */
  #main_menu .level_0 > li > a span {display: none !important;}
  
  /* Иконка меню (Гамбургер) - круглая кнопка */
  #main_menu .level_0 > li:first-child {margin-right: 10px;}
  #main_menu .level_0 > li:first-child > a {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;width: 40px !important;height: 40px !important;
    padding: 0 !important;display: flex !important;align-items: center !important;justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  }
  #main_menu .level_0 > li:first-child > a:before {color: #b70f03 !important;font-size: 20px !important;margin: 0 !important;}

  /* Скрываем список, пока не нажат */
  #main_menu .level_0 {display: none;}
  
  /* Стилизация открытого списка */
  #main_menu .level_0 > li {
    display: block;height: auto;border-top-width: 3px;margin: 3px 0;
    background: #fff; /* Белый фон для читаемости открытого меню */
    margin-bottom: 2px; border-radius: 8px;
  }
  #main_menu .level_0 > li > a {
    font-weight: bold; padding: 12px 15px; display: block;
    color: #222; border-radius: 0;
  }
  
  /* Подменю в мобильном */
  #main_menu .level_0 ul {
    display: block !important; position: static !important; clear: both;
    padding: 0 15px 15px 20px; background: #f9f9f9;
    border-radius: 0 0 8px 8px; border: none; margin-top: 0;
  }
  #main_menu .level_1 li {display: inline-block;}
  #main_menu .level_1 li a {display: inline-block;padding: 8px 15px;font-size: 0.9em;}
  
  /* Кнопка закрытия */
  #menu_toggle {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;width: 40px !important;height: 40px !important;
    display: flex !important;align-items: center !important;justify-content: center !important;
    top: 10px !important;right: 10px !important; position: absolute; z-index: 9001;
  }
}

/* ******************************* */
/* КОНТЕНТ И БЛОКИ                 */
/* ******************************* */

#hot_links {text-align: center;padding: 0 0 30px;overflow: hidden;}
#hot_links .wrapper {padding: 0;float: none;flex-shrink: 0;}
#hot_links .item {text-align: center;border-radius: 3px;color: #000;padding: 10px;font-weight: bold;margin: 0 auto 15px;word-break: break-word;}
#hot_links .item .preview {margin-bottom: 15px;}
#hot_links .item img {max-height: 128px; display: inline-block;}
#hot_links .item:hover {background-color: #DCB15D;z-index: 1;}
#hot_links .item:hover a {color: inherit; text-decoration: none; }

.hot_contacts {padding: 0 0 45px;}
.hot_contacts a {display: inline-block;}
@media only screen and (max-width: 767px) {.hot_contacts {text-align: center;}}

/* Слайдер */
#main_slider {margin-bottom: 25px; }
#main_slider .item {
  background-color: #ccc;background-position: center center;
  background-repeat: no-repeat;background-size: cover;
  padding-bottom: 44%;position: relative;
}
#main_slider .content {
  position: absolute;left: 0;right: 0;bottom: 0;width: 100%;
  background-color: rgba(0,0,0,1);color: #eee;padding: 10px 15px 10px;
  opacity: 0.6;font-size: 1rem;
}
#main_slider a {color: inherit; }
#main_slider h3 {margin: 0 0 5px;font-size: inherit;}
#main_slider p {margin: 0;font-size: .9em;}
@media screen and (max-width: 767px) {#main_slider .content {padding: 5px 10px;font-size: .9em;}}

#banners_slider {padding: 0; }
#banners_slider .item {margin: 5px;height: 64px;line-height: 64px;}
#banners_slider .item img {max-width: 100%;width: auto;max-height: 64px;height: auto;display: inline-block;}

/* Новости */
.hot_news .row {padding: 0 5px;}
.hot_news .w {margin: 0 -5px 20px;flex-grow: 1;}
.hot_news .item {clear: both;overflow: hidden;padding: 10px 10px 15px;background: #eee;border-radius: 5px;height: 100%;}
.hot_news h3 {margin: 0; }
.hot_news .date {margin-bottom: 10px; font-size: 0.9em; }
.hot_news .preview {display: block;background-position: 50%;background-repeat: no-repeat;background-size: cover;padding-bottom: 66%;margin: 0 auto 15px;border-radius: 5px;}
.hot_news .anno {margin-bottom: 15px; font-size: .9em; }
.hot_news .more_news {text-align: right; }

.section_tiles {text-align: center;padding: 0 0 30px;overflow: hidden;display: flex;flex-wrap: wrap;justify-content: space-between;}
.section_tiles .wrapper {padding: 0;float: none;flex-shrink: 0;}
.section_tiles .item {text-align: center;border-radius: 3px;color: #000;padding: 10px;font-weight: bold;margin: 0 auto 15px;word-break: break-word;}
.section_tiles .item .preview {margin-bottom: 15px;}
.section_tiles .item img {max-height: 128px; display: inline-block; border-radius: 3px;}
.section_tiles .item:hover {background-color: #fdc130;z-index: 1;}
.section_tiles .item:hover a {color: inherit; text-decoration: none; }
.section_tiles .row {flex-grow: 1;}

.announcements {margin-bottom: 30px;overflow: hidden;background: #f5f5f5;clear: both;}
.announcements .item {padding: 0;}
.announcements .item:not(:first-of-type) {margin-top: 15px; border-top: dashed 2px #ccc; }
.rss_news .item {font-size: 0.85em; color: #555; }

/* Основные страницы */
#body {clear: both; }
#body_content {margin: 17px auto 23px;padding: 18px 18px 20px;background: #fff;border-radius: 10px;}
#body_content_wrapper {padding-left: 0;margin-bottom: 30px;}
@media only screen and (max-width: 768px) {#body_content_wrapper {padding-right: 0; }}

h1, h2, h3, h4, h5, h6, .panel-heading {line-height: 1.2em;margin-bottom: 15px;}
h1 {color: #f14a3e;padding: 0;font-size: 36px;font-weight: 500;margin: 0 auto 15px;}
h2 {font-size: 30px; margin: 0 auto 15px;}
h3 {font-size: 24px; margin: 0 auto 15px;}

.section_heading {padding: 0 0 5px;display: block;margin: 0 auto 20px;color: #f14a3e;font-size: 1.6em;font-weight: 500;position: relative;}
.section_heading:after {top: 100%;display: block;left: 0;width: 120px;height: 4px;background: #8cc152;content: "";position: absolute;}
.breadcrumbs {border: 1px solid #eee;margin-bottom: 15px;padding: 8px 10px;border-radius: 5px;}

.entry {padding: 0 0 30px;overflow-x: auto;word-break: break-word;}
.spoiler .preview {min-height: 80px; }
.spoiler .preview img {display: inline-block; }
.spoiler .anno {overflow: hidden;}
.spoiler .content {display: none;clear: both;}
#body_content .spoiler.entry:not(:last-of-type) {margin-bottom: 15px; border-bottom: dashed 2px #ccc; }
.spoiler .content .button {margin: 15px 0 0; }
@media only screen and (max-width: 768px) {
  .spoiler .preview {margin-bottom: 15px; text-align: center; }
  .spoiler .anno {clear: both; overflow: initial; }
}

#body_content iframe {max-width: 100%; }
#body_content img {max-width: 100%; height: auto; }
img[align="left"] {margin: 5px 10px 5px 0; }
img[align="right"] {margin: 5px 0 5px 10px; }
.page_share_buttons {margin-top: 45px; margin-bottom: -15px; }

/* Боковая колонка */
#sidebar {padding-left: 0; padding-right: 0; }
#sidebar .panel {margin: 0 0 15px 0;}
#sidebar ul, .cool_list {list-style-type: none; list-style: none; margin: 0px; padding: 0px;}
#sidebar ul li, .cool_list li {padding: 2px 0 2px 12px;background: url("/files/00034/img/list.png") 0 10px no-repeat;}
.section_menu li {display: none; }
.section_menu a {color: #333;text-decoration: none;}
.section_menu a:hover {color: #ff5722;text-decoration: underline;}
.section_menu .parent_active,
.section_menu .parent_active > ul,
.section_menu .parent_active > li,
.section_menu .active,
.section_menu .parent.active > ul > li {display: block; }

/* Поиск */
.search_field {border: 1px solid #ccc;text-align: left;padding: 10px 40px 10px 10px;margin-bottom: 15px;border-radius: 5px;position: relative;overflow: hidden;}
.search_form {line-height: 1em; }
.search_form input[type="search"] {background: none; color: #979797; border: 0; width: 100%; padding: 0; margin: 0; outline: none; font-size: 0.9em; }
.search_field .button {position: absolute;top: 0;right: 0;bottom: 0;width: 40px;text-align: center;padding: 0;height: auto;border-radius: 0;}
.search_field .button:before {height: 1em; width: 1em; display: inline-block; position: absolute; top: 50%; left: 50%; margin-top: -.5em; margin-left: -.5em;}
.search_field .button:hover {color: #000 !important;}

.attention_block {overflow: hidden; }
.attention_block .item {margin: 10px 0; text-align: center; }
.attention_block img {display: inline-block; width: 100%; height: auto;}

.poll_answers {margin-top: 5px; }
.poll_answers label {display: block; margin: 0; }
.poll_answers > span {display: block; clear: both; }
.poll_answers input {margin-right: 0.3em; }
.poll_submit button {margin-top: 10px; }
.poll_results {margin-top: 15px; font-size: .86em;}

/* Архивы */
.archive_header {margin: 1.5em 0 1em; }
.archive_header.item {overflow: hidden; padding: 15px 0; }
.archive_list .item {overflow: hidden; margin-bottom: 30px; }
.archive_list .item h3 {margin-top: 0; }
.archive_list .item .preview {display: block; float: left; background-position: 50%; background-repeat: no-repeat; background-size: cover; width: 96px; height: 96px; margin-right: 15px; }
.archive_header > span, .archive_header > a {display: inline-block; line-height: 32px; padding: 0 0.4em; margin-right: 0.3em; }
.archive_header > span {font-weight: 600; background-color: #f5f5f5; }
.archive_header > a:hover {background-color: #f14a3e; }
.archive_header .MapTabs {border-bottom: solid 2px #f14a3e;}
.archive_header .MapTabs .tabSelect {background-color: #f14a3e;color: #fff;}
.archive_header .MapTabs span {display: inline-block; line-height: 32px; padding: 0 0.4em; margin-right: 0.3em; cursor: pointer; }
.archive_header .MapTabsBody > span {line-height: 32px; margin-right: 0.3em; }
.archive_header .MapTabsBody > span > span {display: inline-block;font-weight: 500;padding: 0 0.4em;background: #ee5045;color: #fff;}
.archive_header .MapTabsBody > span > a {display: inline-block; text-decoration: underline; padding: 0 0.4em; }
.archive_header .MapTabsBody > span > a:hover {text-decoration: none; background-color: #f5f5f5; }

/* Галерея */
.gallery {overflow: hidden; }
.gallery > .item {display: block; float: left; margin: 5px; position: relative; overflow: hidden; }
.gallery > .item > span {opacity: 0; position: absolute; bottom: 0; left: 0; right: 0; height: 22px; line-height: 22px; background: rgba(34, 101, 164, 0.75); color: #ccc; font-size: 14px; overflow: hidden; text-align: center; transition: opacity 0.3s ease-in; }
.gallery > .item:hover > span {opacity: 1; }

/* Карточки */
.item_card {overflow: hidden; padding: 15px 0; }
.item_card h3 {margin-top: 0; }
.item_card .preview {display: block; float: left; background-position: 50%; background-repeat: no-repeat; background-size: contain; width: 196px; height: 196px; margin-right: 15px; margin-bottom: 10px;}
@media (max-width: 520px) {.item_card .preview {float: none;}}

/* Формы */
.ww_form {list-style-type: square; padding: 15px; }
.ww_form li {padding: 15px 0; border-bottom: dotted 2px #ccc; clear: both; color: #f14a3e; }
.ww_form li > * {color: #333; }
.ww_form li:last-of-type {border-bottom: none; }
.ww_form label {display: block; margin: 0; }
.ww_form input[type="text"], .ww_form input[type="email"], .ww_form select, .ww_form textarea {border: solid 2px #bbb; line-height: 1.6em; }
.ww_form input[type="text"]:focus, .ww_form input[type="email"]:focus, .ww_form select:focus, .ww_form textarea:focus {border-color: #2265A4; }
.ww_form input[type="text"], .ww_form input[type="email"], .ww_form select, .ww_form textarea, .ww_form .Captcha {width: 100%; font-size: 0.8em; max-width: 100%; padding: 0 0.2em; min-height: 28px; }
[data-bind="u"] {display: none; }
[field="captcha"] {display: block; width: 100%; clear: both; margin-top: 15px; }
@media (min-width: 768px) {.ww_form input[type="text"], .ww_form input[type="email"], .ww_form select {min-width: 350px; width: 50%; }}

/* Панели и соцсети */
.panel {border-radius: 5px;}
.panel-heading {background: #8bc34a;margin: 0 0 12px;padding: 10px;color: #fff;line-height: 1em;font-weight: normal;text-decoration: none;border-radius: 5px;border-bottom: 3px solid #529603;}
.panel-body {padding: 0 15px 15px;}
.panel-body ul, .panel-body ol {padding-left: 1em; font-size: 0.9em; }
.social_networks {}
.social_networks a {display: inline-block;width: 26px;height: 26px;line-height: 26px;color: inherit;font-size: 20px;text-align: center;opacity: .75;color: #000;}
.social_networks a:hover {opacity: 1; }

/* Кнопки */
button, .button {color: #fff;background: #ff5722;padding: 8px 14px;font-size: .9em;line-height: 16px;display: inline-block;text-decoration: none;border: none;cursor: pointer;border-radius: 5px;}
button:hover, .button:hover {background: #ffc107;text-decoration: none;color: #000;}
a.button {color: #fff;}
button[disabled], button.disabled, .button.disabled {pointer-events: none; opacity: .5;}

/* Вкладки */
.nav-tabs {clear: both;text-align: left;margin: 0;padding: 0;}
.nav-tabs > li {display: inline-block;border: solid 1px transparent;line-height: 1.1em;vertical-align: bottom;border-radius: 5px 5px 0 0;}
.nav-tabs > .active {background-color: #ff5722;color: #fff;}
.nav-tabs > li > a {color: inherit;display: block;line-height: 1.1em;padding: 5px 15px;text-decoration: none;border-radius: 5px;vertical-align: bottom;}
.nav-tabs > li > a:hover {background: #eee;}
@media screen and (max-width: 991px) {.nav-tabs > li {display: block; clear: both; width: 100%; }}
.tab-content {border-top: solid 2px #ff5722;padding: 15px 15px 30px;}

/* Пагинация */
.pagination {text-align: center; display: block; margin: 15px 0; padding: 15px; font-weight: bold; }
.pagination span {border: solid 1px #ccc;display: inline-block;line-height: 26px;height: 28px;width: 28px;margin: 0 3px;padding: 0; overflow: hidden;}
.pagination span:hover {background: #dcb15d; border-color: #dcb15d; color: #fff;}
.pagination .page_hidden {margin: 3px; background: none; }
.pagination span a {color: inherit; display: block; text-decoration: none; }
.pagination .page_current {border: solid 1px #2265a4;background: #2265a4;margin: 0 5px;color: #fff;}

/* Подвал */
#footer {background: rgb(169 69 38 / 92%);padding: 0 0 25px;color: #fff;font-size: .9em;}
#footer a {color: inherit;text-decoration: none;}
#footer a:hover {text-decoration: underline;}
#footer_content {padding: 15px 0 15px;}
.fixed-footer {position: relative; min-height: 100vh; }
.fixed-footer #footer {position: absolute; left: 0; right: 0; bottom: 0; }
#copyrights {padding: 0 15px 0;}
#last_mod {margin-top: 5px;opacity: .5;font-size: .9em;}

.container.row {padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; }
.row-eq-height {display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;flex-wrap: wrap;}

/* Popup (Уведомления) */
.popup_layer {display: block;text-align: center;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,.3);font-size: 0;z-index: 2100;}
.popup_layer:before {content: "";display: inline-block;width: 0;height: 100%;vertical-align: middle;}
.popup_layer .popup_window {display: inline-block;vertical-align: middle;width: 100%;font-size: 1rem;max-width: 600px;background: #fff;padding: 15px;position: relative;text-align: left;box-shadow: 0 2px 20px 4px rgba(0,0,0,.5);}
.popup_layer .popup_window .caption {margin: -15px -15px 15px;height: 40px;background: #f14a3e;position: relative;text-align: left;padding: 0 20px;line-height: 40px;}
.popup_layer .popup_window .caption .close {display: block;color: #fff;width: 30px;height: 30px;position: absolute;right: 5px;top: 5px;line-height: 30px;opacity: 1;font-weight: 400;text-align: center;}
.popup_layer .popup_window .title {font-weight: 600;font-size: 1em;color: #fff;padding-right: 30px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
.popup_layer .popup_window .content {padding: 5px 5px 5px;}

#scroll_up_button {position: fixed;bottom: 45px;right: 45px;display: none;width: 42px;height: 42px;font-size: 26px;line-height: 42px;opacity: 0.5;text-align: center;cursor: pointer;z-index: 999;padding: 0;}
#scroll_up_button:hover {opacity: 1; transition: opacity 0.5s ease; }

/* Таблицы */
.tbl {border-collapse: collapse;border-spacing: 0;max-width: 100%;font-size: .9em;}
.tbl tr {background: #fafafa;}
.tbl td {border: 1px solid #f44336;border-bottom-width: 1px;padding: 6px;}
.tbl thead td,.tbl th {background: #f44336;color: #fff;border: 1px solid #f44336;padding: 8px 6px;}
.tbl tr:hover {background: #fff;color: #000;}
.tbl tr:hover td:hover {background: #fff2f1;color: #000;}

/* GoogleTranslate hack */
body {top: 0 !important;}
#google_translate_element, .skiptranslate, .goog-te-banner-frame {display: none !important;}

/* Исправление мобильных попапов */
@media screen and (max-width: 767px) {
  body {padding-top: 50px !important;}
  #announcement-block, .popup_layer, div[style*="height: calc(100vh - 285px)"] {
    position: fixed !important;top: 50px !important;left: 0 !important;right: 0 !important;bottom: 0 !important;
    z-index: 9500 !important;margin: 0 !important;height: calc(100vh - 50px) !important;
    overflow-y: auto !important;overflow-x: hidden !important;
  }
  .announce-close-btn, button[onclick*="closeAnnouncement"], .popup_layer .close {
    position: fixed !important;top: 55px !important;right: 10px !important;z-index: 10000 !important;
    display: block !important;opacity: 1 !important;visibility: visible !important;
  }
  #announcement-block > div, .popup_layer .popup_window, div[style*="max-width: 550px"] {
    margin-top: 40px !important;padding: 15px !important;max-width: 100% !important;
  }
  .breadcrumbs {margin-top: 10px !important;font-size: 0.85em !important;}
  h1 {margin-top: 10px !important;font-size: 28px !important;padding: 0 10px !important;}
}
@media screen and (max-width: 480px) {
  body {padding-top: 45px !important;}
  #announcement-block, .popup_layer, div[style*="height: calc(100vh - 285px)"] {top: 45px !important;height: calc(100vh - 45px) !important;}
  .announce-close-btn, button[onclick*="closeAnnouncement"] {top: 50px !important;right: 5px !important;width: 36px !important;height: 36px !important;}
}

/* ========================================= */
/* КНОПКА МЕНЮ НА ТЕЛЕФОНЕ  */
/* ========================================= */

@media screen and (max-width: 767px) {
  
  /* 1. Убираем белый фон у кнопки, делаем её прозрачной */
  #main_menu .level_0 > li:first-child > a,
  #menu_toggle {
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 10px !important;
  }

}

/* ========================================= */
/* МОБИЛЬНОЕ МЕНЮ: ТОЛЬКО ЦВЕТ ТЕКСТА/ИКОНКИ */
/* ========================================= */
@media screen and (max-width: 767px) {
  
  /* 1. Убираем белое пятно, тени и рамки у кнопки */
  #main_menu .level_0 > li:first-child > a,
  #menu_toggle {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
  }

  /* 2. Красим существующий текст/символ в цвет названия поликлиники */
  #main_menu .level_0 > li:first-child > a,
  #main_menu .level_0 > li:first-child > a span,
  #main_menu .level_0 > li:first-child > a:before,
  #menu_toggle,
  #menu_toggle span {
    color: #b70f03 !important; /* Красный цвет как в «19-я городская...» */
  }

  /* 3. Если текст «Меню»/«Главная» был скрыт темой — возвращаем его */
  #main_menu .level_0 > li:first-child > a span {
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }
}
