/* =========================================================
   header_b2b.css — новая B2B-шапка Agroshop.site
   Только шапка. common.css не трогаем.
   Порядок: логотип → поиск → новости → избранное → сообщения → профиль
   ========================================================= */

@media (min-width: 1280px){
  body .header-b2b{
    width:min(calc(100% - 220px), 1648px) !important;
    height:72px !important;
    min-height:72px !important;
    margin:0 auto 18px !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:300px minmax(420px, 720px) auto 34px 34px auto !important;
    align-items:center !important;
    gap:28px !important;
    background:#fff !important;
    border-radius:0 !important;
    box-shadow:none !important;
    position:sticky !important;
    top:0 !important;
    z-index:1000 !important;
  }

  .header-b2b__brand{
    width:300px !important;
    height:64px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }

  .header-b2b__brand a{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:4px !important;
    width:auto !important;
    height:64px !important;
    text-decoration:none !important;
    line-height:1 !important;
    background:transparent !important;
  }

  .header-b2b__logo{
    display:block !important;
    font-size:30px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.1px !important;
    color:#176225 !important;
    white-space:nowrap !important;
  }

  .header-b2b__logo span{
    color:#6aaa34 !important;
    font-weight:800 !important;
  }

  .header-b2b__brand small{
    display:block !important;
    margin:0 !important;
    font-size:13px !important;
    line-height:1.05 !important;
    font-weight:600 !important;
    color:#69746c !important;
    white-space:nowrap !important;
  }

  body .header-b2b .header-b2b__search{
    width:100% !important;
    max-width:720px !important;
    height:44px !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    position:relative !important;
  }

  body .header-b2b .header-b2b__search input[type="text"]{
    width:100% !important;
    height:44px !important;
    padding:0 112px 0 46px !important;
    border:1px solid #dde5dd !important;
    border-radius:14px !important;
    background:#fff !important;
    color:#28362d !important;
    font-size:15px !important;
    font-weight:500 !important;
    box-shadow:0 3px 12px rgba(20,50,30,.06) !important;
    outline:none !important;
  }

  body .header-b2b .header-b2b__search::before{
    content:"⌕" !important;
    position:absolute !important;
    left:16px !important;
    top:50% !important;
    transform:translateY(-52%) !important;
    font-size:28px !important;
    line-height:1 !important;
    color:#6b7b70 !important;
    z-index:2 !important;
  }

  body .header-b2b .header-b2b__search input[type="submit"]{
    position:absolute !important;
    right:5px !important;
    top:5px !important;
    width:90px !important;
    min-width:90px !important;
    height:34px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:9px !important;
    background:#2e7d17 !important;
    color:#fff !important;
    font-size:15px !important;
    font-weight:800 !important;
    box-shadow:0 5px 14px rgba(46,125,23,.22) !important;
    cursor:pointer !important;
  }

  .header-b2b__news{
    color:#253226 !important;
    font-size:15px !important;
    font-weight:700 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }

  .header-b2b__icon{
    width:34px !important;
    height:34px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    position:relative !important;
    text-decoration:none !important;
  }

  .header-b2b__icon img{
    width:22px !important;
    height:22px !important;
    object-fit:contain !important;
    filter:brightness(0) saturate(100%) invert(13%) sepia(12%) saturate(1044%) hue-rotate(78deg) brightness(96%) contrast(89%) !important;
  }

  .header-b2b__profile{
    width:42px !important;
    height:42px !important;
    margin:0 20px 0 6px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    border:1px solid #e4eae4 !important;
    background:#fff !important;
    box-shadow:0 4px 12px rgba(18,47,29,.07) !important;
    text-decoration:none !important;
    position:relative !important;
  }

  .header-b2b__profile::before{
    content:"👤" !important;
    font-size:22px !important;
    line-height:1 !important;
  }

  .header-b2b__profile::after{
    content:"⌄" !important;
    position:absolute !important;
    right:-18px !important;
    top:50% !important;
    transform:translateY(-52%) !important;
    color:#1b2e20 !important;
    font-size:16px !important;
    font-weight:800 !important;
  }

  .header-b2b__login,
  .header-b2b__register{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:38px !important;
    padding:0 16px !important;
    border-radius:10px !important;
    font-size:14px !important;
    font-weight:800 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }

  .header-b2b__login{
    color:#1f5d23 !important;
    border:1px solid #dce8dc !important;
    background:#fff !important;
  }

  .header-b2b__register{
    color:#fff !important;
    border:1px solid #2e7d17 !important;
    background:#2e7d17 !important;
  }
}

