/* Modern CSS Reset */

/* 1. Убираем внутренние и внешние отступы */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Базовые настройки документа */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

/* 5. Убираем подчёркивание у ссылок */
a {
  text-decoration: none;
  color: inherit;
}

/* 6. Убираем стандартные стили кнопок */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 7. Изображения как блочные элементы */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 8. Убираем табличные отступы */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9. Сброс стилей для fieldset */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* 10. Убираем стандартные стили для текстовых элементов */
/*h1, h2, h3, h4, h5, h6, p {
  font-weight: normal;
  font-size: inherit;
  margin: 0;
}*/

/* 11. Сброс стилей для интерактивных элементов */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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