/* =========================================================
   SC Header Redesign — san-control.ru
   Tokens + Desktop (3 levels) + Mobile Top/Bottom + Drawer
   ========================================================= */

:root {
  --sc-primary: #277A58;
  --sc-accent: #20A063;
  --sc-accent-hover: #198250;
  --sc-mint: #F0F9F5;
  --sc-emergency: #E53935;
  --sc-text: #111827;
  --sc-muted: #6B7280;
  --sc-utility-bg: #F8FAFC;
  --sc-border: #E2E8F0;
  --sc-border-strong: #CBD5E1;
  --sc-wa: #25D366;
  --sc-tg: #229ED9;
  --sc-tg-bar: #0088CC;
  --sc-max: #6B2FFF;
  --sc-max-bar: linear-gradient(135deg, #0077FF 0%, #8C00FF 100%);
  --sc-shadow-sticky: 0 4px 20px rgba(0, 0, 0, 0.06);
  --sc-shadow-mega: 0 20px 40px rgba(0, 0, 0, 0.12);
  --sc-font: "Manrope", system-ui, sans-serif;
  --sc-font-display: "Exo 2", "Manrope", sans-serif;
  --sc-container: 1280px;
  --sc-utility-h: 38px;
  --sc-main-h: 76px;
  --sc-nav-h: 50px;
  --sc-mobile-top-h: 56px;
  --sc-mobile-bottom-h: 60px;
  --sc-z-header: 1000;
  --sc-z-drawer: 1100;
  --sc-z-bottom: 999;
}

/* ---- Hide legacy header chrome when new header present ---- */
body.sc-header-on > header.useradmin_panel { z-index: 1200; }
body.sc-header-on #main_wrapper > header:not(.sc-site-header),
body.sc-header-on #main_wrapper > header .m_header,
body.sc-header-on #main_wrapper > header .hhed {
  /* old header chunk replaced entirely */
}

.sc-site-header,
.sc-site-header *,
.sc-drawer,
.sc-drawer *,
.sc-mobile-bottom,
.sc-mobile-bottom * {
  box-sizing: border-box;
  font-family: var(--sc-font);
}

.sc-container {
  width: 100%;
  max-width: var(--sc-container);
  margin: 0 auto;
  padding: 0;
}

.sc-site-header {
  position: relative;
  z-index: var(--sc-z-header);
  background: #fff;
  border: 0;
  box-shadow: none;
}
/* Тень под всем статичным хэдером — через ::after, чтобы не клипалась */
.sc-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0));
}
.sc-navwrap:not(.is-stuck) {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}
/* Бесшовный стык mainbar → nav без линий-рамок */
.sc-site-header .sc-mainbar,
.sc-site-header .sc-navwrap,
.sc-site-header .sc-mainbar + .sc-navwrap {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.sc-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.sc-icon--fill { fill: currentColor; stroke: none; }
.sc-icon--mobile {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

/* ========== 3.1 Top Utility Bar ========== */
.sc-utility {
  height: var(--sc-utility-h);
  background: var(--sc-utility-bg);
  border-bottom: 1px solid var(--sc-border);
  color: var(--sc-muted);
  font-size: 12px;
  line-height: 1;
}

.sc-utility__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-utility__left,
.sc-utility__right,
.sc-utility__center {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sc-utility__sep {
  width: 1px;
  height: 16px;
  background: var(--sc-border-strong);
  flex-shrink: 0;
}

.sc-utility__link,
.sc-utility__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sc-muted);
  text-decoration: none;
  white-space: nowrap;
}

.sc-utility__link:hover,
.sc-utility__item:hover { color: var(--sc-primary); }

.sc-utility__item .sc-icon,
.sc-utility__link .sc-icon { color: var(--sc-primary); }

.sc-geo {
  position: relative;
}

.sc-geo__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--sc-muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.sc-geo__btn:hover,
.sc-geo__btn:focus-visible { color: var(--sc-primary); outline: none; }

.sc-geo__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  box-shadow: var(--sc-shadow-mega);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 20;
}

.sc-geo.is-open .sc-geo__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sc-geo__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sc-text);
  text-decoration: none;
  font-size: 13px;
}

.sc-geo__menu a:hover { background: var(--sc-mint); color: var(--sc-primary); }

.sc-utility__center {
  flex: 1;
  justify-content: center;
}

.sc-utility__license {
  color: var(--sc-text);
  font-weight: 600;
}

.sc-messengers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-messengers__label { color: var(--sc-muted); }

