/*
 * Site header outside the landing pages
 * Шапка сайта за пределами лендинга
 *
 * Шапка одна на весь сайт (_SiteHeader.cshtml), но style.css лендинга в
 * личный кабинет целиком не подключить: он переопределяет body, заголовки,
 * кнопки и формы панели. Сюда перенесены только правила шапки темы — из
 * разделов «top panel» и «menu button» style.css — и то немногое из общих
 * правил лендинга, на что шапка опирается. Вид новой шапки поверх них
 * задают site-tokens.css и site-shell.css — те же, что на публичных
 * страницах.
 *
 * Правя шапку в style.css, поправьте её и здесь.
 */

@font-face {
    font-family: 'Museo Sans Cyrl 500';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-500.eot');
    src: local('MuseoSansCyrl-500'), url('/fonts/MuseoSans/MuseoSansCyrl-500.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-500.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-500.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Sans Cyrl 300';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-300Italic.eot');
    src: local('MuseoSansCyrl-300Italic'), url('/fonts/MuseoSans/MuseoSansCyrl-300Italic.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-300Italic.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-300Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Museo Sans Cyrl 500';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-500Italic.eot');
    src: local('MuseoSansCyrl-500Italic'), url('/fonts/MuseoSans/MuseoSansCyrl-500Italic.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-500Italic.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-500Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Museo Sans Cyrl 900';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-900.eot');
    src: local('MuseoSansCyrl-900'), url('/fonts/MuseoSans/MuseoSansCyrl-900.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-900.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-900.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Sans Cyrl 700';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-700.eot');
    src: local('MuseoSansCyrl-700'), url('/fonts/MuseoSans/MuseoSansCyrl-700.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-700.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-700.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Sans Cyrl 700';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-700Italic.eot');
    src: local('MuseoSansCyrl-700Italic'), url('/fonts/MuseoSans/MuseoSansCyrl-700Italic.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-700Italic.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-700Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Museo Sans Cyrl 300';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-300.eot');
    src: local('MuseoSansCyrl-300'), url('/fonts/MuseoSans/MuseoSansCyrl-300.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-300.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Sans Cyrl 100';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-100.eot');
    src: local('MuseoSansCyrl-100'), url('/fonts/MuseoSans/MuseoSansCyrl-100.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-100.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-100.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Museo Sans Cyrl 100';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-100Italic.eot');
    src: local('MuseoSansCyrl-100Italic'), url('/fonts/MuseoSans/MuseoSansCyrl-100Italic.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-100Italic.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-100Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Museo Sans Cyrl 900';
    src: url('/fonts/MuseoSans/MuseoSansCyrl-900Italic.eot');
    src: local('Museo Sans Cyrl 900 Italic'), local('MuseoSansCyrl-900Italic'), url('/fonts/MuseoSans/MuseoSansCyrl-900Italic.eot?#iefix') format('embedded-opentype'), url('/fonts/MuseoSans/MuseoSansCyrl-900Italic.woff') format('woff'), url('/fonts/MuseoSans/MuseoSansCyrl-900Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* -------------------------------------------

общие правила лендинга, в пределах шапки

------------------------------------------- */
.mil-top-position {
    top: 0;
    left: 0;
    font-family: 'Museo Sans Cyrl 500', sans-serif;
    font-size: 15px;
    color: rgba(18, 24, 32, 0.9);
    line-height: 170%;
}

.mil-top-position *,
.mil-top-position *:before,
.mil-top-position *:after {
    box-sizing: border-box;
}

.mil-top-position ul {
    margin: 0;
    padding: 0;
}

.mil-top-position a {
    color: inherit;
    text-decoration: none;
}

.mil-top-position h6 {
    font-family: "Museo Sans Cyrl 900", sans-serif;
    color: rgb(18, 24, 32);
    font-weight: 600;
    line-height: 140%;
    font-size: 14px;
}

/* -------------------------------------------

личный кабинет: место под шапку

------------------------------------------- */
/*
 * Шапка фиксированная, и панель должна начинаться под ней. Высоту шапки
 * пишет site-header.js — замер, чтобы отступ не разошёлся с шапкой при
 * правках CSS. Здесь — значение до первого замера.
 */
body.app {
    padding-top: var(--site-header-height, 40px);
}

/* -------------------------------------------

top panel

------------------------------------------- */
.mil-top-position {
  width: 100%;
  z-index: 999;
  -webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}
.mil-top-position.mil-absolute {
  position: absolute;
}
.mil-top-position.mil-fixed {
  position: fixed;
}
.mil-top-position.mil-hide-top {
  -webkit-transform: translateY(-40px);
          transform: translateY(-40px);
}
@media screen and (max-width: 756px) {
  .mil-top-position.mil-hide-top {
    -webkit-transform: none;
            transform: none;
  }
}

.mil-top-panel {
  padding: 0 10px;
  height: 60px;
  background-color: rgb(255, 255, 255);
  width: 100%;
  z-index: 999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
          box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
  -webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}
@media screen and (max-width: 1200px) {
  .mil-top-panel {
    padding: 0px;
    border-bottom: solid 1px rgba(18, 24, 32, 0.1);
  }
}
.mil-top-panel .container, .mil-top-panel .container-fluid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.mil-top-panel .mil-logo {
  height: 60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-image: url(../img/logo/logo-dark.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.mil-top-panel .mil-navigation nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.mil-top-panel .mil-navigation nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0;
  margin: 0;
}
.mil-top-panel .mil-navigation nav ul li {
  margin-right: 40px;
  list-style-type: none;
}
    .mil-top-panel .mil-navigation nav ul li a {
        font-family: "Museo Sans Cyrl 500", sans-serif;
        text-decoration: none;
        color: rgb(18, 24, 32);
        font-weight: 400;
        white-space: nowrap;
        -webkit-transition: 0.2s cubic-bezier(0, 0, 0.3642, 1);
        transition: 0.2s cubic-bezier(0, 0, 0.3642, 1);
    }
.mil-top-panel .mil-navigation nav ul li a:hover {
  color: #1391e5;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children {
  position: relative;
  padding-right: 10px;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: solid 2px #1391e5;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children:after {
  content: "";
  width: 100%;
  height: 40px;
  background-color: transparent;
  position: absolute;
  bottom: -40px;
  left: 0;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul {
  opacity: 0;
  position: absolute;
  left: -30px;
  top: 63px;
  -webkit-transform: translateY(10px) scale(0.98);
          transform: translateY(10px) scale(0.98);
  pointer-events: none;
  display: block;
  min-width: 200px;
  padding: 30px;
  -webkit-box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
          box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
  border-radius: 0 0 5px 5px;
  background-color: rgb(255, 255, 255);
  -webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li {
  position: relative;
  margin-bottom: 15px;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li:last-child {
  margin-bottom: 0;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li a {
  color: rgb(18, 24, 32);
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children ul li a:hover {
  color: #1391e5;
}
.mil-top-panel .mil-navigation nav ul li.mil-has-children:hover ul {
  opacity: 1;
  pointer-events: all;
  -webkit-transform: translateY(0) scale(1);
          transform: translateY(0) scale(1);
}
.mil-top-panel .mil-navigation nav .mil-search-icon {
  margin-left: 20px;
  cursor: pointer;
}
.mil-top-panel .mil-navigation nav .mil-search-icon svg path {
  fill: rgb(18, 24, 32);
  -webkit-transition: 0.2s cubic-bezier(0, 0, 0.3642, 1);
  transition: 0.2s cubic-bezier(0, 0, 0.3642, 1);
}
.mil-top-panel .mil-navigation nav .mil-search-icon:hover svg path {
  fill: #1391e5;
}
@media screen and (max-width: 1200px) {
  .mil-top-panel .mil-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
    -webkit-box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
            box-shadow: 0px 0px 40px 0px rgba(18, 24, 32, 0.1);
    width: 100%;
    background-color: rgb(255, 255, 255);
    -webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
    transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  }
  .mil-top-panel .mil-navigation.mil-active {
    opacity: 1;
    pointer-events: all;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  .mil-top-panel .mil-navigation nav {
    padding: 30px 0;
  }
  .mil-top-panel .mil-navigation nav ul {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .mil-top-panel .mil-navigation nav ul li {
    text-align: center;
    width: 100%;
    margin: 0;
    margin-bottom: 15px;
  }
  .mil-top-panel .mil-navigation nav ul li:last-child {
    margin-bottom: 0;
  }
  .mil-top-panel .mil-navigation nav ul li a {
    position: relative;
    padding: 0 15px;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children {
    overflow: hidden;
    height: auto;
    padding-right: 0;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children:before {
    display: none;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children > a:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: solid 2px #1391e5;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children ul {
    position: static;
    margin-left: -1px;
    opacity: 1;
    width: calc(100% + 2px);
    max-height: 0;
    padding: 0;
    overflow: hidden;
    -webkit-transform: none;
            transform: none;
    border-radius: 0 !important;
    background-color: rgba(18, 24, 32, 0.05);
    -webkit-box-shadow: inset 0 0 0 1px rgba(18, 24, 32, 0.1);
            box-shadow: inset 0 0 0 1px rgba(18, 24, 32, 0.1);
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children ul li:first-child {
    margin-top: 30px;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children ul li:last-child {
    margin-bottom: 30px;
  }
  .mil-top-panel .mil-navigation nav ul li.mil-has-children:hover ul {
    margin-top: 15px;
    max-height: 350px;
  }
  .mil-top-panel .mil-navigation nav .mil-search-icon {
    display: none;
  }
}
/* -------------------------------------------

menu button

------------------------------------------- */
.mil-menu-btn {
  height: 24px;
  cursor: pointer;
  display: none;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
}
@media screen and (max-width: 1200px) {
  .mil-menu-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}
.mil-menu-btn span, .mil-menu-btn span:after, .mil-menu-btn span:before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: rgb(18, 24, 32);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: inherit;
  transition: inherit;
}
.mil-menu-btn span {
  position: relative;
}
.mil-menu-btn span:after, .mil-menu-btn span:before {
  position: absolute;
}
.mil-menu-btn span:before {
  top: -8px;
}
.mil-menu-btn span:after {
  top: 8px;
}
.mil-menu-btn.mil-active span {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.mil-menu-btn.mil-active span:before {
  -webkit-transform: translate(0px, 8px) rotate(-90deg);
          transform: translate(0px, 8px) rotate(-90deg);
}
.mil-menu-btn.mil-active span:after {
  width: 24px;
  -webkit-transform: translate(0px, -8px) rotate(-90deg);
          transform: translate(0px, -8px) rotate(-90deg);
}
.mil-menu-btn:hover span, .mil-menu-btn:hover span:after, .mil-menu-btn:hover span:before {
  background: rgb(18, 24, 32);
}

.mil-transparent-nav .mil-menu-btn span, .mil-transparent-nav .mil-menu-btn span:after, .mil-transparent-nav .mil-menu-btn span:before {
  background-color: rgb(255, 255, 255);
}

/* -------------------------------------------

личный кабинет: низкая шапка

------------------------------------------- */
/*
 * В кабинете шапка 40px: заполнение и разметка живут во весь экран, и каждая
 * точка сверху отнимается у документа. Полоса с телефоном здесь не видна —
 * с ней шапка была бы вдвое выше, а контакт нужен на публичных страницах.
 *
 * site-shell.css подключается позже этого файла, поэтому правила начинаются
 * с body.app: перебивают весом, а не порядком. Ссылки меню — только прямые
 * потомки пунктов, чтобы не задеть ссылки в панелях «Войти» и «Мои документы».
 * Мобильное меню не уменьшается: пункты в нём по 44px ради пальца.
 */
body.app .site-header .top-bar {
    display: none;
}

body.app .site-header .mil-top-panel {
    height: 40px;
}

body.app .site-header .mil-top-panel .mil-logo.site-logo {
    gap: 8px;
    font-size: 17px;
}

body.app .site-header .site-logo-img {
    height: 21px;
}

body.app .site-header .mil-menu-btn {
    width: 36px;
    height: 36px;
    margin-right: -6px;
}

@media screen and (min-width: 1201px) {
    body.app .site-header .mil-navigation > nav > ul > li > a {
        font-size: 14px;
    }

    body.app .site-header .mil-navigation > nav > ul > li.site-nav-account > a {
        height: 28px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
    }
}
