/* Desktop contact actions; compact navigation keeps them inside the menu. */
#site-header .site-header__inner { gap: 16px; }
#site-header .site-header__actions { flex: 0 0 auto; gap: 12px; }
#site-header a.site-header__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 4px 0; color: #233c2c;
  font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
#site-header .site-header__phone:hover { color: #1f4d38; text-decoration: underline; text-underline-offset: 4px; }
#site-header .site-header__phone svg { flex: 0 0 auto; }
#site-header .site-header__phone:focus-visible { outline: 3px solid #9dc4ae; outline-offset: 3px; border-radius: 4px; }
#site-header .site-header__callback { display: inline-flex; padding: 11px 16px; white-space: nowrap; flex-shrink: 0; }
.callback-modal__panel { padding: 24px; }
.callback-modal__heading { margin-bottom: 20px; }
.callback-modal__eyebrow { display: block; padding-right: 40px; margin-bottom: 10px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#callback-modal-title { color: var(--brand); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
#callback-modal-desc { margin-top: 10px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
@media (max-width: 1279px) {
  #site-header a.site-header__phone,
  #site-header .site-header__callback { display: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  #site-header .site-header__inner { height: 72px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  #site-header .site-header__inner { gap: 12px; }
  #site-header .site-header__brand { gap: 8px; }
  #site-header .site-header__brand > span:last-child > span:last-child { font-size: 9px; }
  #site-header nav[aria-label="Главное меню"] > a,
  #site-header nav[aria-label="Главное меню"] button,
  #site-header .task-nav-disclosure > summary { font-size: 13px; padding-left: 8px; padding-right: 8px; }
  #site-header .site-header__actions { gap: 10px; }
  #site-header .site-header__phone { font-size: 13px; gap: 5px; }
  #site-header .site-header__callback { padding-left: 12px; padding-right: 12px; font-size: 13px; }
}
@media (max-width: 767px) {
  #site-header .site-header__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; height: 64px; gap: 8px; padding-top: 10px; padding-bottom: 10px;
  }
  #site-header .site-header__brand { grid-column: 1; grid-row: 1; gap: 8px; min-width: 0; }
  #site-header .site-header__brand > span:last-child > span:last-child { font-size: 9px; letter-spacing: 0; }
  #site-header .site-header__actions { display: contents; }
  #site-header #mobile-menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  #mobile-menu .mobile-menu-content { max-height: calc(100dvh - 64px); }
  .callback-modal__panel { padding: 24px 20px; }
  .callback-modal__heading { margin-bottom: 20px; }
  #callback-modal-title { font-size: 24px; }
}
