/* 1. Убираем стандартные отступы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
a:focus,
a:active {
  outline: none !important;
}

/* 2. Оптимизируем рендеринг текста */
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* 3. Основные стили для body */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
}

/* 4. Убираем стандартный outline у фокуса, добавляем кастомный */
button,
input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
}
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #007bff;
}

/* 5. Унифицируем изображения */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 6. Обнуляем список */
ul,
ol {
  list-style: none;
}

/* 7. Унифицируем заголовки */
h1,
h2,
h3,
h4,
h5,
h6,
hr {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

/* 8. Улучшаем доступность ссылок */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
}

/* 9. Унифицируем таблицы */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 8px;
  text-align: left;
}

/* 10. Добавляем плавную прокрутку */
html {
  scroll-behavior: smooth;
}
