html.sst-menu-fix-applied header,
html.sst-menu-fix-applied header * {
  box-sizing: border-box;
}

html.sst-menu-fix-applied body.sst-mobile-menu-open {
  overflow: hidden !important;
}

html.sst-menu-fix-applied header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html.sst-menu-fix-applied header > div:first-child,
html.sst-menu-fix-applied header > div:nth-child(2) {
  position: relative !important;
  z-index: 2 !important;
}

html.sst-menu-fix-applied header > div:first-child .container {
  gap: 0.75rem !important;
}

html.sst-menu-fix-applied header [aria-label="Меню"] {
  position: relative !important;
  z-index: 101 !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.99) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14) !important;
  max-height: calc(100vh - 100%) !important;
  overflow: auto !important;
  padding: 0.75rem 1rem 1rem !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel.is-open {
  display: block !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel nav,
html.sst-menu-fix-applied .sst-mobile-menu-panel .sst-mobile-menu-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel a,
html.sst-menu-fix-applied .sst-mobile-menu-panel button {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel .sst-mobile-menu-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
  margin-top: 1rem !important;
}

html.sst-menu-fix-applied .sst-mobile-menu-panel .sst-mobile-menu-actions a,
html.sst-menu-fix-applied .sst-mobile-menu-panel .sst-mobile-menu-actions button {
  justify-content: center !important;
}

@media (max-width: 1023.98px) {
  html.sst-menu-fix-applied header > div:first-child .container {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    align-items: flex-start !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2).sst-mobile-header-host {
    position: relative !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] {
    display: none !important;
  }

  html.sst-menu-fix-applied header .sst-desktop-cta {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  html.sst-menu-fix-applied header > div:first-child {
    font-size: 11px !important;
  }

  html.sst-menu-fix-applied header > div:first-child .container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    gap: 0.55rem !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "logo cta"
      "nav nav" !important;
    align-items: center !important;
    column-gap: 0.75rem !important;
    row-gap: 0.5rem !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > a[href="/"] {
    grid-area: logo !important;
    margin-right: 0 !important;
    min-width: 112px !important;
    gap: 0.45rem !important;
    align-self: center !important;
    justify-self: start !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > a[href="/"] img {
    height: 30px !important;
    width: auto !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > a[href="/"] > div {
    display: none !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] {
    grid-area: nav !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-content: center !important;
    gap: 0.25rem 0.3rem !important;
    overflow: visible !important;
    padding: 0.15rem 0 0 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.24) !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"]::-webkit-scrollbar {
    display: none !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] > a,
  html.sst-menu-fix-applied header nav[class*="lg:flex"] > div {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] > a,
  html.sst-menu-fix-applied header nav[class*="lg:flex"] > div > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 0.34rem 0.42rem !important;
    border-radius: 0.5rem !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] > div > div {
    margin-top: 0.25rem !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > div:last-child {
    grid-area: cta !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
    min-width: max-content !important;
  }

  html.sst-menu-fix-applied header .sst-desktop-cta,
  html.sst-menu-fix-applied header .sst-desktop-cta * {
    white-space: nowrap !important;
  }

  html.sst-menu-fix-applied header .sst-desktop-cta {
    min-height: 34px !important;
    padding: 0.56rem 0.82rem !important;
    border-radius: 0.7rem !important;
    font-size: 12px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14) !important;
  }

  html.sst-menu-fix-applied header button[aria-label="Меню"] {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  html.sst-menu-fix-applied header > div:first-child {
    font-size: 12px !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container {
    column-gap: 0.9rem !important;
    row-gap: 0.55rem !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > a[href="/"] {
    min-width: 124px !important;
  }

  html.sst-menu-fix-applied header > div:nth-child(2) .container > a[href="/"] img {
    height: 32px !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] {
    gap: 0.3rem 0.36rem !important;
  }

  html.sst-menu-fix-applied header nav[class*="lg:flex"] > a,
  html.sst-menu-fix-applied header nav[class*="lg:flex"] > div > a {
    padding: 0.36rem 0.48rem !important;
    font-size: 11.4px !important;
  }

  html.sst-menu-fix-applied header .sst-desktop-cta {
    padding-left: 0.92rem !important;
    padding-right: 0.92rem !important;
  }
}
