* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}


html, body { height: 100%; }
body {
  display: -ms-flexbox;
  background-color: #FFF;
  color: #522B2A;
  font: normal 14px/1.33 'Roboto Condensed', sans-serif;
  margin-bottom: -constant(safe-area-inset-bottom);
  margin-bottom: -env(safe-area-inset-bottom);
}


.layout-message__wrapper {
  position: fixed; top: 0; right: 0; left: 0; z-index: 60;
  padding: 4px 32px;
  background-color: #EE7023;
  color: #FFF;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
}

.layout-header__wrapper {
  position: relative;
  margin: 0 auto;
  padding: 28px 72px 8px 32px;
  max-width: 1024px; min-height: 80px;
}

.layout-menu {
  display: none;
}

.layout-body {
  border-top: 4px solid #FBF2EA;
  background: #EBE7E2;
}
.layout-body__wrapper {
  margin: 0 auto; padding: 48px 32px 16px;
  max-width: 1024px;
}
.layout-body__wrapper::after {
  content: '';
  display: table;
  clear: both;
}

.layout-footer {
  margin-top: auto;
  border-top: 8px solid #F79131;
  background: #483D3D;
  color: #FFF;
}
.layout-footer__wrapper {
  margin: 0 auto;
  padding: 32px;
  max-width: 1024px;
  text-align: center;
  overflow: hidden;
}


.layout {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  align-items: stretch;

  -ms-flex: 1 1 auto;

  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}
.layout__nav,
.layout__header,
.layout__footer {
  -webkit-box-flex: 0;
  -webkit-flex: none;
      -ms-flex: none;
          flex: none;
}
.layout__header {
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
}
.layout__body {
  -webkit-box-flex: 1;
  -webkit-flex: 1 0 auto;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}
.layout__aside {
  float: left;
  padding: 0 16px 0 32px;
  width: 265px;
}
.layout__content {
  overflow: hidden;
}


.layout-section {
  border-top: 4px solid #FBF2EA;
  background: #EBE7E2;
}
.layout-section__header,
.layout-section__wrapper {
  margin: 0 auto; padding: 48px 32px 0;
  max-width: 1024px;
}
.layout-section__header {
  padding-top: 32px;
}
.layout-section__wrapper {
  padding-bottom: 32px;
}
.layout-section__body {
  background: #FBF2EA;
}


.header-entity {
  display: block;
  position: absolute; top: 20px; left: 32px; z-index: 1;
  padding-left: 56px;
  color: #EE7023;
  font-size: 12px;
  text-align: left; text-decoration: none;
  white-space: nowrap;
}
.header-entity__logo {
  content: '';
  display: block;
  position: absolute; top: 2px; left: 0;
  width: 48px; height: 40px;
  background: url('../img/logo.svg') no-repeat 0 0;
  background-size: auto 40px;
}
.header-entity__anchor {
  display: block;
  color: inherit;
  text-decoration: none;
}
.header-entity__name {
  font-size: 18px; font-weight: bold;
  line-height: 24px;
}
.header-entity__email,
.header-entity__description {
  line-height: 16px;
}
.header-entity .menu {
  right: auto; left: 40px;
  min-width: 240px;

  -webkit-transform-origin: top left;
     -moz-transform-origin: top left;
      -ms-transform-origin: top left;
          transform-origin: top left;
}
.header-entity.active .menu {
  opacity: 1;

  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}

.header-signout {
  position: absolute; top: 20px; right: 24px; z-index: 11;
  width: 40px; height: 40px;
  padding: 40px 0 0 40px;
  overflow: hidden;
}
.header-signout::before {
  position: absolute; top: 8px; left: 8px;
}

