/* ==========================================================================
   CSS Reset — минимальный сброс стилей
   ========================================================================== */

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

/* Сброс отступов */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* Базовые настройки body */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Наследование шрифтов */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Убираем стили списков */
ul,
ol {
  list-style: none;
}

/* Ссылки */
a {
  text-decoration: none;
  color: inherit;
}

/* Изображения */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Таблицы */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Убираем стили fieldset */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* Кнопки */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Скрытые элементы */
[hidden] {
  display: none !important;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Для тех, кто предпочитает меньше анимаций */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
