/**
 * Portal24 — единый floating glass header на всех городах.
 * Лежит поверх hero, одинаковый дизайн; ссылки/пункты — из branding города.
 */
:root {
  --p24-header-pad: 12px;
  --p24-header-h: 56px;
  --p24-header-radius: 999px;
  --p24-header-glass: rgba(255, 255, 255, 0.78);
  --p24-header-border: rgba(255, 255, 255, 0.7);
  --p24-header-shadow: 0 10px 36px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --p24-header-text: #1e293b;
  --p24-header-muted: #64748b;
  --p24-header-accent: #1f1f1f;
  --p24-header-accent-soft: rgba(31, 31, 31, 0.07);
}

html body .site-header.p24-glass {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: var(--p24-header-pad) 16px 0 !important;
  transform: none;
  transition: transform 0.35s ease, padding 0.25s ease;
}

html body .site-header.p24-glass.header-hidden {
  transform: translateY(calc(-100% - 8px)) !important;
}

html body .site-header.p24-glass .header-inner {
  max-width: 1450px !important;
  width: 100% !important;
  margin: 0 auto !important;
  height: var(--p24-header-h) !important;
  min-height: var(--p24-header-h) !important;
  padding: 0 10px 0 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: var(--p24-header-radius) !important;
  background: var(--p24-header-glass) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid var(--p24-header-border) !important;
  box-shadow: var(--p24-header-shadow) !important;
  overflow: visible !important;
}

html body .site-header.p24-glass.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Logo */
html body .site-header.p24-glass .site-branding {
  flex-shrink: 0;
}
html body .site-header.p24-glass .header-logo,
html body .site-header.p24-glass .site-branding img {
  max-height: 30px !important;
  width: auto !important;
  display: block;
}

/* Nav — текстовые ссылки */
html body .site-header.p24-glass .p24-nav {
  flex-shrink: 0;
  display: none;
}
@media (min-width: 1100px) {
  html body .site-header.p24-glass .p24-nav {
    display: flex !important;
    align-items: center;
  }
}

html body .site-header.p24-glass .main-navigation ul.menu-pills {
  display: flex !important;
  align-items: center;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}

html body .site-header.p24-glass .main-navigation ul.menu-pills li a {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--p24-header-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.15s, background 0.15s;
}

