.a-header {
  background: var(--background-section-color);
  display: flex;
  flex-direction: column;
  order: 1;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  z-index: 20
}

@media (max-width:355px) {
  .a-header .navbar-toggler {
    padding: .25rem .35rem
  }
}

.a-header__container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-left: auto;
  margin-right: -2px
}

.a-header__container._center {
  margin: 0 auto
}

.a-header__container nav:last-child {
  margin-left: 2em
}

@media (max-width:1024px) {
  .a-header__container nav:last-child {
    margin-left: 1em
  }
}

@media (max-width:991px) {
  .a-header__container nav:last-child {
    margin-left: 0;
    flex-shrink: 0
  }
}

@media (max-width:991px) {
  .a-header__container {
    flex-grow: 1
  }
}

@media screen and (max-width:991px) {
  .a-header {
    left: 50%
  }
}

@media (max-width:991px) {
  .a-header {
    width: 100%;
    left: 0;
    transform: translateX(0)
  }
}

.a-header__top {
  background: var(--bg-blocks-color);
  padding: 10px 0
}

@media (max-width:991px) {
  .a-header__top {
    order: 3;
    background: 0 0;
    z-index: 100;
    padding: 0
  }
}

.a-header__top .a-geolocate-wrapper {
  margin-left: auto
}

@media (max-width:991px) {
  .a-header .a-geolocate-wrapper {
    display: none
  }

  .a-header .a-geolocate-wrapper:hover {
    display: block
  }
}

.a-header__top .mg-geolation-view {
  flex-direction: row;
  justify-content: flex-end;
  margin: 0;
  align-items: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content
}

@media (max-width:991px) {
  .a-header .mg-geolation-view {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
    position: absolute;
    width: 320px;
    left: -250px;
    top: 31px;
    background-color: #fff;
    padding: 5px;
    margin: -1px 55px 5px 20px;
    
  }
}

@media (max-width:500px) {
  .a-header .mg-geolation-view {
    left: -135px
  }

  .a-header .mg-geolation-view .mg-geolocation-popup {
    width: 250px
  }

  .a-header .mg-geolation-view .mg-geolocation-popup .main-cities-list li {
    width: auto
  }

  .a-header .mg-geolation-view .mg-geolocation-popup h3 {
    font-size: 12px
  }
}

.a-header .select-city {
  padding-right: 5px
}

.a-header .a-geolocate-icon {
  display: none
}

@media (max-width:991px) {
  .a-header .a-geolocate-icon {
    display: block;
    width: 30px;
    height: 30px;
    padding: 0 5px;
    border: none;
    background-color: transparent;
    position: relative;
  }
  .a-header .a-geolocate-wrapper {
    position: absolute;
    top: 0;
    left: 0
  }
  .a-header .a-geolocate-icon:hover+.a-geolocate-wrapper {
    display: block;

  }
}

.a-header .a-geolocate-icon svg {
  fill: #000
}

.a-header .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center
}

.a-header .container_top {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center
}

.container-top__wrapper {
  width: 100%;
}

.a-header .a-header__icons-bottom {
  display: flex;
  gap: 5px;
  align-items: center;
}


.a-header .container_top._center {
  justify-content: center
}

@media (max-width:991px) {
.a-header .navbar {
  padding-left: 0;
}

  .a-header .container_top {
    display: inline-flex;
    position: relative;
  }

  .a-header .container_top .navbar-toggler {
    padding: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width:991px) {
  .a-header .container_top .a-search {
    margin-left: 0;
    width: 30px
  }

  .a-header .container_top .a-search__button {
    transform: translateX(1px);
    width: 100%
  }

  .a-header .container_top .a-search__button .a-search__icon {
    width: 18px
  }
}

@media (max-width:991px) {
  .a-header .a-auth__link {
    padding: 0
  }
}

.a-header .a-auth__link .icon--person {
  display: none;
  fill: var(--accent-color)
}

@media (max-width:991px) {
  .a-header .a-auth__link .icon--person {
    display: block;
    height: 18px;
    width: 25px;
    width: 100%;
    align-items: center
  }
}

.a-header__contacts {
  margin-left: auto;
  margin-bottom: 5px
}

@media (max-width:991px) {
  .a-header__contacts {
    margin-right: 0
  }
}

.a-header .a-bonus-info {
  padding: 5px 0
}

@media (max-width:991px) {
  .a-header .a-bonus-info {
    position: absolute;
    top: -45px;
    right: 0;
    min-width: 320px;
    text-align: right
  }
}

.a-header__icons {
  display: flex;
  align-items: center;
  gap: 2em
}

@media (max-width:991px) {
  .a-header__icons {
    justify-content: flex-end;
    gap: 5px;
  }

  .a-header__icons .a-icon-link__icon {
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center
  }
}

@media (max-width:355px) {
  .a-header__icons {
    z-index: 1
  }
}


@media (max-width:1024px) {

  .a-header__auth,
  .a-header__icon-link {
    margin-left: 1em
  }
}

@media (max-width:991px) {

  .a-header__auth,
  .a-header__icon-link {
    margin-left: 0;
    width: 30px
  }

  .a-header__auth .a-icon-link,
  .a-header__icon-link .a-icon-link {
    width: 100%;
    justify-content: center
  }
}

@media (max-width:991px) {
  .a-header__auth {
    width: 29px
  }
}

@media (max-width:991px) {
  .a-header__icon-link_cart {
    width: 31px
  }
}

@media (max-width:991px) {

  .a-header__icon-link.a-header__icon-link_cart .a-icon-link,
  .a-header__icon-link.a-header__icon-link_favourites .a-icon-link {
    justify-content: flex-end
  }
}

.a-header__middle {
  min-height: 89px;
  padding: 10px 0 0 0;
  display: flex;
  align-items: center;
  margin: 0 auto;
  width: 100%
}

.a-header__middle .container {
  border-bottom: 1px solid var(--border-color);
  gap: 2em;
}

.a-header__logo-contacts {
  display: flex;
  gap: 2em;
  flex: 1 0 auto
}

@media (max-width:991px) {
  .a-header__bottom {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
  }
}

.a-header__bottom .a-mega-menu__mobile-open {
  margin-left: 10px
}

.a-header-top__nav {
  margin-right: 10px
}

.a-header-top__nav._margin-bottom {
  margin-bottom: 5px
}

@media (max-width:991px) {
  .a-header__bottom .a-mega-menu__mobile-open {
    margin-left: 0;
  }
  .a-header-top__nav {
    margin-right: 0;
    margin-left: 0;
    width: 30px
  }
}

@media (max-width:360px) {
  .a-header-top__nav .settings-mode [data-maket=header]:hover .a-header {
    outline: 2px solid rgba(0, 0, 0, .2)
  }
}

@media (min-width:991px) {
  .a-header-top .a-simple-menu__list {
    position: relative
  }

  .a-header-top .nav-item.a-simple-menu__item {
    padding: 5px 0
  }

  .a-header-top .navbar-hover .nav-item:hover>.dropdown-menu {
    top: 28px
  }
}

.settings-mode .a-header::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  z-index: 1;
  display: none
}

.settings-mode [data-maket=header]:hover .a-header::before {
  background: rgba(0, 0, 0, .09);
  display: block;
  pointer-events: none
}

@media (max-width:991px) {
  .a-simple-menu .dropdown-toggle::after {
    display: none
  }
}