@media (min-width: 1280px) and (max-width: 1500px){
  body .header-b2b{
    width:calc(100% - 32px) !important;
    grid-template-columns:260px minmax(320px, 1fr) auto 34px 34px auto !important;
    gap:18px !important;
  }

  .header-b2b__brand{
    width:260px !important;
  }

  .header-b2b__logo{
    font-size:26px !important;
  }

  .header-b2b__brand small{
    font-size:11px !important;
  }
}

@media (max-width: 991.98px){
  body .header-b2b{
    min-height:58px !important;
    padding:8px 10px !important;
    display:grid !important;
    grid-template-columns:auto 1fr auto auto auto !important;
    gap:10px !important;
    align-items:center !important;
    background:#fff !important;
  }

  .header-b2b__brand small{
    display:none !important;
  }

  .header-b2b__logo{
    font-size:18px !important;
    color:#176225 !important;
    font-weight:900 !important;
    white-space:nowrap !important;
  }

  .header-b2b__logo span{
    color:#6aaa34 !important;
  }

  body .header-b2b .header-b2b__search{
    min-width:0 !important;
    width:100% !important;
    margin:0 !important;
  }

  body .header-b2b .header-b2b__search input[type="text"]{
    width:100% !important;
    height:38px !important;
    border-radius:12px !important;
    padding:0 72px 0 12px !important;
    font-size:13px !important;
  }

  body .header-b2b .header-b2b__search::before{
    display:none !important;
  }

  body .header-b2b .header-b2b__search input[type="submit"]{
    position:absolute !important;
    right:4px !important;
    top:4px !important;
    width:62px !important;
    min-width:62px !important;
    height:30px !important;
    border-radius:9px !important;
    font-size:13px !important;
  }

  .header-b2b__news{
    display:none !important;
  }

  .header-b2b__icon{
    width:30px !important;
    height:30px !important;
  }

  .header-b2b__icon img{
    width:20px !important;
    height:20px !important;
  }

  .header-b2b__profile,
  .header-b2b__login,
  .header-b2b__register{
    display:none !important;
  }
}


/* =========================================================
   2026-05-09: tablet header fix
   992–1199px не считаем полноценным десктопом.
   ========================================================= */
