*, *::before, *::after {
    box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  text-align: left;
  background: #f7f7f7 url(../img/bg.png) repeat;
  color: black;
  min-width: 600px;
  height: 100%;
}
.container {
  margin-left: auto;
  margin-right: auto;
}
.main {
  padding: 7px;
  position: relative;
}
.outer {
  width:100%;
  display: table;
}
.side {
  width: 300px;
  display: table-cell;
  vertical-align: top;

  z-index: 2;
  position: relative;
}
.page {
  border: 1px solid #aeaeae;
  padding: 0px ;
  background: #fbfbfb url(../img/bg_header.jpg) center top repeat-x;
  box-shadow: 0px 0px 10px #a9a8a8;
  margin: 0 auto -60px;
  display: table-cell;
  vertical-align: top;
  z-index: 3;
  position: relative;
}
.side-main {
  border: 1px solid #aeaeae;
  box-shadow: 0px 0px 10px #a9a8a8;
  background: #fbfbfb;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 0 13px ;
  margin: 35px 0 0 -3px;
  min-height: 650px;
}
.side-main-muted input, .side-main-muted textarea, side-main-muted .btn, .side-main-muted{
  color:#999999
}

.hide-side {
  position: absolute;
  top: 5px;
  color: #005580;
  border-bottom: 1px dashed #005580;
  right: 15px;
  cursor: pointer;
}
.show-side-btn {
  position: fixed;
  top: 50%;
  display: none;
  margin-left: -13px;
  opacity: 0.5;
}
.show-side {
  cursor: pointer;
}
.side:hover .show-side-btn{
  opacity: 1;
}



.navbar {
  margin-bottom: 0;
  position: relative;
}
.navbar-inner {
  -webkit-border-radius:0px;
  border: 0px solid #f7f7f7;
  padding: 20px 25px 0px 30px;
  margin: 0;
  background: transparent;
  box-shadow:0 0 0;

}
.navbar .nav > li > a {
  color: #1948bc;
  padding: 4px 12px ;
  font-weight: bold;
}
.navbar .nav {
  padding: 30px 0 0 0;

}
.search-span {
  padding: 35px 0 0 0;
}
.search-span form {
  position: relative;
  margin: 0;
}
.search-span .btn {
  margin-top: 5px;
}
.contacts-span {
  padding: 30px 0 0 0;
  text-align: right;
}
/* ДОБАВЛЕНО: Чтобы иконки соцсетей тоже выравнивались по правому краю */
.contacts-span .social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
/* ДОБАВЛЕНО: Стили для корректного отображения логотипа в строке */
.header-logo-box {
  padding-top: 20px;
}
.header-logo-box .brand {
  padding: 0;
  margin: 0;
  display: block;
}
.tel {
  font-size: 16px;
  font-weight: bold;
}
.tel span {
  font-size: 14px;
  color: #444444;
}
.prise a {
  text-decoration: none;
  color: #1948bc;
  font-weight: bold;
}
.prise img {
  position: absolute;
  margin-left: -40px;
}
.prise {
  line-height: 17px;
  text-align: left;
  padding: 7px 0 0 20px;
}
.prise span {
  color: #444444;
  font-weight: normal;
}
.btn-navbar {
  z-index: 101;
  position: absolute;
  right: -5px;
  top: 0px;
}

.container-fluid {
padding-right: 65px;
padding-left: 50px;
}

a {
  color: #1948bc;
  text-decoration: underline;
}
a:hover {
  color:#fe0000;
}
a:visited {
  color: rgb(102,51,204);
}

.a1 {
  text-decoration: none;
  margin: 0 0 5px 0;
}

h2 {
  text-align: center;
  font-family: 'Cuprum', Arial;
  color: #fe0000;
  font-weight: normal;
  padding: 10px;
}
h3 {
  margin-bottom: 0px;
  font-family: 'Cuprum', Arial;
  font-weight: normal;
}
h4 {
  font-family: 'Cuprum', Arial;
  font-weight: normal;
}
h5 {
  font-family: 'Cuprum', Arial;
  font-size: 16px;
  font-weight: normal;
}
.padding {
  margin: 10px 30px;
}
.y_map {
  width: 90%;
  height: 436px;   /* Высота должна строго совпадать с высотой карты в скрипте */
  clear: both;     /* Отменяет любое обтекание элементов со стороны */
  margin-bottom: 30px; /* Создает безопасный отступ до заголовка "Телефоны..." */
  margin: 20px auto; /* Центрирование карты на странице */
}
.contacts td {
  padding: 10px 25px 10px 35px;
  color: #666;
}
.contacts .contacts_department {
  padding-left: 0;
}
.contacts .contacts_detail {
  color: black;
  font-size: 18px;
  line-height: 25px;
}
.contacts .contacts_detail span {
  font-size: 16px;
}
.contacts  .contacts_person {
  font-style: italic;
}
.awards {
  text-align: center;
}

.awards img {
  border: 1px solid #ccc;
  margin: 10px;
  padding: 1px ;
}

.thumbnail_block {
  display: block;
  text-decoration: none;
}
.thumbnail_block:hover {
  text-decoration: none;
}
.list-products .span3 {
  min-width: 200px;
}
.products-list {
  margin: 0;
}
.products-list li {
  width: 100%;
  display: block;
  min-height: 110px;
  background:  url(../img/bg_li_products.jpg) center bottom no-repeat;
  position: relative;
}
.products-list li h3 {
  font-size: 20px;
}
.products-list li img {
  height: 80px;
  float: left;
  padding: 7px 15px 0 0;

}
.products-list li .about {
  padding-right: 150px;
}
.products-list li .count {
  width: 70px;
  top: 20px;
  right: 0;
  position: absolute;
  color: #999;
  font-size: 11px;
}
.table-product {
  width: auto;
  margin: 30px 20px 40px 0px;
}
.product-img {
  float: right;
  margin: 30px 0 0 0;
}