html body .site-header.p24-glass .main-navigation ul.menu-pills li a:hover {
  color: var(--p24-header-text) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

html body .site-header.p24-glass .main-navigation ul.menu-pills li.current-menu-item a {
  color: var(--p24-header-accent) !important;
  background: var(--p24-header-accent-soft) !important;
  font-weight: 600 !important;
}

html body .site-header.p24-glass .main-navigation ul.menu-pills--doors {
  gap: 6px !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li a {
  padding: 8px 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  background: rgba(15, 23, 42, 0.06) !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li a.p24-door--services,
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li.current-menu-item a.p24-door--services {
  background: #17824a !important;
  color: #fff !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li a.p24-door--services:hover {
  background: #146b3a !important;
  color: #fff !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li a.p24-door--jobs,
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li.current-menu-item a.p24-door--jobs {
  background: #101613 !important;
  color: #fff !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--doors li a.p24-door--jobs:hover {
  background: #1a2320 !important;
  color: #fff !important;
}

html body .site-header.p24-glass .main-navigation ul.menu-pills--service {
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--service li a {
  padding: 7px 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}
html body .site-header.p24-glass .main-navigation ul.menu-pills--service li a:hover {
  color: #000 !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

/* Search */
html body .site-header.p24-glass .header-center {
  flex: 1 1 auto !important;
  min-width: 140px !important;
  max-width: 380px !important;
  display: none !important;
  align-items: center;
  gap: 8px !important;
  margin-left: auto;
}
@media (min-width: 901px) {
  html body .site-header.p24-glass .header-center {
    display: flex !important;
  }
}
@media (min-width: 1280px) {
  html body .site-header.p24-glass .header-center {
    max-width: 460px !important;
  }
}

html body .site-header.p24-glass .header-search {
  flex: 1;
  min-width: 0;
}

html body .site-header.p24-glass .header-search-input {
  height: 40px !important;
  border-radius: 999px !important;
  background: rgba(241, 245, 249, 0.95) !important;
  border: 1px solid transparent !important;
  padding: 0 42px 0 16px !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
}
html body .site-header.p24-glass .header-search-input:focus {
  background: #fff !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

html body .site-header.p24-glass .header-city {
  color: var(--p24-header-accent) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--p24-header-accent-soft);
  flex-shrink: 0;
}
html body .site-header.p24-glass .header-city:hover {
  color: #171717 !important;
}

body.service-page .site-header.p24-glass .header-center--compact {
  max-width: 240px !important;
  flex: 0 1 240px !important;
}
@media (min-width: 1200px) {
  body.service-page .site-header.p24-glass .header-center--compact {
    max-width: 300px !important;
    flex: 0 1 300px !important;
  }
}

/* Tools: sitemap + login + burger */
html body .site-header.p24-glass .header-tools {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-shrink: 0 !important;
  margin-left: 4px;
}

html body .site-header.p24-glass .header-icon-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: var(--p24-header-muted) !important;
  flex-shrink: 0;
}
html body .site-header.p24-glass .header-icon-btn:hover,
html body .site-header.p24-glass .header-icon-btn.is-active {
  color: var(--p24-header-accent) !important;
  border-color: rgba(31, 31, 31, 0.28) !important;
  background: #fff !important;
}

/* Единая кнопка входа */
html body .site-header.p24-glass .g24-auth-header-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px !important;
  min-width: 40px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #fff !important;
  color: var(--p24-header-text) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
html body .site-header.p24-glass .g24-auth-header-btn:hover {
  border-color: rgba(31, 31, 31, 0.28) !important;
  color: var(--p24-header-accent) !important;
  background: #fff !important;
}
html body .site-header.p24-glass .g24-auth-header-btn--primary {
  background: var(--p24-header-accent) !important;
  border-color: var(--p24-header-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body .site-header.p24-glass .g24-auth-header-btn--primary:hover {
  background: #2c2c2c !important;
  border-color: #2c2c2c !important;
  color: #fff !important;
}
html body .site-header.p24-glass .g24-auth-header-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Burger */
html body .site-header.p24-glass .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #fff !important;
  color: #1e293b !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}
html body .site-header.p24-glass .menu-toggle .bar {
  display: none !important;
}
html body .site-header.p24-glass .menu-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit;
  pointer-events: none;
}
html body .site-header.p24-glass .menu-toggle__icon--close[hidden],
html body .site-header.p24-glass .menu-toggle:not(.active) .menu-toggle__icon--close {
  display: none !important;
}
html body .site-header.p24-glass .menu-toggle.active .menu-toggle__icon--open {
  display: none !important;
}
html body .site-header.p24-glass .menu-toggle.active .menu-toggle__icon--close {
  display: block !important;
}

/* Mobile panel — calm dropdown (dark + light tones) */
@keyframes p24-menu-drop {
  from { opacity: 0; transform: translateY(-12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
html body .site-header.p24-glass .header-mobile-panel {
  display: none;
  max-width: 1450px;
  margin: 10px auto 0;
  padding: 10px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 243, 245, 0.94) 100%) !important;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 22px 50px rgba(16, 22, 19, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.65) inset !important;
}
html body .site-header.p24-glass .header-mobile-panel.is-open {
  display: block !important;
  animation: p24-menu-drop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

html body .site-header.p24-glass .header-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html body .site-header.p24-glass .header-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  border: 1px solid rgba(16, 22, 19, 0.08);
}

html body .site-header.p24-glass .header-mobile-link,
html body .site-header.p24-glass .g24-mobile-auth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #1a2220;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
html body .site-header.p24-glass .header-mobile-list > .header-mobile-link + .header-mobile-link {
  border-top: 1px solid rgba(16, 22, 19, 0.06);
}
html body .site-header.p24-glass .header-mobile-link > span:not(.header-mobile-link__ico):not(.header-mobile-link__chev),
html body .site-header.p24-glass .g24-mobile-auth-btn > span:not(.header-mobile-link__ico):not(.header-mobile-link__chev) {
  flex: 1 1 auto;
  min-width: 0;
}
html body .site-header.p24-glass .header-mobile-link__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #eceeef;
  color: #3d4942;
  font-size: 15px;
  line-height: 1;
}
html body .site-header.p24-glass .header-mobile-link__ico svg {
  display: block;
}
/* muted monochrome icon tones — no bright pastels */
html body .site-header.p24-glass .header-mobile-link__ico--services {
  background: #e7ebe9;
  color: #2a3530;
}
html body .site-header.p24-glass .header-mobile-link__ico--jobs {
  background: #e9ebe8;
  color: #3a433c;
}
html body .site-header.p24-glass .header-mobile-link__ico--map {
  background: #e8eaec;
  color: #3a4248;
}
html body .site-header.p24-glass .header-mobile-link__ico--partners {
  background: #ebe9e8;
  color: #433c3a;
}
html body .site-header.p24-glass .header-mobile-link__ico--about {
  background: #e8ecee;
  color: #364148;
}
html body .site-header.p24-glass .header-mobile-link__ico--blog {
  background: #eceeef;
  color: #4a5256;
}
html body .site-header.p24-glass .header-mobile-link__chev {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.75px solid #9aa3a0;
  border-top: 1.75px solid #9aa3a0;
  transform: rotate(45deg);
  opacity: 0.7;
}
html body .site-header.p24-glass .header-mobile-link--accent,
html body .site-header.p24-glass .g24-mobile-auth-btn {
  min-height: 54px;
  background: linear-gradient(165deg, #2a312e 0%, #151a18 100%);
  color: #f4f7f5 !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(16, 22, 19, 0.22);
  padding: 12px 14px;
}
html body .site-header.p24-glass .header-mobile-link--accent .header-mobile-link__ico,
html body .site-header.p24-glass .g24-mobile-auth-btn .header-mobile-link__ico {
  background: rgba(255, 255, 255, 0.1);
  color: #e8ecea;
}
html body .site-header.p24-glass .header-mobile-link--accent .header-mobile-link__chev,
html body .site-header.p24-glass .g24-mobile-auth-btn .header-mobile-link__chev {
  border-color: rgba(244, 247, 245, 0.4);
}
html body .site-header.p24-glass .header-mobile-link--accent:hover,
html body .site-header.p24-glass .g24-mobile-auth-btn:hover {
  filter: none;
  color: #fff !important;
  background: linear-gradient(165deg, #343c38 0%, #1c221f 100%);
  transform: none;
  box-shadow: 0 12px 26px rgba(16, 22, 19, 0.26);
}
html body .site-header.p24-glass .header-mobile-list > .header-mobile-link:hover {
  background: rgba(16, 22, 19, 0.04);
  color: #101613;
  transform: none;
  box-shadow: none;
}
html body .site-header.p24-glass .header-mobile-list > .header-mobile-link:active,
html body .site-header.p24-glass .header-mobile-link--accent:active,
html body .site-header.p24-glass .g24-mobile-auth-btn:active {
  transform: scale(0.992);
  background: rgba(16, 22, 19, 0.07);
}
html body .site-header.p24-glass .header-mobile-link--accent:active,
html body .site-header.p24-glass .g24-mobile-auth-btn:active {
  background: #101613;
}

html body .site-header.p24-glass .header-mobile-footer {
  margin-top: 12px;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(16, 22, 19, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
html body .site-header.p24-glass .header-mobile-footer__label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8580;
}
html body .site-header.p24-glass .header-mobile-socials {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-top: none !important;
}
html body .site-header.p24-glass .header-mobile-social {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 22, 19, 0.08);
  box-shadow: none;
  transition: transform 0.15s, background 0.15s;
}
html body .site-header.p24-glass .header-mobile-social:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 14px rgba(16, 22, 19, 0.08);
}
html body .site-header.p24-glass .header-mobile-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
html body .site-header.p24-glass .header-mobile-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 14px;
  background: #1a2220;
  color: #f4f7f5 !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html body .site-header.p24-glass .header-mobile-phone:hover {
  background: #101613;
  color: #fff !important;
}

/* Mobile search drawer under pill */
html body .site-header.p24-glass .header-mobile-search-panel {
  display: none;
  max-width: 1450px;
  margin: 8px auto 0;
  padding: 12px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14) !important;
}
html body .site-header.p24-glass .header-mobile-search-panel:not([hidden]) {
  display: block !important;
}
html body .site-header.p24-glass .header-search-toggle {
  display: none;
}

@media (max-width: 900px) {
  html body .site-header.p24-glass {
    padding: 8px 10px 0 !important;
  }
  html body .site-header.p24-glass .header-inner {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 8px 0 12px !important;
    gap: 8px !important;
  }
  html body .site-header.p24-glass .header-logo,
  html body .site-header.p24-glass .site-branding img {
    max-height: 26px !important;
  }
  html body .site-header.p24-glass .header-center {
    display: none !important;
  }
  html body .site-header.p24-glass .p24-nav,
  html body .site-header.p24-glass .main-navigation--service {
    display: none !important;
  }
  html body .site-header.p24-glass .header-icon-btn--desktop,
  html body .site-header.p24-glass .header-auth-desktop {
    display: none !important;
  }
  html body .site-header.p24-glass .header-search-toggle {
    display: inline-flex !important;
  }
  html body .site-header.p24-glass .menu-toggle {
    display: inline-flex !important;
  }
  html body .site-header.p24-glass .header-tools {
    margin-left: auto;
    flex-shrink: 0;
    gap: 8px;
  }
  html body .site-header.p24-glass .header-mobile-panel {
    padding: 16px !important;
  }
}

@media (min-width: 901px) {
  html body .site-header.p24-glass .menu-toggle,
  html body .site-header.p24-glass .header-search-toggle {
    display: none !important;
  }
  html body .site-header.p24-glass .header-mobile-panel,
  html body .site-header.p24-glass .header-mobile-search-panel {
    display: none !important;
  }
}

html body:has(.site-header.p24-glass) .header-spacer {
  height: 0 !important;
  display: none !important;
}

@media (max-width: 1200px) {
  html body .site-header.p24-glass .header-city {
    display: none !important;
  }
}

/* ===== Footer auth CTA (все города) ===== */
.p24-footer-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
}
.footer-nav-list .p24-footer-auth,
.footer-nav-compact .p24-footer-auth,
.brn-footer-nav .p24-footer-auth,
.slc-footer__nav .p24-footer-auth {
  margin: 10px 0 0;
  width: 100%;
}
.p24-footer-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.p24-footer-auth__btn svg {
  flex-shrink: 0;
}
.p24-footer-auth__btn--primary {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff !important;
  box-shadow: none;
}
.p24-footer-auth__btn--primary:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: #fff !important;
  transform: none;
}
.p24-footer-auth__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.45);
  color: inherit;
}
.footer-bottom-dark .p24-footer-auth__btn--ghost,
.site-footer-service .p24-footer-auth__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e2e8f0 !important;
}
.footer-bottom-light .p24-footer-auth__btn--ghost,
.site-footer-portal .p24-footer-auth__btn--ghost,
.brn-footer .p24-footer-auth__btn--ghost,
.slc-footer .p24-footer-auth__btn--ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155 !important;
}
.p24-footer-auth__btn--ghost:hover {
  border-color: #1f1f1f;
  color: #1f1f1f !important;
}
.p24-footer-auth__hint {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
  text-decoration: none !important;
}
.p24-footer-auth__hint:hover {
  opacity: 1;
  color: #1f1f1f !important;
}

