header.site-header.site-header--front.region-shell {
    padding-right: 24px;
}

header.site-header.site-header--common.region-shell {
      max-width: 1760px;
    margin: 0 auto
}



/* =========================================================
   DESKTOP HEADER LAYOUT
   ---------------------------------------------------------
   Левый блок (лого + меню) = по ширине контента.
   Поиск = занимает всё свободное место.
   Само поле поиска = центрируется в этом свободном месте.
   ========================================================= */

:root {
  --header-logo-width: 222px;
  --header-search-min: 220px; /* ширина поиска минимальная */
  --header-search-max: 420px; /* ширина поиска максимальная */
  --header-menu-font-max: 20px;
  --header-menu-font-min: 15px;
  --header-gap-max: 16px;
  --header-gap-min: 10px;
}

.region-header-common > div,
.region-front-header > div {
  display: flex;
  align-items: center;
  gap: clamp(var(--header-gap-min), 1vw, var(--header-gap-max));
  width: 100%;
  min-width: 0;
}

/* Левый блок больше не растягивается на свободное пространство */
div#block-newstratec3-shapkasamayaverkhnyayadlyaglavnoy {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  padding-left: 10px;
}

/* Лого + меню по контенту */
.logo-menu-head {
  display: grid;
  grid-template-columns: clamp(180px, 13vw, var(--header-logo-width)) auto;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  width: auto;
  min-width: max-content;
  overflow: visible;
}

.logo-head {
  width: clamp(180px, 13vw, var(--header-logo-width));
  min-width: clamp(180px, 13vw, var(--header-logo-width));
}

.logo-head img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Меню */
.main-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 0.9vw, 18px);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(var(--header-menu-font-min), 0.95vw, var(--header-menu-font-max));
  font-weight: 600;
  padding-inline-start: 12px;
}

.main-menu span {
  min-width: 0;
  flex: 0 1 auto;
}

.main-menu a {
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  text-decoration: none;
  font-size: inherit;
  line-height: 1.1;
}

.region-header-common .logo-menu-head .main-menu a {
  color: #333;
}

.region-header-common .logo-menu-head .logo-head img.logo-head-png {
  display: none;
}

.region-front-header .logo-menu-head .logo-head img.stratec-logo-black-png {
  display: none;
}

/* На более узком desktop скрываем "Главная" */
@media (max-width: 1440px) {
  .main-menu > span:first-child {
    display: none;
  }
}

/* =========================================================
   SEARCH
   ---------------------------------------------------------
   Блок поиска занимает всё оставшееся место.
   Поле внутри этого места центрируется.
   ========================================================= */

#block-search-desc {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  justify-content: center;
}

#block-search-desc .block__content {
  /* width: 100%; */
  min-width: 0;
  max-width: none;
  display: flex;
  justify-content: center;
}

/* Вот здесь регулируется ширина самого поля */
#block-search-desc form,
.search_desc div form {
  position: relative;
  width: min(100%, var(--header-search-max));
  min-width: var(--header-search-min);
  max-width: 100%;
}

#block-search-desc .js-form-item,
#block-search-desc .form-actions {
  width: auto;
  min-width: 0;
  margin: 0;
}

#block-search-desc input.form-text,
div.search_desc .js-form-item input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 2px 42px 2px 14px;
  border: 1px solid #919398;
  border-radius: 5px;
  background: transparent;
  background-repeat: no-repeat;
  color: #414141;
  font-size: 18px;
  box-sizing: border-box;
  margin-top: 5px;
}

/* Лупа внутри поля */
#block-search-desc .form-actions,
div.search_desc div.form-actions {
  position: absolute;
  top: calc(50% - 8px);
  right: 10px;
  width: 24px;
  height: 24px;
}

#block-search-desc .form-actions input,
#block-search-desc .form-actions .form-submit,
div.search_desc div.form-actions input {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
}

.region-front-header #block-search-desc .form-actions input,
.region-front-header #block-search-desc .form-actions .form-submit,
.region-front-header div.search_desc div.form-actions input {
  background-image: url('../images/search_lens.svg');
}

