.header {
   position: absolute;
   width: 100%;
   top: 0;
   left: 0;
   min-height: 40px;
}

@media (max-width: 768px) {
   .header {
      min-height: 5px;
   }
}

.header._scroll .header__wrapper {
   background-color: rgba(255, 255, 255, 1);
   box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header__wrapper {
   position: fixed;
   width: 100%;
   left: 0;
   top: 0;
   z-index: 50;
}

.header__container {}

.header__body {
   transition: 0.3s;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 5px 0;
   min-height: 125px;
   position: relative;
}

.header._scroll .header__body {
   min-height: 50px;
}

@media (min-width: 992px) {
   .header._scroll .header__body {
      min-height: 70px;
   }
}

@media (max-width: 992px) {
   .header__body {
      min-height: 80px;
   }
}

@media (max-width: 768px) {
   .header__body {
      min-height: 50px;
   }
}

.header__main {
   display: flex;
   align-items: center;
   flex: 1 1 auto;
}

@media (max-width: 992px) {
   .header__main {
      flex: 1 1 auto;
   }
}

.header__logo {
   flex: 0 0 150px;
   position: relative;
   z-index: 5;
}

@media (max-width: 768px) {
   .header__logo {
      flex: 0 0 120px;
   }
}

@media (max-width: 576px) {
   .header__logo {
      flex: 0 0 100px;
   }
}

.header__logo img {
   width: 100%;
}

.header__menu {}

@media (min-width: 768px) {
   .header__menu {
      padding: 0 0 0 20px;
   }
}

/* Container */
.menu_container {
   padding: 0 100px;
   margin: 0 auto;
}

.menu {}

.menu__body {}

@media (max-width: 768px) {
   .menu__body {
      position: fixed;
      width: 100%;
      height: 100%;
      overflow: auto;
      top: 0;
      left: -100%;
      background-color: #fcf8f3;
      transition: left 0.3s;
      padding: 70px 15px 30px 15px;
   }

   .menu__body._active {
      left: 0;
   }

   .menu__body::after {
      content: '';
      position: fixed;
      width: 100%;
      height: 50px;
      top: 0;
      left: -100%;
      background-color: #fcf8f3;
      transition: left 0.3s;
      z-index: 2;
   }

   .menu__body._active::after {
      left: 0;
   }
}

.menu__list {}

@media (min-width: 768px) {
   .menu__list {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
   }
}

.menu__item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   margin: 0 3px;
   padding: 5px 0;
   position: relative;
}

