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

/*
|--------------------------------------------------------------------------
| Dokument
|--------------------------------------------------------------------------
*/

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--site-bg);
  font-size: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--site-text);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(var(--site-secondary-rgb), 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 28%,
      rgba(var(--site-primary-rgb), 0.06),
      transparent 30%
    ),
    var(--site-bg);
  font-family: var(--site-font-body);
  font-size: var(--site-font-size-body);
  font-weight: var(--site-font-weight-regular);
  line-height: var(--site-line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-menu-open,
body.site-scroll-locked,
body.is-scroll-locked {
  overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Elementy semantyczne
|--------------------------------------------------------------------------
*/

main,
header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
  display: block;
}

main {
  min-width: 0;
}

address {
  font-style: normal;
}

hr {
  height: 1px;
  margin: var(--site-space-8) 0;
  border: 0;
  background: var(--site-border);
}

/*
|--------------------------------------------------------------------------
| Typografia
|--------------------------------------------------------------------------
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--site-text);
  font-family: var(--site-font-heading);
  font-weight: var(--site-font-weight-semibold);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6vw, 86px);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.04em;
}

h4 {
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.03em;
}

h5 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

h6 {
  font-size: 17px;
  letter-spacing: -0.015em;
}

p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: var(--site-font-weight-bold);
}

small {
  font-size: 0.8125em;
}

mark {
  padding: 0.08em 0.25em;
  color: var(--site-text-inverse);
  background: var(--site-accent);
}

code,
kbd,
samp,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  padding: 0.15em 0.35em;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-xs);
  color: var(--site-primary);
  background: var(--site-surface);
  font-size: 0.88em;
}

pre {
  max-width: 100%;
  margin: var(--site-space-7) 0;
  padding: var(--site-space-6);
  overflow: auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-medium);
  color: var(--site-text-soft);
  background: var(--site-bg-deep);
  font-size: 13px;
  line-height: 1.7;
  tab-size: 4;
}

pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

sub,
sup {
  position: relative;
  font-size: 0.72em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.45em;
}

sub {
  bottom: -0.2em;
}

/*
|--------------------------------------------------------------------------
| Linki
|--------------------------------------------------------------------------
*/

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:not([class]) {
  color: var(--site-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--site-primary-rgb), 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color var(--site-transition),
    text-decoration-color var(--site-transition);
}

a:not([class]):hover {
  color: var(--site-text);
  text-decoration-color: var(--site-primary);
}

/*
|--------------------------------------------------------------------------
| Listy
|--------------------------------------------------------------------------
*/

ul,
ol {
  margin-top: 0;
}

nav ul,
nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
|--------------------------------------------------------------------------
| Multimedia
|--------------------------------------------------------------------------
*/

img,
picture,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  height: auto;
}

img {
  border-style: none;
}

iframe {
  border: 0;
}

figure {
  margin-right: 0;
  margin-left: 0;
}

/*
|--------------------------------------------------------------------------
| Formularze — reset podstawowy
|--------------------------------------------------------------------------
*/

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: button;
}

button,
[type="button"],
[type="reset"],
[type="submit"],
label,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

button,
input {
  overflow: visible;
}

textarea {
  overflow: auto;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: table;
  max-width: 100%;
  padding: 0;
  color: inherit;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

[type="checkbox"],
[type="radio"] {
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  appearance: button;
  -webkit-appearance: button;
  font: inherit;
}

/*
|--------------------------------------------------------------------------
| Elementy interaktywne
|--------------------------------------------------------------------------
*/

button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

summary {
  display: list-item;
}

details > summary {
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

/*
|--------------------------------------------------------------------------
| Tabele
|--------------------------------------------------------------------------
*/

table {
  border-spacing: 0;
  border-collapse: collapse;
}

th {
  text-align: inherit;
}

/*
|--------------------------------------------------------------------------
| Zaznaczenie tekstu
|--------------------------------------------------------------------------
*/

::selection {
  color: var(--site-text-inverse);
  background: var(--site-primary);
}

::-moz-selection {
  color: var(--site-text-inverse);
  background: var(--site-primary);
}

/*
|--------------------------------------------------------------------------
| Fokus
|--------------------------------------------------------------------------
*/

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--site-primary);
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-radius: var(--site-radius-xs);
}

/*
|--------------------------------------------------------------------------
| Ukrywanie elementów
|--------------------------------------------------------------------------
*/

[hidden] {
  display: none !important;
}

template {
  display: none;
}

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

.sr-only-focusable:not(:focus):not(:focus-within),
.site-sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
|--------------------------------------------------------------------------
| Link pomijający nawigację
|--------------------------------------------------------------------------
*/

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--site-z-skip-link);
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-primary);
  border-radius: var(--site-radius-small);
  color: var(--site-text-inverse);
  background: var(--site-primary);
  font-family: var(--site-font-label);
  font-size: 13px;
  font-weight: var(--site-font-weight-extrabold);
  line-height: 1;
  box-shadow: var(--site-shadow-primary);
  transform: translateY(-180%);
  transition: transform var(--site-transition);
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 2px solid var(--site-text);
  outline-offset: 3px;
  transform: translateY(0);
}

