/* runa.fitness — fixes on top of the original styles (loaded last).
   Header button sized like a button, phones without scroll-jacking or empty
   screens, a footer that wraps, the athlete visible in «Сила быть собой». */

/* header */
body > header > .header-download { padding: 10px 18px; font-size: 13px; gap: 8px; line-height: 1; min-height: 0; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; }

/* «Сила быть собой»: keep the woman in frame (she is on the left of the photo) */
.human-photo > img { object-position: 28% center; filter: saturate(.85); }
.human-photo::after { inset: 75% 0 0; }

@media (max-width: 700px) {
  body > header { gap: 8px; }
  body > header > .header-download { padding: 9px 14px; font-size: 12px; }
  .theme-toggle { width: 38px; height: 38px; padding: 0 !important; justify-content: center; font-size: 16px !important; }
  .theme-toggle .tt-label { display: none; }

  /* «Одна система / четыре сигнала»: a plain list, no sticky stage */
  .universe { height: auto !important; min-height: 0 !important; padding: 72px 6% 56px; }
  .universe-sticky { position: relative !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .universe-heading { position: relative !important; left: auto !important; top: auto !important; right: auto !important; }
  .universe-heading h2 { font-size: 11vw; }
  .universe-heading p { font-size: 15px; }
  .universe-steps, .universe-caption, .universe-stage canvas, .core-word, .system-complete { display: none !important; }
  .universe-stage { position: relative !important; inset: auto !important; display: grid; gap: 10px; margin-top: 28px; background: none !important; }
  .satellite { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; opacity: 1 !important; display: block; padding: 16px 18px; border-radius: 14px; font-size: 15px; }
  .satellite b { font-size: 16px; margin-left: 8px; }
  .satellite small { font-size: 13px; margin-top: 6px; }

  /* photo first, then the words */
  .human-photo { order: 0 !important; min-height: 420px; }
  .human-photo > img { object-position: 30% center; }

  /* footer: wraps instead of overlapping */
  footer { flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; padding: 26px 6% 32px; font-size: 13px !important; letter-spacing: 0; }
  footer .brand { width: 100%; }
  footer > a:last-child { display: inline !important; }
}
