* {
  margin: 0;
  padding: 0;
}

/* Подключение шрифтов Onest */
@font-face {
  font-family: 'Onest';
  src: url('../assets/fonts/Onest-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

:root {
  --trans-esm: 0.1s all cubic-bezier(0.7, 0, 0.3, 1);
  --trans-sm: 0.15s all cubic-bezier(0.7, 0, 0.3, 1);
  --trans-md: 0.25s all cubic-bezier(0.7, 0, 0.3, 1);
  --trans-lg: 0.5s all cubic-bezier(0.7, 0, 0.3, 1);
  --trans-elg: 0.8s all cubic-bezier(0.7, 0, 0.3, 1);

  --primary-color: #026F6A;
  --primary-color-hovered: #029784;
  --text-color: #121520;

  --skeleton-color: #8080801f;

  --fade-in-y: fade-in-y 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  --fade-in-y-2: fade-in-y-2 1.6s cubic-bezier(0.7, 0, 0.3, 1);

  --fade-in-y-small: fade-in-y-small 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  --fade-in-y-small-2: fade-in-y-small-2 1.6s cubic-bezier(0.7, 0, 0.3, 1);

  --fade-in: fade-in 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  --fade-in-2: fade-in-2 1.6s cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-in-2 {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-in-y {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  40% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-y-2 {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  50% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-y-small {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  40% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-y-small-2 {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  50% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Пример использования шрифта */
body {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  color: var(--text-color);
  max-width: 100vw;
  overflow-x: hidden;
}

h1 {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  /* Bold */
}

h2 {
  font-family: 'Onest', sans-serif;
  font-weight: 300;
  /* Light */
}

h3 {
  font-weight: 900;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0px;
  color: var(--primary-color);
}

.container {
  width: 1440px;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 100vw;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color)
}
.animation_underline {
  position: relative;
}
.animation_underline:before {
  content: "";
  position: absolute;
  height: 2px;
  width: calc(100% + 4px);
  background-color: var(--primary-color);
  bottom: -2px;
  transform: scaleX(0);
  transition: var(--trans-lg);
  transform-origin: calc(100% - 4px) 100%;
  opacity: 0;
  left: -2px;
}
.animation_underline[color="dark"]:before {
  background-color: #121520;
}

.animation_underline:hover:before {
  transform: scaleX(1);
  opacity: 1;
}

@media screen and (max-width: 1599px) and (min-width: 1280px) {
  .container {
    width: 1120px;
  }
}
  
@media screen and (max-width: 1279px) and (min-width: 1024px) {
  .container {
    width: 928px;
  }
}

@media screen and (max-width: 1023px) and (min-width: 640px) {
  .container {
    width: 576px;
  }
}

@media screen and (max-width: 639px) {
  .container {
    width: calc(100% - 32px);
  }
}