@import url(../../../css/custom.css);

#logo .custom-logo { background-image: url(../../../../../images/yootheme/logo_blue.png); }
#bottom-c .demo-ticket { background-image: url(../images/demo_ticket.png); }
.social-icons li a { background-image: url(../images/tools/icons_social.png); }

@media (min-width: 960px) {

  #headerbar {
    position: relative;
    text-align: center;
  }

  #headerbar .float-left {
    float: left;
  }

  #headerbar .float-right {
    float: right;
  }

  #headerbar .logo-module {
    float: none;
    display: inline-block;
    margin: 0 auto;
  }

  #headerbar .logo-module img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }
}

/* Глобальные ограничения ширины и медиаконтента */
html, body {
  max-width: 100%;
  overflow-x: auto;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  max-width: 100%;
}

.contact-map {
  width: 100%;
  max-width: 100%;
  height: 400px;
}

.contact-map iframe,
.contact-map > div {
  width: 100% !important;
  height: 100% !important;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Контейнер виджета */
.wk-gallery,
.wk-gallery-wall {
  max-width: 100%;
  width: 100%;
}

/* Элементы‑плитки */
.wk-gallery-wall > * {
  box-sizing: border-box;
  width: 25%;          /* 4 колонки на больших экранах */
  padding: 5px;
}

/* Картинки внутри */
.wk-gallery-wall > * img {
  display: block;
  width: 100%;
  height: auto;
}

/* Медиа-запросы под разные ширины */
@media (max-width: 900px) {
  .wk-gallery-wall > * {
    width: 33.333%;    /* 3 колонки */
  }
}

@media (max-width: 500px) {
  .wk-gallery-wall > * {
    width: 50%;        /* 2 колонки */
  }
}

@media (max-width: 400px) {
  .wk-gallery-wall > * {
    width: 100%;       /* 1 колонка на узких экранах */
  }
}

/* "Читайте также" в блоке grid-box width100 grid-h */
#content .grid-box.width100.grid-h .mod-line {
  margin: 20px 10px;
  padding: 10px 0 5px;
  border-top: 2px solid #d6deee;
}

/* Заголовок модуля */
#content .grid-box.width100.grid-h .mod-line .module-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #2f3c5b;
  text-align: left;
}

/* Список ссылок */
#content .grid-box.width100.grid-h .mod-line ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

#content .grid-box.width100.grid-h .mod-line ul li {
  margin-bottom: 6px;
}

/* Ссылки */
#content .grid-box.width100.grid-h .mod-line ul li a {
  font-size: 14px;
  color: #003e66 !important;
  text-decoration: none;
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Ховер по ссылке */
#content .grid-box.width100.grid-h .mod-line ul li a:hover {
  color: #339fe8 !important;
  text-decoration: underline;
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* На всякий случай — отключаем линии на li */
#content .grid-box.width100.grid-h .mod-line ul li,
#content .grid-box.width100.grid-h .mod-line ul li:hover {
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Меню: убираем лишние внутренние отступы модулей */
#menubar .mod-line,
#menubar .mod-headline {
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Снижаем агрессивные паддинги и отрицательные отступы у меню */
/* Меню: убираем лишние внутренние отступы модулей */
#menubar .mod-line,
#menubar .mod-headline {
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Снижаем агрессивные паддинги и отрицательные отступы у меню */
#menubar > div {
  padding-left: 80px;   /* было 205px, затем 40px */
}

#menubar > div > div {
  padding-right: 80px;  /* было 205px, затем 40px */
}

#menubar #menu {
  margin: 0;            /* было 0 -149px */
}

/* Центрирование без left:50%/-50% */
#menubar.block-center {
  left: 0;
}

#menubar.block-center > div {
  left: 0;
  margin: 0 auto; /* обычное центрирование вместо left:50%/-50% */
  max-width: 100%;
}














