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

:where(ul[class]) {
    list-style: none;
}

p:where(:not([class], :last-child)) {
    margin-bottom: 1em;
}


/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*:focus,
*:active,
*:focus-visible {
   outline: none;
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
}


/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
 */
body {
    line-height: 1.5;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
}

/*
7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

input[type="submit"] {
    cursor: pointer;
}

button {
    color: inherit;
    cursor: pointer;
    background: inherit;
}

button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a {
    color: inherit;
}

a,
a:link,
a:visited {
    text-decoration: none;
}

ul li {
    list-style: none;
    list-style-position: inside;
}

ol li {
    list-style-position: inside;
}

/*
    6. Improve media defaults
 */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

img,
svg {
    object-fit: contain;
}

svg * {
    transition-property: fill, stroke;
}

/*
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
*/

/*
  8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

html {
    overscroll-behavior: none;
}
