/*Обнуление*/
* {
  padding: 0;
  margin: 0;
  border: 0;
}

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

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a {
  -webkit-tap-highlight-color: transparent;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  -webkit-tap-highlight-color: transparent;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

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

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
}

/*--------------------*/


body {
  margin: 0;
  font-family: sans-serif;
}


.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-width: 100%;
  z-index: 1;
  overflow: hidden;
}

.wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.75);
  z-index: -1;
}

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  max-height: 69px;
  height: 100%;
  width: 95%;
  background-color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2vh;
  padding: 8px;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 1);
  border-radius: 16px;
  gap: 4px;
  z-index: 100;
}

.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  flex: 1;
}

.nav__link--active {
  background-color: #FF4C00;
  border-radius: 8px;
  height: 58px;
  justify-content: center;
  transition: transform 0.1s ease, width 0.3s ease;
  width: auto;
  min-width: 86px;
  padding: 0 16px;
}

.nav__link--active:hover {
  transform: scale(0.95);
}

.nav__link--active .nav__icon {
  filter: brightness(0) invert(1);
}

.nav__link--active .nav__text {
  color: #FFFFFF;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4A4A4A;
  text-decoration: none;
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  transition: filter 0.3s ease;
}

.nav__icon--home {
  background-image: url('/static/icons/banana.svg');
  background-size: cover;
}

.nav__icon--ref {
  background-image: url('/static/icons/users-round.svg');
  background-size: cover;
}

.nav__icon--tasks {
  background-image: url('/static/icons/clipboard-check.svg');
  background-size: cover;
}

.nav__icon--profile {
  background-image: url('/static/icons/user-round.svg');
  background-size: cover;
}

.orange-button {
  max-width: 320px;
  width: 100%;
  height: 48px;
  background-color: #FF4C00;
  border-radius: 16px;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  box-shadow: 1px 5px 0px rgb(200, 70, 0);
  transition: transform 0.1s ease;
}

.orange-button:active {
  transform: scale(0.95);
}

.animate-up-header-top {
  transform: translateY(-200px);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-up-header-top.visible {
  transform: translateY(0);
  opacity: 1;
}

.animate-up-nav {
  transform: translateY(200px);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-up-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.animate-up-button {
  transform: translateY(200px);
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-up-button.visible {
  transform: translateY(0);
  opacity: 1;
}