/**
 * Reset CSS
 * Сброс стилей для кроссбраузерной совместимости и чистого старта
 * Используется в теме olegtix
 */

/* Box sizing border-box для всех элементов */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Убираем отступы и поля */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ul,
ol,
li,
figure,
figcaption,
fieldset,
legend,
textarea,
input,
select,
button {
  margin: 0;
  padding: 0;
}

/* Убираем стили списков */
ul,
ol {
  list-style: none;
}

/* Убираем стили ссылок */
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}

a:active,
a:hover {
  outline: 0;
}

/* Сброс для изображений и медиа */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* Сброс для форм */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Сброс для таблиц */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0;
  text-align: left;
  font-weight: normal;
}

/* Сброс для заголовков */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Сброс для блочных элементов */
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section,
summary {
  display: block;
}

/* Сброс для абзацев и блочных цитат */
p,
blockquote {
  font-size: inherit;
  font-weight: inherit;
}

/* Сброс для strong и em */
strong,
b {
  font-weight: bold;
}
em,
i {
  font-style: italic;
}

/* Сброс для кода */
pre,
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Сброс для скрытых элементов */
[hidden] {
  display: none !important;
}

/* Сброс для кнопок и интерактивных элементов */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

/* Сброс для html и body */
html,
body {
  height: 100%;
  width: 100%;
}

/* Сброс для root font-size */
html {
  font-size: 16px;
}

/* Сброс для вертикального выравнивания */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  vertical-align: middle;
}

/* Сброс для аббревиатур */
abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

/* Сброс для mark */
mark {
  background: #ff0;
  color: #000;
}

/* Сброс для sub и sup */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

/* Сброс для fieldset и legend */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}

/* Сброс для кнопок и input[type="submit"] */
button,
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Сброс для address */
address {
  font-style: normal;
}

/* Сброс для hr */
hr {
  height: 0;
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 24px 0;
}

/* Сброс для iframe */
iframe {
  border: 0;
}

/* Сброс для progress */
progress {
  vertical-align: baseline;
}

/* Сброс для summary */
summary {
  display: list-item;
}

/* Сброс для template */
template {
  display: none;
}

/* Сброс для кнопок с disabled */
button[disabled],
input[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Сброс для ::selection */
::selection {
  background: #fee7e7;
  color: #232323;
}

/* Сброс для scrollbars (по желанию, можно убрать) */
::-webkit-scrollbar {
  width: 8px;
  background: #f4f4f4;
}
::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}
