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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-page);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1,
h2,
h3,
p {
  margin: 0 0 0.6em;
}

h1 {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 500;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-strong);
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-strong);
}

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

button {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
