/* Fixed mobile controls share the same edge spacing on every route.
   --nav-top is a measured output (including the logo's vertical alignment).
   Feeding it back into header padding made each mobile resize move the header,
   and measuring a scroll-hidden header could instead pull it to the top edge. */
@media (max-width: 1024px) {
  body .site-header .site-header-motion,
  body.sluzby-page .site-header .site-header-motion {
    padding-top: max(var(--header-pad, 14px), env(safe-area-inset-top, 0px));
  }

  /* Contact starts with the questionnaire, not a preceding hero. Its shared
     compact booking padding (12px) was placing the first heading underneath
     the fixed menu. Reserve the same measured mobile navigation clearance
     used by the other subpage entrances, at every phone viewport height. */
  body.kontakt-page .sl-section--booking {
    align-content: start;
    padding-top: var(--sl-nav-clearance);
  }
}

/* There is no longer a fixed bottom contact bar to clear. The former 82px
   contact-only offset lifted this arrow 64px above the other phone pages. */
@media (max-width: 768px) {
  body.kontakt-page .back-to-top {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
