/* Shared mobile-only header. Existing desktop headers remain unchanged. */
#vm-mobile-header { display: none; }
@media (max-width: 1080px) {
  body.vm-mobile-ready [data-vm-desktop-header],
  body.vm-mobile-ready > .topline,
  body.vm-mobile-ready > .prototype-topline,
  body.vm-mobile-ready > .prototype-topbar { display: none !important; }
  #vm-mobile-header { display: block; position: relative; z-index: 60; width: 100%; margin: 0; padding: 0; color: #383832; background: #fafaf8; border: 0; border-bottom: 1px solid #deddd6; font: 16px/1.4 Arial, sans-serif; text-align: left; }
  #vm-mobile-header * { box-sizing: border-box; }
  #vm-mobile-header .vm-mobile-row { display: flex; align-items: center; gap: 8px; width: min(1180px, calc(100% - 40px)); min-height: 80px; margin: 0 auto; padding: 0; }
  #vm-mobile-header a { color: inherit; text-decoration: none; }
  #vm-mobile-header .vm-mobile-brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; white-space: nowrap; }
  #vm-mobile-header .vm-mobile-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; background: #ffcc00; color: #171714; font-size: 14px; font-weight: 800; }
  #vm-mobile-header .vm-mobile-name { display: block; font-size: 17px; line-height: 1.2; font-weight: 800; letter-spacing: -.35px; }
  #vm-mobile-header .vm-mobile-tagline { display: block; margin-top: 4px; font-size: 9px; line-height: 1.1; font-weight: 400; text-transform: uppercase; letter-spacing: 1.3px; }
  #vm-mobile-header .vm-mobile-phone,
  #vm-mobile-header .vm-mobile-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 48px; margin: 0; padding: 0; border: 0; background: transparent; color: #383832; cursor: pointer; list-style: none; }
  #vm-mobile-header .vm-mobile-phone svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
  #vm-mobile-header .vm-mobile-details { position: static; flex: 0 0 44px; margin: 0; padding: 0; border: 0; }
  #vm-mobile-header .vm-mobile-toggle::-webkit-details-marker { display: none; }
  #vm-mobile-header .vm-mobile-toggle::marker { content: ''; }
  #vm-mobile-header .vm-mobile-bars { display: flex; flex-direction: column; justify-content: space-between; width: 32px; height: 18px; }
  #vm-mobile-header .vm-mobile-bars i { display: block; flex: 0 0 2px; width: 32px; height: 2px; background: currentColor; transform-origin: center; }
  #vm-mobile-header .vm-mobile-details[open] .vm-mobile-bars i:first-child { transform: translateY(8px) rotate(45deg); }
  #vm-mobile-header .vm-mobile-details[open] .vm-mobile-bars i:nth-child(2) { opacity: 0; }
  #vm-mobile-header .vm-mobile-details[open] .vm-mobile-bars i:last-child { transform: translateY(-8px) rotate(-45deg); }
  #vm-mobile-header .vm-mobile-nav { display: grid; position: absolute; top: 100%; right: 0; left: 0; width: 100%; max-width: none; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 12px 20px 24px; gap: 0; background: #fafaf8; border: 0; border-bottom: 1px solid #deddd6; box-shadow: 0 18px 24px rgb(0 0 0 / 10%); }
  #vm-mobile-header .vm-mobile-details:not([open]) .vm-mobile-nav { display: none; }
  #vm-mobile-header .vm-mobile-nav > a { display: block; margin: 0; padding: 13px 4px; border: 0; border-bottom: 1px solid #e4e2da; font: 500 16px/1.4 Arial, sans-serif; }
  #vm-mobile-header .vm-mobile-nav > a[aria-current="page"] { font-weight: 700; }
  #vm-mobile-header .vm-mobile-nav .vm-mobile-contact { margin-top: 12px; border: 0; font-weight: 700; }
  #vm-mobile-header a:focus-visible,
  #vm-mobile-header summary:focus-visible { outline: 2px solid #806900; outline-offset: 3px; }
}
@media (max-width: 360px) {
  #vm-mobile-header .vm-mobile-row { width: calc(100% - 24px); gap: 4px; }
  #vm-mobile-header .vm-mobile-brand { gap: 7px; }
  #vm-mobile-header .vm-mobile-mark { flex-basis: 32px; width: 32px; height: 34px; font-size: 12px; }
  #vm-mobile-header .vm-mobile-name { font-size: 15px; }
  #vm-mobile-header .vm-mobile-tagline { font-size: 8px; letter-spacing: 1px; }
}

/* Дополнительный пункт «Клиентам»: компактное меню на небольших ноутбуках. */
@media (min-width:1081px) and (max-width:1360px) {
  .header .header__row,.prototype-header .prototype-header-row { gap:12px; }
  .header .nav,.prototype-header .prototype-nav { gap:14px; font-size:13px; }
  .header .nav>a,.prototype-header .prototype-nav>a { white-space:nowrap; }
}