@media (min-width: 768px) and (max-width: 1279.98px){
  body .header-b2b{
    width:calc(100% - 32px) !important;
    min-height:64px !important;
    margin:0 auto 12px !important;
    padding:8px 0 !important;
    display:grid !important;
    grid-template-columns:220px minmax(280px, 1fr) auto auto auto !important;
    gap:14px !important;
    align-items:center !important;
    background:#fff !important;
    box-shadow:none !important;
  }

  .header-b2b__logo{
    font-size:24px !important;
    line-height:1 !important;
    color:#176225 !important;
    font-weight:900 !important;
    white-space:nowrap !important;
  }

  .header-b2b__logo span{ color:#6aaa34 !important; }

  .header-b2b__brand small{
    font-size:11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  body .header-b2b .header-b2b__search{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .header-b2b__news{
    font-size:14px !important;
    white-space:nowrap !important;
  }

  .header-b2b__profile{
    width:38px !important;
    height:38px !important;
    margin:0 !important;
  }
}


/* =========================================================
   2026-05-09: header width = hero width
   Шапка должна быть вровень с верхним B2B-баннером.
   common.css не трогаем.
   ========================================================= */

@media (min-width: 1280px){
  body .header-b2b{
    width:min(100% - 16px, 1680px) !important;
    max-width:1680px !important;
    margin:0 auto 12px !important;
    left:auto !important;
    right:auto !important;
    grid-template-columns:300px minmax(620px, 1fr) auto 34px 34px 54px !important;
    gap:28px !important;
  }

  body .header-b2b .header-b2b__search{
    max-width:none !important;
    width:100% !important;
  }

  .header-b2b__profile{
    margin:0 !important;
  }
}

@media (min-width: 1280px) and (max-width: 1500px){
  body .header-b2b{
    width:min(100% - 16px, 1680px) !important;
    max-width:1680px !important;
    grid-template-columns:260px minmax(420px, 1fr) auto 34px 34px 48px !important;
    gap:18px !important;
  }
}

/* 2026-05-09: внутренние отступы шапки, ширина остается вровень с hero */
@media (min-width: 1280px){
  body .header-b2b{
    padding-left:112px !important;
    padding-right:112px !important;
    box-sizing:border-box !important;
  }
}

@media (min-width: 1280px) and (max-width: 1500px){
  body .header-b2b{
    padding-left:32px !important;
    padding-right:32px !important;
  }
}

/* 2026-05-09: фикс кнопки поиска и профиля в B2B-шапке */
@media (min-width: 1280px){
  body .header-b2b .header-b2b__search input[type="submit"]{
    top:6px !important;
    right:6px !important;
    width:86px !important;
    min-width:86px !important;
    height:32px !important;
    border-radius:9px !important;
    box-shadow:0 4px 10px rgba(46,125,23,.18) !important;
  }

  .header-b2b__profile{
    width:42px !important;
    height:42px !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  .header-b2b__profile::after{
    content:none !important;
    display:none !important;
  }
}

/* на всякий случай гасим отдельную старую стрелку рядом с профилем */
body .header-b2b > span,
body .header-b2b > b,
body .header-b2b > small:last-child{
  display:none !important;
}

/* 2026-05-09: B2B шапка — кнопка поиска строго по центру поля */
body .header-b2b .header-b2b__search{
  position:relative !important;
}

body .header-b2b .header-b2b__search input[type="submit"]{
  top:50% !important;
  right:6px !important;
  transform:translateY(-50%) !important;
  height:34px !important;
  line-height:34px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:9px !important;
}

body .header-b2b .header-b2b__search input[type="text"]{
  padding-right:112px !important;
}

/* 2026-05-09: B2B header final polish */
@media (min-width: 1280px){
  body .header-b2b{
    min-height:64px !important;
    height:64px !important;
    margin-bottom:8px !important;
  }
}

/* 2026-05-09: B2B header logo final visibility */
body .header-b2b__brand{
  display:flex !important;
  align-items:center !important;
  min-width:260px !important;
  overflow:visible !important;
  text-decoration:none !important;
}

body .header-b2b__brand,
body .header-b2b__brand *{
  overflow:visible !important;
}

body .header-b2b__logo{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  font-size:30px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-.8px !important;
  color:#176225 !important;
  white-space:nowrap !important;
}

body .header-b2b__logo::before{
  content:"" !important;
  display:block !important;
  width:38px !important;
  height:38px !important;
  flex:0 0 38px !important;
  background:url("/static/icons/agro-leaf.ccb29a48958c.svg") center/contain no-repeat !important;
}

body .header-b2b__logo span{
  color:#6aaa34 !important;
}

body .header-b2b__brand small{
  display:block !important;
  margin-top:3px !important;
  font-size:12px !important;
  line-height:1.1 !important;
  color:#6b746c !important;
  font-weight:700 !important;
  white-space:nowrap !important;
}

@media (min-width:1280px){
  body .header-b2b{
    grid-template-columns:300px minmax(520px, 1fr) auto 34px 34px 54px !important;
  }
}

/* 2026-05-09: FINAL clean B2B header logo
   Листочек слева от двух строк.
   AGROSHOP.SITE без дырки, только 2px между AGROSHOP и .SITE.
   Не трогаем common.css.
*/
body .header-b2b .header-b2b-brand{
  width:330px !important;
  min-width:330px !important;
  height:64px !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  background:transparent !important;
  overflow:visible !important;
}

body .header-b2b .header-b2b-brand__link{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  height:64px !important;
  margin:0 !important;
  padding:0 !important;
  text-decoration:none !important;
  background:transparent !important;
}

body .header-b2b .header-b2b-brand__leaf{
  display:block !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  flex:0 0 44px !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
}

body .header-b2b .header-b2b-brand__text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:5px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

body .header-b2b .header-b2b-brand__name{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:2px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  font-size:27px !important;
  font-weight:900 !important;
  line-height:.92 !important;
  letter-spacing:-1.05px !important;
  word-spacing:0 !important;
  white-space:nowrap !important;
  color:#126b25 !important;
  position:static !important;
  transform:none !important;
}

body .header-b2b .header-b2b-brand__site{
  display:inline !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#5aaa21 !important;
  font:inherit !important;
  line-height:inherit !important;
  letter-spacing:inherit !important;
  word-spacing:0 !important;
  white-space:nowrap !important;
  position:static !important;
  transform:none !important;
}

body .header-b2b .header-b2b-brand__tagline{
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  color:#6f7f73 !important;
  white-space:nowrap !important;
}

/* Гасим старые классы логотипа, если где-то остались в CSS */
body .header-b2b__brand,
body .header-b2b__logo{
  gap:0 !important;
  letter-spacing:0 !important;
  word-spacing:0 !important;
}

body .header-b2b__brand::before,
body .header-b2b__logo::before,
body .header-b2b .agro::before,
body .header-b2b .agro a::before{
  content:none !important;
  display:none !important;
}

@media (max-width:767.98px){
  body .header-b2b .header-b2b-brand{
    width:230px !important;
    min-width:230px !important;
    height:54px !important;
  }

  body .header-b2b .header-b2b-brand__link{
    height:54px !important;
    gap:8px !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    flex-basis:38px !important;
  }

  body .header-b2b .header-b2b-brand__name,
  body .header-b2b .header-b2b-brand__site{
    font-size:22px !important;
  }

  body .header-b2b .header-b2b-brand__tagline{
    font-size:10px !important;
  }
}


/* 2026-05-09 FINAL: logo block a bit more left */
body .header-b2b-brand,
body .header-b2b__brand,
body .header-b2b__logo-wrap,
body .header-b2b__logo-box{
  justify-self: start !important;
  margin-left: -6px !important;
}

body .header-b2b-brand__link,
body .header-b2b__brand-link{
  padding-left: 0 !important;
}

/* 2026-05-09 FINAL: logo left align with hero */
body .header-b2b .header-b2b-brand{
  margin-left:0 !important;
}

body .header-b2b .header-b2b-brand__leaf{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  flex-basis:44px !important;
}

body .header-b2b .header-b2b-brand__link{
  gap:9px !important;
}

body .header-b2b .header-b2b-brand__name{
  gap:2px !important;
}

@media (max-width:767.98px){
  body .header-b2b .header-b2b-brand{
    margin-left:0 !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    flex-basis:36px !important;
  }
}

/* 2026-05-09 FINAL: header visual tune
   1) logo block closer to left edge like final mockup
   2) news/fav/message icons calmer dark-gray
*/
body .header-b2b .header-b2b-brand{
  margin-left:0 !important;
}

body .header-b2b .header-b2b-brand__leaf{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  flex-basis:44px !important;
}

body .header-b2b .header-b2b-brand__link{
  gap:9px !important;
}

body .header-b2b .header-b2b-brand__name{
  gap:2px !important;
}

/* Header right side: как в финальной версии — спокойный тёмно-серый */
body .header-b2b .header-link--news,
body .header-b2b .header-b2b-news,
body .header-b2b a[href="/news"]{
  color:#2f3731 !important;
  font-weight:700 !important;
}

body .header-b2b .header_icon,
body .header-b2b .header-b2b-icon,
body .header-b2b .header-b2b-user{
  color:#2f3731 !important;
  background:transparent !important;
}

body .header-b2b .header_icon img,
body .header-b2b .header-b2b-icon img{
  opacity:.88 !important;
  filter:grayscale(1) brightness(.38) !important;
}

body .header-b2b .header_icon:hover img,
body .header-b2b .header-b2b-icon:hover img{
  opacity:1 !important;
  filter:grayscale(1) brightness(.25) !important;
}

@media (max-width:767.98px){
  body .header-b2b .header-b2b-brand{
    margin-left:0 !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    flex-basis:36px !important;
  }
}

/* 2026-05-09 FINAL: header and logo hard align
   Шапка вровень с hero, логотип от левого края контейнера.
*/
@media (min-width:1280px){
  body .header-b2b{
    width:min(calc(100% - 200px), 1648px) !important;
    max-width:1648px !important;
    height:64px !important;
    min-height:64px !important;
    margin:0 auto 12px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
    grid-template-columns:330px minmax(520px, 1fr) auto 34px 34px 54px !important;
    gap:28px !important;
  }

  body .header-b2b .header-b2b-brand{
    margin-left:0 !important;
    justify-self:start !important;
  }
}

@media (min-width:1280px) and (max-width:1500px){
  body .header-b2b{
    width:calc(100% - 32px) !important;
    max-width:1648px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    grid-template-columns:300px minmax(420px, 1fr) auto 34px 34px 48px !important;
    gap:18px !important;
  }
}

/* 2026-05-09 FIX: remove huge side gaps after width experiment */
@media (min-width:1280px){
  body .header-b2b,
  body .home-b2b-page{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  body .header-b2b{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

@media (min-width:768px) and (max-width:1279.98px){
  body .header-b2b,
  body .home-b2b-page{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* 2026-05-09 FINAL: search icon left + shorter search + gray nav */
@media (min-width:1280px){
  body .header-b2b{
    grid-template-columns:330px minmax(460px, 680px) auto 34px 34px 54px !important;
    gap:26px !important;
  }

  body .header-b2b .header-b2b__search{
    max-width:680px !important;
    justify-self:start !important;
  }
}

body .header-b2b .header-b2b__search::before{
  content:"" !important;
  position:absolute !important;
  left:18px !important;
  top:50% !important;
  width:18px !important;
  height:18px !important;
  transform:translateY(-50%) scaleX(-1) !important;
  z-index:2 !important;
  background:no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' stroke='%236f7f73' stroke-width='2.4'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%236f7f73' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

body .header-b2b .header-b2b__search input[type="text"]{
  padding-left:48px !important;
  padding-right:106px !important;
}

body .header-b2b .header-b2b__search input[type="submit"]{
  width:82px !important;
  min-width:82px !important;
}

/* Новости / сердце / конверт — серые, как в финальной версии */
body .header-b2b .header-b2b__news{
  color:#5f6862 !important;
  font-weight:700 !important;
}

body .header-b2b .header-b2b__icon img{
  opacity:.62 !important;
  filter:grayscale(1) brightness(.55) !important;
}

body .header-b2b .header-b2b__icon:hover img{
  opacity:.9 !important;
  filter:grayscale(1) brightness(.42) !important;
}

/* 2026-05-09 FINAL: hard fix logo left and gray news */
body .header-b2b{
  padding-left:0 !important;
  padding-right:0 !important;
}

body .header-b2b .header-b2b-brand{
  margin-left:0 !important;
  padding-left:0 !important;
  justify-self:start !important;
  transform:none !important;
}

body .header-b2b .header-b2b-brand__link{
  margin-left:0 !important;
  padding-left:0 !important;
  transform:none !important;
}

body .header-b2b .header-b2b-brand__leaf{
  margin-left:0 !important;
}

/* Новости точно серые */
body .header-b2b .header-b2b__news,
body .header-b2b a.header-b2b__news,
body .header-b2b a[href="/news"]{
  color:#6f7670 !important;
  font-weight:700 !important;
}

/* Сердце и конверт серые */
body .header-b2b .header-b2b__icon img,
body .header-b2b a[aria-label="Избранное"] img,
body .header-b2b a[aria-label="Сообщения"] img{
  opacity:.62 !important;
  filter:grayscale(1) brightness(.55) !important;
}

/* 2026-05-09 FINAL: header starts from page left edge
   Шапка не центрируется. Лого/листочки начинаются у левого края страницы как hero.
*/
@media (min-width:768px){
  body .header-b2b{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin:0 8px 8px 8px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    left:auto !important;
    right:auto !important;
    box-sizing:border-box !important;
  }

  body .header-b2b .header-b2b-brand,
  body .header-b2b .header-b2b-brand__link{
    margin-left:0 !important;
    padding-left:0 !important;
    justify-self:start !important;
    transform:none !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    margin-left:0 !important;
  }
}

/* Новости / сердце / конверт — серые */
body .header-b2b .header-b2b__news,
body .header-b2b a.header-b2b__news,
body .header-b2b a[href="/news"]{
  color:#6f7670 !important;
}

body .header-b2b .header-b2b__icon img,
body .header-b2b a[aria-label="Избранное"] img,
body .header-b2b a[aria-label="Сообщения"] img{
  opacity:.62 !important;
  filter:grayscale(1) brightness(.55) !important;
}

/* 2026-05-09 FINAL: TRUE left edge header logo
   Бьём именно #container.header-b2b, потому что класс container тянет старые отступы.
*/
@media (min-width:768px){
  body #container.header-b2b{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:8px !important;
    margin-right:8px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
  }

  body #container.header-b2b .header-b2b-brand{
    grid-column:1 !important;
    justify-self:start !important;
    align-self:center !important;
    margin-left:0 !important;
    padding-left:0 !important;
    transform:none !important;
    left:0 !important;
  }

  body #container.header-b2b .header-b2b-brand__link{
    margin-left:0 !important;
    padding-left:0 !important;
    transform:none !important;
    left:0 !important;
  }

  body #container.header-b2b .header-b2b-brand__leaf{
    margin-left:0 !important;
    padding-left:0 !important;
  }
}

/* На большом экране: лого прямо от левого края, поиск после него */
@media (min-width:1280px){
  body #container.header-b2b{
    grid-template-columns:330px minmax(460px, 680px) auto 34px 34px 54px !important;
    gap:26px !important;
  }

  body #container.header-b2b .header-b2b__search{
    grid-column:2 !important;
    max-width:680px !important;
    justify-self:start !important;
  }
}

/* Новости / избранное / сообщения — серые */
body #container.header-b2b .header-b2b__news,
body #container.header-b2b a.header-b2b__news,
body #container.header-b2b a[href="/news"]{
  color:#6f7670 !important;
}

body #container.header-b2b .header-b2b__icon img,
body #container.header-b2b a[aria-label="Избранное"] img,
body #container.header-b2b a[aria-label="Сообщения"] img{
  opacity:.62 !important;
  filter:grayscale(1) brightness(.55) !important;
}

/* 2026-05-09 FINAL: header without old container
   У шапки больше нет старого .container/#container, поэтому лого реально от левого края.
*/
@media (min-width:768px){
  body .header-b2b#header-b2b{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 8px 8px 8px !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }

  body .header-b2b#header-b2b .header-b2b-brand,
  body .header-b2b#header-b2b .header-b2b-brand__link{
    margin-left:0 !important;
    padding-left:0 !important;
    transform:none !important;
    justify-self:start !important;
  }
}

@media (min-width:1280px){
  body .header-b2b#header-b2b{
    grid-template-columns:330px minmax(460px, 680px) auto 34px 34px 54px !important;
    gap:26px !important;
  }
}

