/* Базовый сброс для большинства HTML-элементов */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Отображаем элементы HTML5 как block в старых браузерах */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

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

/* Убираем кавычки у цитат */
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

/* Сбрасываем стили таблиц */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Графика */
img, picture, svg, video {
  display: block;
  max-width: 100%;
}

/* Унифицируем box-model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Настройки тела документа */
body {
  line-height: 1;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Элементы форм */
button, input, select, textarea {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
}
button, [type="button"], [type="reset"], [type="submit"],
[role="button"] {
  cursor: pointer;
}

/* Защита от акцентного outline, но оставляем доступность */
:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

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