button.button-catalog,
button.select-header-data,
button.button-header-lc,
button.select-header-data-m,
button.button-header-lc-m,
button.open-catalog-nav-item,
button.modal-select-l-button,
#back-header-burg {
    border: 0;
    font: inherit;
}

.button-catalog span,
.button-header-lc span,
.button-header-lc-m span,
.open-catalog-nav-item span {
    display: inline-flex;
    min-width: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 157px;
}

.site-logo-link .logo {
    display: block;
    width: 157px !important;
    height: 30px;
    max-width: none;
}

.select-header-data .site-region-current,
.select-header-data-m .site-region-current {
    border-left: 0;
    height: auto;
    display: flex;
    min-width: 0;
}

.site-region-current .site-region-flag {
    width: 21px;
    height: 14px;
    flex: 0 0 21px;
    border-radius: 3px;
    object-fit: cover;
}

.site-locale-current {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .55);
    font-family: Onest;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    white-space: nowrap;
}

.site-region-arrow {
    flex: 0 0 auto;
}

.select-header-data-m .site-region-arrow {
    margin-left: auto;
}

.site-region-current > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
    font-family: Onest;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
}

.site-catalog-panels {
    width: 100%;
}

.site-catalog-panel,
.site-mobile-catalog-panel {
    display: none;
}

.site-catalog-panel.active {
    display: grid;
}

.site-mobile-catalog-panel.active {
    display: flex;
}

.open-catalog-content-item,
.product-search-list-items-item,
.product-search-list-show,
.burg-navig-item {
    text-decoration: none;
}

.open-catalog-content-item img {
    width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    object-fit: cover !important;
    border-radius: 8px;
    flex: 0 0 30px !important;
}

.product-search-list-items-item {
    color: inherit;
}

.product-search-list-items-item-image span {
    position: absolute;
    left: 6px;
    top: 6px;
    background: #1ecb4f;
    color: #fff;
    border-radius: 16px;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 800;
}

.modal-select-l-button {
    width: 100%;
}

.select-header-data,
.select-header-data-m {
    cursor: pointer;
}

@media (max-width: 1000px) {
    .site-logo-link {
        margin-right: auto;
    }

    .site-catalog-panel.active {
        display: flex;
    }
}

/*
  «Весь каталог» — последняя строка в списке разделов выпадающей панели.

  Панель показывает по нескольку товаров из каждого раздела; полный список с
  фильтрами живёт на отдельной странице /catalog, и до неё из шапки не было
  ни одной ссылки. Стрелка повёрнута вправо: иконка в наборе одна — «вниз».
*/
.open-catalog-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding: 15px;
    border-radius: 12px;
    background-color: rgba(255, 141, 40, 0.1);
    color: rgba(255, 141, 40, 1);
    font-family: Onest;
    font-weight: 700;
    font-size: 14px;
    line-height: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s;
}

.open-catalog-all:hover {
    background-color: rgba(255, 141, 40, 0.18);
}

.open-catalog-all img {
    width: 14px;
    transform: rotate(-90deg);
    /* Иконка в наборе серая — красим в акцентный цвет ссылки. */
    filter: invert(62%) sepia(88%) saturate(2060%) hue-rotate(350deg) brightness(102%) contrast(101%);
}

@media (max-width: 900px) {
  .search-header-wrapper {
    flex-shrink: 0;
  }

  .search-header-wrapper>img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }
}

.region-hint-anchor {
    position: relative;
    flex-shrink: 0;
}

.region-hint {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 900;
    width: 300px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(37, 39, 43, 1);
    background-color: rgba(21, 22, 24, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    font-family: Onest;
    color: white;
}

.region-hint-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-hint-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.region-hint-title {
    flex: 1;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.region-hint-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background-color .2s;
}

.region-hint-close:hover {
    background-color: rgba(37, 39, 42, 1);
}

.region-hint-close > img {
    width: 14px;
    height: 14px;
}

.region-hint-text {
    margin: 10px 0 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(160, 161, 164, 1);
}

.region-hint-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.region-hint-yes,
.region-hint-no {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s;
}

.region-hint-yes {
    background-color: rgba(255, 141, 40, 1);
    color: rgba(15, 16, 19, 1);
}

.region-hint-yes:hover {
    background-color: rgba(255, 160, 75, 1);
}

.region-hint-no {
    background-color: rgba(37, 39, 42, 1);
    color: white;
}

.region-hint-no:hover {
    background-color: rgba(45, 47, 51, 1);
}

@media (max-width: 900px) {
    .region-hint-anchor {
        display: contents;
    }

    .region-hint {
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: min(360px, calc(100vw - 32px));
        z-index: 1000;
    }
}

a.select-item {
    color: inherit;
    text-decoration: none;
}

.button-header-lc.is-auth,
.button-header-lc-m.is-auth {
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.header-user-avatar {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 141, 40, .9);
  background: rgba(255, 255, 255, .06);
}

.header-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.header-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-header-lc.is-auth:hover .header-user-avatar {
  box-shadow: 0 0 0 2px rgba(50, 32, 17, 1);
}