/* Компактная кнопка входа/выхода в подвале */
.p24-footer-auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex: 1 0 100%;
  margin: 4px 0 10px;
  padding: 0;
  background: none;
  border: none;
}
.p24-footer-auth-bar .p24-footer-auth {
  margin: 0;
}
.p24-footer-auth__btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

/* —— Выпадающее меню «Кабинет» —— */
html body .site-header.p24-glass .p24-cabinet-menu {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}
html body .site-header.p24-glass .p24-cabinet-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.16), 0 2px 8px rgba(23, 23, 23, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 1200;
  pointer-events: none;
}
html body .site-header.p24-glass .p24-cabinet-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
html body .site-header.p24-glass .p24-cabinet-menu:hover .p24-cabinet-menu__dropdown,
html body .site-header.p24-glass .p24-cabinet-menu:focus-within .p24-cabinet-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
html body .site-header.p24-glass .p24-cabinet-menu__head {
  padding: 8px 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
html body .site-header.p24-glass .p24-cabinet-menu__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #171717;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .site-header.p24-glass .p24-cabinet-menu__phone {
  font-size: 12px;
  color: #737373;
  margin-bottom: 10px;
}
html body .site-header.p24-glass .p24-cabinet-menu__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1f1f1f;
  color: #fff;
}
html body .site-header.p24-glass .p24-cabinet-menu__balance span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
html body .site-header.p24-glass .p24-cabinet-menu__balance strong {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
html body .site-header.p24-glass .p24-cabinet-menu__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html body .site-header.p24-glass .p24-cabinet-menu__link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #171717 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: left;
  transition: background 0.15s;
}
html body .site-header.p24-glass .p24-cabinet-menu__link:hover {
  background: #f5f5f5;
  color: #171717 !important;
}
html body .site-header.p24-glass .p24-cabinet-menu__logout {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #737373;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
html body .site-header.p24-glass .p24-cabinet-menu__logout:hover {
  background: #fafafa;
  color: #171717;
  border-color: #d4d4d4;
}

/* Service page: client contacts + anchors in header (desktop only — on mobile burger must stay visible) */
html body .site-header.p24-glass .main-navigation--service {
  display: none !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
@media (min-width: 901px) {
  html body .site-header.p24-glass .main-navigation--service {
    display: flex !important;
  }
}
html body .site-header.p24-glass .header-svc-phone {
  display: none;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--p24-header-accent-soft);
  color: var(--p24-header-accent) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
html body .site-header.p24-glass .header-svc-phone:hover {
  color: #171717 !important;
}
html body .site-header.p24-glass .header-msg-wrap {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0;
}
html body .site-header.p24-glass .h-msg-item img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  transition: transform 0.15s ease;
}
html body .site-header.p24-glass .h-msg-item:hover img {
  transform: scale(1.08);
}
@media (min-width: 1100px) {
  html body .site-header.p24-glass .header-svc-phone,
  html body .site-header.p24-glass .header-msg-wrap {
    display: inline-flex;
  }
}

html body .site-header.p24-glass .header-mobile-service-portal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
html body .site-header.p24-glass .header-mobile-service-portal__label {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
html body .site-header.p24-glass .header-mobile-link--portal {
  color: #64748b !important;
}
