/* ==========================================================================
   base.css — минимальный reboot (извлечён из Bootstrap 4 reboot, default.css)
   Заменяет default.css (187 KB), от которого в редизайне реально нужны были
   только глобальный box-sizing, базовые ресеты форм/типографики и .scroll-top.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  background-color: #fff;
}

article, aside, figcaption, figure, footer, header, main, nav, section {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol, ul, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

b, strong {
  font-weight: bolder;
}

a {
  text-decoration: none;
  background-color: transparent;
}

img {
  vertical-align: middle;
  border-style: none;
}

svg:not(:root) {
  overflow: hidden;
}

/* Формы используют шрифт страницы (Onest), а не системный */
input, button, select, optgroup, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border-radius: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

textarea {
  overflow: auto;
  resize: vertical;
}

/* Кнопка «наверх» */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: -100px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  background-color: #0f7a45;
  transition: .3s;
}

.scroll-top:hover {
  background-color: #0b5a32;
  transition: all .4s ease-in-out;
}

.scroll-top.active {
  right: 20px;
}
