/* RESET.CSS — базове обнулення стилів */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%; /* Залишаємо як було */
  scroll-behavior: smooth; /* плавна прокрутка */
}

body {
  display: flex; /* ДОДАНО: для Sticky Footer */
  flex-direction: column; /* ДОДАНО: для Sticky Footer */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #fff;
  color: #111;
}

/* ДОДАНО: Це змушує основний контент займати весь вільний простір,
   штовхаючи футер до нижнього краю екрана */
main {
  flex: 1 0 auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
