:root {
  --unified-menu-navy: #09283d;
  --unified-menu-blue: #0877bd;
}

.unified-menu-brand,
.unified-menu-contacts,
.unified-menu-backdrop {
  display: none;
}

header .unified-header-brand .unified-brand-text {
  display: inline-block;
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  html,
  body.unified-menu-ready {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.unified-menu-ready.unified-menu-open {
    overflow: hidden;
  }

  body.unified-menu-ready header {
    position: relative;
    z-index: 1200;
  }

  body.unified-menu-ready header .unified-nav-shell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 72px;
    box-sizing: border-box;
  }

  body.unified-menu-ready header .unified-header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0;
    max-width: calc(100vw - 82px) !important;
    margin: 0 !important;
    overflow: hidden;
    text-decoration: none;
  }

  body.unified-menu-ready header .unified-header-brand img {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
    object-fit: contain;
    border-radius: 0 !important;
  }

  body.unified-menu-ready header .unified-header-brand .unified-brand-text {
    min-width: 0;
    overflow: hidden;
    font-size: 17px !important;
    line-height: 1.15;
    text-overflow: ellipsis;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 1230 !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 0 !important;
    cursor: pointer;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle::before,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle::after {
    display: none !important;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle span,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::before,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::after {
    position: absolute;
    left: 8px;
    width: 28px !important;
    height: 3px !important;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: none !important;
    content: "";
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), top .22s cubic-bezier(.22, 1, .36, 1), background .16s ease;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle span {
    top: 20px;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::before {
    top: -8px;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::after {
    top: 8px;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle[aria-expanded="true"] {
    position: fixed !important;
    top: 15px !important;
    right: 16px !important;
    margin: 0 !important;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle[aria-expanded="true"] span {
    background: transparent !important;
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.unified-menu-ready .menu-toggle.unified-menu-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  body.unified-menu-ready .unified-mobile-menu {
    display: flex !important;
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 1210 !important;
    width: min(78vw, 330px) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 18px 22px 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--unified-menu-navy) !important;
    box-shadow: -16px 0 32px rgba(0, 0, 0, .28) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(104%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, visibility .26s ease;
  }

  body.unified-menu-ready .unified-mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.unified-menu-ready .unified-mobile-menu > * {
    min-width: 0;
  }

  body.unified-menu-ready .unified-menu-brand {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 46px 12px 0;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  body.unified-menu-ready .unified-menu-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  body.unified-menu-ready .unified-menu-brand strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.unified-menu-ready .unified-menu-brand small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
  }

  body.unified-menu-ready .unified-mobile-menu > a.unified-menu-link {
    display: flex !important;
    align-items: center;
    min-height: 45px;
    box-sizing: border-box;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-decoration: none;
    text-shadow: none !important;
    white-space: normal;
  }

  body.unified-menu-ready .unified-menu-contacts {
    display: flex !important;
    flex-direction: column;
    margin-top: auto;
    padding-top: 16px;
  }

  body.unified-menu-ready .unified-menu-contacts p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
  }

  body.unified-menu-ready .unified-menu-contact-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
  }

  body.unified-menu-ready .unified-mobile-menu .unified-menu-contact {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none;
  }

  body.unified-menu-ready .unified-menu-contact svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
  }

  body.unified-menu-ready .unified-menu-contact-tg { background: #1688cc !important; }
  body.unified-menu-ready .unified-menu-contact-wa { background: #18c663 !important; }
  body.unified-menu-ready .unified-menu-contact-max { background: #5b75df !important; }
  body.unified-menu-ready .unified-menu-contact-phone { background: #0877bd !important; }

  body.unified-menu-ready .unified-mobile-menu .unified-menu-call {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 9px 14px !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none;
  }

  body.unified-menu-ready .unified-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(2, 16, 26, .62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.unified-menu-ready.unified-menu-open .unified-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 390px) {
  body.unified-menu-ready .unified-mobile-menu {
    width: min(82vw, 320px) !important;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.unified-menu-ready .unified-mobile-menu,
  body.unified-menu-ready .unified-menu-backdrop,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle span,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::before,
  body.unified-menu-ready .menu-toggle.unified-menu-toggle span::after {
    transition: none !important;
  }
}