.sc-msg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.sc-msg--wa { background: var(--sc-wa); }
.sc-msg--max { background: var(--sc-max-bar); }
.sc-msg--tg { background: var(--sc-tg); }
.sc-msg:hover,
.sc-msg:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
  outline: none;
}
.sc-msg .sc-icon { width: 14px; height: 14px; color: #fff; }
.sc-msg img.sc-icon--max,
.sc-msg img.sc-msg__img { width: 16px; height: 16px; display: block; }

/* ========== 3.2 Main Branding Bar ========== */
.sc-mainbar {
  height: var(--sc-main-h);
  background: #fff;
  border: 0;
  border-bottom: 0 !important;
  box-shadow: none;
}

.sc-mainbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.sc-brand__logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.sc-brand__divider {
  width: 1px;
  height: 40px;
  background: var(--sc-border);
  flex-shrink: 0;
}

.sc-brand__text { min-width: 0; max-width: 220px; }
.sc-brand__desc {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sc-muted);
  line-height: 1.35;
}

.sc-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--sc-mint);
  border-radius: 10px;
  border: 1px solid #D1FAE5;
}

.sc-availability__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sc-accent);
  position: relative;
  flex-shrink: 0;
}

.sc-availability__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--sc-accent);
  opacity: .35;
  animation: sc-pulse 2s infinite;
}

@keyframes sc-pulse {
  0% { transform: scale(.6); opacity: .5; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(.6); opacity: 0; }
}

.sc-availability__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.25;
}
.sc-availability__text strong {
  color: var(--sc-text);
  font-weight: 700;
  font-size: 13px;
}
.sc-availability__text span { color: var(--sc-muted); }

.sc-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sc-contacts__phone {
  font-family: var(--sc-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--sc-text);
  text-decoration: none;
  line-height: 1.1;
}
.sc-contacts__phone:hover { color: var(--sc-primary); }

.sc-contacts__recall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--sc-primary);
}
.sc-contacts__recall:hover { border-bottom-color: transparent; }

.sc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--sc-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.sc-cta:hover,
.sc-cta:focus-visible {
  background: var(--sc-accent-hover);
  box-shadow: 0 8px 20px rgba(32, 160, 99, .35);
  outline: none;
}
.sc-cta:active { transform: translateY(1px); }
.sc-cta .sc-icon { width: 18px; height: 18px; }

/* ========== 3.3 Sticky Nav — Light & Clean ========== */
/* Override legacy `nav { background: linear-gradient(#f3f3f3...) }` from style.css */
.sc-navwrap,
.sc-navwrap nav.sc-nav,
nav.sc-nav {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

.sc-navwrap {
  position: sticky;
  top: 0;
  z-index: var(--sc-z-header);
  transition: box-shadow .2s ease, background-color .2s ease;
}

/* Тень только в sticky — без линий-рамок у полосы */
.sc-navwrap.is-stuck {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.sc-navwrap.is-stuck,
.sc-navwrap.is-stuck nav.sc-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 0 !important;
}

.sc-navwrap nav.sc-nav::before,
.sc-navwrap nav.sc-nav::after,
nav.sc-nav::before,
nav.sc-nav::after {
  content: none !important;
  display: none !important;
}

.sc-nav {
  height: var(--sc-nav-h);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px;
  float: none !important;
}

.sc-nav__list {
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  flex-wrap: nowrap;
  float: none !important;
  height: 100%;
}

.sc-nav__list > li {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  height: 100%;
  display: flex !important;
  align-items: center !important;
}

.sc-nav__link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 34px !important;
  line-height: 1.2 !important;
  padding: 0 12px !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  background: transparent !important;
  transition: color .2s ease;
}
.sc-nav__link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #20A063;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
}
.sc-nav__link:hover,
.sc-nav__link:focus-visible {
  background: transparent !important;
  color: #20A063 !important;
  outline: none;
}
.sc-nav__link:hover::after,
.sc-nav__link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
span.sc-nav__link,
span.sc-drawer__link,
span.sc-brand,
span.is-current {
  cursor: default;
}
span.sc-nav__link.is-current:not(.sc-nav__link--catalog):not(.sc-nav__link--b2b) {
  color: #20A063 !important;
  pointer-events: none;
}
span.sc-nav__link.is-current:not(.sc-nav__link--catalog):not(.sc-nav__link--b2b)::after {
  opacity: 1;
  transform: translateY(0);
}
span.sc-drawer__link.is-current {
  pointer-events: none;
  background: var(--sc-mint) !important;
  color: var(--sc-primary) !important;
}
span.sc-nav__link--catalog.is-current {
  cursor: pointer;
}