/* Новости / сердце / конверт — серые */
body .header-b2b#header-b2b .header-b2b__news,
body .header-b2b#header-b2b a.header-b2b__news,
body .header-b2b#header-b2b a[href="/news"]{
  color:#6f7670 !important;
}

body .header-b2b#header-b2b .header-b2b__icon img,
body .header-b2b#header-b2b a[aria-label="Избранное"] img,
body .header-b2b#header-b2b a[aria-label="Сообщения"] img{
  opacity:.62 !important;
  filter:grayscale(1) brightness(.55) !important;
}

/* 2026-05-09 FINAL: inline svg header icons + adaptive header */
body .header-b2b .header-b2b__icon{
  color:#6f7670 !important;
}

body .header-b2b .header-b2b__svgicon{
  width:24px !important;
  height:24px !important;
  display:block !important;
  fill:currentColor !important;
  color:#6f7670 !important;
  opacity:1 !important;
}

body .header-b2b a[aria-label="Сообщения"] .header-b2b__svgicon{
  width:25px !important;
  height:25px !important;
}

body .header-b2b .header-b2b__icon:hover .header-b2b__svgicon{
  color:#4f5852 !important;
}

/* гасим старые img-правила, если где-то остались */
body .header-b2b .header-b2b__icon img{
  width:24px !important;
  height:24px !important;
  opacity:.7 !important;
  filter:grayscale(1) brightness(.55) !important;
}

