header {
  background-color: #000000;
  color: white;
  align-content: center;
  box-sizing: border-box;
  position: fixed; top: 0; left: 0;
  width: 100%;
  z-index: 100;
  min-height: var(--headerHeight);
}

header .rowV2 {
  display: flex;
  align-items: center;
}
header .logo {
  margin-right: calc(2.5*var(--gap-x));
}
header .logo img {
  height: 44px;
  transform: translateY(-2px);
}
header ul {
  gap: 30px;
  display: none;
}
header.menu-open {
  position: relative;
}
header.menu-open ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  background: #000000;
  top: 200%;
  left: 0;
  z-index: 100;
  padding: 10px 30px 60px 30px;
}
header .cart {
  position: relative;
  display: inline-block
}
header .badge {
  font-size: 20px;
  background-color: var(--clrAccent);
  color: var(--txtClrDark);
  border-radius: 20px;
  padding: 0 5px;
  position: absolute; right: 0; top: 0;
  transform: translate(45%, -25%);
  min-width: 26px;
  text-align: center;
  display: none;
}
header .rowV2 > .navIcons {
  display: flex;
  gap: 10px;

}
header .rowV2 > .navIcons img {
  height: 34px;
}
header .rowV2 > .navIcons .burger img {
  width: 34px;
}
header .rowV2 > .navIcons .burger {
  transform: translateX(10px);
}
header .rowV2 .navIcons,
header .rowV2 .burger-close {
  margin-left: auto;
}

header .burger {
  line-height: 0;
}
header .rowV2 > .navIcons :hover {
  color: var(--clrAccent);
  fill: var(--clrAccent);
}

header.menu-open .navIcons {
  position: absolute; left: 0; top: 100%;
  height: 100%;
  width: 100%;
  z-index: 100;
  padding: 0 30px 10px;
  background-color: black;
  align-items: center;
  display: flex;
  justify-content: center;
}
header.menu-open .navIcons > :not(.burger) {
  display: block;
}
header.menu-open .navIcons > .burger {
  display: none;
}
header .burger-close {
  display: none !important;
  align-self: center;
}
header.menu-open .burger-close {
  display: block !important;
}

/* Мобильная: отступы от краёв для логотипа и бургера */
@media screen and (max-width: 767px) {
  header .containerV2 {
    box-sizing: border-box;
  }
  header .rowV2 {
    justify-content: space-between;
    width: 100%;
  }
  header .logo {
    margin-right: 0;
  }
  header .burger-close {
    display: none !important;
  }
  header .burger {
    display: block !important;
  }
}

@media screen and (min-width: 768px) {
  header {
    min-height: var(--headerHeight);
    margin-left: 0;
    margin-right: 0;
    font-size: 20px;
  }
  header .logo {
    margin-right: calc(1*var(--gap-x));
  }
  header .logo img {
  }

  header ul {
    display: flex;
    gap: 40px;
  }
  header .rowV2 > .navIcons {
    gap: 20px;
  }
  header .rowV2 > .navIcons img {
    height: auto;
  }
  header .navIcons > :not(.burger) {
    display: initial;
  }
  header .burger {
    display: none;
  }
}
@media screen and (min-width: 1200px) {
  header {
    font-size: 22px;
  }
  header .logo {
    margin-right: calc(2.5*var(--gap-x));
  }
  header ul {
    gap: 50px;
  }
}
@media screen and (min-width: 1440px) {
  header {
    font-size: 24px;
  }
  header ul {
    gap: 64px;
  }
}
@media screen and (min-width: 1920px) {
  header {
    font-size: 32px;
  }
}

.float-menu { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); z-index: 500; }
@media (max-width: 767px) {
  .float-menu { right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); }
}
.float-menu__btn { width: 56px; height: 56px; border-radius: 50%; border: none; background: #B41C1B; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(180,28,27,0.4); padding: 0; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.float-menu__btn img { width: 24px; height: 24px; }
.float-menu__btn { display: none !important; }
/* На красном футере — светлая кнопка для контраста */
.float-menu__btn.float-menu__btn--over-footer { background: #fff !important; color: #B41C1B !important; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.float-menu__btn.float-menu__btn--over-footer img { filter: brightness(0) saturate(100%) invert(15%) sepia(80%) saturate(3000%) hue-rotate(346deg) brightness(0.9) contrast(0.92); }
.float-menu__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 501; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.float-menu__backdrop.is-open { opacity: 1; visibility: visible; }
.float-menu__panel { position: fixed; top: 0; right: 0; width: 85%; max-width: 320px; height: 100vh; background: #000; color: #fff; z-index: 502; padding: 2rem 0 0; box-sizing: border-box; transform: translateX(100%); transition: transform 0.3s ease; overflow: hidden; display: flex; flex-direction: column; }
.float-menu__panel.is-open { transform: translateX(0); }
.float-menu__scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6rem; }
.float-menu__list { list-style: none; margin: 0; padding: 0; }
.float-menu__list li { margin: 0; }
.float-menu__list a { display: block; padding: 16px 24px; color: #fff; text-decoration: none; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.float-menu__list a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* В ЛК: меню личного кабинета в бургере — в стиле панели (тёмный фон, светлые ссылки) */
.float-menu__profile { padding: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.float-menu__profile-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.float-menu__profile .profile-sidebar-v2 { background: transparent; box-shadow: none; padding: 0; border-radius: 0; width: 100%; max-width: none; }
.float-menu__profile .profile-sidebar-v2__user { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 0; flex-wrap: wrap; gap: 0.5rem; }
.float-menu__profile .profile-sidebar-v2__name { color: #fff; font-size: 18px; }
.float-menu__profile .profile-sidebar-v2__name--link:hover { color: rgba(255,255,255,0.85); }
.float-menu__profile .profile-sidebar-v2__id { background: rgba(255,255,255,0.15); color: #fff; font-size: 14px; }
.float-menu__profile .profile-sidebar-v2__list { padding: 0; border: none; }
.float-menu__profile .profile-sidebar-v2__list li { border: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.float-menu__profile .profile-sidebar-v2__link { display: block; padding: 16px 24px; color: #fff; text-decoration: none; font-size: 18px; -webkit-tap-highlight-color: transparent; }
.float-menu__profile .profile-sidebar-v2__link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.float-menu__profile .profile-sidebar-v2__link--active { background: rgba(255,255,255,0.12); color: #fff; }
.float-menu__profile .profile-sidebar-v2__link--logout { display: none !important; }

.float-menu__profile .float-menu__list--extra { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.15); }
.float-menu__profile .float-menu__list--extra li { margin: 0; }
.float-menu__profile .float-menu__list--extra a { display: block; padding: 16px 24px; color: #fff; text-decoration: none; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.float-menu__profile .float-menu__list--extra a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.float-menu__logout { flex-shrink: 0; display: block; padding: 16px 24px; background: #B41C1B; color: #fff !important; text-align: center; text-decoration: none; font-size: 18px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.float-menu__logout:hover { background: #9a1816; color: #fff !important; }

@media (min-width: 769px) { .float-menu { display: none; } }