/* B2B — mint outline pill */
.sc-nav__link--b2b {
  height: 34px !important;
  padding: 0 14px !important;
  margin-right: 4px !important;
  background: #E8F5E9 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.sc-nav__link--b2b::after { display: none !important; }
.sc-nav__link--b2b:hover,
.sc-nav__link--b2b:focus-visible,
span.sc-nav__link--b2b.is-current {
  background: #DCFCE7 !important;
  color: #166534 !important;
}

/* Catalog / Услуги — solid green + hamburger */
.sc-nav__item--mega {
  z-index: 2;
}
.sc-nav__link--catalog {
  height: 34px !important;
  padding: 0 16px 0 12px !important;
  gap: 8px !important;
  margin: 0 6px 0 0 !important;
  background: #20A063 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: none;
  position: relative;
  top: 0;
  align-self: center !important;
}
.sc-nav__link--catalog::after { display: none !important; }
.sc-nav__link--catalog:hover,
.sc-nav__link--catalog:focus-visible {
  background: #198250 !important;
  color: #FFFFFF !important;
  box-shadow: none;
}
.sc-nav__item.is-open > .sc-nav__link--catalog {
  background: #198250 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

.sc-burger {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.sc-burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s ease;
}
.sc-nav__item.is-open .sc-burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sc-nav__item.is-open .sc-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sc-nav__item.is-open .sc-burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sc-nav__chev {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}
.sc-nav__item.is-open .sc-nav__chev { transform: rotate(180deg); }

.sc-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sc-search {
  position: relative;
  display: flex;
  align-items: center;
}

.sc-search__toggle {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #F3F4F6;
  color: #4B5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.sc-search__toggle .sc-icon {
  width: 16px;
  height: 16px;
}
.sc-search__toggle:hover,
.sc-search__toggle:focus-visible {
  background: #E5E7EB;
  color: #111827;
  outline: none;
}

.sc-search__panel {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 0;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: width .25s ease, opacity .2s ease;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--sc-shadow-sticky);
  z-index: 40;
  padding: 0 0 0 2px;
}

.sc-search.is-open .sc-search__panel {
  width: 320px;
  opacity: 1;
  pointer-events: auto;
}

.sc-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  box-shadow: var(--sc-shadow-mega);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: var(--sc-primary) transparent;
}
.sc-suggest::-webkit-scrollbar {
  width: 3px;
}
.sc-suggest::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.sc-suggest::-webkit-scrollbar-thumb {
  background: var(--sc-primary);
  border-radius: 999px;
}
.sc-suggest::-webkit-scrollbar-thumb:hover {
  background: var(--sc-accent);
}
.sc-suggest::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.sc-suggest[hidden] { display: none !important; }
.sc-suggest__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.sc-suggest__item:hover,
.sc-suggest__item.is-active {
  background: var(--sc-mint);
  color: var(--sc-primary);
}
.sc-suggest__empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--sc-muted);
}
.sc-suggest--drawer {
  position: relative;
  top: 0;
  margin-top: 8px;
  left: auto;
  right: auto;
}
.sc-drawer__search {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sc-border);
}
.sc-drawer__search form {
  position: relative;
  display: block;
  margin: 0;
}
.sc-drawer__search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 14px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  box-sizing: border-box;
}
.sc-drawer__search-icon {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
}
.sc-drawer__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  margin: 0;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--sc-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.sc-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 10px 34px 10px 4px;
  font: inherit;
  font-size: 14px;
  color: var(--sc-text);
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.sc-search__clear {
  flex-shrink: 0;
  width: 32px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #1e3a8a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-search__clear[hidden] { display: none !important; }
.sc-search__clear:hover,
.sc-search__clear:focus-visible {
  color: #111827;
  outline: none;
}
.sc-search__clear--drawer {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #1e3a8a;
}

.sc-search__submit {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--sc-primary);
  padding: 0 6px 0 8px;
  cursor: pointer;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sc-sos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #E53935;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.sc-sos:hover,
.sc-sos:focus-visible {
  background: #C62828;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
  transform: translateY(-1px);
  outline: none;
}
.sc-sos:active { transform: translateY(0); }

/* ========== 3.4 Mega Menu ========== */
.sc-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 32px, var(--sc-container));
  margin: 0;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--sc-shadow-mega);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
  z-index: 30;
}