.logo-footer {
  display: inline-block;
  position: relative;
  padding-left: 28px;
  color: #FFF;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}
.logo-footer::before {
  content: '';
  display: block;
  position: absolute; top: 2px; left: 0;
  width: 20px; height: 20px;
  background: url('../img/logo_white.svg') no-repeat 0 0;
  background-size: auto 20px;
}
.logo-footer,
.logo-footer:hover,
.logo-footer:focus,
.logo-footer:active {
  text-decoration: none;
}

.nav-badge {
  padding: 0 4px;
  border-radius: 4px;
  background: #EE7023;
  min-width: 14px; height: 14px;
  color: #FFF;
  font-size: 10px; font-weight: 500;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}

.footer-apps {
  margin: 0 0 16px;
  font-size: 0;
  vertical-align: middle;
}
.footer-apps__item {
  display: inline-block;
  padding: 12px;
  font-size: 12px;
}
.footer-apps__anchor {
  display: block;
  border: 1px solid #FBF2EA;
  border-radius: 4px;
}
.footer-apps__anchor:hover,
.footer-apps__anchor:focus,
.footer-apps__anchor:active {
  opacity: .5;
}

.footer-nav {
  margin-bottom: 8px;
}
.footer-nav__item {
  display: inline-block;
  padding: 0 12px 8px;
  white-space: nowrap;
}
.footer-nav__anchor {
  color: #BBACAC;
  -webkit-transition: color .3s;
      -ms-transition: color .3s;
          transition: color .3s;
}
.footer-nav__anchor:hover,
.footer-nav__anchor:focus,
.footer-nav__item.active .footer-nav__anchor {
  color: inherit;
}

.footer-lang { margin-bottom: 8px; }
.footer-lang__item {
  display: inline-block;
  position: relative;
  padding: 0 16px 8px 17px;
  line-height: 18px;
}
.footer-lang__item::before {
  content: '';
  display: block;
  position: absolute; top: 10px; left: 0;
  width: 1px; height: 12px;
  background: #645454;
}
.footer-lang__item:first-child {
  padding-left: 16px;
}
.footer-lang__item:first-child::before {
  content: none;
}
.footer-lang__anchor {
  display: block;
  padding: 7px 0;
  color: #BBACAC;
  -webkit-transition: color .3s;
      -ms-transition: color .3s;
          transition: color .3s;
}
.footer-lang__anchor:hover,
.footer-lang__anchor:focus,
.footer-lang__item.active .footer-lang__anchor {
  color: inherit;
}

.copyright {
  margin-top: 16px;
  font-size: 12px;
  opacity: .6;
}


.page-error {
  padding: 0 16px 32px;
}
.page-error__code {
  color: #DAD1D1;
  font-size: 88px;
  font-weight: bold;
}
.page-error__title {
  margin-bottom: 32px;
  color: #9C8D8D;
  font-size: 46px; font-weight: bold;
  line-height: 1.125;
}
.page-error__description {
  font-size: 16px;
}
.layout .page-error {
  padding: 32px 56px 80px;
}


@media only screen and (max-width: 800px) {

  .layout-body__wrapper,
  .layout-section__header,
  .layout-section__wrapper {
    padding-top: 32px; padding-bottom: 8px;
  }

}


@media only screen and (min-width: 641px) {

  .layout-message {
    height: 26px;
  }

  .layout-nav {
    border-top: 1px solid #EBE7E2;
    font-size: 0;
  }
  .layout-nav_mobile {
    display: none;
  }
  .layout-nav__wrapper {
    margin: 0 auto;
    padding: 0 32px;
    max-width: 1024px;
  }
  .layout-nav__anchor {
    color: #512B2B;
    -webkit-transition: color .3s;
        -ms-transition: color .3s;
            transition: color .3s;
  }
  .layout-nav__anchor_i {
    display: block;
    width: 24px; height: 24px;
    overflow: hidden;
  }
  .layout-nav__item {
    display: inline-block;
    position: relative;
    padding: 16px 12px 12px;
    font-size: 16px;
    vertical-align: top;
    line-height: 24px;
  }
  .layout-nav__item_mobile {
    display: none;
  }
  .layout-nav__item_i {
    padding-top: 14px; padding-bottom: 14px;
  }
  .layout-nav__item.active::before {
    content: '';
    display: block;
    position: absolute; bottom: -4px; right: 12px; left: 12px;
    height: 4px;
    background: #EE7023;
  }
  .layout-nav__anchor:hover,
  .layout-nav__anchor:focus {
    color: #928282;
  }
  .layout-nav__item.active,
  .layout-nav__item.active .layout-nav__anchor {
    color: #EE7023;
  }
  .layout-nav__badge {
    position: absolute; top: 8px; right: 2px; z-index: 1;
  }

}


@media only screen and (max-width: 640px) {

  body {
    background-color: #EBE7E2;
  }

  .layout-message__wrapper {
    top: auto; bottom: 0;
    padding: 4px 24px;
  }
  .layout-header {
    padding-top: 60px;
  }
  .layout-header::before,
  .layout-header::after {
    content: '';
    display: block;
    height: 0;
    height: constant(safe-area-inset-top);
    height: env(safe-area-inset-top);
  }
  .layout-header::before {
    position: fixed; top: 0; right: 0; left: 0; z-index: 50;
    background: #FFF;
  }
  .layout-header__wrapper {
    position: fixed; top: 0; right: 0; left: 0; z-index: 50;
    margin: 0;
    padding: 10px 72px 10px 24px;
    background: #FFF;
    min-height: 0;
    margin-top: constant(safe-area-inset-top);
    margin-top: env(safe-area-inset-top);
  }
  .layout-header__wrapper_separate {
    border-bottom: 4px solid #F79131;
  }
  .layout-body {
    border-top: none;
  }
  .layout-body__wrapper {
    padding: 24px 16px 0;
  }
  .layout-body__wrapper_compact {
    padding-top: 0;
  }
  .layout-section__wrapper {
    padding-top: 16px;
  }
  .layout-section__header,
  .layout-section__wrapper {
    padding: 24px 16px;
  }
  .layout-section__header {
    padding-bottom: 0;
  }
  .layout-footer__wrapper {
    padding: 24px 24px 40px;
  }
  .layout-nav {
    display: block;
    position: fixed; top: 56px; right: 0; left: 0; z-index: 51;
    height: 0;
    background: #FFF;
    overflow-y: auto;
    border-bottom: 4px solid #F79131;
    margin-top: constant(safe-area-inset-top);
    margin-top: env(safe-area-inset-top);
  }
  .layout-nav.active {
    border-top: 1px solid #FBF2EA;
    height: calc(100vh - 56px);
  }
  .layout-nav.animate {
    -webkit-transition: height .25s cubic-bezier(.215,.61,.355,1);
       -moz-transition: height .25s cubic-bezier(.215,.61,.355,1);
         -o-transition: height .25s cubic-bezier(.215,.61,.355,1);
            transition: height .25s cubic-bezier(.215,.61,.355,1);
  }
  .layout-nav__wrapper {
    border-top: 1px solid #EBE7E2;
  }
  .layout-nav.active .layout-nav__wrapper {
    border-top: none;
  }
  .layout-nav__item {
    position: relative;
    border-top: 1px solid #FBF2EA;
    font-size: 16px;
    line-height: 21px;
  }
  .layout-nav__item:first-child {
    border-top: none;
  }
  .layout-nav__anchor {
    display: block;
    padding: 13px 48px 13px 24px;
    color: #512B2B;
  }
  .layout-nav__anchor_i.i::before {
    display: block;
    position: absolute; top: 12px; right: 24px;
    width: 24px; height: 24px;
  }
  .layout-nav__anchor::after {
    content: '';
    display: block;
    position: absolute; top: 12px; right: 24px;
    width: 24px; height: 24px;
    background: url('../img/icons11.png') no-repeat 0 0;
    background-image: none, url('../img/icons11.svg');
  }
  .layout-nav__anchor_i::after {
    content: none;
  }
  .layout-nav__anchor_signout::after {
    background-position: 0 -72px;
  }
  .layout-nav__anchor_lang::after {
    background-position: 0 -168px;
  }
  .layout-nav__anchor:hover,
  .layout-nav__anchor:focus {
    color: #928282;
  }
  .layout-nav__item.active,
  .layout-nav__item.active .layout-nav__anchor {
    color: #EE7023;
  }
  .layout-nav__item.active .layout-nav__anchor::after {
    content: none;
  }
  .layout-nav__badge {
    position: absolute; top: 16px; right: 48px;
    min-width: 16px; height: 16px;
    font-size: 14px;
    line-height: 16px;
  }

  .layout-menu {
    display: block;
    position: absolute; top: 8px; right: 16px; z-index: 99;
    margin: 0; padding: 0;
    width: 40px; height: 40px;
    color: #7C6C6C;
    cursor: pointer;
  }
  .layout-menu > div,
  .layout-menu::after,
  .layout-menu::before {
    position: absolute; top: 50%; left: 50%;
    width: 22px; height: 2px;
    background-color: #7C6C6C;

    -webkit-transition: -webkit-transform .25s cubic-bezier(.215, .61, .355, 1);
       -moz-transition: -moz-transform .25s cubic-bezier(.215, .61, .355, 1);
         -o-transition: -o-transform .25s cubic-bezier(.215, .61, .355, 1);
            transition: transform .25s cubic-bezier(.215, .61, .355, 1);

    -webkit-transform-origin: 50% 50%;
       -moz-transform-origin: 50% 50%;
        -ms-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  .layout-menu > div {
    -webkit-transform: translateX(-50%) translateY(0%) rotate(0deg);
       -moz-transform: translateX(-50%) translateY(0%) rotate(0deg);
        -ms-transform: translateX(-50%) translateY(0%) rotate(0deg);
            transform: translateX(-50%) translateY(0%) rotate(0deg);
  }
  .layout-menu::after,
  .layout-menu::before {
    content: '';
  }
  .layout-menu::after {
    -webkit-transform: translateX(-50%) translateY(300%) rotate(0deg);
       -moz-transform: translateX(-50%) translateY(300%) rotate(0deg);
        -ms-transform: translateX(-50%) translateY(300%) rotate(0deg);
            transform: translateX(-50%) translateY(300%) rotate(0deg);
  }
  .layout-menu::before {
    -webkit-transform: translateX(-50%) translateY(-300%) rotate(0deg);
       -moz-transform: translateX(-50%) translateY(-300%) rotate(0deg);
        -ms-transform: translateX(-50%) translateY(-300%) rotate(0deg);
            transform: translateX(-50%) translateY(-300%) rotate(0deg);
  }
  .layout-menu.active > div {
    -webkit-transform: translateX(-50%) translateY(0%) rotate(0deg) scaleX(0);
       -moz-transform: translateX(-50%) translateY(0%) rotate(0deg) scaleX(0);
        -ms-transform: translateX(-50%) translateY(0%) rotate(0deg) scaleX(0);
            transform: translateX(-50%) translateY(0%) rotate(0deg) scaleX(0);
  }
  .layout-menu.active::after {
    -webkit-transform: translateX(-50%) translateY(0%) rotate(-45deg);
       -moz-transform: translateX(-50%) translateY(0%) rotate(-45deg);
        -ms-transform: translateX(-50%) translateY(0%) rotate(-45deg);
            transform: translateX(-50%) translateY(0%) rotate(-45deg);
  }
  .layout-menu.active::before {
    -webkit-transform: translateX(-50%) translateY(0%) rotate(225deg);
       -moz-transform: translateX(-50%) translateY(0%) rotate(225deg);
        -ms-transform: translateX(-50%) translateY(0%) rotate(225deg);
            transform: translateX(-50%) translateY(0%) rotate(225deg);
  }

  .header-entity {
    position: relative; top: auto; left: auto;
    padding-left: 48px;
    height: 36px;
  }
  .header-entity__logo {
    position: absolute; top: 0; left: 0;
    width: 40px; height: 32px;
    background-size: auto 32px;
  }
  .header-entity__anchor {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  .header-entity__name {
    font-size: 18px; font-weight: bold;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-entity__email,
  .header-entity__description {
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-lang,
  .header-signout {
    display: none;
  }

  .footer-apps {
    margin-bottom: 24px;
  }

  .footer-nav {
    display: none;
  }
  .footer-nav__item {
    padding: 0 0 8px;
    line-height: 18px;
  }
  .footer-nav__anchor {
    display: inline-block;
    padding: 7px 0;
  }

  .page-error__title {
    font-size: 24px;
  }

}
