* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif; 
}

.navbar {
  display: flex;
  align-items: center;
  background-color: #1f1f1f;
  padding: 10px 20px;
  position: relative;
  margin-bottom: 5px; 
  font-size: 24px;
}

.logo {
  flex: 1;
}

.logo img {
  height: 60px;
}

.nav-center {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-items {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-items li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
}

.login-button a {
  display: inline-block;
  background-color: #eb9544; 
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-left: 20px;
  font-size: 12px;
}

.login-button a img {
  vertical-align: middle;
  margin-left: 8px;
  width: 20px;
  height: 20px;
}

.login-button a:hover {
  background-color: #4752C4;
}

.contacts {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  padding-right: 20px;
  align-content: center;
  margin-top: 16px;
}

.contacts a {
  margin-left: 10px;
}

.contacts a img {
  width: 28px;
  height: 28px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px 0;
}

@media (max-width: 768px) {

  .logo img {
    height: 36px;

  }

  .login-button a {
    font-size: 8px;
    padding: 1fr 1fr;
  }
  
  .login-button a img {
    width: 10px;
    height: 10px;
  }

  .contacts a img {
    width: 20px;
    height: 20px;
  }

  .nav-items {
    display: none;
    flex-direction: column;
    background-color: #1f1f1f;
    position: absolute;
    top: 60px; 
    left: 0;
    width: 100%;
    padding: 5px 5px;
    z-index: 999;
  }

  .nav-items.active,
  .login-button.active {
    display: flex;
  }

  .nav-items li {
    margin: 1px 0;
    text-align: center;
  }

  .login-button {
    margin-top: 1px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-center {
    flex-direction: column;
  }

  .contacts {
    display: flex;
    margin-right: 20px;
  }
}