.sc-nav__item.is-open .sc-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

/* hover bridge removed — open by click only */
.sc-nav__item--mega::after {
  content: none;
  display: none;
}

.sc-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sc-mega__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--sc-font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sc-primary);
}

.sc-mega__col-title .sc-icon { width: 18px; height: 18px; }

.sc-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-mega__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  color: var(--sc-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.sc-mega__list a:hover {
  background: var(--sc-mint);
  color: var(--sc-primary);
}

.sc-mega__price {
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--sc-font-display);
}

.sc-mega__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--sc-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  vertical-align: middle;
}

.sc-mega__b2b {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--sc-mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--sc-text);
  border: 1px solid #D1FAE5;
}
.sc-mega__b2b:hover { border-color: var(--sc-accent); }
.sc-mega__b2b strong { color: var(--sc-primary); }
.sc-mega__b2b span { color: var(--sc-muted); font-size: 13px; }
.sc-mega__b2b-cta {
  flex-shrink: 0;
  color: var(--sc-accent);
  font-weight: 700;
  font-size: 13px;
}

/* ========== Mobile Top Bar ========== */
.sc-mobile-top {
  display: none;
  height: var(--sc-mobile-top-h);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: var(--sc-z-header);
  transform: translateY(0);
  transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.sc-mobile-top.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
  pointer-events: none;
}

.sc-mobile-top__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}

.sc-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.sc-icon-btn .sc-icon,
.sc-icon-btn svg {
  width: 22px;
  height: 22px;
  color: #111827;
  stroke: #111827;
}
.sc-icon-btn:hover,
.sc-icon-btn:focus-visible { background: var(--sc-mint); outline: none; }

.sc-mobile-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--sc-text);
  min-width: 0;
}
.sc-mobile-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.sc-mobile-brand span {
  font-size: 10px;
  color: var(--sc-muted);
  margin-top: 2px;
}

.sc-mobile-call {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sc-accent);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s ease;
}
.sc-mobile-call svg,
.sc-mobile-call .sc-icon,
.sc-mobile-call .sc-icon--mobile {
  width: 20px !important;
  height: 20px !important;
  display: block;
  color: #fff !important;
  stroke: #fff !important;
  fill: none !important;
}
.sc-mobile-call svg path {
  stroke: #fff !important;
  fill: none !important;
}
.sc-mobile-call:hover,
.sc-mobile-call:focus-visible { background: var(--sc-accent-hover); outline: none; }

/* ========== Mobile Bottom Bar ========== */
.sc-mobile-bottom {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--sc-z-bottom);
  height: calc(var(--sc-mobile-bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #E5E7EB;
}

.sc-mobile-bottom__inner {
  height: var(--sc-mobile-bottom-h);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.sc-mobile-bottom__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: filter .15s ease;
}
.sc-mobile-bottom__btn:active { filter: brightness(.95); }
.sc-mobile-bottom__btn .sc-icon,
.sc-mobile-bottom__btn svg {
  width: 20px;
  height: 20px;
  color: #fff !important;
  stroke: #fff !important;
  fill: none;
}
.sc-mobile-bottom__btn svg path,
.sc-mobile-bottom__btn svg rect,
.sc-mobile-bottom__btn svg circle,
.sc-mobile-bottom__btn svg line {
  stroke: #fff !important;
}
.sc-mobile-bottom__btn--call { background: var(--sc-primary); }
.sc-mobile-bottom__btn--tg { background: var(--sc-tg-bar); }
.sc-mobile-bottom__btn--max { background: var(--sc-max-bar); }
.sc-mobile-bottom__btn--max img.sc-icon--max {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.sc-mobile-bottom__btn--calc { background: var(--sc-accent); }

/* Hide legacy sticky when new one present */
body.sc-header-on .mobile-sticky-container { display: none !important; }

/* ========== Drawer ========== */
.sc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: calc(var(--sc-z-drawer) - 1);
}

.sc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(85vw, 380px);
  background: #fff;
  z-index: var(--sc-z-drawer);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.sc-drawer-open { overflow: hidden; }
body.sc-drawer-open .sc-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}
body.sc-drawer-open .sc-drawer {
  transform: translateX(0);
}

