.sg-head {
  --sg-header-ink: #222327;
  --sg-header-line: #e7e7e9;
  --sg-header-accent: #c35400;
  color: var(--sg-header-ink);
  background: #fff;
  border-bottom: 1px solid var(--sg-header-line);
}
#headerfixed:not(.fixed) .sg-head--fixed { visibility: hidden; }
.sg-head .sg-head__row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
  min-height: 66px;
  box-sizing: border-box;
}
.sg-head .sg-head__logo {
  flex: 0 0 clamp(116px, 12.1vw, 160px);
  min-width: 0;
}
.sg-head .sg-head__logo .logo,
.sg-head .sg-head__logo a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
.sg-head .sg-head__logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 39px;
  object-fit: contain;
  object-position: left center;
}
.sg-head .sg-ny-cap,
.sg-head .sg-ny-garland {
  display: none;
}
.sg-head .sg-head__catalog,
.sg-head .sg-head__shops,
.sg-head .sg-head__icons {
  flex: 0 0 auto;
  margin: 0;
}
.sg-head summary {
  list-style: none;
}
.sg-head summary::-webkit-details-marker { display: none; }
.sg-head .sg-head__trigger,
.sg-head .sg-head__shop-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 42px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--sg-header-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.sg-head .sg-head__trigger {
  padding-inline: 15px;
  border-radius: 9px;
  color: #fff;
  background: var(--sg-header-accent);
}
.sg-head .sg-head__catalog-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, currentColor 1.5px, transparent 1.75px) center / 5.33px 5.33px;
}
.sg-head .sg-head__trigger:hover,
.sg-head .sg-head__catalog[open] > .sg-head__trigger {
  background: #ad4800;
}
.sg-head .sg-head__shop-trigger:hover,
.sg-head .sg-head__shops[open] > .sg-head__shop-trigger {
  color: var(--sg-header-accent);
}
.sg-head .sg-head__trigger svg,
.sg-head .sg-head__shop-trigger svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.sg-head .sg-head__shop-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 0;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.sg-head .sg-head__shops[open] > .sg-head__shop-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.sg-head :is(a, button, summary):focus-visible {
  outline: 2px solid #a64900;
  outline-offset: 3px;
}
.sg-head .sg-head__search {
  flex: 1 1 320px;
  min-width: 130px;
}
.sg-head .sg-head__search :is(.search_wrap,.search-block,.search-wrapper) {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.sg-head .sg-head__search form.search {
  position: relative;
  display: block;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.sg-head .sg-head__search .search-input {
  height: 42px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 15px;
  border: 1px solid #dcdde1;
  border-radius: 9px;
  box-shadow: none;
  background: #f4f4f6;
  color: var(--sg-header-ink);
  font-family: inherit;
  font-size: 15px;
}
.sg-head .sg-head__search .search-input::placeholder { color: #65666b; opacity: 1; }
.sg-head .sg-head__search .search-input:focus {
  outline: 2px solid #a64900;
  outline-offset: 0;
  background: #fff;
}
.sg-head .sg-head__search .search-button-div,
.sg-head .sg-head__search .btn-search { height: 42px; }
.sg-head .sg-head__search .inline-search-hide { display: none; }
.sg-head .sg-head__search .search--hastype:not(:focus-within) .searchtype {
  visibility: hidden;
}
.sg-head .sg-head__search .search--hastype:not(:focus-within) .search-input {
  padding-right: 47px;
}
.sg-head .sg-head__search .btn-search {
  width: 44px;
  right: 0;
  top: 0;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: #4e5155;
  background: transparent;
}
.sg-head .sg-head__icons {
  display: flex;
  align-items: center;
  gap: clamp(3px, .45vw, 9px);
}
.sg-head .sg-head__icons :is(.wrap_icon,.auth_wr_inner,.line-block__item) {
  margin: 0;
  padding: 0;
}
.sg-head .sg-head__icons :is(.personal-link,.basket-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 37px;
  height: 42px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 7px;
  color: var(--sg-header-ink);
  line-height: 1;
}
.sg-head .sg-head__icons :is(.personal-link,.basket-link):hover {
  background-color: #f3f3f4;
}
.sg-head .sg-head__icons :is(.personal-link,.basket-link) i.svg {
  display: inline-flex;
  margin: 0;
  position: static;
  align-items: center;
  color: var(--sg-header-ink);
  opacity: 1;
}
.sg-head .sg-head__icons :is(.personal-link,.basket-link) i.svg svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  filter: brightness(.19);
}
.sg-head .sg-head__icons :is(.personal-link .wrap,.basket-link .title) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sg-head .sg-head__icons .js-basket-block { display: inline-flex; align-items: center; }
.sg-head .sg-head__icons .basket-link .count {
  position: absolute;
  left: auto;
  top: 0;
  right: -1px;
  margin: 0;
  padding: 0 3px;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  border-radius: 8px;
  background: #ffab37;
  color: #382000;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.sg-head .sg-head__icons .count[data-sg-empty],
#mobileheader .mobileheader-v2 .right-icons .count[data-sg-empty] { display: none; }
.sg-head .sg-head__panel,
.sg-head .sg-head__shop-panel {
  position: absolute;
  top: calc(100% - 1px);
  z-index: 108;
  box-sizing: border-box;
  padding: 20px 24px;
  border: 1px solid var(--sg-header-line);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20,22,28,.13);
  color: var(--sg-header-ink);
  text-align: left;
  line-height: 1.45;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.sg-head .sg-head__panel {
  left: 0;
  right: 0;
}
.sg-head .sg-head__shop-panel {
  right: 0;
  width: min(365px, calc(100vw - 32px));
}
.sg-head .sg-head__shops { position: relative; }
.sg-head .sg-head__shops > .sg-head__shop-panel { top: calc(100% + 11px); }
.sg-head .sg-head__shop {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin-bottom: 12px;
}
.sg-head .sg-head__shop + .sg-head__shop {
  border-top: 1px solid var(--sg-header-line);
  padding-top: 12px;
}
.sg-head .sg-head__shop-name { font-weight: 600; }
.sg-head .sg-head__shop-address { color: #55585d; font-size: 14px; }
.sg-head .sg-head__shop-phone { font-variant-numeric: tabular-nums; }
.sg-head .sg-head__shop-panel .sg-head__all { color: var(--sg-header-accent); }
.sg-head .sg-head__callback {
  display: block;
  margin: 8px 0 0;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--sg-header-accent);
  font: inherit;
  cursor: pointer;
}
.sg-head .sg-head__shop-panel a,
.sg-head .sg-head__panel a {
  color: var(--sg-header-ink);
  text-decoration: none;
}
.sg-head .sg-head__shop-panel a:hover,
.sg-head .sg-head__panel a:hover {
  color: var(--sg-header-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sg-head .sg-head__panel :is(.smartgo-catalog-groups, .smartgo-catalog-columns, .sg-head__columns) {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.sg-head .sg-head__panel :is(.smartgo-catalog-columns, .sg-head__columns) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px 26px;
}
.sg-head .sg-head__panel :is(h2,h3) {
  margin: 0 0 8px;
  color: var(--sg-header-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}
.sg-head .sg-head__panel ul,
.sg-head .sg-head__panel li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-head .sg-head__panel li::before { content: none; }
.sg-head .sg-head__panel li a {
  display: inline-block;
  padding-block: 4px;
  font-size: 14px;
}
.sg-head .sg-head__panel :is(.smartgo-catalog-all,.sg-head__all) {
  display: inline-flex;
  margin: 12px 0 0;
  color: var(--sg-header-accent);
  font-weight: 600;
}
.sg-head .sg-head__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sg-header-line);
  font-size: 14px;
}
@media (max-width: 1199px) {
  .sg-head .sg-head__row { gap: 10px; }
  .sg-head .sg-head__logo { flex-basis: 118px; }
  .sg-head .sg-head__trigger { padding-inline: 11px; }
  .sg-head .sg-head__shop-trigger { font-size: 14px; gap: 6px; }
  .sg-head .sg-head__icons { gap: 0; }
}
@media (max-width: 991px) {
  #mobileheader .mobileheader-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #222327;
    background: #fff;
    box-shadow: inset 0 -1px 0 #e7e7e9;
  }
  #mobileheader .mobileheader-v2 > .sg-ny-garland,
  #mobileheader .mobileheader-v2 .title-block > .sg-ny-cap { display: none; }
  #mobileheader .mobileheader-v2 > .title-block {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #212226;
  }
  #mobileheader .mobileheader-v2 > .right-icons {
    flex: 0 0 auto;
    margin-left: 0;
  }
  #mobileheader .mobileheader-v2 > .burger {
    width: 45px;
    flex: 0 0 45px;
    color: #222327;
  }
  #mobileheader .mobileheader-v2 > .burger .svg,
  #mobileheader .mobileheader-v2 .right-icons :is(.top-btn,.personal-link,.basket-link) .svg {
    filter: brightness(0);
    opacity: .88;
  }
}
