header {
  min-height: 80px;
  background-color: #000000;
  color: white;
  align-content: center;
  box-sizing: border-box;
  padding-top: 6px;
  margin-left: calc(-1*var(--body-side-pad));
  margin-right: calc(-1*var(--body-side-pad));
}


header .rowV2 {
  display: flex;
  align-items: center;
}
header .logo {
  margin-right: calc(2.5*var(--gap-x));
}
header .logo img {
  transform: translateY(-5px);
  width: 88px;
}
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: 28px;

}
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 .navIcons > :not(.burger) {
  display: none;
}

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 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
  header .rowV2 {
    justify-content: space-between;
    width: 100%;
  }
  header .logo {
    margin-right: 0;
  }
  header .burger,
  header .burger-close {
    display: none !important;
  }
}

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

  header ul {
    display: flex;
    gap: 40px;
  }
  header .navIcons > :not(.burger) {
    display: initial;
  }
  header .burger {
    display: none;
  }
}
@media screen and (min-width: 1200px) {
  header {
    font-size: 22px;
  }
  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.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 6rem; box-sizing: border-box; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
.float-menu__panel.is-open { transform: translateX(0); }
.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; }
@media (min-width: 769px) { .float-menu { display: none; } }