/* Wspólna baza stron demo NGE Studio */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* Pasek informujący, że to projekt przykładowy */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 6px clamp(16px, 4vw, 32px);
  background: #12213A; color: rgba(255, 255, 255, .8);
  font: 500 13px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.demo-bar__label { display: inline-flex; align-items: center; gap: 8px; }
.demo-bar__dots { display: inline-flex; gap: 4px; }
.demo-bar__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.demo-bar__dots i:first-child { background: #20B26B; }
.demo-bar a { color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demo-bar a:hover { text-decoration: underline; }
.demo-bar a:focus-visible { outline-color: #8FB0FF; }
@media (max-width: 520px) { .demo-bar__long { display: none; } }

/* Menu mobilne */
.d-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.d-toggle svg { width: 26px; height: 26px; }
.d-toggle .d-toggle__x { display: none; }
.d-toggle[aria-expanded="true"] .d-toggle__bars { display: none; }
.d-toggle[aria-expanded="true"] .d-toggle__x { display: block; }
@media (max-width: 860px) {
  .d-toggle { display: inline-flex; }
  nav.d-nav:not(.is-open) { display: none !important; }
}

/* Komunikat formularzy demo */
.demo-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(18, 33, 58, .08); font-weight: 600; }
.demo-msg.is-visible { display: block; }

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