/* nexus-live — mobilný chrome (B): hlavička, drawer, spodná CTA lišta, pätka, generické mobilné ovládače.
   Všetko v @media (max-width:1023px); desktop ≥1024 sa nemení. Spec: docs/landing-mobile-20261011/SPEC.md §3 */

/* spodná lišta + lightbox nikdy na desktope */
@media (min-width:1024px){.nx-mbar{display:none!important}.nx-m-more,.nx-m-dots{display:none!important}}

@media (max-width:1023px){
  /* ---------- hlavička ---------- */
  .nx-header{background:rgba(251,251,253,.92);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px)}
  .nx-header.is-scrolled{box-shadow:none;border-bottom-color:var(--line)}
  .nx-header-in{min-height:var(--m-header-h,60px);gap:8px;padding-inline:var(--m-gutter,20px)}
  .nx-logo{min-height:44px;min-width:44px;padding:8px 0;font-size:1.16rem;flex:none}
  .nx-header-actions{gap:6px}
  body:not(.nx-auth) .nx-header-actions>.nx-lang{display:none}
  .nx-auth .nx-lang-btn{min-height:44px;min-width:44px;justify-content:center}
  .nx-phone,.nx-login-m,.nx-burger{width:44px;height:44px;border-radius:12px;border-color:var(--line);background:#fff}
  .nx-phone{display:inline-flex;align-items:center;justify-content:center;padding:0}
  .nx-phone span{display:none}
  .nx-burger{position:relative}
  .nx-burger span{position:absolute;left:11px;width:20px}
  .nx-burger span:first-child{top:17px}.nx-burger span:last-child{top:25px}
  .nx-burger.is-open{background:var(--soft,#f2f2f6)}
  .nx-burger.is-open span:first-child{transform:translateY(4px) rotate(45deg)}
  .nx-burger.is-open span:last-child{transform:translateY(-4px) rotate(-45deg)}

  /* ---------- drawer: celá obrazovka pod hlavičkou ---------- */
  .nx-drawer{position:absolute;top:100%;left:0;right:0;height:calc(100vh - var(--m-header-h,60px));height:calc(100dvh - var(--m-header-h,60px));max-height:none;
    overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;border-top:1px solid var(--line);padding:6px 0 calc(24px + env(safe-area-inset-bottom))}
  .nx-drawer>.nx-container{display:flex;flex-direction:column;padding-inline:var(--m-gutter,20px)}
  .nx-drawer-group{border-bottom:1px solid var(--line)}
  .nx-drawer-group summary{min-height:56px;padding:0;border-bottom:0;font-size:17px;font-weight:700;color:var(--text);-webkit-tap-highlight-color:transparent}
  .nx-drawer-group summary i{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--m-tint,#f4f3fa);font-size:.75rem;color:var(--muted);transition:transform .2s}
  .nx-drawer-group[open] summary i{transform:rotate(180deg);background:var(--m-tint-2,#eef0ff);color:var(--violet,#5b5bd6)}
  .nx-drawer-group>div{padding:0 0 12px}
  .nx-drawer-sub{margin:4px 0 8px;padding:10px 12px 6px;border-radius:var(--m-r,16px);background:var(--m-tint,#f4f3fa)}
  .nx-drawer-sub b{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);min-height:28px}
  .nx-drawer-sub b i{color:var(--g,var(--red));font-size:14px;width:18px;text-align:center}
  .nx-drawer-group div a,.nx-drawer-links a{display:flex;align-items:center;min-height:44px;padding:0 0 0 28px;font-size:15.5px;font-weight:500;color:var(--text);text-decoration:none}
  .nx-drawer-group>div>a{padding-left:12px}
  .nx-drawer-links a{padding-left:0;min-height:52px;font-size:17px;font-weight:700;border-bottom:1px solid var(--line)}
  .nx-drawer a[aria-current=page]{color:var(--red)}
  .nx-drawer-cta.-top{order:10;display:grid;grid-template-columns:1fr;gap:10px;margin:22px 0 0}
  .nx-drawer-cta.-top .nx-btn{width:100%;min-height:48px;border-radius:14px;justify-content:center}
  .nx-drawer-cta.-top .nx-btn.-primary{order:-1;min-height:var(--m-btn-h,52px);font-size:17px;font-weight:700}
  .nx-drawer-lang{order:11;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 0;font-size:14px}
  .nx-drawer-lang a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 8px;border-radius:var(--m-pill,999px);border:1px solid var(--line);background:#fff;color:var(--text);font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nx-drawer-lang a[aria-current]{background:var(--m-tint-red,#fff1f4);border-color:var(--red);color:var(--red)}
  body.nx-drawer-open{overflow:hidden}
  body.nx-drawer-open .nx-mbar{transform:translateY(110%)!important}

  /* ---------- spodná CTA lišta ---------- */
  .nx-mbar{position:fixed;left:0;right:0;bottom:0;z-index:140;display:flex;gap:10px;align-items:center;
    padding:8px var(--m-gutter,20px) calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);
    backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);box-shadow:0 -8px 24px -12px rgba(22,22,29,.25);
    border-top:1px solid var(--line);transform:translateY(110%);transition:transform .25s ease;will-change:transform}
  .nx-mbar[hidden]{display:none}
  .nx-mbar.is-on{transform:none}
  .nx-mbar-cta{flex:1;min-width:0;min-height:48px;justify-content:center;border-radius:14px;font-size:16.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nx-mbar-share{flex:none;width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--text);display:inline-flex;align-items:center;justify-content:center;font-size:17px;cursor:pointer}
  .nx-mbar-share[hidden]{display:none}
  .nx-mbar-share:active{background:var(--m-tint,#f4f3fa)}

  /* ---------- pätka ---------- */
  .nx-footer-grid{grid-template-columns:1fr!important;gap:0;padding:44px var(--m-gutter,20px) 8px}
  .nx-footer-brand{grid-column:1/-1;padding-bottom:20px;display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .nx-footer-brand .nx-logo{align-self:flex-start}
  .nx-footer-brand p{margin:2px 0 6px;max-width:none;font-size:15px}
  .nx-footer-mail{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--text);font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nx-footer-mail i{color:var(--red);width:18px;text-align:center}
  .nx-footer-social{margin-top:6px;gap:10px}
  .nx-footer-social a{width:44px;height:44px;border-radius:12px}
  .nx-footer-col{border-top:1px solid var(--line)}
  .nx-footer-col h4{margin:0;font-size:16px;color:var(--ink)}
  .nx-footer-grid.is-m-acc .nx-footer-col h4{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:52px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .nx-footer-col a{display:flex;align-items:center;min-height:44px;padding:0;font-size:15px}
  .nx-footer-links{padding-bottom:10px}
  .nx-footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:10px;padding:18px var(--m-gutter,20px) 24px;font-size:13px}
  .nx-footer-legal{justify-content:center;gap:0 18px}
  .nx-footer-legal span{flex-basis:100%}
  .nx-footer-legal a,.nx-footer-lang a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .nx-footer-lang{justify-content:center;gap:0 10px}

  /* ---------- generický akordeón [data-m-acc] (chevron ::after definuje C v m-sections.css) ---------- */
  .is-m-acc [data-m-acc-head]{cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none}
  .is-m-acc [data-m-acc-head]:focus-visible{outline:2px solid var(--violet,#5b5bd6);outline-offset:2px}
  .is-m-acc [data-m-acc-body][hidden]{display:none!important}

  /* ---------- clamp „viac" + bullets „+N" ---------- */
  /* základný vzhľad .nx-m-more definuje A (theme-fx.css); tu len varianta „+N" */
  .nx-m-more.-n{font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}

  /* ---------- swipe bodky ---------- */
  .nx-m-dots{display:flex;justify-content:center;flex-wrap:wrap;margin-top:6px}
  .nx-m-dots button{width:28px;height:44px;border:0;background:none;padding:0;display:grid;place-items:center;cursor:pointer}
  .nx-m-dots button::before{content:"";width:8px;height:8px;border-radius:999px;background:#c9cad6;transition:width .2s,background .2s}
  .nx-m-dots button.is-active::before{width:22px;background:var(--red)}

  /* ---------- lightbox [data-m-zoom] ---------- */
  [data-m-zoom]{cursor:zoom-in}
  .nx-m-lb{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:rgba(251,251,253,.98);overflow:auto}
  .nx-m-lb::backdrop{background:rgba(251,251,253,.9)}
  .nx-m-lb[open]{display:flex;align-items:center}
  .nx-m-lb img{display:block;width:100%;height:auto;touch-action:pinch-zoom;margin:auto}
  .nx-m-lb-x{position:fixed;top:calc(10px + env(safe-area-inset-top));right:10px;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--text);font-size:18px;display:grid;place-items:center;box-shadow:var(--m-shadow,0 8px 24px -12px rgba(22,22,29,.18));z-index:2;cursor:pointer}
}

@media (max-width:389px){
  .nx-logo{font-size:1.06rem;gap:8px}
  .nx-header-actions{gap:4px}
  .nx-drawer-lang{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.nx-mbar{transition:none}}