.info2, .info1_5, .info {
  margin: 0 0 70px 0;


}


.info2 img, .info1_5 img, .info img {
  float: left;
  margin-top: 0;
  margin-right: 30px;
  clear: both;
}

.breams-slider {
padding: 15px 0 20px ;
}
.ui-slider-pips .ui-slider-pip {
  font-size: 15px;
  margin-top: 10px;
}

.slider-data-containers {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-top: 40px;
  min-height: 300px;
  background: rgb(239,239,239);
}
.slider-data-container {
  padding-bottom: 30px;
}
.slider-data-container h4{
  padding-top: 30px;
}
.slider-select {
  position: absolute;
  margin-top: 29px;
  margin-left: -13px;
}


.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
	border: 0px solid red;
	background: url(../img/slider.png) 50% 50% repeat-x;
	font-weight: bold;
	color: #1c94c4;
}
.ui-slider .ui-slider-handle {
  width: 40px;
  height: 45px;
  margin-top: -12px;
  margin-left: -21px;

}

.search-box {
  background:#fbfbfb;
  border: 1px solid #aeaeae;
  box-shadow: 0px 5px 20px #a9a8a8;
  padding: 0px 0px 62px 0px ;
  position: absolute;
  width: 700px;
  display: none;
  max-height: 70%;
  overflow: hidden;
  z-index: 10;
}
.search-box h3 {
  white-space: nowrap;
}
.search-box ul li {
  min-height: 20px;
  background-position: left bottom;
}

.search-box ul li a {
  display: block;
  text-decoration: none;
  border-top: 1px solid #fbfbfb;
  border-bottom: 1px solid #fbfbfb;
  padding: 2px 0 17px 0;
  color: black;
  position:relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
}
.search-box ul li a .about {
  color: black;
  white-space: normal;
}
.search-box ul li a:hover {
  box-shadow: 0px 0px 5px #a9a8a8;
  z-index: 5;
}
.search-box ul li img {
  margin-left: 25px;
}
.search-box ul li h3 {
  color: #1948bc;
}
.search-box .all {
  background: rgb(250, 243, 219);
  display: block;
  text-align: center;
  padding: 20px 0;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 7;
  border-top: 1px solid #ccc;

}
.thumbnail {
  border-color: #fbfbfb;
  box-shadow: 0px 1px 3px #fbfbfb;
  color: black;
}

.thumbnail h5 {
  padding-left: 10px;
  padding-right: 0;
  margin-right: 0;
}

.nav-u-hor {
  padding-top: 15px;
  list-style: none;
  margin: 0;
}
.nav-u-hor li {
  margin: 0;
  border-radius: 3px 3px 3px 3px;
  padding: 5px 7px ;
  margin: 0px;
  float: left;
}
.nav-u-hor li span {
 font-size: 17px;
 text-decoration: none;
 border-bottom: 1px dashed #1948bc;
 color: #1948bc;
 cursor: pointer;

}

.nav-u-hor li.active {
  color: #ffffff;
  background-color: #1948bc;
  box-shadow: inset 0 1px 1px 1px #102998;
}
.nav-u-hor li.active span {
  color: #ffffff;
}


.clear {
  clear: both;
}





footer {
  margin-top: 40px;
  background:  url(../img/bg_footer.jpg) bottom repeat-x;
  padding: 70px 35px 20px 35px;

  font-size: 12px;
  font-weight: bold;
  color:#333;
}


.nav-pills > .active > a, .nav-pills > .active > a:hover, .nav-pills > .active > a:focus {
  color: #ffffff;
  background-color: #1948bc;;
}


.nav-pills > li > a {
 border-radius: 3px;
 padding-top: 10px;
 padding-bottom: 10px;
 margin: 0;
}

.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus {
  color: #ffffff;
  background-color: #1948bc;
  box-shadow: inset 0 1px 1px 1px #102998;
  text-decoration: none;
}
.nav-pills.nav-stacked > li > a {
  margin: 0;
}
.nav-pills > li > a:hover {
  text-decoration: ubnderline;
}
.gallery-main {
  text-align: center;
}
.gallery {
  margin: 0 auto;
  width: auto;
}
.gallery a {
  margin: 0 10px 10px 0;
  display: inline-block;
}
.label-news {
  position: absolute;
  margin-top: 2px;
  margin-left: 3px;
  font-family: Arial, sans-serif;
  background-color: #1948bc;
}
.basf-logo {
  position: absolute;
  right: 10px;
  bottom: 10px;
}
/* Заставляем контейнер меню не ограничивать высоту, если она была задана */
.gen_menu {
  padding-top: 20px !important; /* Корректируем верхний отступ для выравнивания */
}

/* Перестраиваем список в двухколоночную сетку */
.gen_menu .nav {
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr); /* Строго 2 равные колонки */
  gap: 5px 10px; /* Отступы между пунктами: 5px по вертикали, 10px по горизонтали */
  float: none !important; /* Отменяем старый флоат */
}

/* Сбрасываем старые стили Bootstrap для элементов списка, которые могут мешать */
.gen_menu .nav > li {
  float: none !important;
  display: block !important;
  margin: 0 !important;
}

/* Делаем ссылки аккуратными и компактными */
.gen_menu .nav > li > a {
  padding: 4px 0 !important; /* Убираем лишние боковые паддинги, чтобы текст не переносился внутри ссылки */
  display: inline-block;
  white-space: nowrap; /* Запрещаем перенос слов внутри одного пункта меню */
}