.region-header-common #block-search-desc .form-actions input,
.region-header-common #block-search-desc .form-actions .form-submit,
.region-header-common div.search_desc div.form-actions input {
  background-image: url('../images/search_lens-black.svg');
}

/* =========================================================
   RIGHT BUTTONS
   ---------------------------------------------------------
   Эти блоки прижимаются вправо и не растягиваются.
   ========================================================= */

.block-flag-header,
.cart-desctop,
nav.account-menu-block-desctop {
  flex: 0 0 auto;
  justify-self: end;
}


/* =========================================================
   SEARCH
   ---------------------------------------------------------
   Поиск занимает всю ширину своей колонки.
   Сама колонка регулируется переменными выше.
   Поле поиска центрируется внутри свободного пространства.
   ========================================================= */
#block-search-desc {
  width: 100%;
  min-width: 0;
  justify-self: center;
}

#block-search-desc .block__content { /* вот здесь можно паддинги поставить */
  width: 100%;
  min-width: 0;
  padding: 0 5%;
}

#block-search-desc form,
.search_desc div form {
  position: relative;
  width: 100%;
  min-width: 0;
}

#block-search-desc .js-form-item,
#block-search-desc .form-actions {
  width: auto;
  min-width: 0;
  margin: 0;
}

#block-search-desc input.form-text,
div.search_desc .js-form-item input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 2px 42px 2px 14px;
  border: 1px solid #636363;
  border-radius: 5px;
  background: transparent;
  background-repeat: no-repeat;
  color: #414141;
  font-size: 18px;
  box-sizing: border-box;
  margin-top: 5px;
}
.site-header--front #block-search-desc input.form-text,
.site-header--front div.search_desc .js-form-item input {
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* Лупа внутри поля */
#block-search-desc .form-actions,
div.search_desc div.form-actions {
  position: absolute;
  top: calc(50% - 8px);
  right: 10px;
  width: 24px;
  height: 24px;
}

#block-search-desc .form-actions input,
#block-search-desc .form-actions .form-submit,
div.search_desc div.form-actions input {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
}

.region-front-header #block-search-desc .form-actions input,
.region-front-header #block-search-desc .form-actions .form-submit,
.region-front-header div.search_desc div.form-actions input {
  background-image: url('../images/search_lens.svg');
}

.region-header-common #block-search-desc .form-actions input,
.region-header-common #block-search-desc .form-actions .form-submit,
.region-header-common div.search_desc div.form-actions input {
  background-image: url('../images/search_lens-black.svg');
}

/* Скрываем ajax-троббер */
.ajax-progress-throbber,
.ajax-progress {
  display: none;
}

/* =========================================================
   FAVORITES / CART / ACCOUNT
   ---------------------------------------------------------
   Всё прижато вправо, с аккуратными размерами и отступами.
   ========================================================= */
.block-flag-header,
.cart-desctop,
nav.account-menu-block-desctop {
  justify-self: end;
}

/* Избранное */
.region-header-common .head-favorites .favorites-front {
  display: none;
}

.region-front-header .head-favorites .favorites-common {
  display: none;
}

.block-flag-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  min-width: 70px;
  margin-bottom: -5px;
}

.block-flag-header .block__title {
  order: 2;
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  /* margin-top: -5px; */
}
.block-flag-header img.favorites-front {
    margin: -2px 0 -3px;
    width: 30px;
    height: auto;
}

.block-flag-header .block__content {
  order: 1;
  margin: 0 0 3px;
}

