/* Плавная прилипающая шапка (27.11.2026). Верхняя строка (адрес, режим) прячется сдвигом всей шапки вверх (transform),
   высота шапки и место под неё не меняются — страница не дёргается, браузер не пересчитывает раскладку на каждом шаге прокрутки. */
.site-header { position: sticky; top: 0; z-index: 40; transform: translate3d(0, 0, 0); transition: transform .28s ease; will-change: transform; }
.site-header .topbar, .site-header.is-scrolled .topbar { max-height: none !important; visibility: visible !important; transform: none !important; transition: opacity .2s ease !important; }
.site-header.is-scrolled .topbar { opacity: 0; pointer-events: none; }
.site-header.is-scrolled { transform: translate3d(0, calc(-1 * var(--topbar-height, 0px)), 0); }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .topbar { transition: none !important; } }
/* В макете на ширине от 1200 px шапка не прилипала — делаем как на остальных сайтах. */
@media (min-width: 1200px) { .site-header.header-reference { position: sticky; top: 0; } }
/* post2 */
/* Мобильная шапка (до 767 px): логотип, телефон, «Оставить заявку», меню — всё в прилипающей строке. */
.m-phone { display: none; }
@media (max-width: 767px) {
  .site-header .header-inner { display: flex !important; align-items: center; gap: 8px; min-height: 0 !important; padding-block: 0; width: calc(100vw - 24px) !important; }
  .site-header .header-brand-panel { flex: 0 0 auto; align-self: stretch; min-height: 56px; }
  .site-header .header-brand-panel .header-description { display: none !important; }
  .site-header .brand { flex: 0 0 auto !important; width: 104px; display: flex; align-items: center; }
  .site-header .brand img { max-width: 100%; height: auto; }
  .site-header .header-right { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
  .site-header .header-main-row { display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: flex-end; gap: 8px !important; width: 100%; padding-block: 8px !important; margin-left: auto; }
  .site-header .header-contact { display: flex !important; margin-left: auto !important; padding-left: 0 !important; border: 0 !important; }
  .site-header .header-contact > span { display: none !important; }
  .site-header .header-phone { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line, #ddd); border-radius: 6px; font-size: 14px !important; white-space: nowrap; }
  .site-header .header-phone .icon, .site-header .header-phone svg { width: 20px !important; height: 20px !important; margin: 0 !important; flex: 0 0 auto; }
  .site-header .header-cta { display: inline-flex !important; flex: 0 0 auto; padding: 9px 10px !important; font-size: 13px !important; white-space: nowrap; min-height: 0 !important; }
  .site-header .menu-toggle { display: inline-flex !important; flex: 0 0 auto; }
}
@media (max-width: 479px) { .site-header .header-phone { font-size: 0 !important; gap: 0 !important; padding: 0 !important; width: 40px; line-height: 0 !important; } .site-header .header-phone svg, .site-header .header-phone .icon { display: block; position: static !important; transform: none !important; } }
