/* =============================================
   Сброс стилей браузера
   ============================================= */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Чтобы заголовок секции не «уезжал» под sticky-шапку при прямом
     переходе по якорю из адресной строки (без перехвата JS).
     --header-height проставляется JS, фолбэк = 4.5rem */
  scroll-padding-top: calc(var(--header-height, 4.5rem) + 1rem);
  -webkit-text-size-adjust: 100%;
  /* Фон html в тон футеру: при overscroll-bounce на iOS/Android
     пользователь видит тёмный фон вместо светлого —
     нет «лишнего светлого блока» под футером */
  background-color: var(--color-footer-bg);
}

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

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}