.block-flag-header .head-favorites {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Корзина */
.cart-desctop {
  display: flex;
  flex-direction: column-reverse;
  width: 130px;
  width: 7%;
  align-items: center;
  margin-bottom: -2px;
}

.cart-desctop h2 {
  margin: 0;
}

.cart-desctop h2.block__title {
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
}

.cart-desctop a img,
.cart-desctop a span {
  display: none;
}

.cart-desctop a {
  display: block;
  height: 32px;
  width: 32px;
}

.region-front-header .cart-desctop a {
  background-image: url('../images/icon-cart.svg');
}

.region-header-common .cart-desctop a {
  background-image: url('../images/icon-cart-black.svg');
}

.region-front-header .block-flag-header h2,
.region-front-header .cart-desctop h2.block__title {
  color: #fff;
}

.region-header-common .cart-desctop h2.block__title,
.region-header-common .block-flag-header h2 {
  color: #333;
}

.basic_cart-ajax-progress-throbber {
  display: none;
}

/* Аккаунт */
nav.account-menu-block-desctop {
  width: 44px;
  min-width: 44px;
}

nav.account-menu-block-desctop > ul {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.account-menu-block-desctop > ul > li {
  margin: 6px 0 0;
  background-image: url('../images/account-menu-icon.svg');
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  position: relative;
  background-size: 100%;
}

.region-front-header nav.account-menu-block-desctop > ul > li {
  background-image: url('../images/account-menu-icon.svg');
}

.region-header-common nav.account-menu-block-desctop > ul > li {
  background-image: url('../images/account-menu-icon-black.svg');
}

.account-menu-block-desctop ul li ul {
  display: none;
  position: absolute;
  z-index: 10;
  background-color: #fff;
  width: 200px;
  list-style-type: none;
  padding: 0;
  line-height: 1em;
  margin-top: 0;
  box-shadow: 0 0 3px 1px #ddddddab;
  left: -183px;
}
@media (min-width: 801px) {
  .account-menu-block-desctop > ul > li.is-open > ul {
    display: block;
  }

  .account-menu-block-desctop > ul > li > ul {
    top: 44px;
    right: 0;
    left: auto;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
  }

  .account-menu-block-desctop > ul > li > ul a {
    display: block;
    padding: 12px 14px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
  }

  .account-menu-block-desctop > ul > li > ul a:hover {
    color: #820000;
    background: #f5f5f5;
  }
}

/* =========================================================
   MOBILE PART НЕ ТРОГАЕМ
   ========================================================= */
@media (max-width: 800px) {
  .region-header-common,
  .site-header--front,
  .logo-menu-head {
    display: none !important;
  }
}


/* =========================================================
   iPad / tablet portrait
   ---------------------------------------------------------
   1 строка: лого + меню
   2 строка: поиск + избранное + корзина + аккаунт
   ========================================================= */
@media (min-width: 820px) and (max-width: 1100px) and (orientation: portrait) {
  .region-header-common > div,
  .region-front-header > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 58px 44px;
    grid-template-areas:
      "brand brand brand brand"
      "search fav cart acc";
    row-gap: 12px;
    column-gap: 12px;
    align-items: center;
  }

  /* 1 строка */
  #block-newstratec3-shapkasamayaverkhnyayadlyaglavnoy {
    grid-area: brand;
    width: 100%;
    min-width: 0;
    padding-left: 0;
  }

  .logo-menu-head {
    width: 100%;
    min-width: 0;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .logo-head {
    width: 190px;
    min-width: 190px;
  }

  .logo-head img {
    width: 190px;
  }

  .main-menu {
    gap: 10px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
  }

  .main-menu span {
    min-width: 0;
    flex: 0 1 auto;
  }

  .main-menu a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 2 строка */
  #block-search-desc {
    grid-area: search;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #block-search-desc .block__content,
  #block-search-desc form {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #block-newstratec3-izbrannoe-2 {
    grid-area: fav;
    justify-self: end;
  }

  #block-newstratec3-basiccartcountblock {
    grid-area: cart;
    justify-self: end;
  }

  #block-newstratec3-account-menu {
    grid-area: acc;
    justify-self: end;
  }
}

/* =========================================================
   FIX RIGHT BUTTONS
   ---------------------------------------------------------
   Быстрый override для правых кнопок:
   - Избранное
   - Корзина
   - Аккаунт
   ========================================================= */

#block-newstratec3-izbrannoe-2.block-flag-header,
#block-newstratec3-basiccartcountblock.cart-desctop,
#block-newstratec3-account-menu.account-menu-block-desctop {
  flex: 0 0 auto;
  justify-self: end;
  align-self: center;
  margin: 0 !important;
}

