﻿html {
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
}

.top-nav {
  position: relative !important;
  min-height: 65px !important;
  border-bottom: 1px solid rgba(217, 225, 236, 0.9) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 24px rgba(18, 37, 66, 0.035) !important;
}

.top-nav .container,
.top-nav > .container {
  width: min(1440px, calc(100% - 32px)) !important;
  min-height: 64px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.top-nav .container::before,
.top-nav .container::after,
.top-nav > .container::before,
.top-nav > .container::after,
.menu a::before,
.menu a::after {
  display: none !important;
  content: none !important;
}

.brand {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 38px !important;
  color: #10233f !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: lowercase !important;
  white-space: nowrap !important;
}

.brand img {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
}

.menu {
  flex: 0 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.menu li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.menu a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 7px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #26476f !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .18s ease, color .18s ease !important;
}

.menu a:hover,
.menu a.active {
  border-color: transparent !important;
  background: #edf4ff !important;
  color: #0f4fb8 !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 680px) {
  .top-nav {
    min-height: auto !important;
  }

  .top-nav .container,
  .top-nav > .container {
    min-height: auto !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .brand {
    min-height: 32px !important;
    font-size: 20px !important;
  }

  .menu {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .menu a {
    width: 100% !important;
    min-height: 34px !important;
    padding: 6px 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

button.hero-action,
button.demand-action,
button.floating-consult-btn,
button.product-action {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
}

button.hero-action.primary,
button.demand-action.primary,
button.floating-consult-btn,
button.product-action.primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #1769e8 !important;
}

button.hero-action.primary span,
button.demand-action.primary span,
button.floating-consult-btn span,
button.product-action.primary span {
  position: relative !important;
  z-index: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

button.hero-action.primary::before,
button.hero-action.primary::after,
button.demand-action.primary::before,
button.demand-action.primary::after,
button.floating-consult-btn::before,
button.floating-consult-btn::after,
button.product-action.primary::before,
button.product-action.primary::after {
  pointer-events: none !important;
}

header.hero#home button.hero-action.primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

header.hero#home button.hero-action.primary,
header.hero#home button.hero-action.primary *,
header.hero#home button.hero-action.primary span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
