/* MAGICUM · PREMIUM HOMEPAGE 2027 · варіант C «Компактна пара» — ряд UA | Телефон | МЕНЮ (OWNER 2026-11-14).
   Бічні колонки однакові, тож телефон стоїть рівно по центру ряду — під логотипом MAGICUM у фоні.
   Ряд лежить у смузі пейзажу під логотипом фону (21–28 % висоти зображення 9:16).
   Розміри фону (--w, --imgh) задає hero-neon.css на #hero.mstudio-host.
   Селектори навмисно сильніші за legacy-правила .nav-bar з inline-стилів index.html. */
#hero.mstudio-host > .nav-bar.magicum-topbar {
  position:absolute; top:calc(var(--imgh) * .212); left:50%; right:auto; transform:translateX(-50%);
  width:min(calc(var(--w) - 24px), 560px); height:44px; display:block; margin:0; padding:0;
  box-sizing:border-box; overflow:visible; z-index:30;
  background:transparent; border:0; border-radius:0; box-shadow:none; backdrop-filter:none;
}
#hero.mstudio-host > .nav-bar.magicum-topbar nav {
  display:grid; grid-template-columns:64px minmax(0,1fr) 64px;
  width:100%; height:100%; margin:0; padding:0; border:0;
  overflow:visible; background:transparent; gap:8px; align-items:center;
}
#hero.mstudio-host > .nav-bar.magicum-topbar nav > * {
  box-sizing:border-box; min-height:44px; max-height:none; height:100%; margin:0;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone {
  position:static; flex:none; width:100%; min-width:0;
  padding:0 8px; border:0; border-radius:14px;
  background:linear-gradient(180deg,#ffe58f,#f3b630); color:#132a4a;
  box-shadow:0 3px 0 #b8801c,0 6px 16px rgba(4,30,70,.25);
  display:flex; align-items:center; justify-content:center; gap:7px;
  font:700 clamp(14px,4.1vw,17px)/1 Montserrat,system-ui,sans-serif; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums; white-space:nowrap;
  overflow:hidden; text-overflow:clip; text-decoration:none;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone svg {
  display:block; width:18px; height:18px; flex-shrink:0;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone .nav-phone-number {
  position:static !important; display:inline !important;
  width:auto !important; height:auto !important;
  overflow:visible !important; clip:auto !important;
  white-space:nowrap; font-size:inherit;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square,
#hero.mstudio-host > .nav-bar.magicum-topbar #sideMenuBtn.nav-menu-square {
  position:static; flex:none; width:100%; min-width:0; max-width:none; padding:0; border:0;
  border-radius:14px; color:#fff; background:linear-gradient(180deg,#2aa7e8,#0b5cb8);
  box-shadow:0 3px 0 #073f80,0 6px 16px rgba(4,30,70,.25); cursor:pointer; backdrop-filter:none;
}
#hero.mstudio-host > .nav-bar.magicum-topbar .nav-lang-square {
  display:grid; place-items:center; font:700 15px/1 Montserrat,system-ui,sans-serif; letter-spacing:.04em;
}
#hero.mstudio-host > .nav-bar.magicum-topbar #sideMenuBtn.nav-menu-square {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  font:700 10px/1.1 Montserrat,system-ui,sans-serif; letter-spacing:.04em;
}
#hero.mstudio-host > .nav-bar.magicum-topbar #sideMenuBtn svg {
  display:block; width:18px; height:18px; flex-shrink:0;
}
#hero.mstudio-host > .nav-bar.magicum-topbar a:hover,
#hero.mstudio-host > .nav-bar.magicum-topbar button:hover { filter:brightness(1.06); }
#hero.mstudio-host > .nav-bar.magicum-topbar a:focus-visible,
#hero.mstudio-host > .nav-bar.magicum-topbar button:focus-visible {
  outline:3px solid #0c2a52; outline-offset:2px;
}
@media (max-width:359px) {
  #hero.mstudio-host > .nav-bar.magicum-topbar nav { grid-template-columns:56px minmax(0,1fr) 56px; gap:6px; }
  #hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone { font-size:14px; gap:5px; padding:0 6px; }
  #hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone svg { width:16px; height:16px; }
}
/* ПК / планшет у ландшафті: ряд стоїть у колонці контенту (сітку задає hero-neon.css). */
@media (orientation:landscape) and (min-width:560px) {
  #hero.mstudio-host > .nav-bar.magicum-topbar {
    position:relative; top:auto; left:auto; transform:none; grid-area:nav;
    width:100%; height:52px; justify-self:stretch;
  }
  #hero.mstudio-host > .nav-bar.magicum-topbar nav { grid-template-columns:72px minmax(0,1fr) 72px; gap:10px; }
  #hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone { font-size:18px; }
}
/* телефон боком (низький ландшафт): ряд компактніший, ціль лишається ≥ 44 px */
@media (orientation:landscape) and (min-width:560px) and (max-height:500px) {
  #hero.mstudio-host > .nav-bar.magicum-topbar { height:44px; }
  #hero.mstudio-host > .nav-bar.magicum-topbar .nav-phone { font-size:16px; }
}