/* Избранное */
#block-newstratec3-izbrannoe-2.block-flag-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px !important;
  min-width: 56px !important;
  margin-bottom: -2px !important;
}

#block-newstratec3-izbrannoe-2.block-flag-header .block__title {
  order: 2;
  margin: 4px 0 0 !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 400;
}

#block-newstratec3-izbrannoe-2.block-flag-header .block__content {
  order: 1;
  margin: 0 !important;
}

#block-newstratec3-izbrannoe-2 .head-favorites {
  display: flex;
  justify-content: center;
  align-items: center;
}

.block-flag-header > div > div > div > a:nth-child(2) {
    height: 30px;
}

/* Корзина */
/* #block-newstratec3-basiccartcountblock.cart-desctop {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 56px !important;
  min-width: 56px !important;
  margin-bottom: 0 !important;
} */

#block-newstratec3-basiccartcountblock.cart-desctop h2 {
  margin: 0;
}

#block-newstratec3-basiccartcountblock.cart-desctop h2.block__title {
  margin: 4px 0 0 !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 400;
}

#block-newstratec3-basiccartcountblock.cart-desctop .block__content {
  margin: 0 !important;
}

#block-newstratec3-basiccartcountblock.cart-desctop a {
  display: block;
  width: 32px;
  height: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
}

#block-newstratec3-basiccartcountblock.cart-desctop a img {
  display: none;
}

/* Аккаунт */
#block-newstratec3-account-menu.account-menu-block-desctop {
  width: 44px !important;
  min-width: 44px !important;
}

#block-newstratec3-account-menu.account-menu-block-desctop > ul {
  width: auto !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

#block-newstratec3-account-menu.account-menu-block-desctop > ul > li {
  width: 40px;
  height: 40px;
  margin: 0 !important;
  background-repeat: no-repeat;
  background-size: 100%;
  position: relative;
}

/* Чтобы все три блока визуально держали один ритм */
#block-newstratec3-izbrannoe-2,
#block-newstratec3-basiccartcountblock,
#block-newstratec3-account-menu {
  margin-left: 4px;
}

/* Вертикальный планшет */
@media (min-width: 820px) and (max-width: 1100px) and (orientation: portrait) {
  #block-newstratec3-izbrannoe-2.block-flag-header,
  #block-newstratec3-basiccartcountblock.cart-desctop {
    width: 56px !important;
    min-width: 56px !important;
  }

  #block-newstratec3-account-menu.account-menu-block-desctop {
    width: 44px !important;
    min-width: 44px !important;
  }
}

#block-newstratec3-basiccartcountblock.cart-desctop a {
    position: relative;
}


.cart-desctop a span.basic_cart-circles {
    font-size: 13px;
    display: block;
    position: absolute;
    bottom: 16px;
    right: -4px;
    background-color: #820000;
    color: #fff;
    border-radius: 9px;
    padding: 1px 5px;
    font-weight: 600;
}








@media (min-width: 768px) and (max-width: 1100px) {
  .region-front-header > div,
  .region-header-common > div {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) max-content max-content max-content;
    column-gap: 18px;
    row-gap: 12px;
    align-items: center;
  }

  /* Первая строка: логотип + меню */
  #block-newstratec3-shapkasamayaverkhnyayadlyaglavnoy {
    grid-column: 1 / -1;
  }

  /* Вторая строка начинается с поиска */
  #block-search-desc {
    grid-column: 1 / 2;
    width: 100%;
    min-width: 220px;
  }

  #block-newstratec3-izbrannoe-2.block-flag-header {
    grid-column: 2 / 3;
    justify-self: center;
    margin: 0;
  }

  #block-newstratec3-basiccartcountblock.cart-desctop {
    grid-column: 3 / 4;
    justify-self: center;
    margin: 0;
    min-width: 42px;
  }

  #block-newstratec3-account-menu {
    grid-column: 4 / 5;
    justify-self: end;
    margin: 0;
    min-width: 42px;
    padding-left: 8px;
  }
  
  .ns-hero-block__facts > :nth-last-child(-n + 2) {
    display: none;
  }
  .news-stratec_item-img {
    max-height: 200px;
  }
}