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


* {
    margin: 0;
    padding: 0;
}


html {
    /* Płynne skalowanie czcionki: pomiędzy 16px a 20px */
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    /* Zapobiega zmianom rozmiaru tekstu po obróceniu ekranu na iOS */
    -webkit-text-size-adjust: 100%;
    /* Poprawa renderowania tekstu */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Płynne przewijanie strony */
    scroll-behavior: smooth;
    /* Szanuje ustawienia systemowe użytkownika */
    @media (prefers-reduced-motion: reduce) {
        scroll-behavior: auto;
    }
}


body {
    min-height: 100dvh;
    line-height: 1.5;
    font-family: inherit;
}


h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
    text-wrap: balance;
}

p, li, figcaption, blockquote {
    text-wrap: pretty;
    max-width: 75ch;
}


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


ul, ol {
    list-style: none;
}


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


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

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


:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}


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


[hidden] {
    display: none !important;
}


body,
h1, h2, h3, h4, h5, h6,
p, a, span, li {
    overflow-wrap: break-word;
}