/* MyBetterSite — shared design system (redesign 2026) */

html, body { margin: 0; padding: 0; background: #0b141c; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #3dbdbd; text-decoration: none; }
a:hover { color: #7fdcdc; }
::selection { background: #3dbdbd; color: #0b141c; }
::placeholder { color: rgba(232,240,240,.55); opacity: 1; }
:focus-visible { outline: 2px solid #3dbdbd; outline-offset: 3px; border-radius: 2px; }
#mbsUslugi :focus-visible, #mbsDlaczego :focus-visible { outline-color: #0b5a5a; }
input, select, textarea, button { font-family: 'Space Grotesk', system-ui, sans-serif; }

/* Custom cursor — only on pages that opt in via body.mbs-cursor (home page) */
@media (pointer: fine) {
  body.mbs-cursor, body.mbs-cursor a, body.mbs-cursor button { cursor: none; }
  body.mbs-cursor input, body.mbs-cursor select, body.mbs-cursor textarea { cursor: text; }
}

@keyframes mbsMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes mbsUp { from { opacity: 0; transform: translateY(1.1em) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes mbsPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes mbsDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3%,4%) scale(1.12); } 100% { transform: translate(0,0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tilt cards (portfolio + hero image) — CSS-only hover, no JS perspective tracking (PageSpeed) */
[data-tilt] { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
[data-tilt]:hover, [data-tilt]:focus-visible {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6);
}
[data-tilt]:hover img, [data-tilt]:focus-visible img { transform: scale(1.06); filter: saturate(1.05) brightness(1.02) !important; }
[data-tilt-glow] { display: none; } /* was JS mouse-follow glow — dropped, static hover above replaces it */

/* Mobile nav */
.mbs-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 4px; }
.mbs-hamburger span { display: block; width: 22px; height: 2px; background: #e8f0f0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.mbs-mobile-menu { display: none; }
.mbs-mobile-menu.open {
  display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; z-index: 9999;
  background: rgba(8,16,22,.98); backdrop-filter: blur(14px); padding: 10px 20px 22px; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mbs-mobile-menu a { font-size: 16px; color: rgba(232,240,240,.8); padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ── Responsive: functional collapse of the desktop grid system below 860px ──
   Layout is authored with inline styles (matching the Design export), so the
   overrides below use attribute + id scoping with !important — this keeps the
   page usable on phones without hand-tuning every section individually. */
@media (max-width: 860px) {
  #mbsNavLinks, .mbs-desktop-links { display: none !important; }
  .mbs-hamburger { display: flex !important; }

  section [style*="grid-template-columns"],
  header [style*="grid-template-columns"],
  form [style*="grid-template-columns"],
  #mbsDokument > div {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  [style*="grid-column: span"] { grid-column: auto !important; }
  [style*="position: sticky"] { position: static !important; top: auto !important; }

  [data-post] { row-gap: 10px !important; }
  [data-post-arrow] { display: none !important; }

  li[style*="grid-template-columns: 44px"],
  li[style*="grid-template-columns: 20px"] {
    grid-template-columns: 20px 1fr !important;
  }

  #mbsHeroA h1, #mbsHeroB h1 { font-size: clamp(38px, 10vw, 64px) !important; }
}
