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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body-semibold);
  font-style: normal;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* overflow: clip doesn't create a scroll container, so it — unlike hidden — */
/* doesn't break position: sticky on descendants (e.g. the header) in Safari/Chrome */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

img,
picture,
video {
  width: 100%;
  height: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

svg {
  display: block;
}

/* Normalize-style cross-browser fixes */
abbr[title] {
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Для Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Для Chrome, Safari, Edge та Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input {
  /*-moz-appearance: textfield;
  appearance: textfield;*/
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Видаляє системне оформлення браузера (стрілочки, рамки, тіні) */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Скидає базові геометричні та декоративні параметри */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;

  /* Налаштовує роботу з текстом і шрифтами */
  font: inherit;
  color: inherit;

  /* Прибирає дефолтну рамку при кліку (синю або чорну) */
  outline: none;
}

/* Прибирає рамку лише при фокусі мишкою */
input:focus:not(:focus-visible) {
  outline: none;
}
