/** 
 * Указываем box sizing 
 */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/**
 * Correct the line height in all browsers.
 * Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  font-size: 100%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  
  /* Font varient */
  font-variant-ligatures: none;
  -webkit-font-variant-ligatures: none;
  
  /* Smoothing */
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  /* text-shadow: rgba(0, 0, 0, .01) 0 0 1px; */
}

html, body {
  position: relative;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}
/** 
 * Убираем внешние отступы 
 */
body, 
h1, h2, h3, h4,
p,
ul[class], ol[class], li,
figure, figcaption,
blockquote,
dl, dd {
  border: 0 none;
  font: inherit;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

/** 
 * Выставляем основные настройки по-умолчанию для body 
 */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/**
 * HTML5 display-role reset for older browsers 
 */
article, aside, main, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

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

/** 
 * Убираем внутренние отступы 
 * Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class
 */
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

/** 
 * Элементы a, у которых нет класса, сбрасываем до дефолтных стилей 
 */
a:not([class]) {
  background-color: transparent;
  text-decoration: none;
  text-decoration-skip-ink: auto;
}

/** 
 * Элементы i, у которых есть класс, убираем курсив
 */
i[class]{
  font-style: normal;
}

/** 
 * Упрощаем работу с изображениями 
 */
img {
  max-width: 100%;
  display: block;
  border-style: none;
}

/** 
 * Сброс вида цитат
 */
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/**
 * Указываем понятную периодичность в потоке данных у article
 */
article > * + * {
  margin-top: 1em;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre,code, kbd, samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {bottom: -0.25em;}
sup {top: -0.5em;}

/**
 * Add the correct font size in all browsers.
 */
small {font-size: 80%;}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}


/**
 * Наследуем шрифты для инпутов и кнопок 
 * Change the font styles in all browsers.
 * Remove the margin in Firefox and Safari.
 */
input, button, textarea, select {
  font: inherit;
  font-size: 110%;
  line-height: 1.15;
  margin: 0;
  padding:0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}



/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}



/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

[type="text"], [type="password"], [type="number"], [type="search"],
textarea {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  vertical-align: top;
  border-style: solid;
  border-color:transparent;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 2px;
  border-right-width: 2px;
  outline: 0;
  background: 0 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}
[type="text"]:focus, [type="password"]:focus, [type="number"]:focus, [type="search"]:focus,
textarea:focus {
  outline: none !important;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
  resize: none;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}



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