/* 992–1279: поиск не должен залезать на логотип */
@media (min-width:992px) and (max-width:1279.98px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    width:calc(100% - 16px) !important;
    margin:0 8px 8px !important;
    display:grid !important;
    grid-template-columns:minmax(230px, 270px) minmax(300px, 1fr) auto 34px 34px 44px !important;
    gap:14px !important;
    align-items:center !important;
    overflow:visible !important;
  }

  body .header-b2b .header-b2b-brand{
    width:270px !important;
    min-width:230px !important;
    overflow:hidden !important;
  }

  body .header-b2b .header-b2b-brand__link{
    width:100% !important;
    gap:8px !important;
    overflow:hidden !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    flex-basis:36px !important;
  }

  body .header-b2b .header-b2b-brand__name{
    font-size:25px !important;
    letter-spacing:-1px !important;
  }

  body .header-b2b .header-b2b-brand__tagline{
    font-size:11px !important;
  }

  body .header-b2b .header-b2b__search{
    min-width:0 !important;
    max-width:none !important;
    width:100% !important;
    justify-self:stretch !important;
  }

  body .header-b2b .header-b2b__search input[type="text"]{
    min-width:0 !important;
    width:100% !important;
  }
}

/* 768–991: ещё компактнее */
@media (min-width:768px) and (max-width:991.98px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    grid-template-columns:220px minmax(260px, 1fr) 34px 34px 40px !important;
    gap:10px !important;
  }

  body .header-b2b .header-b2b__news{
    display:none !important;
  }

  body .header-b2b .header-b2b-brand{
    width:220px !important;
    min-width:220px !important;
    overflow:hidden !important;
  }

  body .header-b2b .header-b2b-brand__leaf{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    flex-basis:34px !important;
  }

  body .header-b2b .header-b2b-brand__name{
    font-size:22px !important;
    letter-spacing:-1px !important;
  }

  body .header-b2b .header-b2b-brand__tagline{
    font-size:10px !important;
  }
}

