/* ==========================================================================
   reset.css — nowoczesny reset przeglądarkowy + stany techniczne aplikacji
   ========================================================================== */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    hanging-punctuation: first last;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
dd,
figcaption {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

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

textarea {
    resize: vertical;
}

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

legend {
    padding: 0;
}

summary {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* Ukrycie tekstów oczekujących na tłumaczenie (tylko gdy język ≠ domyślny).
   Klasa jest zdejmowana przez i18n.js po pierwszym translatePage(). */
.i18n-pending [data-i18n],
.i18n-pending [data-i18n-placeholder] {
    visibility: hidden;
}

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