/**
 * Minimalne style techniczne wspólne dla całej witryny.
 * Typografia, przyciski, formularze, szerokość kontenera i odstępy
 * są konfigurowane w ustawieniach globalnych Elementora.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--sb-color-accent);
  outline-offset: 3px;
}

/* Usuwa podświetlenie po dotknięciu/kliknięciu, zachowując focus klawiatury. */
a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

::selection {
  background: var(--sb-color-primary);
  color: var(--sb-color-white);
}

button,
[role="button"],
.nav-el {
  cursor: pointer !important;
}

button,
[role="button"] {
  user-select: none !important;
}

.sb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

selector svg * {
  fill: none !important;
  stroke: currentColor !important;
}

.text-balance {
  text-wrap: balance !important;
}

/* Statyczny ornament inspirowany białoruskim wzorem ludowym. */
.elementor-element.sb-pattern,
.sb-pattern {
  background-color: #fff !important;
  background-image: url("../svg/belarus_flag_pattern.svg") !important;
  background-attachment: scroll !important;
  background-position: left center !important;
  background-repeat: repeat-x !important;
  background-size: auto 100% !important;
}