/* 2026-05-09 FINAL: right header spacing + clean stat dots */
@media (min-width:992px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    gap:18px !important;
  }

  body .header-b2b .header-b2b__news{
    justify-self:end !important;
    margin-left:0 !important;
    margin-right:-2px !important;
    color:#6f7670 !important;
  }

  body .header-b2b .header-b2b__icon{
    margin:0 !important;
    color:#6f7670 !important;
  }

  body .header-b2b .header-b2b__profile{
    margin-left:0 !important;
  }
}

@media (min-width:1280px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    grid-template-columns:330px minmax(460px, 680px) auto 34px 34px 54px !important;
    column-gap:20px !important;
  }
}

@media (min-width:992px) and (max-width:1279.98px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    grid-template-columns:minmax(230px,270px) minmax(300px,1fr) auto 34px 34px 44px !important;
    column-gap:14px !important;
  }
}

/* 2026-05-09 FIX: mobile header search collapsed */
@media (max-width:767.98px){
  body .header-b2b#header-b2b,
  body .header-b2b{
    grid-template-columns:minmax(0,1fr) 40px 40px 40px !important;
    gap:8px !important;
    padding:8px 10px !important;
    overflow:visible !important;
  }

  body .header-b2b .header-b2b-brand{
    min-width:0 !important;
    width:auto !important;
  }

  body .header-b2b .header-b2b__news{
    display:none !important;
  }

  body .header-b2b .header-b2b__search{
    grid-column:2 !important;
    grid-row:1 !important;
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    justify-self:end !important;
    z-index:20 !important;
  }

  body .header-b2b .header-b2b__search input[type="text"]{
    display:none !important;
  }

  body .header-b2b .header-b2b__search input[type="submit"]{
    position:static !important;
    transform:none !important;
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    border-radius:12px !important;
    padding:0 !important;
    font-size:25px !important;
    line-height:40px !important;
    font-weight:900 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  body .header-b2b .header-b2b__search.is-open{
    position:absolute !important;
    left:10px !important;
    right:10px !important;
    top:8px !important;
    width:auto !important;
    height:44px !important;
    display:flex !important;
    z-index:2000 !important;
  }

  body .header-b2b .header-b2b__search.is-open input[type="text"]{
    display:block !important;
    width:100% !important;
    height:44px !important;
    padding:0 88px 0 14px !important;
    border:1px solid #dfe8df !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 8px 22px rgba(0,0,0,.12) !important;
    font-size:14px !important;
  }

  body .header-b2b .header-b2b__search.is-open input[type="submit"]{
    position:absolute !important;
    right:5px !important;
    top:5px !important;
    width:76px !important;
    min-width:76px !important;
    height:34px !important;
    font-size:13px !important;
    line-height:34px !important;
    border-radius:10px !important;
  }
}

/* 2026-05-09 HARD FIX: mobile search gray icon no green bg */
@media (max-width:767.98px){
  body .header-b2b .header-b2b__search:not(.is-open){
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open)::before{
    display:none !important;
    content:none !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open) input[type="text"]{
    display:none !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open) input[type="submit"]{
    position:static !important;
    inset:auto !important;
    transform:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#7d837e !important;
    font-size:0 !important;
    line-height:1 !important;
    text-indent:-9999px !important;
    overflow:hidden !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open) input[type="submit"]::after{
    content:"⌕" !important;
    text-indent:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    height:44px !important;
    color:#7d837e !important;
    font-size:38px !important;
    line-height:44px !important;
    font-weight:900 !important;
  }

  body .header-b2b .header-b2b__icon,
  body .header-b2b .header-b2b__icon svg,
  body .header-b2b .header-b2b__svgicon{
    color:#7d837e !important;
    fill:#7d837e !important;
  }
}

/* 2026-05-09 HARD FIX: mobile lupa as gray svg background */
@media (max-width:767.98px){
  body .header-b2b .header-b2b__search:not(.is-open){
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open)::before{
    display:none !important;
    content:none !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open) input[type="text"]{
    display:none !important;
  }

  body .header-b2b .header-b2b__search:not(.is-open) input[type="submit"]{
    position:static !important;
    transform:none !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background-color:transparent !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' stroke='%237d837e' stroke-width='2.8'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%237d837e' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;
    background-position:center !important;
    background-size:30px 30px !important;
    box-shadow:none !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    text-indent:-9999px !important;
    overflow:hidden !important;
    opacity:1 !important;
  }

  body .header-b2b .header-b2b__icon,
  body .header-b2b .header-b2b__svgicon{
    color:#7d837e !important;
    fill:#7d837e !important;
  }
}


/* 2026-05-09: header gray text/icons */
body .header-b2b .header-b2b-brand__tagline{
  color:#969797 !important;
}

body .header-b2b .header-b2b__news,
body .header-b2b a[href="/news"]{
  color:#969797 !important;
}

body .header-b2b .header-b2b__svg{
  width:24px !important;
  height:24px !important;
  display:block !important;
  fill:none !important;
  stroke:#969797 !important;
  stroke-width:2.2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

body .header-b2b .header-b2b__icon{
  color:#969797 !important;
}

body .header-b2b .header-b2b__icon:hover .header-b2b__svg,
body .header-b2b .header-b2b__news:hover{
  stroke:#6f7670 !important;
  color:#6f7670 !important;
}

@media (max-width:767.98px){
  body .header-b2b .header-b2b__svg{
    width:26px !important;
    height:26px !important;
  }
}

/* 2026-05-09: mobile header icons same as desktop */
@media (max-width:767.98px){
  body .header-b2b .header-b2b__icon,
  body .header-b2b a.header-b2b__icon,
  body .header-b2b .header-b2b__search-toggle{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#969797!important;
  }

  body .header-b2b .header-b2b__svg{
    width:24px!important;
    height:24px!important;
    fill:none!important;
    stroke:#969797!important;
    stroke-width:2.1!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  body .header-b2b .header-b2b__icon svg,
  body .header-b2b .header-b2b__search-toggle svg{
    width:24px!important;
    height:24px!important;
    fill:none!important;
    stroke:#969797!important;
  }

  body .header-b2b .header-b2b__icon img{
    width:24px!important;
    height:24px!important;
    object-fit:contain!important;
    opacity:.72!important;
    filter:grayscale(1) brightness(.62)!important;
  }

  body .header-b2b .header-b2b__news{
    color:#969797!important;
    background:transparent!important;
  }
}