/*
|--------------------------------------------------------------------------
| Główny układ strony
|--------------------------------------------------------------------------
*/

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.site-main {
  position: relative;
  z-index: var(--site-z-content);
  min-width: 0;
  min-height: 60vh;
}

.site-page {
  position: relative;
}

.site-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(var(--site-secondary-rgb), 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 35%,
      rgba(var(--site-primary-rgb), 0.04),
      transparent 30%
    );
  pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Kontenery
|--------------------------------------------------------------------------
*/

.site-container,
.site-container-wide,
.site-container-narrow {
  width: calc(100% - (var(--site-gutter) * 2));
  margin-right: auto;
  margin-left: auto;
}

.site-container {
  max-width: var(--site-container);
}

.site-container-wide {
  max-width: var(--site-container-wide);
}

.site-container-narrow {
  max-width: var(--site-container-narrow);
}

/*
|--------------------------------------------------------------------------
| Sekcje globalne
|--------------------------------------------------------------------------
*/

.site-section {
  position: relative;
  padding-block: var(--site-section-space);
}

.site-section--small {
  padding-block: var(--site-section-space-small);
}

.site-section--no-top {
  padding-top: 0;
}

.site-section--no-bottom {
  padding-bottom: 0;
}

.site-section--surface {
  background: var(--site-bg-soft);
}

.site-section--elevated {
  background: var(--site-bg-elevated);
}

/*
|--------------------------------------------------------------------------
| Siatki pomocnicze
|--------------------------------------------------------------------------
*/

.site-grid {
  display: grid;
  min-width: 0;
  gap: var(--site-space-6);
}

.site-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.site-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
}

/*
|--------------------------------------------------------------------------
| Klasy wyrównania
|--------------------------------------------------------------------------
*/

.site-text-left {
  text-align: left;
}

.site-text-center {
  text-align: center;
}

.site-text-right {
  text-align: right;
}

.site-align-start {
  align-items: flex-start;
}

.site-align-center {
  align-items: center;
}

.site-align-end {
  align-items: flex-end;
}

.site-justify-start {
  justify-content: flex-start;
}

.site-justify-center {
  justify-content: center;
}

.site-justify-end {
  justify-content: flex-end;
}

.site-justify-between {
  justify-content: space-between;
}

/*
|--------------------------------------------------------------------------
| Klasy szerokości
|--------------------------------------------------------------------------
*/

.site-width-full {
  width: 100%;
}

.site-max-width-text {
  max-width: 760px;
}

.site-max-width-content {
  max-width: var(--site-container-narrow);
}

/*
|--------------------------------------------------------------------------
| Kolory tekstu
|--------------------------------------------------------------------------
*/

.site-text-primary {
  color: var(--site-primary);
}

.site-text-secondary {
  color: var(--site-secondary);
}

.site-text-accent {
  color: var(--site-accent);
}

.site-text-muted {
  color: var(--site-muted);
}

.site-text-soft {
  color: var(--site-text-soft);
}

/*
|--------------------------------------------------------------------------
| Łamanie długich treści
|--------------------------------------------------------------------------
*/

.site-break-word,
.site-content,
.editor-content,
.static-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

/*
|--------------------------------------------------------------------------
| Stan ładowania obrazów
|--------------------------------------------------------------------------
*/

img[data-src],
img[loading="lazy"] {
  transition:
    opacity var(--site-transition-slow),
    filter var(--site-transition-slow);
}

img[data-src]:not(.is-loaded),
img[loading="lazy"]:not(.is-loaded) {
  opacity: 0.01;
}

img.is-loaded {
  opacity: 1;
}

img.is-error {
  opacity: 0.42;
  filter: grayscale(1);
}

/*
|--------------------------------------------------------------------------
| Pasek przewijania
|--------------------------------------------------------------------------
*/

html {
  scrollbar-color: rgba(var(--site-primary-rgb), 0.55) var(--site-bg-deep);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--site-bg-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--site-bg-deep);
  border-radius: var(--site-radius-pill);
  background: rgba(var(--site-primary-rgb), 0.52);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--site-primary-rgb), 0.76);
}

/*
|--------------------------------------------------------------------------
| JavaScript
|--------------------------------------------------------------------------
*/

html:not(.site-js-ready) [data-site-js-only] {
  display: none !important;
}

html.site-js-ready [data-site-no-js] {
  display: none !important;
}

/*
|--------------------------------------------------------------------------
| Animacje wejścia
|--------------------------------------------------------------------------
*/

[data-site-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
  will-change: opacity, transform;
}

[data-site-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