@media (any-hover: hover) {

   /* Rabotayet tolka dlya mish */
   .menu__item:hover .menu__sub-list {
      transform: translate(0, 0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
   }

   .menu__item:hover .menu__arrow {
      transform: rotate(180deg);
   }

   .menu__item:hover .menu__arrow,
   .menu__item:hover .menu__link,
   .actions-header__item_sign:hover {
      color: var(--primary);
   }
}

@media (min-width: 768px) {
   .menu__item {
      margin: 0 10px;
   }

   .menu__item._hover .menu__sub-list {
      transform: translate(0, 0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
   }

   .menu__item._hover .menu__arrow {
      transform: rotate(180deg);
   }

   .menu__item._hover .menu__arrow,
   .menu__item._hover .menu__link {
      color: var(--primary);
   }
}

@media (max-width: 768px) {
   .menu__item:not(:last-child) {
      margin: 0 0 15px 0;
   }
}


.menu__link {
   font-size: 18px;
   font-weight: 500;
   text-transform: uppercase;
   color: inherit;
   transition: color 0.3s ease;
}

/* .menu__item:hover .menu__sub-list{
   transform: translate(0, 0);
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
} */

.menu__arrow {
   font-size: 24px;
   margin: 0 0 0 8px;
   transition: all 0.3s ease;
}

@media (max-width: 768px) {
   .menu__link:not(.actions-header__item_sign) {
      font-size: 26px;
      font-weight: 600;
   }
}

.menu__sub-list {
   position: relative;
   background-color: var(--primary);
   padding: 15px;
   flex: 1 1 100%;
}

@media (min-width: 768px) {
   .menu__sub-list {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: 0.3s;
      transform: translate(0, 10px);
      min-width: 160px;
      position: absolute;
      left: 0;
      top: 100%;
      z-index: 5;
   }
}

@media (max-width: 768px) {
   .menu__sub-list {
      margin: 10px -15px 0 -15px;
   }
}

.menu__sub-item {}

.menu__sub-item:not(:last-child) {
   /* vse obyekti krome poslednovo !!!!!!!!!*/
   margin: 0 0 5px 0;
}

.menu__sub-link {
   color: #fff;
   line-height: 120%;
}

.menu__sub-link:focus {
   color: #fff;
}

@media (min-width: 768px) {
   .menu__sub-link:hover {
      text-decoration: underline;
   }
}

.header__search {}

@media (min-width: 992px) {
   .header__search {
      flex: 1 1 auto;
   }
}

.search-form {
   max-width: 474px;
}

.search-form._active .search-form__item {
   opacity: 1;
   top: 100%;
   visibility: visible;
}

.search-form._active .search-form__icon {
   color: var(--primary);
}

.search-form__icon {
   position: relative;
   z-index: 5;
   font-size: 24px;
   color: #262f56
}

@media (min-width: 992px) {
   .search-form__icon {
      display: none;
   }
}

.search-form__item {
   background-color: #fff;
   display: flex;
   align-items: center;
}

@media (max-width: 992px) {
   .search-form__item {
      box-shadow: 0 0 5px rgba(212, 209, 205, 0.3);
      position: absolute;
      width: 100%;
      left: 0;
      top: -100%;
      z-index: 5;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
   }
}

.search-form__btn {
   flex: 0 0 45px;
   height: 45px;
   color: #333333;
   font-size: 15px;
}

.search-form__input {
   font-size: 14px;
   color: var(--darkGray);
   padding: 0 20px 0 0;
}

.header__actions {}

.actions-header {
   position: relative;
   z-index: 5;
   display: flex;
   align-items: center;
}

.actions-header__item {
   white-space: nowrap;
   margin-left: calc(10px + (32 - 10) * ((100vw - 320px) / (1440 - 320)));
}

.actions-header__item-user {
   overflow: hidden;
   border-radius: 50%;
   width: calc(28px + (40 - 28) * ((100vw - 320px) / (1440 - 320)));
   flex: 0 0 calc(28px + (40 - 28) * ((100vw - 320px) / (1440 - 320)));
   height: calc(28px + (40 - 28) * ((100vw - 320px) / (1440 - 320)));
}

/* Language select */
.actions-header__item-lang {}

.item-lang {}

.item-lang {}

.item-lang .menu__item {
   flex-wrap: nowrap;
}

.item-lang__title {
   background-color: inherit;
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.item-lang__title._active .menu__arrow {
   transform: rotate(180deg);
}

@media (max-width: 768px) {
   .item-lang {
      margin: 0;
   }

   .item-lang .menu__item {
      flex-wrap: wrap;
   }
}

.item-lang .menu__sub-list {
   min-width: 70px;
   padding: 10px;
}

/* Language select */

.actions-header__item_link {
   font-size: 18px;
   font-weight: 500;
   text-transform: uppercase;
   color: inherit;
   transition: color 0.3s ease;
}

@media (any-hover: hover) {
   .actions-header__item_link:hover {
      color: var(--primary);
   }
}

.actions-header__item_favorites,
.actions-header__item_enter {
   color: #262f56;
   font-size: calc(20px + (24 - 20) * ((100vw - 320px) / (1440 - 320)));
   transition: color 0.3s;
}

@media (any-hover: hover) {

   .actions-header__item_favorites:hover,
   .actions-header__item_enter:hover {
      color: var(--primary)
   }
}

.cart-header {}

.cart-header._active .cart-header__body {
   opacity: 1;
   visibility: visible;
   transform: translate(0, 0);
}

.cart-header__icon {
   color: #262f56;
   font-size: 20px;
   transition: color 0.3s;
   position: relative;
   display: block;
}

.cart-header__icon span {
   font-family: 'Gilroy';
   position: absolute;
   width: 20px;
   height: 20px;
   display: flex;
   justify-content: center;
   align-items: center;
   top: -10px;
   right: -10px;
   border-radius: 50%;
   background-color: var(--primary);
   color: #fff;
   font-size: 12px;
}

@media (any-hover: hover) {
   .cart-header__icon:hover {
      color: var(--primary)
   }
}

.cart-header__body {
   background: #f4f5f7;
   border: 1px solid #e0e0e0;
   position: absolute;
   top: 60px;
   right: 0;
   padding: 15px;
   width: 300px;
   z-index: 5;
   opacity: 0;
   visibility: hidden;
   transform: translate(0, 20px);
   transition: 0.3s;
}

@media (max-width: 992px) {
   .cart-header__body {
      top: 50px;
   }
}

@media (max-width: 768px) {
   .cart-header__body {
      position: fixed;
      top: 50px;
      left: 0;
      width: 100%;
   }
}

.cart-header__list {}

.cart-list {}

.icon-menu {
   display: none;
}

@media (max-width: 768px) {
   .icon-menu {
      position: relative;
      display: block;
      width: 30px;
      flex: 0 0 30px;
      height: 18px;
      cursor: pointer;
      z-index: 5;
      margin-left: calc(15px + (32 - 15) * ((100vw - 320px) / (1440 - 320)));
   }

   .icon-menu span {
      top: 0;
      left: 0;
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: #000;
      transition: .4s;
   }

   .icon-menu span:nth-child(2) {
      top: 8px;
   }

   .icon-menu span:last-child {
      top: auto;
      bottom: 0px;
   }

   .icon-menu._active span:first-child {
      transform: rotate(-45deg);
      top: 8px;
   }

   .icon-menu._active span:nth-child(2) {
      transform: scale(0);
   }

   .icon-menu._active span:last-child {
      transform: rotate(45deg);
      bottom: 8px;
   }
}