.sc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sc-border);
  gap: 8px;
}
.sc-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sc-text);
  min-width: 0;
}
.sc-drawer__brand img { height: 36px; width: auto; }
.sc-drawer__city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--sc-muted);
  border-bottom: 1px solid var(--sc-border);
}
.sc-drawer__city button {
  border: 0;
  background: transparent;
  color: var(--sc-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

.sc-drawer__search {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sc-border);
}
.sc-drawer__search form {
  display: block;
  margin: 0;
}
.sc-drawer__search input.sc-drawer__search-input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--sc-text);
  height: 44px;
  line-height: 44px;
  padding: 0;
  margin: 0;
}

.sc-drawer__sos {
  margin: 12px 14px;
  padding: 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
}
.sc-drawer__sos p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sc-text);
  line-height: 1.4;
  font-weight: 600;
}
.sc-drawer__sos .sc-cta {
  width: 100%;
  background: var(--sc-emergency);
  padding: 10px 14px;
}
.sc-drawer__sos .sc-cta:hover {
  background: #c62828;
  box-shadow: 0 8px 20px rgba(229,57,53,.3);
}

.sc-drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.sc-acc {
  border-bottom: 1px solid var(--sc-border);
}
.sc-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--sc-text);
  cursor: pointer;
  text-align: left;
}
.sc-acc__btn .sc-icon { transition: transform .2s ease; color: var(--sc-muted); }
.sc-acc.is-open .sc-acc__btn .sc-icon { transform: rotate(180deg); }
.sc-acc__panel {
  display: none;
  padding: 0 8px 12px;
}
.sc-acc.is-open .sc-acc__panel { display: block; }
.sc-acc__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sc-text);
  text-decoration: none;
  font-size: 14px;
}
.sc-acc__panel a:hover { background: var(--sc-mint); color: var(--sc-primary); }

.sc-drawer__nav a.sc-drawer__link,
.sc-drawer__nav span.sc-drawer__link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--sc-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--sc-border);
}
.sc-drawer__nav a.sc-drawer__link:hover { background: var(--sc-mint); }
.sc-drawer__link--b2b {
  background: var(--sc-mint);
  color: var(--sc-primary) !important;
}

.sc-drawer__contacts {
  padding: 16px;
  border-top: 1px solid var(--sc-border);
  margin-top: 8px;
}
.sc-drawer__phone {
  display: block;
  font-family: var(--sc-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--sc-text);
  text-decoration: none;
  margin-bottom: 4px;
}
.sc-drawer__hours {
  font-size: 13px;
  color: var(--sc-muted);
  margin-bottom: 12px;
}
.sc-drawer__msgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sc-drawer__msgs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.sc-drawer__msgs a.wa { background: var(--sc-wa); }
.sc-drawer__msgs a.max { background: var(--sc-max-bar); }
.sc-drawer__msgs a.max img { width: 18px; height: 18px; display: block; }
.sc-drawer__msgs a.tg { background: var(--sc-tg); }

.sc-drawer__foot {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--sc-border);
  background: var(--sc-utility-bg);
}
.sc-drawer__lic {
  font-size: 11px;
  color: var(--sc-muted);
  margin-bottom: 10px;
  line-height: 1.35;
}
.sc-drawer__foot .sc-contacts__recall {
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .sc-availability { display: none; }
  .sc-brand__desc { display: none; }
  .sc-utility__center { display: none; }
  .sc-nav__link { padding: 0 8px !important; font-size: 15px !important; }
  .sc-nav__link--catalog { font-size: 15px !important; padding: 0 12px 0 10px !important; }
  .sc-nav__link--b2b { font-size: 15px !important; padding: 0 10px !important; }
  .sc-sos span { display: none; }
}

@media (max-width: 982px) {
  .sc-utility,
  .sc-mainbar,
  .sc-navwrap {
    display: none !important;
  }
  .sc-site-header {
    min-height: var(--sc-mobile-top-h);
    background: transparent;
  }
  .sc-mobile-top {
    display: block;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--sc-z-header);
  }
  .sc-mobile-bottom {
    display: block;
  }
  body.sc-drawer-open .sc-mobile-top,
  body.sc-drawer-open .sc-mobile-top.is-hidden {
    transform: translateY(0) !important;
    pointer-events: auto;
  }
  body.sc-header-on {
    padding-bottom: calc(var(--sc-mobile-bottom-h) + env(safe-area-inset-bottom)) !important;
  }
  /* hide legacy mobile nav chrome */
  body.sc-header-on #nav_box {
    display: none !important;
  }
}

@media (min-width: 983px) {
  .sc-drawer,
  .sc-drawer-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.site-footer {
  margin: 0;
}
