/* Approved stable header geometry (20 October), used by the shop shell. */
html[data-bb-header-mode="desktop"] #top_header,
html[data-bb-header-mode="desktop"] #bottom_header {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  padding-left: 16px;
}
html[data-bb-header-mode="desktop"] #top_header {
  height: 50px;
  padding-right: calc((100% - 1113px) / 2);
}
html[data-bb-header-mode="desktop"] #bottom_header {
  height: 60px;
  padding-right: calc((100% - 1112px) / 2);
}
html[data-bb-header-mode="desktop"] #top_header > *,
html[data-bb-header-mode="desktop"] #bottom_header .pc_menu,
html[data-bb-header-mode="desktop"] #bottom_header .pc_menu > li {
  flex: 0 0 auto;
}
html[data-bb-header-mode="desktop"] #top_header :is(.logo a, .item_city .current, .item_phone .fil) {
  font-size: 18px;
  line-height: 22px;
  white-space: nowrap;
}
html[data-bb-header-mode="desktop"] #top_header > .logo { margin-left: 0; margin-right: 70px; }
html[data-bb-header-mode="desktop"] #top_header > .item_city { margin-right: 61px; }
html[data-bb-header-mode="desktop"] #top_header > .item_phone { margin-right: 35px; }
html[data-bb-header-mode="desktop"] #top_header > .search { margin-left: 30px; }
html[data-bb-header-mode="desktop"] #top_header .promtr { margin-right: 30px !important; }
html[data-bb-header-mode="desktop"] #top_header .item_city::after {
  border-left-width: 8px;
  border-right-width: 8px;
  border-top-width: 13px;
  right: -24px;
  top: 18px;
}
html[data-bb-header-mode="desktop"] #top_header a.icon.sp-sd { width: 26px; }
html[data-bb-header-mode="desktop"] #top_header .change_lang .current { font-size: 15px; width: 82px; }
html[data-bb-header-mode="desktop"] #top_header .flag { width: 26px; height: 26px; margin-top: -2px; }
html[data-bb-header-mode="desktop"] #top_header .flag-wrap { padding-left: 10px; }
html[data-bb-header-mode="desktop"] #top_header .flag-wrap::after { margin-top: 0; }
html[data-bb-header-mode="desktop"] #top_header .others .flag-wrap { padding: 10px 0 10px 10px !important; }
html[data-bb-header-mode="desktop"] #top_header .field-search { font-size: 18px; height: 30px; }
html[data-bb-header-mode="desktop"] #bottom_header .pc_menu > li > a {
  font-size: 15px;
  line-height: 25px;
  white-space: nowrap;
  padding: 1px 13px 0;
}
html[data-bb-header-mode="desktop"] #bottom_header .pc_menu > .link-shop > a {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
html[data-bb-header-mode="desktop"] #bottom_header .img_icon_menu {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 8px;
}
html[data-bb-header-mode="desktop"] #bottom_header .sub-menu li a { font-size: 15px; padding: 10px 18px; }
html[data-bb-header-mode="desktop"] :is(#mob_top_header, #mob_bottom_header, #mob_menu) { display: none; }
html[data-bb-header-mode="compact"] :is(#top_header, #bottom_header) { display: none; }
html[data-bb-header-mode="compact"] body.mobile-menu-open { overflow: hidden; }
html[data-bb-header-mode="compact"] header.mobile-menu-open #mob_menu { display: block; }
html[data-bb-header-mode="compact"] header.mobile-menu-open #mob_bottom_header { display: none; }
html[data-bb-header-mode="compact"] header.mobile-menu-open :is(.user-mob-top:not(.botsi), .magaz-top-menu:not(.botsi)) { display: none; }
html[data-bb-header-mode] .wrapper-burger-menu:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

html[data-bb-header-mode="compact"] #mob_menu .mob_list > .opened > .sub-menu { display: block; }

/* Existing compact-header declarations, scoped to the shop shell and extended
   above the old 1024px boundary. Phone styling stays in the original files. */
@media screen and (min-width: 1024px) {
  html[data-bb-header-mode="compact"] header #mob_bottom_header,
  html[data-bb-header-mode="compact"] header #mob_top_header {
    background: linear-gradient(88.91deg, #469c8f -158.49%, rgba(173, 255, 243, 0) 60.57%);
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active span.ps-1,
  html[data-bb-header-mode="compact"] header .burger_menu.active span.ps-3,
  html[data-bb-header-mode="compact"] header .field-search-mob {
    position: absolute;
  }
  html[data-bb-header-mode="compact"] header #mob_top_header,
  html[data-bb-header-mode="compact"] header .mob_list {
    border-bottom: 1px solid #fff;
  }
  html[data-bb-header-mode="compact"] header .ser-mob {
    width: 100%;
  }
  html[data-bb-header-mode="compact"] header .field-search-mob::placeholder {
    color: #000;
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active .ps-1 {
    transform: scale(1.2) rotate(-45deg) translate(-3px, 3px);
  }
  html[data-bb-header-mode="compact"] header .burger_menu .ps-1 {
    transform: scale(1) rotate(0) translate(0, 0);
  }
  html[data-bb-header-mode="compact"] header .burger_menu .ps-2 {
    transform: scale(1) rotate(0) translate(0, 4px);
    transition: 0.3s;
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active .ps-2 {
    transform: scale(1) rotate(0) translate(50px, 4px);
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active .ps-3 {
    transform: scale(1.2) rotate(45deg) translate(3px, 3px);
  }
  html[data-bb-header-mode="compact"] header .burger_menu .ps-3 {
    transform: scale(1) rotate(0) translate(0, 8px);
  }
  html[data-bb-header-mode="compact"] header #mob_top_header .menu-link.main-menu-link {
    background-color: var(--color-dark);
    padding: 4px 14px;
    margin-right: 18px;
  }
  html[data-bb-header-mode="compact"] header #mob_menu .item.promtr {
    margin-right: 4px;
  }
  html[data-bb-header-mode="compact"] header .mob_list .sub-menu .sub-menu-item a {
    font-size: 13px;
    line-height: 20px;
    padding: 10px 20px 10px 50px;
    font-weight: 800;
  }
  html[data-bb-header-mode="compact"] header #bottom_header,
  html[data-bb-header-mode="compact"] header #mob_menu,
  html[data-bb-header-mode="compact"] header #top_header,
  html[data-bb-header-mode="compact"] header .lang-mob .flag {
    display: none;
  }
  html[data-bb-header-mode="compact"] header .menu-link .menu-icon {
    margin-right: 8px;
    margin-top: 1px;
  }
  html[data-bb-header-mode="compact"] header #mob_top_header {
    display: flex;
    padding: 0 15px;
    justify-content: end;
    align-items: center;
    height: 50px;
  }
  html[data-bb-header-mode="compact"] header .item.user.user-mob-top {
    margin-right: 15px;
    width: 28px;
    height: 28px;
  }
  html[data-bb-header-mode="compact"] header .mob-logo {
    margin-right: auto;
  }
  html[data-bb-header-mode="compact"] header .mob-logo img {
    width: 107px;
  }
  html[data-bb-header-mode="compact"] header #mob_bottom_header {
    height: 34px;
    display: flex;
    padding: 0 14px;
  }
  html[data-bb-header-mode="compact"] header #mob_bottom_header .item.item_city,
  html[data-bb-header-mode="compact"] header .item.item_city,
  html[data-bb-header-mode="compact"] header .item.item_phone,
  html[data-bb-header-mode="compact"] header .item.logo {
    margin-top: 0;
  }
  html[data-bb-header-mode="compact"] header #mob_bottom_header .item.item_phone {
    margin-left: auto;
    margin-top: 0;
    margin-right: 0;
  }
  html[data-bb-header-mode="compact"] header .lang-mob {
    margin-right: 15px;
    display: flex;
    height: 25px;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .item.user,
  html[data-bb-header-mode="compact"] header .ser-mob {
    margin-right: 0;
  }
  html[data-bb-header-mode="compact"] header .flag-wrap {
    position: initial;
    padding: 0;
  }
  html[data-bb-header-mode="compact"] header .change_lang .current {
    width: 108px;
    border-radius: 3px;
    position: relative;
    padding-left: 5px;
    font-weight: 500;
    background-color: #006074;
    border: 1px solid #006074;
  }
  html[data-bb-header-mode="compact"] header .icon.icon-user,
  html[data-bb-header-mode="compact"] header .item .icon img,
  html[data-bb-header-mode="compact"] header a.icon.sp-sd {
    width: 26px;
    height: 26px;
  }
  html[data-bb-header-mode="compact"] header .item.user {
    margin-left: 0;
    margin-right: 15px;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .social_wraper .item:last-child,
  html[data-bb-header-mode="compact"] header .ser-mob {
    margin-left: auto;
  }
  html[data-bb-header-mode="compact"] header .burger_menu {
    display: block;
    height: 25px;
    width: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: -4px;
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active {
    margin-top: -4px;
    margin-right: -2px;
  }
  html[data-bb-header-mode="compact"] header .burger_menu.active span:last-child {
    bottom: 6px;
  }
  html[data-bb-header-mode="compact"] header .burger_menu span {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 0;
    transition: 0.5s;
  }
  html[data-bb-header-mode="compact"] header .burger_menu span:last-child {
    background-color: transparent;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: -0.2px;
    text-align: center;
    position: absolute;
    bottom: 6px;
  }
  html[data-bb-header-mode="compact"] header #mob_menu .menu-link.main-menu-link {
    font-size: 13px;
    padding: 10px 20px;
    line-height: 20px;
    font-weight: 800;
  }
  html[data-bb-header-mode="compact"] header .mob_list li a.current {
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    display: block;
    padding: 10px 15px;
    text-transform: uppercase;
  }
  html[data-bb-header-mode="compact"] header .shop.magaz-top-menu .menu-link.main-menu-link {
    font-size: 10px;
    line-height: 20px;
  }
  html[data-bb-header-mode="compact"] header .menu-link .menu-icon {
    width: 20px;
    height: 20px;
  }
  html[data-bb-header-mode="compact"] header .mob_in_bottom {
    padding: 13px 15px;
  }
  html[data-bb-header-mode="compact"] header .fer-tt {
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .social_wraper {
    margin-left: auto;
    width: 100%;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .item {
    width: auto;
  }
  html[data-bb-header-mode="compact"] header .search_form_header_mob {
    display: none;
    width: 100%;
    height: 27px;
  }
  html[data-bb-header-mode="compact"] header .search_form_header_mob .search_form_header {
    width: 100% !important;
    height: 100%;
  }
  html[data-bb-header-mode="compact"] header .lang-mob.mm {
    margin-left: 11px;
  }
  html[data-bb-header-mode="compact"] header .icons.ogt {
    margin-top: 23px;
  }
  html[data-bb-header-mode="compact"] header .others .flag-wrap {
    padding: 5px;
    height: fit-content;
  }
  html[data-bb-header-mode="compact"] header .mob_in_bottom .icons.fer-tt .social_wraper {
    height: 26px;
  }
  html[data-bb-header-mode="compact"] header .item.ser-mob ul {
    width: 100%;
    position: relative;
    justify-content: flex-end;
  }
  html[data-bb-header-mode="compact"] header .icons.fer-tt .item.item_phone {
    margin-right: 15px;
    width: fit-content;
  }
  html[data-bb-header-mode="compact"] header .icons.fer-tt .item.item_phone a {
    display: block;
    white-space: nowrap;
    line-height: 14px;
    margin-top: 1px;
  }
  html[data-bb-header-mode="compact"] header .field-search-mob {
    right: 0;
    color: #000;
    background: #fff;
    height: 100%;
    padding: 0 10px;
  }
  html[data-bb-header-mode="compact"] header .item.ser-mob .search_footer.search_header {
    height: 100%;
  }
  html[data-bb-header-mode="compact"] header .search_form_header_mob {
    display: none;
  }
  html[data-bb-header-mode="compact"] header .mob_list .sub-menu .sub-menu-item a {
    font-size: 13px;
    line-height: 20px;
    padding: 10px 20px 10px 50px;
    font-weight: 800;
  }
  html[data-bb-header-mode="compact"] header .menu-link .menu-icon {
    margin-right: 8px;
    margin-top: 1px;
  }
  html[data-bb-header-mode="compact"] header .item.item_city,
  html[data-bb-header-mode="compact"] header .item.item_phone,
  html[data-bb-header-mode="compact"] header .item.logo {
    margin-top: 0;
  }
  html[data-bb-header-mode="compact"] header .item.user {
    margin-left: 0;
    margin-right: 15px;
  }
  html[data-bb-header-mode="compact"] header #mob_bottom_header .item.item_phone,
  html[data-bb-header-mode="compact"] header #mob_top_header .menu-link.main-menu-link,
  html[data-bb-header-mode="compact"] header .burger_menu.active,
  html[data-bb-header-mode="compact"] header .lang-mob.mm {
    margin-right: 0;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .item {
    width: 100%;
  }
  html[data-bb-header-mode="compact"] header .mob_list {
    border-bottom: 1px solid #fff;
  }
  html[data-bb-header-mode="compact"] header .menu-link .menu-icon {
    width: 20px;
    height: 20px;
  }
  html[data-bb-header-mode="compact"] header .mob_in_bottom {
    padding: 13px 15px;
  }
  html[data-bb-header-mode="compact"] header .fer-tt {
    display: flex;
    align-items: center;
  }
  html[data-bb-header-mode="compact"] header .ser-mob {
    margin-left: auto;
  }
  html[data-bb-header-mode="compact"] header .icons.ogt {
    margin-top: 23px;
  }
  html[data-bb-header-mode="compact"] header .others .flag-wrap {
    height: fit-content;
  }
  html[data-bb-header-mode="compact"] header .others .flag-wrap {
    padding: 5px;
  }
  html[data-bb-header-mode="compact"] header .change_lang .current {
    font-weight: 500;
    background-color: #006074;
    border: 1px solid #006074;
  }
  html[data-bb-header-mode="compact"] header .icon.icon-user,
  html[data-bb-header-mode="compact"] header .item .icon img {
    width: 26px;
    height: 26px;
  }
  html[data-bb-header-mode="compact"] header .fer-tt .item {
    width: auto;
  }
  html[data-bb-header-mode="compact"] header .wrapper-burger-menu {
    width: 65px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html[data-bb-header-mode="compact"] header .wrapper-burger-menu.fixed {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9;
  }
  html[data-bb-header-mode="compact"] header #mob_top_header {
    padding-right: 0;
  }
  html[data-bb-header-mode="compact"] header .burger_menu.fixed {
    position: relative;
    right: inherit;
    top: inherit;
    z-index: 99;
  }
  html[data-bb-header-mode="compact"] header .change_lang .current {
    display: none;
  }
  html[data-bb-header-mode="compact"] header .selector-mobile {
    display: flex;
    box-shadow: none;
    text-shadow: none;
    -webkit-appearance: none;
    font-weight: 500;
    outline: 0;
  }
  html[data-bb-header-mode="compact"] header .selector-mobile option {
    outline: 0;
    border: none;
  }
  html[data-bb-header-mode="compact"] body.mobile-menu-open {
    overflow-x: hidden;
    overflow-y: hidden;
  }
  html[data-bb-header-mode="compact"] header.mobile-menu-open #mob_menu {
    display: block;
  }
  html[data-bb-header-mode="compact"] header.mobile-menu-open #mob_bottom_header {
    display: none;
  }
  html[data-bb-header-mode="compact"] header.mobile-menu-open .user-mob-top:not(.botsi) {
    display: none;
  }
}
